address-client 3.2.86 → 3.2.88-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,109 +1,109 @@
1
- <template>
2
- <div id="unit" class="flex-row" :class="{'binary':areaShow == 0}">
3
- <div :class="{'basic-main':areaShow == 0,'binary-left':areaShow != 0}">
4
- <area-list @child-dblclick="selected" v-ref:arealist :style="style" :f_filialeids.sync="f_filialeids"></area-list>
5
- </div>
6
- <div v-show="areaShow == 1" style="width: 60%" class="binary-right">
7
- <div class="flex">
8
- <add-area-msg v-ref:addareamsg :areatype="areatype" :operation="operation"
9
- :f_filialeids.sync="f_filialeids" :row="arearow"></add-area-msg>
10
- </div>
11
- </div>
12
- <div v-show="areaShow == 2" style="width: 60%" class="binary-right">
13
- <div class="flex">
14
- <area-user-list v-if="areaid" :areaid="areaid"></area-user-list>
15
- </div>
16
- </div>
17
- </div>
18
- </template>
19
-
20
- <script>
21
- export default {
22
- title: '小区管理',
23
- components: {},
24
- data () {
25
- return {
26
- // 分公司id串
27
- width: '100%',
28
- f_filialeids: this.$login.f.f_orgids,
29
- areaShow: 0,
30
- areatype: '小区',
31
- arearow: {},
32
- style: 'col-sm-2 form-group',
33
- areaid: null
34
- }
35
- },
36
- ready () {
37
-
38
- },
39
- props: {},
40
- methods: {
41
- selected (obj) {
42
- console.log('======', obj)
43
- this.style = 'col-sm-3 form-group'
44
- if (obj && obj.id) {
45
- console.log('对比分公司', obj.f_filialeid, this.f_filialeids)
46
- if (obj.f_filialeid != this.f_filialeids) {
47
- this.refresh()
48
- return
49
- }
50
- this.areaShow = 1
51
- this.$refs.addareamsg.cleardara()
52
- this.$refs.addareamsg.operation = 'modify'
53
- this.$refs.addareamsg.areatype = '小区'
54
- this.$refs.addareamsg.areamodel = Object.assign({}, obj)
55
- if (obj.f_slice_area) {
56
- this.$refs.addareamsg.areamodel.slice_area = [{
57
- name: this.$refs.addareamsg.areamodel.f_slice_area,
58
- code: this.$refs.addareamsg.areamodel.f_area_code
59
- }]
60
- }
61
- if (obj.f_meter_book != null && obj.f_meter_book != '' && obj.f_meter_book instanceof Array) {
62
- this.$refs.addareamsg.areamodel.f_meter_book = parseInt(obj.f_meter_book[0])
63
- }
64
- if (obj.f_meter_book != null && obj.f_meter_book != '' && !(obj.f_meter_book instanceof Array)) {
65
- this.$refs.addareamsg.areamodel.f_meter_book = parseInt(obj.f_meter_book)
66
- }
67
- if (obj.f_adjustable_id != null && obj.f_adjustable_id != '' && obj.f_adjustable_id instanceof Array) {
68
- this.$refs.addareamsg.areamodel.f_adjustable_id = parseInt(obj.f_adjustable_id[0])
69
- }
70
- if (obj.f_adjustable_id != null && obj.f_adjustable_id != '' && !(obj.f_adjustable_id instanceof Array)) {
71
- this.$refs.addareamsg.areamodel.f_adjustable_id = parseInt(obj.f_adjustable_id)
72
- }
73
- // this.$refs.addareamsg.initdata(obj)
74
- // this.$refs.addareamsg.initrow(obj)
75
- }
76
- },
77
- refresh () {
78
- this.areaShow = false
79
- this.$refs.arealist.$refs.paged.$refs.cri.search()
80
- }
81
- },
82
- events: {
83
- 'shouAreaAllUser' (row) {
84
- this.style = 'col-sm-3 form-group'
85
- this.areaShow = 2
86
- this.areaid = row.id
87
- },
88
- 'add'(val) {
89
- this.style = 'col-sm-3 form-group'
90
- this.areaShow = 1
91
- this.$refs.addareamsg.cleardara()
92
- this.$refs.addareamsg.operation = 'add'
93
- this.$refs.addareamsg.areatype = val
94
- this.$refs.addareamsg.initdata()
95
- },
96
- 'confirm'() {
97
- this.style = 'col-sm-2 form-group'
98
- this.areaShow = false
99
- this.$refs.arealist.$refs.paged.$refs.cri.search()
100
- },
101
- 'cancel'() {
102
- this.style = 'col-sm-2 form-group'
103
- this.$refs.arealist.$refs.paged.$refs.cri.search()
104
- this.areaShow = 0
105
- }
106
- }
107
- }
108
- </script>
109
-
1
+ <template>
2
+ <div id="unit" class="flex-row" :class="{'binary':areaShow == 0}">
3
+ <div :class="{'basic-main':areaShow == 0,'binary-left':areaShow != 0}">
4
+ <area-list @child-dblclick="selected" v-ref:arealist :style="style" :f_filialeids.sync="f_filialeids"></area-list>
5
+ </div>
6
+ <div v-show="areaShow == 1" style="width: 60%" class="binary-right">
7
+ <div class="flex">
8
+ <add-area-msg v-ref:addareamsg :areatype="areatype" :operation="operation"
9
+ :f_filialeids.sync="f_filialeids" :row="arearow"></add-area-msg>
10
+ </div>
11
+ </div>
12
+ <div v-show="areaShow == 2" style="width: 60%" class="binary-right">
13
+ <div class="flex">
14
+ <area-user-list v-if="areaid" :areaid="areaid"></area-user-list>
15
+ </div>
16
+ </div>
17
+ </div>
18
+ </template>
19
+
20
+ <script>
21
+ export default {
22
+ title: '小区管理',
23
+ components: {},
24
+ data () {
25
+ return {
26
+ // 分公司id串
27
+ width: '100%',
28
+ f_filialeids: this.$login.f.f_orgids,
29
+ areaShow: 0,
30
+ areatype: '小区',
31
+ arearow: {},
32
+ style: 'col-sm-2 form-group',
33
+ areaid: null
34
+ }
35
+ },
36
+ ready () {
37
+
38
+ },
39
+ props: {},
40
+ methods: {
41
+ selected (obj) {
42
+ console.log('======', obj)
43
+ this.style = 'col-sm-3 form-group'
44
+ if (obj && obj.id) {
45
+ console.log('对比分公司', obj.f_filialeid, this.f_filialeids)
46
+ if (obj.f_filialeid != this.f_filialeids) {
47
+ this.refresh()
48
+ return
49
+ }
50
+ this.areaShow = 1
51
+ this.$refs.addareamsg.cleardara()
52
+ this.$refs.addareamsg.operation = 'modify'
53
+ this.$refs.addareamsg.areatype = '小区'
54
+ this.$refs.addareamsg.areamodel = Object.assign({}, obj)
55
+ if (obj.f_slice_area) {
56
+ this.$refs.addareamsg.areamodel.slice_area = [{
57
+ name: this.$refs.addareamsg.areamodel.f_slice_area,
58
+ code: this.$refs.addareamsg.areamodel.f_area_code
59
+ }]
60
+ }
61
+ if (obj.f_meter_book != null && obj.f_meter_book != '' && obj.f_meter_book instanceof Array) {
62
+ this.$refs.addareamsg.areamodel.f_meter_book = parseInt(obj.f_meter_book[0])
63
+ }
64
+ if (obj.f_meter_book != null && obj.f_meter_book != '' && !(obj.f_meter_book instanceof Array)) {
65
+ this.$refs.addareamsg.areamodel.f_meter_book = parseInt(obj.f_meter_book)
66
+ }
67
+ if (obj.f_adjustable_id != null && obj.f_adjustable_id != '' && obj.f_adjustable_id instanceof Array) {
68
+ this.$refs.addareamsg.areamodel.f_adjustable_id = parseInt(obj.f_adjustable_id[0])
69
+ }
70
+ if (obj.f_adjustable_id != null && obj.f_adjustable_id != '' && !(obj.f_adjustable_id instanceof Array)) {
71
+ this.$refs.addareamsg.areamodel.f_adjustable_id = parseInt(obj.f_adjustable_id)
72
+ }
73
+ // this.$refs.addareamsg.initdata(obj)
74
+ // this.$refs.addareamsg.initrow(obj)
75
+ }
76
+ },
77
+ refresh () {
78
+ this.areaShow = false
79
+ this.$refs.arealist.$refs.paged.$refs.cri.search()
80
+ }
81
+ },
82
+ events: {
83
+ 'shouAreaAllUser' (row) {
84
+ this.style = 'col-sm-3 form-group'
85
+ this.areaShow = 2
86
+ this.areaid = row.id
87
+ },
88
+ 'add'(val) {
89
+ this.style = 'col-sm-3 form-group'
90
+ this.areaShow = 1
91
+ this.$refs.addareamsg.cleardara()
92
+ this.$refs.addareamsg.operation = 'add'
93
+ this.$refs.addareamsg.areatype = val
94
+ this.$refs.addareamsg.initdata()
95
+ },
96
+ 'confirm'() {
97
+ this.style = 'col-sm-2 form-group'
98
+ this.areaShow = false
99
+ this.$refs.arealist.$refs.paged.$refs.cri.search()
100
+ },
101
+ 'cancel'() {
102
+ this.style = 'col-sm-2 form-group'
103
+ this.$refs.arealist.$refs.paged.$refs.cri.search()
104
+ this.areaShow = 0
105
+ }
106
+ }
107
+ }
108
+ </script>
109
+
@@ -1,98 +1,98 @@
1
- <template>
2
- <div class="flex">
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <div class="col-sm-4 form-group">
8
- <label class="font_normal_body">客户编号</label>
9
- <input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code"
10
- condition="f_userinfo_code = '{}'" placeholder="客户编号"/>
11
- </div>
12
- <div class="col-sm-4 form-group">
13
- <label class="font_normal_body">客户名称</label>
14
- <input type="text" class="input_search" style="width:60%" v-model="model.f_user_name"
15
- condition="f_user_name like '%{}%'" placeholder="客户名称"/>
16
- </div>
17
- <div class="col-sm-4 form-group button-range">
18
- <button class="button_search button_spacing" @click="search()" >查询</button>
19
- <button class="button_clear button_spacing" @click="$parent.$parent.cancel()">返回</button>
20
- </div>
21
- </div>
22
- </div>
23
- </criteria>
24
- <data-grid :model="model" partial='list' style="overflow: auto" class="list_area table_sy" v-ref:grid>
25
- <template partial='head'>
26
- <th>
27
- <nobr>客户编号</nobr>
28
- </th>
29
- <th>
30
- <nobr>客户姓名</nobr>
31
- </th>
32
- <th>
33
- <nobr>详细地址</nobr>
34
- </th>
35
- </template>
36
- <template partial='body'>
37
- <td style="text-align:center">
38
- <nobr>{{ row.f_userinfo_code }}</nobr>
39
- </td>
40
- <td style="text-align:center">
41
- <nobr>{{ row.f_user_name }}</nobr>
42
- </td>
43
- <td style="text-align:center">
44
- <nobr>{{ row.f_address }}</nobr>
45
- </td>
46
- </template>
47
- <template partial='foot'></template>
48
- </data-grid>
49
- </criteria-paged>
50
- </div>
51
- </template>
52
-
53
- <script>
54
- import {PagedList} from 'vue-client'
55
-
56
- export default {
57
- data () {
58
- return {
59
- criteriaShow: false,
60
- model: new PagedList('rs/sql/singleTable_OrderBy', 20, {
61
- tablename: `'t_user_address ua left join t_userinfo ui on ua.f_userinfo_id = ui.f_userinfo_id'`,
62
- items: `'f_userinfo_code,f_user_name,f_address'`,
63
- orderitem: `'f_address desc'`
64
- })
65
- }
66
- },
67
- title: '地址列表',
68
- props: ['areaid'],
69
- ready () {
70
- this.search()
71
- },
72
- methods: {
73
- hidden () {
74
- this.criteriaShow = !this.criteriaShow
75
- },
76
- cancel () {
77
- this.areaid = null
78
- this.$dispatch('cancel')
79
- },
80
- search () {
81
- this.$refs.paged.$refs.cri.search()
82
- },
83
- selfSearch (args) {
84
- args.condition = args.condition + `and f_residential_area_id = '${this.areaid}'`
85
- this.model.search(args.condition, args.model)
86
- }
87
- },
88
- events: {},
89
- computed: {},
90
- watch: {
91
- 'areaid' (val) {
92
- if (val) {
93
- this.search()
94
- }
95
- }
96
- }
97
- }
98
- </script>
1
+ <template>
2
+ <div class="flex">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div class="col-sm-4 form-group">
8
+ <label class="font_normal_body">客户编号</label>
9
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code"
10
+ condition="f_userinfo_code = '{}'" placeholder="客户编号"/>
11
+ </div>
12
+ <div class="col-sm-4 form-group">
13
+ <label class="font_normal_body">客户名称</label>
14
+ <input type="text" class="input_search" style="width:60%" v-model="model.f_user_name"
15
+ condition="f_user_name like '%{}%'" placeholder="客户名称"/>
16
+ </div>
17
+ <div class="col-sm-4 form-group button-range">
18
+ <button class="button_search button_spacing" @click="search()" >查询</button>
19
+ <button class="button_clear button_spacing" @click="$parent.$parent.cancel()">返回</button>
20
+ </div>
21
+ </div>
22
+ </div>
23
+ </criteria>
24
+ <data-grid :model="model" partial='list' style="overflow: auto" class="list_area table_sy" v-ref:grid>
25
+ <template partial='head'>
26
+ <th>
27
+ <nobr>客户编号</nobr>
28
+ </th>
29
+ <th>
30
+ <nobr>客户姓名</nobr>
31
+ </th>
32
+ <th>
33
+ <nobr>详细地址</nobr>
34
+ </th>
35
+ </template>
36
+ <template partial='body'>
37
+ <td style="text-align:center">
38
+ <nobr>{{ row.f_userinfo_code }}</nobr>
39
+ </td>
40
+ <td style="text-align:center">
41
+ <nobr>{{ row.f_user_name }}</nobr>
42
+ </td>
43
+ <td style="text-align:center">
44
+ <nobr>{{ row.f_address }}</nobr>
45
+ </td>
46
+ </template>
47
+ <template partial='foot'></template>
48
+ </data-grid>
49
+ </criteria-paged>
50
+ </div>
51
+ </template>
52
+
53
+ <script>
54
+ import {PagedList} from 'vue-client'
55
+
56
+ export default {
57
+ data () {
58
+ return {
59
+ criteriaShow: false,
60
+ model: new PagedList('rs/sql/singleTable_OrderBy', 20, {
61
+ tablename: `'t_user_address ua left join t_userinfo ui on ua.f_userinfo_id = ui.f_userinfo_id'`,
62
+ items: `'f_userinfo_code,f_user_name,f_address'`,
63
+ orderitem: `'f_address desc'`
64
+ })
65
+ }
66
+ },
67
+ title: '地址列表',
68
+ props: ['areaid'],
69
+ ready () {
70
+ this.search()
71
+ },
72
+ methods: {
73
+ hidden () {
74
+ this.criteriaShow = !this.criteriaShow
75
+ },
76
+ cancel () {
77
+ this.areaid = null
78
+ this.$dispatch('cancel')
79
+ },
80
+ search () {
81
+ this.$refs.paged.$refs.cri.search()
82
+ },
83
+ selfSearch (args) {
84
+ args.condition = args.condition + `and f_residential_area_id = '${this.areaid}'`
85
+ this.model.search(args.condition, args.model)
86
+ }
87
+ },
88
+ events: {},
89
+ computed: {},
90
+ watch: {
91
+ 'areaid' (val) {
92
+ if (val) {
93
+ this.search()
94
+ }
95
+ }
96
+ }
97
+ }
98
+ </script>
@@ -1,18 +1,18 @@
1
- // 分公司特殊组件页面注册
2
- import Vue from "vue";
3
-
4
- let specialComp = {
5
- //地址管理父组件
6
- 'address-manage':(resolve) => { require(['./AddressManage'], resolve) },
7
- 'user-address': (resolve) =>{ require(['./UserAddress'], resolve) },
8
- 'add-area-msg': (resolve) =>{ require(['./AddAreaMsg'], resolve) },
9
- 'address-list': (resolve) =>{ require(['./AddressList'], resolve) },
10
- 'area-list': (resolve) =>{ require(['./AreaList'], resolve) },
11
- 'area-user-list': (resolve) =>{ require(['./AreaUserList.vue'], resolve) },
12
- 'area-manage': (resolve) =>{ require(['./AreaManage'], resolve) }
13
- }
14
- exports.specialComp = specialComp
15
-
16
-
17
-
18
-
1
+ // 分公司特殊组件页面注册
2
+ import Vue from "vue";
3
+
4
+ let specialComp = {
5
+ //地址管理父组件
6
+ 'address-manage':(resolve) => { require(['./AddressManage'], resolve) },
7
+ 'user-address': (resolve) =>{ require(['./UserAddress'], resolve) },
8
+ 'add-area-msg': (resolve) =>{ require(['./AddAreaMsg'], resolve) },
9
+ 'address-list': (resolve) =>{ require(['./AddressList'], resolve) },
10
+ 'area-list': (resolve) =>{ require(['./AreaList'], resolve) },
11
+ 'area-user-list': (resolve) =>{ require(['./AreaUserList.vue'], resolve) },
12
+ 'area-manage': (resolve) =>{ require(['./AreaManage'], resolve) }
13
+ }
14
+ exports.specialComp = specialComp
15
+
16
+
17
+
18
+
@@ -602,7 +602,7 @@
602
602
  let HttpReset = new HttpResetClass()
