address-client 3.0.17 → 3.0.19-wsd
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 +3 -3
- package/package.json +2 -2
- package/src/address.js +46 -46
- package/src/components/AddAreaMsg.vue +560 -562
- package/src/components/AddStreetOrPcd.vue +217 -217
- package/src/components/AddressFiles.vue +153 -153
- package/src/components/AddressList.vue +8 -0
- package/src/components/AddressManage.vue +114 -114
- package/src/components/AreaFiles.vue +67 -67
- package/src/components/AreaList.vue +210 -210
- package/src/components/AreaManage.vue +87 -87
- package/src/components/CityManage.vue +76 -75
- package/src/components/NewAddressInfo.vue +432 -432
- package/src/components/StreetList.vue +173 -173
- package/src/components/UserAddress.vue +662 -662
- package/src/components/selectAddress/BatchList.vue +326 -326
- package/src/main.js +21 -21
- package/.npmignore +0 -10
- package/AddressClient.iml +0 -13
- package/build/.npmignore +0 -1
|
@@ -1,153 +1,153 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="widows: auto;">
|
|
3
|
-
<criteria-paged :model="model" v-ref:paged :pager="false">
|
|
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 ">-->
|
|
8
|
-
<!--<input type="text" style="width:98%" class="input_search" v-model="model.f_residential_arearea"-->
|
|
9
|
-
<!--condition="f_residential_area like '%{}%'" placeholder="小区"/>-->
|
|
10
|
-
<!--</div>-->
|
|
11
|
-
<!--<div class="col-sm-4 ">-->
|
|
12
|
-
<!--<input type="text" style="width:98%" class="input_search" v-model="model.f_building"-->
|
|
13
|
-
<!--condition="f_building like '%{}%'" placeholder="楼号"/>-->
|
|
14
|
-
<!--</div>-->
|
|
15
|
-
<div class="col-sm-9 ">
|
|
16
|
-
<input type="text" class="input_search button_spacing" v-model="model.f_address"
|
|
17
|
-
condition="f_address like '%{}%'" placeholder="详细地址"/>
|
|
18
|
-
</div>
|
|
19
|
-
|
|
20
|
-
<div class="span" style="float:right;">
|
|
21
|
-
<button class="button_search button_spacing" @click="search()" >查询</button>
|
|
22
|
-
<!--<div style="float: right" class="button_spacing" ></div>-->
|
|
23
|
-
<!--<div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>-->
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
<!--<div class="row" v-show="$parent.$parent.criteriaShow" style="margin-top: 10px">-->
|
|
27
|
-
<!--<div class="col-sm-4 ">-->
|
|
28
|
-
<!--<input type="text" style="width:98%" class="input_search " v-model="model.f_unit"-->
|
|
29
|
-
<!--condition="f_unit like '%{}%'" placeholder="单元"/>-->
|
|
30
|
-
<!--</div>-->
|
|
31
|
-
<!--<div class="col-sm-4 ">-->
|
|
32
|
-
<!--<input type="text" style="width:98%" class="input_search " v-model="model.f_floor"-->
|
|
33
|
-
<!--condition="f_floor like '%{}%'" placeholder="楼层"/>-->
|
|
34
|
-
<!--</div>-->
|
|
35
|
-
<!--<div class="col-sm-4 ">-->
|
|
36
|
-
<!--<input type="text" style="width:98%" class="input_search " v-model="model.f_room"-->
|
|
37
|
-
<!--condition="f_room like '%{}%'" placeholder="门牌号"/>-->
|
|
38
|
-
<!--</div>-->
|
|
39
|
-
<!--<div class="col-sm-4 ">-->
|
|
40
|
-
<!--<v-select :value.sync="model.file_num" :options='$parent.$parent.filenums' placeholder='表具数'-->
|
|
41
|
-
<!--close-on-select-->
|
|
42
|
-
<!--v-model='model.file_num' condition="file_num {}" style="width: 98%"></v-select>-->
|
|
43
|
-
<!--</div>-->
|
|
44
|
-
<!--<div class="col-sm-8 ">-->
|
|
45
|
-
<!--<input type="text" style="width:98%" class="input_search" v-model="model.f_address"-->
|
|
46
|
-
<!--condition="f_address like '%{}%'" placeholder="详细地址"/>-->
|
|
47
|
-
<!--</div>-->
|
|
48
|
-
<!--</div>-->
|
|
49
|
-
</div>
|
|
50
|
-
</criteria>
|
|
51
|
-
|
|
52
|
-
<data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy" v-ref:grid>
|
|
53
|
-
<template partial='head'>
|
|
54
|
-
<tr>
|
|
55
|
-
<th><nobr>详细地址</nobr></th>
|
|
56
|
-
<th><nobr>表具数</nobr></th>
|
|
57
|
-
<th><nobr>操作</nobr></th>
|
|
58
|
-
</tr>
|
|
59
|
-
</template>
|
|
60
|
-
<template partial='body'>
|
|
61
|
-
<tr>
|
|
62
|
-
<td style="text-align:center"><nobr>{{row.f_address}}</nobr></td>
|
|
63
|
-
<td style="text-align:center"><nobr>{{row.file_num}}</nobr></td>
|
|
64
|
-
<td style="text-align:center">
|
|
65
|
-
<div v-if="row.file_num > 0 && !row.f_userinfo_id">
|
|
66
|
-
<button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.create(row, 'complete')">完善档案</button>
|
|
67
|
-
</div>
|
|
68
|
-
<div v-if="row.file_num === 0">
|
|
69
|
-
<button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.create(row, 'add')">添加表具</button>
|
|
70
|
-
</div>
|
|
71
|
-
<div v-if="row.file_num > 0 && row.f_userinfo_id && $parent.$parent.$parent.config.oneToMany">
|
|
72
|
-
<button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.create(row, 'add')">添加表具</button>
|
|
73
|
-
</div>
|
|
74
|
-
</td>
|
|
75
|
-
</tr>
|
|
76
|
-
</template>
|
|
77
|
-
<template partial='foot'></template>
|
|
78
|
-
</data-grid>
|
|
79
|
-
</criteria-paged>
|
|
80
|
-
</div>
|
|
81
|
-
</template>
|
|
82
|
-
|
|
83
|
-
<script>
|
|
84
|
-
import { PagedList, HttpResetClass } from 'vue-client'
|
|
85
|
-
|
|
86
|
-
let readySync = async function (self) {
|
|
87
|
-
|
|
88
|
-
await self.$refs.paged.$refs.cri.search()
|
|
89
|
-
|
|
90
|
-
// 获取地址管理特殊文件
|
|
91
|
-
let http = new HttpResetClass()
|
|
92
|
-
|
|
93
|
-
let getConfig = await http.load('GET', '/rs/vue/AddressList.json', {}, {resolveMsg: null, rejectMsg: null})
|
|
94
|
-
|
|
95
|
-
if (getConfig) {
|
|
96
|
-
Object.assign(self.config, self.config, getConfig.data)
|
|
97
|
-
}
|
|
98
|
-
console.log('获取到的地址配置文件', self.config)
|
|
99
|
-
}
|
|
100
|
-
export default {
|
|
101
|
-
data () {
|
|
102
|
-
return {
|
|
103
|
-
criteriaShow: false,
|
|
104
|
-
config: {
|
|
105
|
-
// 是否支持一对多
|
|
106
|
-
oneToMany: false
|
|
107
|
-
},
|
|
108
|
-
model: new PagedList('rs/sql/address_files',30,{orderitem: `'f_create_date desc'`}),
|
|
109
|
-
//分公司id串
|
|
110
|
-
f_filialeids: this.$login.f.orgid,
|
|
111
|
-
filenums: [{label: '全部', value: ''},{label: '多表', value: '> 1'}, {label: '一表', value: '= 1'}]
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
ready(){
|
|
115
|
-
readySync(this)
|
|
116
|
-
},
|
|
117
|
-
methods: {
|
|
118
|
-
hidden() {
|
|
119
|
-
this.criteriaShow = !this.criteriaShow
|
|
120
|
-
},
|
|
121
|
-
selfsearch(args){
|
|
122
|
-
//添加分公司查询条件
|
|
123
|
-
args.condition = `${args.condition} and f_filialeid = '${this.f_filialeids}'`
|
|
124
|
-
this.$refs.paged.$refs.grid.$el.scrollTop = 0
|
|
125
|
-
//执行查询
|
|
126
|
-
this.model.search(args.condition, args.model, args.condValue)
|
|
127
|
-
},
|
|
128
|
-
//清空
|
|
129
|
-
clear(){
|
|
130
|
-
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
131
|
-
this.$refs.paged.$refs.cri.model[key] = ''
|
|
132
|
-
})
|
|
133
|
-
},
|
|
134
|
-
create(row, action){
|
|
135
|
-
|
|
136
|
-
console.log('点击的动作', action)
|
|
137
|
-
|
|
138
|
-
if (row.file_num > 0 && action === 'add') {
|
|
139
|
-
// 属于一址多表
|
|
140
|
-
this.$showMessage('该地址下已存在表具信息,确定要新加一个新表具吗?', ['confirm', 'cancel']).then((res) => {
|
|
141
|
-
if (res === 'confirm') {
|
|
142
|
-
//发出事件,用于建档或修正档案
|
|
143
|
-
this.$dispatch('buildfiles',row)
|
|
144
|
-
}
|
|
145
|
-
})
|
|
146
|
-
} else {
|
|
147
|
-
this.$dispatch('buildfiles',row)
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div style="widows: auto;">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged :pager="false">
|
|
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 ">-->
|
|
8
|
+
<!--<input type="text" style="width:98%" class="input_search" v-model="model.f_residential_arearea"-->
|
|
9
|
+
<!--condition="f_residential_area like '%{}%'" placeholder="小区"/>-->
|
|
10
|
+
<!--</div>-->
|
|
11
|
+
<!--<div class="col-sm-4 ">-->
|
|
12
|
+
<!--<input type="text" style="width:98%" class="input_search" v-model="model.f_building"-->
|
|
13
|
+
<!--condition="f_building like '%{}%'" placeholder="楼号"/>-->
|
|
14
|
+
<!--</div>-->
|
|
15
|
+
<div class="col-sm-9 ">
|
|
16
|
+
<input type="text" class="input_search button_spacing" v-model="model.f_address"
|
|
17
|
+
condition="f_address like '%{}%'" placeholder="详细地址"/>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<div class="span" style="float:right;">
|
|
21
|
+
<button class="button_search button_spacing" @click="search()" >查询</button>
|
|
22
|
+
<!--<div style="float: right" class="button_spacing" ></div>-->
|
|
23
|
+
<!--<div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>-->
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
<!--<div class="row" v-show="$parent.$parent.criteriaShow" style="margin-top: 10px">-->
|
|
27
|
+
<!--<div class="col-sm-4 ">-->
|
|
28
|
+
<!--<input type="text" style="width:98%" class="input_search " v-model="model.f_unit"-->
|
|
29
|
+
<!--condition="f_unit like '%{}%'" placeholder="单元"/>-->
|
|
30
|
+
<!--</div>-->
|
|
31
|
+
<!--<div class="col-sm-4 ">-->
|
|
32
|
+
<!--<input type="text" style="width:98%" class="input_search " v-model="model.f_floor"-->
|
|
33
|
+
<!--condition="f_floor like '%{}%'" placeholder="楼层"/>-->
|
|
34
|
+
<!--</div>-->
|
|
35
|
+
<!--<div class="col-sm-4 ">-->
|
|
36
|
+
<!--<input type="text" style="width:98%" class="input_search " v-model="model.f_room"-->
|
|
37
|
+
<!--condition="f_room like '%{}%'" placeholder="门牌号"/>-->
|
|
38
|
+
<!--</div>-->
|
|
39
|
+
<!--<div class="col-sm-4 ">-->
|
|
40
|
+
<!--<v-select :value.sync="model.file_num" :options='$parent.$parent.filenums' placeholder='表具数'-->
|
|
41
|
+
<!--close-on-select-->
|
|
42
|
+
<!--v-model='model.file_num' condition="file_num {}" style="width: 98%"></v-select>-->
|
|
43
|
+
<!--</div>-->
|
|
44
|
+
<!--<div class="col-sm-8 ">-->
|
|
45
|
+
<!--<input type="text" style="width:98%" class="input_search" v-model="model.f_address"-->
|
|
46
|
+
<!--condition="f_address like '%{}%'" placeholder="详细地址"/>-->
|
|
47
|
+
<!--</div>-->
|
|
48
|
+
<!--</div>-->
|
|
49
|
+
</div>
|
|
50
|
+
</criteria>
|
|
51
|
+
|
|
52
|
+
<data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy" v-ref:grid>
|
|
53
|
+
<template partial='head'>
|
|
54
|
+
<tr>
|
|
55
|
+
<th><nobr>详细地址</nobr></th>
|
|
56
|
+
<th><nobr>表具数</nobr></th>
|
|
57
|
+
<th><nobr>操作</nobr></th>
|
|
58
|
+
</tr>
|
|
59
|
+
</template>
|
|
60
|
+
<template partial='body'>
|
|
61
|
+
<tr>
|
|
62
|
+
<td style="text-align:center"><nobr>{{row.f_address}}</nobr></td>
|
|
63
|
+
<td style="text-align:center"><nobr>{{row.file_num}}</nobr></td>
|
|
64
|
+
<td style="text-align:center">
|
|
65
|
+
<div v-if="row.file_num > 0 && !row.f_userinfo_id">
|
|
66
|
+
<button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.create(row, 'complete')">完善档案</button>
|
|
67
|
+
</div>
|
|
68
|
+
<div v-if="row.file_num === 0">
|
|
69
|
+
<button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.create(row, 'add')">添加表具</button>
|
|
70
|
+
</div>
|
|
71
|
+
<div v-if="row.file_num > 0 && row.f_userinfo_id && $parent.$parent.$parent.config.oneToMany">
|
|
72
|
+
<button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.create(row, 'add')">添加表具</button>
|
|
73
|
+
</div>
|
|
74
|
+
</td>
|
|
75
|
+
</tr>
|
|
76
|
+
</template>
|
|
77
|
+
<template partial='foot'></template>
|
|
78
|
+
</data-grid>
|
|
79
|
+
</criteria-paged>
|
|
80
|
+
</div>
|
|
81
|
+
</template>
|
|
82
|
+
|
|
83
|
+
<script>
|
|
84
|
+
import { PagedList, HttpResetClass } from 'vue-client'
|
|
85
|
+
|
|
86
|
+
let readySync = async function (self) {
|
|
87
|
+
|
|
88
|
+
await self.$refs.paged.$refs.cri.search()
|
|
89
|
+
|
|
90
|
+
// 获取地址管理特殊文件
|
|
91
|
+
let http = new HttpResetClass()
|
|
92
|
+
|
|
93
|
+
let getConfig = await http.load('GET', '/rs/vue/AddressList.json', {}, {resolveMsg: null, rejectMsg: null})
|
|
94
|
+
|
|
95
|
+
if (getConfig) {
|
|
96
|
+
Object.assign(self.config, self.config, getConfig.data)
|
|
97
|
+
}
|
|
98
|
+
console.log('获取到的地址配置文件', self.config)
|
|
99
|
+
}
|
|
100
|
+
export default {
|
|
101
|
+
data () {
|
|
102
|
+
return {
|
|
103
|
+
criteriaShow: false,
|
|
104
|
+
config: {
|
|
105
|
+
// 是否支持一对多
|
|
106
|
+
oneToMany: false
|
|
107
|
+
},
|
|
108
|
+
model: new PagedList('rs/sql/address_files',30,{orderitem: `'f_create_date desc'`}),
|
|
109
|
+
//分公司id串
|
|
110
|
+
f_filialeids: this.$login.f.orgid,
|
|
111
|
+
filenums: [{label: '全部', value: ''},{label: '多表', value: '> 1'}, {label: '一表', value: '= 1'}]
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
ready(){
|
|
115
|
+
readySync(this)
|
|
116
|
+
},
|
|
117
|
+
methods: {
|
|
118
|
+
hidden() {
|
|
119
|
+
this.criteriaShow = !this.criteriaShow
|
|
120
|
+
},
|
|
121
|
+
selfsearch(args){
|
|
122
|
+
//添加分公司查询条件
|
|
123
|
+
args.condition = `${args.condition} and f_filialeid = '${this.f_filialeids}'`
|
|
124
|
+
this.$refs.paged.$refs.grid.$el.scrollTop = 0
|
|
125
|
+
//执行查询
|
|
126
|
+
this.model.search(args.condition, args.model, args.condValue)
|
|
127
|
+
},
|
|
128
|
+
//清空
|
|
129
|
+
clear(){
|
|
130
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
131
|
+
this.$refs.paged.$refs.cri.model[key] = ''
|
|
132
|
+
})
|
|
133
|
+
},
|
|
134
|
+
create(row, action){
|
|
135
|
+
|
|
136
|
+
console.log('点击的动作', action)
|
|
137
|
+
|
|
138
|
+
if (row.file_num > 0 && action === 'add') {
|
|
139
|
+
// 属于一址多表
|
|
140
|
+
this.$showMessage('该地址下已存在表具信息,确定要新加一个新表具吗?', ['confirm', 'cancel']).then((res) => {
|
|
141
|
+
if (res === 'confirm') {
|
|
142
|
+
//发出事件,用于建档或修正档案
|
|
143
|
+
this.$dispatch('buildfiles',row)
|
|
144
|
+
}
|
|
145
|
+
})
|
|
146
|
+
} else {
|
|
147
|
+
this.$dispatch('buildfiles',row)
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
</script>
|
|
@@ -16,6 +16,12 @@
|
|
|
16
16
|
>
|
|
17
17
|
</res-select>
|
|
18
18
|
</div>
|
|
19
|
+
<div :class="$parent.$parent.style">
|
|
20
|
+
<label class="font_normal_body"> 用户编号 </label>
|
|
21
|
+
<input type="text" class="input_search" style="width:60%" v-model="model.f_userinfo_code" style="width:60%"
|
|
22
|
+
condition="f_userinfo_code = '{}'" placeholder="用户编号"
|
|
23
|
+
:size="model.f_userinfo_code ? model.f_userinfo_code.length*2 : 8"/>
|
|
24
|
+
</div>
|
|
19
25
|
<div :class="$parent.$parent.style">
|
|
20
26
|
<label class="font_normal_body"> 小区 </label>
|
|
21
27
|
<input type="text" class="input_search" style="width:60%" v-model="model.f_residential_arearea" style="width:60%"
|
|
@@ -70,6 +76,7 @@
|
|
|
70
76
|
<template partial='head'>
|
|
71
77
|
<tr>
|
|
72
78
|
<th><nobr>序号</nobr></th>
|
|
79
|
+
<th><nobr>用户编号</nobr></th>
|
|
73
80
|
<th><nobr>区/县</nobr></th>
|
|
74
81
|
<th><nobr>片区</nobr></th>
|
|
75
82
|
<th><nobr>街道</nobr></th>
|
|
@@ -86,6 +93,7 @@
|
|
|
86
93
|
<template partial='body'>
|
|
87
94
|
<tr>
|
|
88
95
|
<td style="text-align:center"><nobr>{{$index + 1}}</nobr></td>
|
|
96
|
+
<td style="text-align:center"><nobr>{{row.f_userinfo_code}}</nobr></td>
|
|
89
97
|
<td style="text-align:center"><nobr>{{row.f_pcd}}</nobr></td>
|
|
90
98
|
<td style="text-align:center"><nobr>{{row.f_slice_area}}</nobr></td>
|
|
91
99
|
<td style="text-align:center"><nobr>{{row.f_street}}</nobr></td>
|
|
@@ -1,114 +1,114 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="unit" class="flex-row">
|
|
3
|
-
<div :class="{'basic-main':!useraddressShow,'binary-left':useraddressShow}">
|
|
4
|
-
<address-list @select-changed="selected" v-ref:addresslist :style="style" :f_filialeids.sync="f_filialeids"></address-list>
|
|
5
|
-
</div>
|
|
6
|
-
<div v-show="useraddressShow" class="binary-right">
|
|
7
|
-
<div class="flex">
|
|
8
|
-
<user-address v-ref:useraddressmsg
|
|
9
|
-
:f_filialeids.sync="f_filialeids" :row="row"></user-address>
|
|
10
|
-
|
|
11
|
-
<user-address-change v-if="addressId" :address_id="addressId"></user-address-change>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
15
|
-
</template>
|
|
16
|
-
|
|
17
|
-
<script>
|
|
18
|
-
export default {
|
|
19
|
-
title: '地址管理',
|
|
20
|
-
components:{
|
|
21
|
-
},
|
|
22
|
-
data () {
|
|
23
|
-
return {
|
|
24
|
-
//分公司id串
|
|
25
|
-
f_filialeids: this.$login.f.orgid,
|
|
26
|
-
area: [],
|
|
27
|
-
street: [],
|
|
28
|
-
residential: [],
|
|
29
|
-
row: {},
|
|
30
|
-
useraddressShow: false,
|
|
31
|
-
addressId: null,
|
|
32
|
-
style:'col-sm-2 '
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
props:{
|
|
36
|
-
|
|
37
|
-
},
|
|
38
|
-
methods:{
|
|
39
|
-
selected(obj){
|
|
40
|
-
this.style='col-sm-3 '
|
|
41
|
-
if(obj.val&&obj.val.id){
|
|
42
|
-
if (obj.val.f_filialeid != this.f_filialeids) {
|
|
43
|
-
this.refresh()
|
|
44
|
-
return
|
|
45
|
-
}
|
|
46
|
-
// 呼叫中心需要
|
|
47
|
-
this.$dispatch('re-ref', obj.val)
|
|
48
|
-
this.addressId=obj.val.id
|
|
49
|
-
this.useraddressShow=true
|
|
50
|
-
this.$refs.useraddressmsg.cleardara()
|
|
51
|
-
this.$refs.useraddressmsg.initdata()
|
|
52
|
-
this.$refs.useraddressmsg.usertype=obj.val.f_user_type
|
|
53
|
-
this.$refs.useraddressmsg.operation='modify'
|
|
54
|
-
this.$refs.useraddressmsg.onedata='one'
|
|
55
|
-
this.$refs.useraddressmsg.model=Object.assign({},obj.val)
|
|
56
|
-
if(obj.val.f_special=='1'){
|
|
57
|
-
this.$refs.useraddressmsg.usertype = true
|
|
58
|
-
}else{
|
|
59
|
-
this.$refs.useraddressmsg.usertype = false
|
|
60
|
-
}
|
|
61
|
-
if (obj.val.f_slice_area
|
|
62
|
-
this.$refs.useraddressmsg.model.slice_area = [{
|
|
63
|
-
name: this.$refs.useraddressmsg.model.f_slice_area,
|
|
64
|
-
code: this.$refs.useraddressmsg.model.f_area_code
|
|
65
|
-
}]
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
refresh () {
|
|
70
|
-
this.addressId=null
|
|
71
|
-
this.useraddressShow = false
|
|
72
|
-
this.$refs.addresslist.$refs.paged.$refs.cri.search()
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
events:{
|
|
76
|
-
'add'(val){
|
|
77
|
-
this.style='col-sm-3 '
|
|
78
|
-
this.useraddressShow = true
|
|
79
|
-
this.$refs.useraddressmsg.cleardara()
|
|
80
|
-
this.addressId=null
|
|
81
|
-
//true为新增特殊地址
|
|
82
|
-
if (val!='民用') {
|
|
83
|
-
//非民用
|
|
84
|
-
this.$refs.useraddressmsg.usertype = true
|
|
85
|
-
this.$refs.useraddressmsg.onedata = 'one'
|
|
86
|
-
}else{
|
|
87
|
-
this.$refs.useraddressmsg.usertype = false
|
|
88
|
-
}
|
|
89
|
-
this.$refs.useraddressmsg.operation='add'
|
|
90
|
-
this.$refs.useraddressmsg.pcdslist=[]
|
|
91
|
-
this.$refs.useraddressmsg.streetslist=[]
|
|
92
|
-
this.$refs.useraddressmsg.areaslist=[]
|
|
93
|
-
this.$refs.useraddressmsg.initdata()
|
|
94
|
-
},
|
|
95
|
-
'confirm' () {
|
|
96
|
-
this.style='col-sm-2 '
|
|
97
|
-
this.addressId=null
|
|
98
|
-
this.$refs.addresslist.$refs.paged.$refs.cri.search()
|
|
99
|
-
this.useraddressShow = false
|
|
100
|
-
},
|
|
101
|
-
'modify'(area){
|
|
102
|
-
this.style='col-sm-2 '
|
|
103
|
-
},
|
|
104
|
-
'cancel' () {
|
|
105
|
-
this.style='col-sm-2 '
|
|
106
|
-
this.addressId=null
|
|
107
|
-
this.$refs.addresslist.$refs.paged.$refs.cri.search()
|
|
108
|
-
this.useraddressShow = false
|
|
109
|
-
},
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
</script>
|
|
113
|
-
<style>
|
|
114
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div id="unit" class="flex-row">
|
|
3
|
+
<div :class="{'basic-main':!useraddressShow,'binary-left':useraddressShow}">
|
|
4
|
+
<address-list @select-changed="selected" v-ref:addresslist :style="style" :f_filialeids.sync="f_filialeids"></address-list>
|
|
5
|
+
</div>
|
|
6
|
+
<div v-show="useraddressShow" class="binary-right">
|
|
7
|
+
<div class="flex">
|
|
8
|
+
<user-address v-ref:useraddressmsg
|
|
9
|
+
:f_filialeids.sync="f_filialeids" :row="row"></user-address>
|
|
10
|
+
|
|
11
|
+
<user-address-change v-if="addressId" :address_id="addressId"></user-address-change>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script>
|
|
18
|
+
export default {
|
|
19
|
+
title: '地址管理',
|
|
20
|
+
components:{
|
|
21
|
+
},
|
|
22
|
+
data () {
|
|
23
|
+
return {
|
|
24
|
+
//分公司id串
|
|
25
|
+
f_filialeids: this.$login.f.orgid,
|
|
26
|
+
area: [],
|
|
27
|
+
street: [],
|
|
28
|
+
residential: [],
|
|
29
|
+
row: {},
|
|
30
|
+
useraddressShow: false,
|
|
31
|
+
addressId: null,
|
|
32
|
+
style:'col-sm-2 '
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
props:{
|
|
36
|
+
|
|
37
|
+
},
|
|
38
|
+
methods:{
|
|
39
|
+
selected(obj){
|
|
40
|
+
this.style='col-sm-3 '
|
|
41
|
+
if(obj.val&&obj.val.id){
|
|
42
|
+
if (obj.val.f_filialeid != this.f_filialeids) {
|
|
43
|
+
this.refresh()
|
|
44
|
+
return
|
|
45
|
+
}
|
|
46
|
+
// 呼叫中心需要
|
|
47
|
+
this.$dispatch('re-ref', obj.val)
|
|
48
|
+
this.addressId=obj.val.id
|
|
49
|
+
this.useraddressShow=true
|
|
50
|
+
this.$refs.useraddressmsg.cleardara()
|
|
51
|
+
this.$refs.useraddressmsg.initdata()
|
|
52
|
+
this.$refs.useraddressmsg.usertype=obj.val.f_user_type
|
|
53
|
+
this.$refs.useraddressmsg.operation='modify'
|
|
54
|
+
this.$refs.useraddressmsg.onedata='one'
|
|
55
|
+
this.$refs.useraddressmsg.model=Object.assign({},obj.val)
|
|
56
|
+
if(obj.val.f_special=='1'){
|
|
57
|
+
this.$refs.useraddressmsg.usertype = true
|
|
58
|
+
}else{
|
|
59
|
+
this.$refs.useraddressmsg.usertype = false
|
|
60
|
+
}
|
|
61
|
+
if (obj.val.f_slice_area) {
|
|
62
|
+
this.$refs.useraddressmsg.model.slice_area = [{
|
|
63
|
+
name: this.$refs.useraddressmsg.model.f_slice_area,
|
|
64
|
+
code: this.$refs.useraddressmsg.model.f_area_code
|
|
65
|
+
}]
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
refresh () {
|
|
70
|
+
this.addressId=null
|
|
71
|
+
this.useraddressShow = false
|
|
72
|
+
this.$refs.addresslist.$refs.paged.$refs.cri.search()
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
events:{
|
|
76
|
+
'add'(val){
|
|
77
|
+
this.style='col-sm-3 '
|
|
78
|
+
this.useraddressShow = true
|
|
79
|
+
this.$refs.useraddressmsg.cleardara()
|
|
80
|
+
this.addressId=null
|
|
81
|
+
//true为新增特殊地址
|
|
82
|
+
if (val!='民用') {
|
|
83
|
+
//非民用
|
|
84
|
+
this.$refs.useraddressmsg.usertype = true
|
|
85
|
+
this.$refs.useraddressmsg.onedata = 'one'
|
|
86
|
+
}else{
|
|
87
|
+
this.$refs.useraddressmsg.usertype = false
|
|
88
|
+
}
|
|
89
|
+
this.$refs.useraddressmsg.operation='add'
|
|
90
|
+
this.$refs.useraddressmsg.pcdslist=[]
|
|
91
|
+
this.$refs.useraddressmsg.streetslist=[]
|
|
92
|
+
this.$refs.useraddressmsg.areaslist=[]
|
|
93
|
+
this.$refs.useraddressmsg.initdata()
|
|
94
|
+
},
|
|
95
|
+
'confirm' () {
|
|
96
|
+
this.style='col-sm-2 '
|
|
97
|
+
this.addressId=null
|
|
98
|
+
this.$refs.addresslist.$refs.paged.$refs.cri.search()
|
|
99
|
+
this.useraddressShow = false
|
|
100
|
+
},
|
|
101
|
+
'modify'(area){
|
|
102
|
+
this.style='col-sm-2 '
|
|
103
|
+
},
|
|
104
|
+
'cancel' () {
|
|
105
|
+
this.style='col-sm-2 '
|
|
106
|
+
this.addressId=null
|
|
107
|
+
this.$refs.addresslist.$refs.paged.$refs.cri.search()
|
|
108
|
+
this.useraddressShow = false
|
|
109
|
+
},
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
</script>
|
|
113
|
+
<style>
|
|
114
|
+
</style>
|