address-client 3.2.88 → 3.2.89-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.
- package/build/dev-server.js +74 -74
- package/package.json +1 -1
- package/src/App.vue +16 -60
- package/src/address.js +65 -65
- package/src/components/AddStreetManageMsg.vue +204 -204
- package/src/components/AddStreetOrPcd.vue +361 -361
- package/src/components/AddressListLiuLi.vue +17 -17
- package/src/components/StreetManage.vue +68 -68
- package/src/components/StreetManageList.vue +225 -225
- package/src/filiale/WEINAN/AddAreaMsg.vue +745 -727
- package/src/filiale/WEINAN/AreaList.vue +16 -2
- package/src/filiale/WEINAN/AreaManage.vue +109 -109
- package/src/filiale/WEINAN/AreaUserList.vue +98 -98
- package/src/filiale/WEINAN/sale.js +18 -18
- package/src/filiale/qianneng/UserAddress.vue +1125 -1126
- package/src/filiale/rizhao/UserAddress.vue +3 -3
- package/src/main.js +22 -22
|
@@ -171,6 +171,17 @@
|
|
|
171
171
|
</footer>
|
|
172
172
|
</modal>
|
|
173
173
|
</div>
|
|
174
|
+
<table class="table-hover">
|
|
175
|
+
<tr style="position: relative" class="table-bordered">
|
|
176
|
+
<td
|
|
177
|
+
style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
|
|
178
|
+
汇总信息
|
|
179
|
+
</td>
|
|
180
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
|
|
181
|
+
共有用户: {{sumsmodel.addressnum}}户
|
|
182
|
+
</td>
|
|
183
|
+
</tr>
|
|
184
|
+
</table>
|
|
174
185
|
</template>
|
|
175
186
|
|
|
176
187
|
<script>
|
|
@@ -181,7 +192,7 @@
|
|
|
181
192
|
data () {
|
|
182
193
|
return {
|
|
183
194
|
criteriaShow: false,
|
|
184
|
-
model: new PagedList('rs/sql/address_getarealist',20),
|
|
195
|
+
model: new PagedList('rs/sql/address_getarealist',20,{},{addressnum: 0}),
|
|
185
196
|
addflag: false,
|
|
186
197
|
addtitle:'',
|
|
187
198
|
|
|
@@ -189,8 +200,10 @@
|
|
|
189
200
|
curorgid: [this.$login.f.orgid],
|
|
190
201
|
f_orgid: '',
|
|
191
202
|
handmonth:[{label:'全部',value:''},{label:'单月',value:'单月'},{label:'双月',value:'双月'}],
|
|
192
|
-
housetype:[{label:'全部',value:''}
|
|
203
|
+
housetype:[{label:'全部',value:''},...this.$appdata.getParam('房屋类型')],
|
|
193
204
|
position:this.$appdata.getParam('安装位置')?[{label:'全部',value:''},...this.$appdata.getParam('安装位置')]:[{label:'全部',value:''}],
|
|
205
|
+
// 合计数据
|
|
206
|
+
sumsmodel: {},
|
|
194
207
|
//初始化小区数据
|
|
195
208
|
areaslist:[],
|
|
196
209
|
// 目标小区数据
|
|
@@ -280,6 +293,7 @@
|
|
|
280
293
|
args.condition = `${args.condition} and s.f_filialeid = ${this.f_orgid}`
|
|
281
294
|
}
|
|
282
295
|
this.model.search(args.condition, args.model)
|
|
296
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
|
|
283
297
|
},
|
|
284
298
|
//清空
|
|
285
299
|
clear(){
|
|
@@ -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
|
+
|