603
603
  let req = await HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy', {
604
604
  data: {
605
- items: '*',
605
+ items: 'id,f_street',
606
606
  tablename: 't_street',
607
607
  orderitem: 'id',
608
608
  condition: pconditon
@@ -628,7 +628,7 @@
628
628
  let HttpReset = new HttpResetClass()
629
629
  let req = await HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
630
630
  data: {
631
- items: '*',
631
+ items: 'f_street,f_residential_area,f_pcd_id,f_street_id,id,f_slice_area',
632
632
  tablename: 't_area',
633
633
  orderitem: 'id',
634
634
  condition: pconditon
@@ -637,7 +637,7 @@
637
637
  let redata = []
638
638
  if (req.data.length === 0){
639
639
  redata.push({
640
- label: '['+row.f_street+']'+'无',
640
+ label: '无',
641
641
  value: '',
642
642
  data: '',
643
643
  id: ''
@@ -622,7 +622,7 @@
622
622
  this.initpcds(` f_filialeid = '${this.f_filialeids}' and id ='${selectArea.f_pcd_id}' `)
623
623
  this.model.slice_area = selectArea.f_slice_area
624
624
  // 拼接地址
625
- this.model.f_address = `${selectArea.f_street}${selectArea.f_residential_area}`
625
+ this.model.f_address = `${selectArea.f_residential_area}`
626
626
  }
627
627
  this.$nextTick(() => {
628
628
  this.$resetValidation()
@@ -638,7 +638,7 @@
638
638
  street=item.label
639
639
  }
640
640
  })
641
- this.model.f_address = street
641
+ // this.model.f_address = street
642
642
  }
643
643
  if(val){
644
644
  //那就把[小区]重新组织一下
@@ -774,7 +774,7 @@
774
774
  this.model.f_pcd=this.findbyid(this.pcdslist,this.model.f_pcd_id).f_pcd
775
775
  this.model.f_street=this.findbyid(this.streetslist,this.model.f_street_id).f_street
776
776
  this.model.f_residential_area=this.findbyid(this.areaslist,this.model.f_residential_area_id).f_residential_area
777
- this.model.f_address = this.model.f_street + this.model.f_residential_area + (this.model.f_building?this.model.f_building +this.model.f_building_suffix:'') + (this.model.f_unit?this.model.f_unit +this.model.f_unit_suffix:'') + (this.model.f_floor?this.model.f_floor +this.model.f_floor_suffix:'') + this.model.f_room + this.model.f_room_suffix
777
+ this.model.f_address = this.model.f_residential_area + (this.model.f_building?this.model.f_building +this.model.f_building_suffix:'') + (this.model.f_unit?this.model.f_unit +this.model.f_unit_suffix:'') + (this.model.f_floor?this.model.f_floor +this.model.f_floor_suffix:'') + this.model.f_room + this.model.f_room_suffix
778
778
  }
779
779
  await this.$resetpost('rs/logic/address_updateuseraddress', this.model)
780
780
  },