address-client 4.0.2 → 4.0.3-yunChengV4
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/.gradle/8.5/checksums/checksums.lock +0 -0
- package/.gradle/8.5/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/.gradle/8.5/executionHistory/executionHistory.bin +0 -0
- package/.gradle/8.5/executionHistory/executionHistory.lock +0 -0
- package/.gradle/8.5/fileHashes/fileHashes.bin +0 -0
- package/.gradle/8.5/fileHashes/fileHashes.lock +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/.gradle/file-system.probe +0 -0
- package/build/dev-server.js +13 -36
- package/package.json +4 -4
- package/src/address.js +0 -17
- package/src/components/AddAreaMsg.vue +466 -480
- package/src/components/AddStreetOrPcd.vue +17 -13
- package/src/components/AddressList.vue +2 -9
- package/src/components/AreaList.vue +2 -2
- package/src/components/AreaManage.vue +0 -4
- package/src/components/BatchOrders.vue +1 -1
- package/src/components/CityList.vue +1 -2
- package/src/components/NewAddressInfo.vue +1 -1
- package/src/components/StreetList.vue +1 -2
- package/src/components/UserAddress.vue +44 -61
- package/src/components/selectAddress/BatchList.vue +1 -1
- package/src/components/selectAddress/BatchOrders.vue +36 -37
- package/src/filiale/WEINAN/AddAreaMsg.vue +398 -464
- package/src/filiale/WEINAN/AddressList.vue +1 -1
- package/src/filiale/WEINAN/AreaList.vue +14 -59
- package/src/filiale/WEINAN/sale.js +1 -3
- package/src/filiale/gaomi/AddressList.vue +1 -1
- package/src/filiale/macheng/AddressList.vue +1 -1
- package/src/filiale/macheng/AreaList.vue +1 -1
- package/src/filiale/macheng/StreetList.vue +1 -1
- package/src/filiale/qianneng/AddAreaMsg.vue +0 -4
- package/src/filiale/qianneng/AddressList.vue +1 -1
- package/src/filiale/qianneng/AreaList.vue +1 -1
- package/src/filiale/qianneng/UserAddress.vue +45 -64
- package/src/filiale/qinhua/AddressList.vue +12 -10
- package/src/filiale/qinhua/AreaList.vue +13 -6
- package/src/filiale/qinhua/StreetList.vue +5 -6
- package/src/filiale/qinhua/UserAddress.vue +6 -6
- package/src/filiale/rongcheng/AddressList.vue +1 -1
- package/src/filiale/shanggao/AddressList.vue +1 -1
- package/src/filiale/shanggao/AreaList.vue +1 -1
- package/src/filiale/shanggao/StreetList.vue +1 -1
- package/src/filiale/shanxian/AddressList.vue +11 -39
- package/src/filiale/shanxian/AreaList.vue +4 -27
- package/src/filiale/shanxian/UserAddress.vue +8 -14
- package/src/filiale/tongchuan/AddStreetOrPcd.vue +0 -43
- package/src/filiale/tongchuan/AddressList.vue +1 -1
- package/src/filiale/tongchuan/AreaList.vue +1 -1
- package/src/filiale/tongchuan/CityList.vue +1 -1
- package/src/filiale/tongchuan/StreetList.vue +3 -10
- package/src/filiale/wuhai/UserAddress.vue +1 -1
- package/src/filiale/zhongsheng/AddressList.vue +1 -1
- package/src/filiale/zhongsheng/AreaList.vue +1 -1
- package/src/filiale/zhoukou/AddressList.vue +1 -1
- package/src/filiale/zhoukou/AreaList.vue +1 -1
- package/src/main.js +1 -1
- package/build/versionCheck.js +0 -31
- package/src/components/AddCommunityManageMsg.vue +0 -220
- package/src/components/AddStreetManageMsg.vue +0 -204
- package/src/components/AddressListLiuLi.vue +0 -17
- package/src/components/CommunityAreaList.vue +0 -87
- package/src/components/CommunityManage.vue +0 -78
- package/src/components/CommunityManageList.vue +0 -244
- package/src/components/StreetManage.vue +0 -68
- package/src/components/StreetManageList.vue +0 -225
- package/src/filiale/WEINAN/AreaManage.vue +0 -109
- package/src/filiale/WEINAN/AreaUserList.vue +0 -226
- package/src/filiale/haile/AddressList.vue +0 -615
- package/src/filiale/haile/sale.js +0 -8
- package/src/filiale/lixianV3/AreaList.vue +0 -416
- package/src/filiale/lixianV3/sale.js +0 -12
- package/src/filiale/meihekou/UserAddress.vue +0 -898
- package/src/filiale/meihekou/sale.js +0 -8
- package/src/filiale/rizhao/UserAddress.vue +0 -897
- package/src/filiale/rizhao/sale.js +0 -8
- package/src/filiale/xihu/AreaList.vue +0 -409
- package/src/filiale/xihu/StreetList.vue +0 -238
- package/src/filiale/xihu/sale.js +0 -14
- package/src/filiale/xinkang/AddAreaMsg.vue +0 -780
- package/src/filiale/xinkang/AreaList.vue +0 -413
- package/src/filiale/xinkang/sale.js +0 -9
- package/src/filiale/yangchun/AddAreaMsg.vue +0 -764
- package/src/filiale/yangchun/sale.js +0 -7
|
@@ -150,18 +150,23 @@
|
|
|
150
150
|
methods: {
|
|
151
151
|
async streetyanzheng(){
|
|
152
152
|
console.log(this.streetmodel.f_street_number.length)
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
153
|
+
if (this.streetmodel.f_street_number.length != 2){
|
|
154
|
+
this.$showAlert('请输入正确的位数', 'warning', 2000)
|
|
155
|
+
this.streetmodel.f_street_number = ''
|
|
156
|
+
}else{
|
|
157
|
+
let res =await this.$resetpost('api/af-revenue/sql/address_singleTableOrderBy', {
|
|
158
|
+
data: {
|
|
159
|
+
items: '*',
|
|
160
|
+
tablename: 't_street',
|
|
161
|
+
orderitem: 'id',
|
|
162
|
+
condition: `f_street_number = '${this.streetmodel.f_street_number}' and f_orgid = '${this.$login.f.orgid}'`
|
|
163
|
+
}
|
|
164
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
165
|
+
if (res.data.length>0){
|
|
166
|
+
if (res.data[0].id != this.streetmodel.id) {
|
|
167
|
+
this.$showAlert('当前编号已存在', 'warning', 2000)
|
|
168
|
+
this.streetmodel.f_street_number = ''
|
|
169
|
+
}
|
|
165
170
|
}
|
|
166
171
|
}
|
|
167
172
|
},
|
|
@@ -240,7 +245,6 @@
|
|
|
240
245
|
async confirm(){
|
|
241
246
|
if(this.areatype=='省市区'){
|
|
242
247
|
await this.savepcd()
|
|
243
|
-
this.$refs.addpcd.search()
|
|
244
248
|
}
|
|
245
249
|
if(this.areatype=='街道'){
|
|
246
250
|
await this.savestreet()
|
|
@@ -132,11 +132,6 @@
|
|
|
132
132
|
close-on-select>
|
|
133
133
|
</v-select>
|
|
134
134
|
</div>
|
|
135
|
-
<div :class="$parent.$parent.style">
|
|
136
|
-
<label class="font_normal_body">用户名称</label>
|
|
137
|
-
<input type="text" class="input_search" style="width:60%" v-model="model.f_user_name" style="width:60%"
|
|
138
|
-
condition="f_user_name = '{}'" placeholder="用户名称"/>
|
|
139
|
-
</div>
|
|
140
135
|
</div>
|
|
141
136
|
</div>
|
|
142
137
|
</criteria>
|
|
@@ -144,7 +139,6 @@
|
|
|
144
139
|
<template partial='head'>
|
|
145
140
|
<th><nobr>序号</nobr></th>
|
|
146
141
|
<th><nobr>客户编号</nobr></th>
|
|
147
|
-
<th><nobr>客户名称</nobr></th>
|
|
148
142
|
<th v-show="!$parent.$parent.$parent.$parent.useraddressShow"><nobr>区/县</nobr></th>
|
|
149
143
|
<th v-show="!$parent.$parent.$parent.$parent.useraddressShow"><nobr>片区/管理站</nobr></th>
|
|
150
144
|
<th><nobr>街道/乡镇</nobr></th>
|
|
@@ -163,7 +157,6 @@
|
|
|
163
157
|
<template partial='body'>
|
|
164
158
|
<td style="text-align:center"><nobr>{{$index + 1}}</nobr></td>
|
|
165
159
|
<td style="text-align:center"><nobr>{{row.f_userinfo_code}}</nobr></td>
|
|
166
|
-
<td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
|
|
167
160
|
<td v-show="!$parent.$parent.$parent.$parent.useraddressShow" style="text-align:center"><nobr>{{row.f_pcd}}</nobr></td>
|
|
168
161
|
<td v-show="!$parent.$parent.$parent.$parent.useraddressShow" style="text-align:center"><nobr>{{row.f_slice_area}}</nobr></td>
|
|
169
162
|
<td style="text-align:center"><nobr>{{row.f_street}}</nobr></td>
|
|
@@ -197,7 +190,7 @@
|
|
|
197
190
|
</header>
|
|
198
191
|
<article slot="modal-body" class="modal-body">
|
|
199
192
|
<div class="form-group">
|
|
200
|
-
<file-upload class="my-file-uploader col-sm-9" name="useraddressUploadFile" action="
|
|
193
|
+
<file-upload class="my-file-uploader col-sm-9" name="useraddressUploadFile" action="api/af-revenue/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
|
|
201
194
|
<button class="button_clear btn-gn" style="margin-top: 10px;background-color: #6aa6e2;" @click="downloadFiles()">模板下载
|
|
202
195
|
</button>
|
|
203
196
|
</div>
|
|
@@ -401,7 +394,7 @@
|
|
|
401
394
|
if(userfiles.data.length){
|
|
402
395
|
this.$showAlert('该地址下已有正常表具档案,无法删除!','warning',1000)
|
|
403
396
|
}else{
|
|
404
|
-
this.$resetdelete('
|
|
397
|
+
this.$resetdelete('rs/entity/t_user_address', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
405
398
|
this.$dispatch('cancel')
|
|
406
399
|
})
|
|
407
400
|
}
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
<td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_district}}</nobr></td>
|
|
140
140
|
<td style="text-align:center"><nobr>{{row.f_street}}</nobr></td>
|
|
141
141
|
<td style="text-align:center"><nobr>{{row.f_residential_area}}</nobr></td>
|
|
142
|
-
<td style="text-align:center"><nobr>{{row.f_area_address}}</nobr></td>
|
|
142
|
+
<td style="text-align:center"><nobr>{{row.f_area_address}}{{row.f_residential_area}}</nobr></td>
|
|
143
143
|
<td v-show="!$parent.$parent.$parent.$parent.areaShow" style="text-align:center"><nobr>{{row.f_comments}}</nobr></td>
|
|
144
144
|
<!--非民用单位信息开始-->
|
|
145
145
|
<td v-if="$parent.$parent.$parent.f_special" style="text-align:center"><nobr>{{row.f_linkname}}</nobr></td>
|
|
@@ -261,7 +261,7 @@
|
|
|
261
261
|
if(useraredss.data.length>0){
|
|
262
262
|
this.$showAlert('该小区下已有地址信息,无法删除!','warning',1000)
|
|
263
263
|
}else{
|
|
264
|
-
this.$resetdelete('
|
|
264
|
+
this.$resetdelete('rs/entity/t_area', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
265
265
|
this.$dispatch('cancel')
|
|
266
266
|
})
|
|
267
267
|
}
|
|
@@ -66,10 +66,6 @@
|
|
|
66
66
|
if (obj.val.f_adjustable_id != null && obj.val.f_adjustable_id != '' && !(obj.val.f_adjustable_id instanceof Array)) {
|
|
67
67
|
this.$refs.addareamsg.areamodel.f_adjustable_id = parseInt(obj.val.f_adjustable_id)
|
|
68
68
|
}
|
|
69
|
-
if(this.$refs.addareamsg.filtName()){
|
|
70
|
-
this.$refs.addareamsg.areamodel.selladd='0'}else {
|
|
71
|
-
this.$refs.addareamsg.areamodel.selladd='1'
|
|
72
|
-
}
|
|
73
69
|
// this.$refs.addareamsg.initdata(obj.val)
|
|
74
70
|
// this.$refs.addareamsg.initrow(obj.val)
|
|
75
71
|
}
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
if(service.data.length || userfiles.data.length){
|
|
201
201
|
this.$showAlert('该地址下已有工单或档案,无法删除!','warning',1000)
|
|
202
202
|
}else{
|
|
203
|
-
this.$resetdelete('
|
|
203
|
+
this.$resetdelete('rs/entity/t_user_address', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
204
204
|
this.$dispatch('cancel')
|
|
205
205
|
})
|
|
206
206
|
}
|
|
@@ -89,8 +89,7 @@
|
|
|
89
89
|
if(useraredss.data.length>0){
|
|
90
90
|
this.$showAlert('该区县下已有街道信息,无法删除!','warning',1000)
|
|
91
91
|
}else{
|
|
92
|
-
this.$resetdelete('
|
|
93
|
-
this.search()
|
|
92
|
+
this.$resetdelete('rs/entity/t_pcd', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
94
93
|
this.$dispatch('cancel')
|
|
95
94
|
})
|
|
96
95
|
}
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
data.f_state = '有效'
|
|
139
139
|
data.f_delaypay = 0
|
|
140
140
|
console.log("数据参数附属:"+JSON.stringify(data))
|
|
141
|
-
let result = await self.$resetpost('
|
|
141
|
+
let result = await self.$resetpost('rs/entity/t_area', data)
|
|
142
142
|
// self.$dispatch('success', '新建小区成功', 'new-area-info', data)
|
|
143
143
|
console.log("result=", result.data)
|
|
144
144
|
self.initModel()
|
|
@@ -150,7 +150,6 @@
|
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
152
|
ready(){
|
|
153
|
-
console.log("===========",this.$login.f.orgid)
|
|
154
153
|
readyGen(this)
|
|
155
154
|
this.search()
|
|
156
155
|
},
|
|
@@ -174,7 +173,7 @@
|
|
|
174
173
|
if(useraredss.data.length>0){
|
|
175
174
|
this.$showAlert('该街道下已有小区信息,无法删除!','warning',1000)
|
|
176
175
|
}else{
|
|
177
|
-
this.$resetdelete('
|
|
176
|
+
this.$resetdelete('rs/entity/t_street', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
178
177
|
this.$dispatch('cancel')
|
|
179
178
|
})
|
|
180
179
|
}
|
|
@@ -74,8 +74,10 @@
|
|
|
74
74
|
</v-select>
|
|
75
75
|
</div>
|
|
76
76
|
|
|
77
|
-
<div class="col-sm-6 form-group ">
|
|
77
|
+
<div class="col-sm-6 form-group " :class="[$v.slice_area1.required ? 'has-error' : 'has-success']">
|
|
78
78
|
<label class="font_normal_body">片  区</label>
|
|
79
|
+
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="$refs.slice.selectedItems"
|
|
80
|
+
v-validate:slice_area1='{required: true }'>
|
|
79
81
|
<v-select :value.sync="model.f_slice_area" v-model="model.f_slice_area" :value-single="true"
|
|
80
82
|
:options='sliceArea' placeholder='片区/管理站' filer-key="name"
|
|
81
83
|
close-on-select v-ref:slice>
|
|
@@ -163,13 +165,9 @@
|
|
|
163
165
|
class="input_search" style="width:60%" placeholder="合同顺序号"
|
|
164
166
|
v-validate:f_contracts_number='{required: true }'>
|
|
165
167
|
</div>
|
|
166
|
-
<div class="col-sm-12 form-group"
|
|
167
|
-
<label
|
|
168
|
-
<textarea class="input_textarea" rows="3" style="width:80%;
|
|
169
|
-
</div>
|
|
170
|
-
<div class="col-sm-12 form-group" style="margin-top: 12px; margin-bottom: 12px;">
|
|
171
|
-
<label class="font_normal_body">备  注</label>
|
|
172
|
-
<textarea class="input_textarea" rows="3" style="margin-top: 25px; width:80%; height:auto;" v-model="model.f_comments"></textarea>
|
|
168
|
+
<div class="col-sm-12 form-group">
|
|
169
|
+
<label class="font_normal_body " >备  注</label>
|
|
170
|
+
<textarea class="input_textarea" rows="3" style="margin-top: 25px; width:80%;height: auto;" v-model="model.f_comments"></textarea>
|
|
173
171
|
</div>
|
|
174
172
|
<div style="text-align:right;margin-top:40px;margin-right:50px;" class="col-sm-12">
|
|
175
173
|
<button class="button_search button_spacing" @click="confirm()" :disabled='!$v.valid'>保存</button>
|
|
@@ -210,15 +208,15 @@
|
|
|
210
208
|
close-on-select search="true">
|
|
211
209
|
</v-select>
|
|
212
210
|
</div>
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
211
|
+
<div class="col-sm-6 form-group " :class="[$v.slice.required ? 'has-error' : 'has-success']">
|
|
212
|
+
<label class="font_normal_body">片  区</label>
|
|
213
|
+
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="$refs.slice.selectedItems"
|
|
214
|
+
v-validate:slice='{required: true }'>
|
|
215
|
+
<v-select :value.sync="model.f_slice_area" v-model="model.f_slice_area" :value-single="true"
|
|
216
|
+
:options='sliceArea' placeholder='片区/管理站' filer-key="name"
|
|
217
|
+
close-on-select v-ref:slice>
|
|
218
|
+
</v-select>
|
|
219
|
+
</div>
|
|
222
220
|
|
|
223
221
|
<div class="col-sm-6 form-group "
|
|
224
222
|
:class="[$v.f_building_start.integernum || $v.f_building_start.dctest ?'has-error' : 'has-success']">
|
|
@@ -319,17 +317,17 @@
|
|
|
319
317
|
</div>
|
|
320
318
|
</validator>
|
|
321
319
|
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
320
|
+
<modal v-if="isshow" :show.sync="isshow" large backdrop="false" :width="900">
|
|
321
|
+
<header slot="modal-header" class="modal-header">
|
|
322
|
+
</header>
|
|
323
|
+
<article slot="modal-body" class="modal-body">
|
|
324
|
+
<amap-location :islocationclearmark="false" dom="addboxmap" v-ref:positionInfo @getmylocation="getmylocation"></amap-location>
|
|
325
|
+
</article>
|
|
326
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
327
|
+
<button v-show="isshow" type="button" class="button_search button_spacing" @click='confirmLocation'>确认</button>
|
|
328
|
+
<button v-show="isshow" type="button" class="button_clear button_spacing" @click='closeModal'>取消</button>
|
|
329
|
+
</footer>
|
|
330
|
+
</modal>
|
|
333
331
|
|
|
334
332
|
</div>
|
|
335
333
|
</template>
|
|
@@ -337,6 +335,7 @@
|
|
|
337
335
|
<script>
|
|
338
336
|
import {HttpResetClass} from 'vue-client'
|
|
339
337
|
|
|
338
|
+
|
|
340
339
|
let getAreaConfig = async function (self) {
|
|
341
340
|
// 获取气价里面的配置
|
|
342
341
|
await self.$getConfig(self, 'UserAddress')
|
|
@@ -364,15 +363,14 @@
|
|
|
364
363
|
iscity:[{label:'市区',value:'市区'},{label:'乡镇',value:'乡镇'},{label:'全部',value:''}],
|
|
365
364
|
config:{
|
|
366
365
|
hasnumber:false,
|
|
367
|
-
f_building_suffix: '
|
|
368
|
-
f_unit_suffix: '
|
|
369
|
-
f_floor_suffix: '
|
|
370
|
-
f_room_suffix: '
|
|
366
|
+
f_building_suffix: '-',
|
|
367
|
+
f_unit_suffix: '-',
|
|
368
|
+
f_floor_suffix: '',
|
|
369
|
+
f_room_suffix: ''
|
|
371
370
|
},
|
|
372
371
|
model: {
|
|
373
372
|
f_pcd_id: '',
|
|
374
373
|
f_street_id: '',
|
|
375
|
-
f_comments1:'',
|
|
376
374
|
f_comments:'',
|
|
377
375
|
f_residential_area_id: '',
|
|
378
376
|
f_pcd: '',
|
|
@@ -433,10 +431,7 @@
|
|
|
433
431
|
this.areaslist = []
|
|
434
432
|
// this.model.f_residential_area_id = null
|
|
435
433
|
// this.model.f_residential_area = null
|
|
436
|
-
let condition = `a.f_orgid = '${this.$login.f.orgid}'`
|
|
437
|
-
if(this.model.f_iscity) {
|
|
438
|
-
condition = condition + ` and f_iscity = '${this.model.f_iscity}'`
|
|
439
|
-
}
|
|
434
|
+
let condition = `isnull(f_iscity,'') = isnull('${this.model.f_iscity}','') and a.f_orgid = '${this.$login.f.orgid}'`
|
|
440
435
|
let req = await this.$resetpost('api/af-revenue/sql/address_getresidential', {
|
|
441
436
|
data: {
|
|
442
437
|
condition: condition
|
|
@@ -565,7 +560,6 @@
|
|
|
565
560
|
})
|
|
566
561
|
})
|
|
567
562
|
this.areaslist=redata
|
|
568
|
-
this.areaChange(this.model.f_residential_area_id)
|
|
569
563
|
},
|
|
570
564
|
//省/市/区变化
|
|
571
565
|
async pcdChange(val){
|
|
@@ -622,7 +616,7 @@
|
|
|
622
616
|
this.model.f_pcd_id = selectArea.f_pcd_id
|
|
623
617
|
this.initstreets(` f_filialeid = '${this.f_filialeids}' and id ='${selectArea.f_street_id}' `)
|
|
624
618
|
this.initpcds(` f_filialeid = '${this.f_filialeids}' and id ='${selectArea.f_pcd_id}' `)
|
|
625
|
-
this.model.
|
|
619
|
+
this.model.slice_area = selectArea.f_slice_area
|
|
626
620
|
// 拼接地址
|
|
627
621
|
this.model.f_address = `${selectArea.f_street}${selectArea.f_residential_area}`
|
|
628
622
|
}
|
|
@@ -632,10 +626,6 @@
|
|
|
632
626
|
},
|
|
633
627
|
//街道变化
|
|
634
628
|
async streetChange(val){
|
|
635
|
-
if (typeof val !== 'number') {
|
|
636
|
-
console.error('Invalid input: expected an integer.')
|
|
637
|
-
return
|
|
638
|
-
}
|
|
639
629
|
console.log("街道变化",val)
|
|
640
630
|
if(this.streetslist[0]) {
|
|
641
631
|
var street=''
|
|
@@ -756,7 +746,16 @@
|
|
|
756
746
|
this.model.f_orgname = this.$login.f.orgs
|
|
757
747
|
this.model.f_depid = this.$login.f.depids
|
|
758
748
|
this.model.f_depname = this.$login.f.deps
|
|
759
|
-
console.log("片区:",this.model.
|
|
749
|
+
console.log("片区:",this.model.slice_area)
|
|
750
|
+
if (this.model.slice_area ) {
|
|
751
|
+
if (this.model.slice_area instanceof Array) {
|
|
752
|
+
console.log("修改",this.model.slice_area)
|
|
753
|
+
this.model.f_slice_area = this.model.slice_area[0].name
|
|
754
|
+
}else{
|
|
755
|
+
console.log("保存",this.model.slice_area)
|
|
756
|
+
this.model.f_slice_area = this.model.slice_area
|
|
757
|
+
}
|
|
758
|
+
}
|
|
760
759
|
if (this.usertype) {
|
|
761
760
|
//非民用
|
|
762
761
|
this.model.f_special='1'
|
|
@@ -787,7 +786,6 @@
|
|
|
787
786
|
f_iscity:'市区',
|
|
788
787
|
f_residential_area_id: '',
|
|
789
788
|
f_pcd: '',
|
|
790
|
-
f_comment1:'',
|
|
791
789
|
f_comments:'',
|
|
792
790
|
f_street: '',
|
|
793
791
|
f_residential_area: '',
|
|
@@ -838,22 +836,7 @@
|
|
|
838
836
|
return result
|
|
839
837
|
},
|
|
840
838
|
openModal () {
|
|
841
|
-
|
|
842
|
-
let map = new AMap.Map('addboxmap', {
|
|
843
|
-
zoom: 12,
|
|
844
|
-
resizeEnable: true, // 如果center属性缺省,地图默认定位到用户所在城市的中心
|
|
845
|
-
viewMode: '2D', //设置地图模式
|
|
846
|
-
lang: 'zh_cn', //设置地图语言类型
|
|
847
|
-
zindex: 99999
|
|
848
|
-
})
|
|
849
|
-
console.log('map',map)
|
|
850
|
-
if (map) {
|
|
851
|
-
this.isshow = true
|
|
852
|
-
}
|
|
853
|
-
}catch (e) {
|
|
854
|
-
this.isshow = false
|
|
855
|
-
console.log('这里报错了。。。。。',e)
|
|
856
|
-
}
|
|
839
|
+
this.isshow = true
|
|
857
840
|
},
|
|
858
841
|
closeModal () {
|
|
859
842
|
this.isshow = false;
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
if(service.data.length || userfiles.data.length){
|
|
194
194
|
this.$showAlert('该地址下已有工单或档案,无法删除!','warning',1000)
|
|
195
195
|
}else{
|
|
196
|
-
this.$resetdelete('
|
|
196
|
+
this.$resetdelete('rs/entity/t_user_address', {id: id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
197
197
|
this.$dispatch('cancel')
|
|
198
198
|
})
|
|
199
199
|
}
|
|
@@ -12,18 +12,17 @@
|
|
|
12
12
|
</template>
|
|
13
13
|
|
|
14
14
|
<script>
|
|
15
|
+
|
|
15
16
|
import BatchList from './BatchList'
|
|
16
|
-
import UserAddress from '../UserAddress'
|
|
17
17
|
|
|
18
18
|
export default {
|
|
19
19
|
title: '地址管理',
|
|
20
|
-
components:
|
|
21
|
-
BatchList
|
|
22
|
-
UserAddress
|
|
20
|
+
components:{
|
|
21
|
+
BatchList
|
|
23
22
|
},
|
|
24
23
|
data () {
|
|
25
24
|
return {
|
|
26
|
-
|
|
25
|
+
//分公司id串
|
|
27
26
|
f_filialeids: this.$login.f.orgid,
|
|
28
27
|
area: [],
|
|
29
28
|
street: [],
|
|
@@ -33,28 +32,28 @@
|
|
|
33
32
|
addressId: null
|
|
34
33
|
}
|
|
35
34
|
},
|
|
36
|
-
props:
|
|
35
|
+
props:{
|
|
37
36
|
|
|
38
37
|
},
|
|
39
|
-
methods:
|
|
40
|
-
selected
|
|
41
|
-
if
|
|
38
|
+
methods:{
|
|
39
|
+
selected(obj){
|
|
40
|
+
if(obj.val&&obj.val.id){
|
|
42
41
|
if (obj.val.f_filialeid != this.f_filialeids) {
|
|
43
42
|
this.refresh()
|
|
44
43
|
return
|
|
45
44
|
}
|
|
46
45
|
// 呼叫中心需要
|
|
47
46
|
this.$dispatch('re-ref', obj.val)
|
|
48
|
-
this.addressId
|
|
49
|
-
this.useraddressShow
|
|
47
|
+
this.addressId=obj.val.id
|
|
48
|
+
this.useraddressShow=true
|
|
50
49
|
this.$refs.useraddressmsg.cleardara()
|
|
51
|
-
this.$refs.useraddressmsg.usertype
|
|
52
|
-
this.$refs.useraddressmsg.operation
|
|
53
|
-
this.$refs.useraddressmsg.onedata
|
|
54
|
-
this.$refs.useraddressmsg.model
|
|
55
|
-
if
|
|
50
|
+
this.$refs.useraddressmsg.usertype=obj.val.f_user_type
|
|
51
|
+
this.$refs.useraddressmsg.operation='modify'
|
|
52
|
+
this.$refs.useraddressmsg.onedata='one'
|
|
53
|
+
this.$refs.useraddressmsg.model=Object.assign({},obj.val)
|
|
54
|
+
if(obj.val.f_special=='1'){
|
|
56
55
|
this.$refs.useraddressmsg.usertype = true
|
|
57
|
-
}
|
|
56
|
+
}else{
|
|
58
57
|
this.$refs.useraddressmsg.usertype = false
|
|
59
58
|
}
|
|
60
59
|
if (obj.val.f_slice_area && obj.val.f_area_code) {
|
|
@@ -66,49 +65,49 @@
|
|
|
66
65
|
this.$refs.useraddressmsg.initdata()
|
|
67
66
|
}
|
|
68
67
|
},
|
|
69
|
-
submit
|
|
70
|
-
this.$emit('submit',
|
|
68
|
+
submit(val){
|
|
69
|
+
this.$emit('submit',val)
|
|
71
70
|
},
|
|
72
|
-
cancel
|
|
73
|
-
this.$emit('cancel',
|
|
71
|
+
cancel(val){
|
|
72
|
+
this.$emit('cancel',val)
|
|
74
73
|
},
|
|
75
74
|
refresh () {
|
|
76
|
-
this.addressId
|
|
75
|
+
this.addressId=null
|
|
77
76
|
this.useraddressShow = false
|
|
78
77
|
this.$refs.addresslist.$refs.paged.$refs.cri.search()
|
|
79
78
|
}
|
|
80
79
|
},
|
|
81
|
-
events:
|
|
82
|
-
'add'
|
|
80
|
+
events:{
|
|
81
|
+
'add'(val){
|
|
83
82
|
this.useraddressShow = true
|
|
84
83
|
this.$refs.useraddressmsg.cleardara()
|
|
85
|
-
this.addressId
|
|
86
|
-
//
|
|
87
|
-
if (val
|
|
88
|
-
|
|
84
|
+
this.addressId=null
|
|
85
|
+
//true为新增特殊地址
|
|
86
|
+
if (val!='民用') {
|
|
87
|
+
//非民用
|
|
89
88
|
this.$refs.useraddressmsg.usertype = true
|
|
90
89
|
this.$refs.useraddressmsg.onedata = 'one'
|
|
91
|
-
}
|
|
90
|
+
}else{
|
|
92
91
|
this.$refs.useraddressmsg.usertype = false
|
|
93
92
|
}
|
|
94
|
-
this.$refs.useraddressmsg.operation
|
|
93
|
+
this.$refs.useraddressmsg.operation='add'
|
|
95
94
|
this.$refs.useraddressmsg.initdata()
|
|
96
95
|
},
|
|
97
96
|
'confirm' () {
|
|
98
|
-
this.style
|
|
99
|
-
this.addressId
|
|
97
|
+
this.style='col-sm-2 '
|
|
98
|
+
this.addressId=null
|
|
100
99
|
this.$refs.addresslist.$refs.paged.$refs.cri.search()
|
|
101
100
|
this.useraddressShow = false
|
|
102
101
|
},
|
|
103
|
-
'modify'
|
|
104
|
-
this.style
|
|
102
|
+
'modify'(area){
|
|
103
|
+
this.style='col-sm-2 '
|
|
105
104
|
},
|
|
106
105
|
'cancel' () {
|
|
107
|
-
this.style
|
|
108
|
-
this.addressId
|
|
106
|
+
this.style='col-sm-2 '
|
|
107
|
+
this.addressId=null
|
|
109
108
|
this.$refs.addresslist.$refs.paged.$refs.cri.search()
|
|
110
109
|
this.useraddressShow = false
|
|
111
|
-
}
|
|
110
|
+
},
|
|
112
111
|
}
|
|
113
112
|
}
|
|
114
113
|
</script>
|