address-client 3.2.111-yangchun → 3.2.112-fugou
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/cache.properties +1 -1
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/.gradle/file-system.probe +0 -0
- package/build/dev-server.js +5 -9
- package/package.json +1 -1
- package/src/address.js +6 -6
- package/src/components/AddAreaMsg.vue +76 -29
- package/src/components/AddCommunityManageMsg.vue +99 -40
- package/src/components/AddStreetManageMsg.vue +3 -3
- package/src/components/AddStreetOrPcd.vue +7 -7
- package/src/components/AddressAddAddress.vue +14 -14
- package/src/components/AddressFiles.vue +1 -1
- package/src/components/AddressList.vue +19 -12
- package/src/components/AddressTree.vue +5 -5
- package/src/components/AreaFiles.vue +1 -1
- package/src/components/AreaList.vue +17 -8
- package/src/components/AreaTree.vue +5 -5
- package/src/components/Basch.vue +1 -1
- package/src/components/BatchOrders.vue +5 -5
- package/src/components/BuildingList.vue +2 -2
- package/src/components/CityList.vue +2 -2
- package/src/components/CommunityAreaList.vue +1 -1
- package/src/components/CommunityManage.vue +1 -1
- package/src/components/CommunityManageList.vue +25 -22
- package/src/components/NewAddressInfo.vue +3 -3
- package/src/components/StreetList.vue +7 -7
- package/src/components/StreetManageList.vue +3 -3
- package/src/components/UserAddress.vue +193 -68
- package/src/components/UserAddressChange.vue +1 -1
- package/src/components/selectAddress/BatchList.vue +5 -5
- package/address-client-3.2.106-yangchun.tgz +0 -0
- package/build/libs/AddressClient-V3-3.0.11.jar +0 -0
- package/build/tmp/jar/MANIFEST.MF +0 -2
- package/src/filiale/WEINAN/AddAreaMsg.vue +0 -745
- package/src/filiale/WEINAN/AddressList.vue +0 -588
- package/src/filiale/WEINAN/AddressManage.vue +0 -122
- package/src/filiale/WEINAN/AreaList.vue +0 -435
- package/src/filiale/WEINAN/AreaManage.vue +0 -109
- package/src/filiale/WEINAN/AreaUserList.vue +0 -226
- package/src/filiale/WEINAN/UserAddress.vue +0 -783
- package/src/filiale/WEINAN/sale.js +0 -18
- package/src/filiale/chengtou/UserAddress.vue +0 -894
- package/src/filiale/chengtou/sale.js +0 -7
- package/src/filiale/dongguan/AddStreetOrPcd.vue +0 -422
- package/src/filiale/dongguan/sale.js +0 -7
- package/src/filiale/gaomi/AddressList.vue +0 -430
- package/src/filiale/gaomi/UserAddress.vue +0 -832
- package/src/filiale/gaomi/sale.js +0 -14
- package/src/filiale/gongyi/AddAreaMsg.vue +0 -651
- package/src/filiale/gongyi/AreaManage.vue +0 -100
- package/src/filiale/gongyi/UserAddress.vue +0 -751
- package/src/filiale/gongyi/sale.js +0 -14
- package/src/filiale/haile/AddressList.vue +0 -615
- package/src/filiale/haile/sale.js +0 -8
- package/src/filiale/jingwei/UserAddress.vue +0 -764
- package/src/filiale/jingwei/sale.js +0 -12
- package/src/filiale/lixianV3/AreaList.vue +0 -416
- package/src/filiale/lixianV3/sale.js +0 -12
- package/src/filiale/macheng/AddAreaMsg.vue +0 -635
- package/src/filiale/macheng/AddStreetOrPcd.vue +0 -231
- package/src/filiale/macheng/AddressList.vue +0 -613
- package/src/filiale/macheng/AreaList.vue +0 -318
- package/src/filiale/macheng/CityManage.vue +0 -76
- package/src/filiale/macheng/StreetList.vue +0 -186
- package/src/filiale/macheng/UserAddress.vue +0 -743
- package/src/filiale/macheng/sale.js +0 -17
- package/src/filiale/meihekou/UserAddress.vue +0 -898
- package/src/filiale/meihekou/sale.js +0 -8
- package/src/filiale/qianneng/AddAreaMsg.vue +0 -751
- package/src/filiale/qianneng/AddStreetOrPcd.vue +0 -328
- package/src/filiale/qianneng/AddressList.vue +0 -638
- package/src/filiale/qianneng/AreaList.vue +0 -431
- package/src/filiale/qianneng/CityManage.vue +0 -81
- package/src/filiale/qianneng/UserAddress.vue +0 -1125
- package/src/filiale/qianneng/sale.js +0 -20
- package/src/filiale/qinhua/AddAreaMsg.vue +0 -743
- package/src/filiale/qinhua/AddressList.vue +0 -627
- package/src/filiale/qinhua/AddressManage.vue +0 -117
- package/src/filiale/qinhua/AreaList.vue +0 -425
- package/src/filiale/qinhua/AreaManage.vue +0 -100
- package/src/filiale/qinhua/CityManage.vue +0 -76
- package/src/filiale/qinhua/StreetList.vue +0 -241
- package/src/filiale/qinhua/UserAddress.vue +0 -894
- package/src/filiale/qinhua/sale.js +0 -20
- package/src/filiale/rizhao/UserAddress.vue +0 -897
- package/src/filiale/rizhao/sale.js +0 -8
- package/src/filiale/rongcheng/AddressList.vue +0 -363
- package/src/filiale/rongcheng/UserAddress.vue +0 -799
- package/src/filiale/rongcheng/sale.js +0 -11
- package/src/filiale/shanggao/AddAreaMsg.vue +0 -752
- package/src/filiale/shanggao/AddStreetOrPcd.vue +0 -312
- package/src/filiale/shanggao/AddressList.vue +0 -613
- package/src/filiale/shanggao/AreaList.vue +0 -436
- package/src/filiale/shanggao/BuildingList.vue +0 -129
- package/src/filiale/shanggao/StreetList.vue +0 -240
- package/src/filiale/shanggao/UserAddress.vue +0 -953
- package/src/filiale/shanggao/sale.js +0 -16
- package/src/filiale/shanxian/AddAreaMsg.vue +0 -766
- package/src/filiale/shanxian/AddressList.vue +0 -658
- package/src/filiale/shanxian/AreaList.vue +0 -458
- package/src/filiale/shanxian/AreaManage.vue +0 -107
- package/src/filiale/shanxian/UserAddress.vue +0 -900
- package/src/filiale/shanxian/sale.js +0 -15
- package/src/filiale/shaoguan/AddAreaMsg.vue +0 -629
- package/src/filiale/shaoguan/UserAddress.vue +0 -762
- package/src/filiale/shaoguan/sale.js +0 -11
- package/src/filiale/tongchuan/AddAreaMsg.vue +0 -635
- package/src/filiale/tongchuan/AddStreetOrPcd.vue +0 -351
- package/src/filiale/tongchuan/AddressList.vue +0 -379
- package/src/filiale/tongchuan/AreaList.vue +0 -315
- package/src/filiale/tongchuan/AreaManage.vue +0 -100
- package/src/filiale/tongchuan/CityList.vue +0 -133
- package/src/filiale/tongchuan/StreetList.vue +0 -215
- package/src/filiale/tongchuan/UserAddress.vue +0 -822
- package/src/filiale/tongchuan/sale.js +0 -19
- package/src/filiale/wuhai/UserAddress.vue +0 -795
- package/src/filiale/wuhai/sale.js +0 -12
- 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
- package/src/filiale/zhongsheng/AddressList.vue +0 -671
- package/src/filiale/zhongsheng/AreaList.vue +0 -500
- package/src/filiale/zhongsheng/sale.js +0 -12
- package/src/filiale/zhongyi/AddAreaMsg.vue +0 -757
- package/src/filiale/zhongyi/sale.js +0 -12
- package/src/filiale/zhoukou/AddAreaMsg.vue +0 -673
- package/src/filiale/zhoukou/AddressList.vue +0 -391
- package/src/filiale/zhoukou/AddressManage.vue +0 -115
- package/src/filiale/zhoukou/AreaList.vue +0 -319
- package/src/filiale/zhoukou/AreaManage.vue +0 -100
- package/src/filiale/zhoukou/UserAddress.vue +0 -925
- package/src/filiale/zhoukou/sale.js +0 -23
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#
|
|
1
|
+
#Sat Oct 12 15:13:50 CST 2024
|
|
2
2
|
gradle.version=8.5
|
|
Binary file
|
|
Binary file
|
package/build/dev-server.js
CHANGED
|
@@ -10,23 +10,19 @@ var proxy = httpProxy.createProxyServer()
|
|
|
10
10
|
|
|
11
11
|
// Define HTTP proxies to your custom API backend
|
|
12
12
|
// https://github.com/chimurai/http-proxy-middleware
|
|
13
|
-
var str = 'http://
|
|
14
|
-
// var str3= 'http://172.168.1.11:9001/#'
|
|
13
|
+
var str = 'http://localhost:8080/', str2= 'http://192.168.50.4:8400/#'
|
|
15
14
|
var str3= 'http://192.168.50.4:8400/'
|
|
16
|
-
//
|
|
17
15
|
var proxyTable = {
|
|
18
|
-
'/rs/sql/address_getAddress': {
|
|
19
|
-
target: 'http://127.0.0.1:9014/',
|
|
20
|
-
// secure:true,
|
|
21
|
-
// changeOrigin:true
|
|
22
|
-
// target: 'http://127.0.0.1:8080'
|
|
23
|
-
},
|
|
24
16
|
'/rs/entity': {
|
|
25
17
|
target: str
|
|
26
18
|
// secure:true,
|
|
27
19
|
// changeOrigin:true
|
|
28
20
|
// target: 'http://127.0.0.1:8080'
|
|
29
21
|
},
|
|
22
|
+
'/api/af-revenue': {
|
|
23
|
+
pathRewrite: {'/api/af-revenue': '/'},
|
|
24
|
+
target: 'http://127.0.0.1:9026'
|
|
25
|
+
},
|
|
30
26
|
'/webapps':{
|
|
31
27
|
target: str3,
|
|
32
28
|
secure:true,
|
package/package.json
CHANGED
package/src/address.js
CHANGED
|
@@ -65,10 +65,10 @@ export default function (filiale) {
|
|
|
65
65
|
Vue.component('community-area-list', (resolve) => { require(['./components/CommunityAreaList'], resolve) })
|
|
66
66
|
|
|
67
67
|
// 分公司特殊页面注册替换
|
|
68
|
-
if (filiale) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
68
|
+
// if (filiale) {
|
|
69
|
+
// let filialeComp = require(`./filiale/${filiale}/sale`).specialComp
|
|
70
|
+
// for (let key in filialeComp) {
|
|
71
|
+
// Vue.component(key, filialeComp[key])
|
|
72
|
+
// }
|
|
73
|
+
// }
|
|
74
74
|
}
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
<div class="col-sm-6 form-group"
|
|
29
29
|
:class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']">
|
|
30
|
-
<label class="font_normal_body"
|
|
30
|
+
<label class="font_normal_body">县</label>
|
|
31
31
|
<input type="text" class="input_search" class="input_search" style="width:60%" v-show="false" v-model="areamodel.f_pcd_id"
|
|
32
32
|
v-validate:f_pcd_id='{required: true }'>
|
|
33
33
|
<v-select
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
</div>
|
|
39
39
|
<div class="col-sm-6 form-group"
|
|
40
40
|
:class="[$v.f_street_id.required ? 'has-error' : 'has-success']">
|
|
41
|
-
<label class="font_normal_body"
|
|
41
|
+
<label class="font_normal_body">市区/乡镇</label>
|
|
42
42
|
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_street_id"
|
|
43
43
|
v-validate:f_street_id='{required: true }'>
|
|
44
44
|
<v-select
|
|
@@ -47,13 +47,15 @@
|
|
|
47
47
|
close-on-select search="true" @change="streetChange">
|
|
48
48
|
</v-select>
|
|
49
49
|
</div>
|
|
50
|
-
<div class="col-sm-6 form-group"
|
|
51
|
-
|
|
52
|
-
<
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
50
|
+
<div class="col-sm-6 form-group"
|
|
51
|
+
:class="[$v.f_community_id.required ? 'has-error' : 'has-success']">
|
|
52
|
+
<label class="font_normal_body">片区</label>
|
|
53
|
+
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="areamodel.f_community_id"
|
|
54
|
+
v-validate:f_community_id='{required: true }'>
|
|
55
|
+
<v-select
|
|
56
|
+
:value.sync="areamodel.f_community_id" :value-single="true"
|
|
57
|
+
:options='communitylist' placeholder='请选择'
|
|
58
|
+
close-on-select search="true" >
|
|
57
59
|
</v-select>
|
|
58
60
|
</div>
|
|
59
61
|
<!--小区(特殊)信息-->
|
|
@@ -292,6 +294,8 @@
|
|
|
292
294
|
pcdslist:[],
|
|
293
295
|
//初始化街道数据
|
|
294
296
|
streetslist:[],
|
|
297
|
+
//片区
|
|
298
|
+
communitylist:[],
|
|
295
299
|
//小区
|
|
296
300
|
areamodel: {
|
|
297
301
|
f_area_id: '',
|
|
@@ -300,6 +304,8 @@
|
|
|
300
304
|
f_linkphone:'',
|
|
301
305
|
f_street_id:'',
|
|
302
306
|
f_slice_area:'',
|
|
307
|
+
f_community_id:'',
|
|
308
|
+
f_community:'',
|
|
303
309
|
f_adjustable_id:'',
|
|
304
310
|
f_residential_area:'',
|
|
305
311
|
f_user_type:'',
|
|
@@ -345,9 +351,8 @@
|
|
|
345
351
|
if (this.areatype == '楼栋') {
|
|
346
352
|
this.initareas(` f_orgid = '${this.f_filialeids}'`)
|
|
347
353
|
}
|
|
348
|
-
// 初始化片区
|
|
349
|
-
await this.initSlice(this.f_filialeids)
|
|
350
354
|
await this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
|
|
355
|
+
// await this.initcommunity(` f_filialeid = '${this.f_filialeids}'`)
|
|
351
356
|
},
|
|
352
357
|
initrow(val){
|
|
353
358
|
this.areamodel.f_meter_book = val.f_meter_book;
|
|
@@ -401,7 +406,7 @@
|
|
|
401
406
|
// }
|
|
402
407
|
this.areaslist = []
|
|
403
408
|
let HttpReset = new HttpResetClass()
|
|
404
|
-
let req = await HttpReset.load('POST', '
|
|
409
|
+
let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
|
|
405
410
|
data: {
|
|
406
411
|
items: '*',
|
|
407
412
|
tablename: 't_area',
|
|
@@ -425,7 +430,7 @@
|
|
|
425
430
|
async initpcds(pconditon){
|
|
426
431
|
this.pcdslist = []
|
|
427
432
|
let HttpReset = new HttpResetClass()
|
|
428
|
-
let req = await HttpReset.load('POST', '
|
|
433
|
+
let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
|
|
429
434
|
data: {
|
|
430
435
|
items: '*',
|
|
431
436
|
tablename: 't_pcd',
|
|
@@ -446,10 +451,32 @@
|
|
|
446
451
|
|
|
447
452
|
},
|
|
448
453
|
//初始化街道 添加小区
|
|
454
|
+
async initcommunity(pconditon){
|
|
455
|
+
this.communitylist = []
|
|
456
|
+
let HttpReset = new HttpResetClass()
|
|
457
|
+
let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
|
|
458
|
+
data: {
|
|
459
|
+
items: '*',
|
|
460
|
+
tablename: 't_community',
|
|
461
|
+
orderitem: 'id',
|
|
462
|
+
condition: pconditon
|
|
463
|
+
}
|
|
464
|
+
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
|
465
|
+
let redata = []
|
|
466
|
+
req.data.forEach((row, n) => {
|
|
467
|
+
redata[n] = {
|
|
468
|
+
label: row.f_community_name,
|
|
469
|
+
value: row.id,
|
|
470
|
+
data:row,
|
|
471
|
+
id:row.id
|
|
472
|
+
}
|
|
473
|
+
})
|
|
474
|
+
this.communitylist=redata
|
|
475
|
+
},
|
|
449
476
|
async initstreets(pconditon){
|
|
450
477
|
this.streetslist = []
|
|
451
478
|
let HttpReset = new HttpResetClass()
|
|
452
|
-
let req = await HttpReset.load('POST', '
|
|
479
|
+
let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
|
|
453
480
|
data: {
|
|
454
481
|
items: '*',
|
|
455
482
|
tablename: 't_street',
|
|
@@ -474,7 +501,7 @@
|
|
|
474
501
|
this.$showAlert('请输入正确的位数', 'warning', 2000)
|
|
475
502
|
this.areamodel.f_area_id = ''
|
|
476
503
|
}else{
|
|
477
|
-
let res =await this.$resetpost('
|
|
504
|
+
let res =await this.$resetpost('api/af-revenue/sql/address_singleTableOrderBy', {
|
|
478
505
|
data: {
|
|
479
506
|
items: '*',
|
|
480
507
|
tablename: 't_area',
|
|
@@ -499,7 +526,7 @@
|
|
|
499
526
|
f_filialeid: this.f_filialeids
|
|
500
527
|
}
|
|
501
528
|
|
|
502
|
-
let res = await this.$resetpost('
|
|
529
|
+
let res = await this.$resetpost('api/af-revenue/logic/address_validateAreaID', param, {resolveMsg: null,rejectMsg: '小区编号验证失败!!'})
|
|
503
530
|
console.log('验证小区是否存在', res)
|
|
504
531
|
if (res.data) {
|
|
505
532
|
this.$showAlert('这个小区编号已存在!!!请核实', 'warning', 3000)
|
|
@@ -546,12 +573,24 @@
|
|
|
546
573
|
this.$resetValidation()
|
|
547
574
|
},
|
|
548
575
|
//街道变化
|
|
549
|
-
|
|
550
|
-
if(val
|
|
551
|
-
|
|
552
|
-
if
|
|
553
|
-
this.
|
|
576
|
+
async streetChange(val){
|
|
577
|
+
if(val){
|
|
578
|
+
await this.initcommunity(` f_filialeid = '${this.f_filialeids}' and f_street_id ='${val}' `)
|
|
579
|
+
if(this.areamodel.f_community_id){
|
|
580
|
+
if (this.findbyid(this.communitylist,this.areamodel.f_community_id)) {
|
|
581
|
+
let pcd_id=this.findbyid(this.communitylist,this.areamodel.f_community_id).f_street_id
|
|
582
|
+
if(pcd_id!=val){
|
|
583
|
+
this.areamodel.f_community_id=''
|
|
584
|
+
}
|
|
585
|
+
} else {
|
|
586
|
+
this.areamodel.f_community_id=''
|
|
587
|
+
}
|
|
588
|
+
|
|
554
589
|
}
|
|
590
|
+
// if(this.areamodel.f_pcd_id.length==0){
|
|
591
|
+
// if (this.findbyid(this.streetslist,this.areamodel.f_street_id)) {
|
|
592
|
+
// this.areamodel.f_pcd_id=this.findbyid(this.streetslist,this.areamodel.f_street_id).f_pcd_id
|
|
593
|
+
// }
|
|
555
594
|
// }
|
|
556
595
|
}
|
|
557
596
|
this.$resetValidation()
|
|
@@ -576,7 +615,7 @@
|
|
|
576
615
|
this.buildingmodel.f_orgname = this.$login.f.orgs
|
|
577
616
|
this.buildingmodel.f_depid = this.$login.f.depids
|
|
578
617
|
this.buildingmodel.f_depname = this.$login.f.deps
|
|
579
|
-
await this.$resetpost('
|
|
618
|
+
await this.$resetpost('api/af-revenue/logic/address_savebuilding', this.buildingmodel)
|
|
580
619
|
this.$refs.buildinglist.search()
|
|
581
620
|
},
|
|
582
621
|
//保存小区
|
|
@@ -599,8 +638,9 @@
|
|
|
599
638
|
}
|
|
600
639
|
this.areamodel.f_pcd=this.findbyid(this.pcdslist,this.areamodel.f_pcd_id).f_pcd
|
|
601
640
|
this.areamodel.f_street=this.findbyid(this.streetslist,this.areamodel.f_street_id).f_street
|
|
641
|
+
this.areamodel.f_community = this.findbyid(this.communitylist,this.areamodel.f_community_id).f_community_name
|
|
602
642
|
|
|
603
|
-
await this.$resetpost('
|
|
643
|
+
await this.$resetpost('api/af-revenue/logic/address_updatearea', this.areamodel)
|
|
604
644
|
},
|
|
605
645
|
cleardara(){
|
|
606
646
|
this.areamodel= {
|
|
@@ -638,16 +678,23 @@
|
|
|
638
678
|
this.initdata()
|
|
639
679
|
},
|
|
640
680
|
'areamodel.f_pcd_id'(){
|
|
641
|
-
if(this.areamodel.f_pcd_id&&this.areamodel.f_street_id){
|
|
642
|
-
if (this.findbyid(this.pcdslist,this.areamodel.f_pcd_id) && this.findbyid(this.streetslist,this.areamodel.f_street_id)) {
|
|
643
|
-
this.areamodel.f_area_address = this.findbyid(this.pcdslist,this.areamodel.f_pcd_id).f_pcd + this.findbyid(this.streetslist,this.areamodel.f_street_id).f_street
|
|
681
|
+
if(this.areamodel.f_pcd_id&&this.areamodel.f_street_id && this.areamodel.f_community_id){
|
|
682
|
+
if (this.findbyid(this.pcdslist,this.areamodel.f_pcd_id) && this.findbyid(this.streetslist,this.areamodel.f_street_id) &&this.findbyid(this.communitylist,this.areamodel.f_community_id)) {
|
|
683
|
+
this.areamodel.f_area_address = this.findbyid(this.pcdslist,this.areamodel.f_pcd_id).f_pcd + this.findbyid(this.streetslist,this.areamodel.f_street_id).f_street+this.findbyid(this.communitylist,this.areamodel.f_community_id).f_community_name
|
|
644
684
|
}
|
|
645
685
|
}
|
|
646
686
|
},
|
|
647
687
|
'areamodel.f_street_id'(){
|
|
648
|
-
if
|
|
649
|
-
if (this.findbyid(this.pcdslist,
|
|
650
|
-
this.areamodel.f_area_address = this.findbyid(this.pcdslist,
|
|
688
|
+
if(this.areamodel.f_pcd_id&&this.areamodel.f_street_id&& this.areamodel.f_community_id){
|
|
689
|
+
if (this.findbyid(this.pcdslist,this.areamodel.f_pcd_id) && this.findbyid(this.streetslist,this.areamodel.f_street_id) &&this.findbyid(this.communitylist,this.areamodel.f_community_id)) {
|
|
690
|
+
this.areamodel.f_area_address = this.findbyid(this.pcdslist,this.areamodel.f_pcd_id).f_pcd + this.findbyid(this.streetslist,this.areamodel.f_street_id).f_street+this.findbyid(this.communitylist,this.areamodel.f_community_id).f_community_name
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
'areamodel.f_community_id'(){
|
|
695
|
+
if(this.areamodel.f_pcd_id&&this.areamodel.f_street_id && this.areamodel.f_community_id){
|
|
696
|
+
if (this.findbyid(this.pcdslist,this.areamodel.f_pcd_id) && this.findbyid(this.streetslist,this.areamodel.f_street_id) &&this.findbyid(this.communitylist,this.areamodel.f_community_id)) {
|
|
697
|
+
this.areamodel.f_area_address = this.findbyid(this.pcdslist,this.areamodel.f_pcd_id).f_pcd + this.findbyid(this.streetslist,this.areamodel.f_street_id).f_street+this.findbyid(this.communitylist,this.areamodel.f_community_id).f_community_name
|
|
651
698
|
}
|
|
652
699
|
}
|
|
653
700
|
},
|
|
@@ -1,14 +1,25 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="span">
|
|
3
3
|
<validator name='v'>
|
|
4
|
-
<p class="bg-info text-center" style="padding: 8px;">{{ businesstype }}
|
|
4
|
+
<p class="bg-info text-center" style="padding: 8px;">{{ businesstype }}片区</p>
|
|
5
5
|
<div class="auto select-overspread form-horizontal">
|
|
6
6
|
<div style="text-align:right;margin-top:6px;" class="col-sm-12">
|
|
7
|
-
<!--
|
|
7
|
+
<!-- 片区-->
|
|
8
8
|
<div class="row">
|
|
9
|
+
<div class="col-sm-6 form-group"
|
|
10
|
+
:class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']">
|
|
11
|
+
<label class="font_normal_body">所属县/区</label>
|
|
12
|
+
<input type="text" class="input_search" class="input_search" style="width:60%" v-show="false" v-model="communitymodel.f_pcd_id"
|
|
13
|
+
v-validate:f_pcd_id='{required: true }'>
|
|
14
|
+
<v-select
|
|
15
|
+
:value.sync="communitymodel.f_pcd_id" :value-single="true"
|
|
16
|
+
:options='pcdslist' placeholder='请选择'
|
|
17
|
+
close-on-select search="true" @change="pcdChange">
|
|
18
|
+
</v-select>
|
|
19
|
+
</div>
|
|
9
20
|
<div class="col-sm-6 form-group"
|
|
10
21
|
:class="[$v.f_street_id.required ? 'has-error' : 'has-success']">
|
|
11
|
-
<label class="font_normal_body"
|
|
22
|
+
<label class="font_normal_body">市区/乡镇</label>
|
|
12
23
|
<input type="text" style="width:60%" class="input_search" v-show="false" v-model="communitymodel.f_street_id"
|
|
13
24
|
v-validate:f_street_id='{required: true }'>
|
|
14
25
|
<v-select
|
|
@@ -19,22 +30,22 @@
|
|
|
19
30
|
</div>
|
|
20
31
|
<div class="col-sm-6 form-group"
|
|
21
32
|
:class="[$v.f_community_code.required ? 'has-error' : 'has-success']">
|
|
22
|
-
<label class="font_normal_body"
|
|
33
|
+
<label class="font_normal_body">片区编号</label>
|
|
23
34
|
<input type="text" v-model="communitymodel.f_community_code"
|
|
24
35
|
@change="communityyanzheng"
|
|
25
|
-
class="input_search" style="width:60%" placeholder="
|
|
36
|
+
class="input_search" style="width:60%" placeholder="片区编号"
|
|
26
37
|
v-validate:f_community_code='{required: true }'>
|
|
27
38
|
</div>
|
|
28
39
|
<div class="col-sm-6 form-group "
|
|
29
40
|
:class="[$v.f_community_name.required ? 'has-error' : 'has-success']">
|
|
30
|
-
<label class="font_normal_body"
|
|
41
|
+
<label class="font_normal_body">片区/行政村</label>
|
|
31
42
|
<input type="text" v-model="communitymodel.f_community_name"
|
|
32
|
-
class="input_search" style="width:60%" placeholder="
|
|
43
|
+
class="input_search" style="width:60%" placeholder="片区/行政村"
|
|
33
44
|
v-validate:f_community_name='{required: true }'>
|
|
34
45
|
</div>
|
|
35
46
|
<div class="col-sm-6 form-group"
|
|
36
47
|
:class="[$v.f_community_director.required ? 'has-error' : 'has-success']">
|
|
37
|
-
<label class="font_normal_body"
|
|
48
|
+
<label class="font_normal_body">片区负责人</label>
|
|
38
49
|
<input type="text" v-show="false" v-model="communitymodel.f_community_director"
|
|
39
50
|
v-validate:f_community_director='{required: true }'>
|
|
40
51
|
<v-select :value.sync="communitymodel.f_community_director"
|
|
@@ -72,7 +83,9 @@
|
|
|
72
83
|
|
|
73
84
|
<script>
|
|
74
85
|
import {HttpResetClass} from 'vue-client'
|
|
75
|
-
|
|
86
|
+
let initGen = async function (self) {
|
|
87
|
+
await self.initpcds(` f_filialeid = '${self.f_filialeids}'`)
|
|
88
|
+
}
|
|
76
89
|
// let getAreaConfig = async function (self) {
|
|
77
90
|
// // 获取气价里面的配置
|
|
78
91
|
// await self.$getConfig(self, 'StreetManage')
|
|
@@ -81,7 +94,7 @@ import {HttpResetClass} from 'vue-client'
|
|
|
81
94
|
// Object.assign(self.model, self.config)
|
|
82
95
|
// }
|
|
83
96
|
export default {
|
|
84
|
-
title: '
|
|
97
|
+
title: '片区信息添加',
|
|
85
98
|
data() {
|
|
86
99
|
return {
|
|
87
100
|
//初始化省市区数据
|
|
@@ -89,8 +102,10 @@ export default {
|
|
|
89
102
|
hasnumber: true
|
|
90
103
|
},
|
|
91
104
|
streetlist: [],
|
|
105
|
+
pcdslist:[],
|
|
92
106
|
//街道办
|
|
93
107
|
communitymodel: {
|
|
108
|
+
f_pcd:'',
|
|
94
109
|
f_pcd_id: '',
|
|
95
110
|
f_street_manage_id: '',
|
|
96
111
|
slice_area: null,
|
|
@@ -106,18 +121,82 @@ export default {
|
|
|
106
121
|
},
|
|
107
122
|
props: ['f_filialeids', 'businesstype'],
|
|
108
123
|
ready() {
|
|
109
|
-
this
|
|
124
|
+
initGen(this)
|
|
110
125
|
},
|
|
111
126
|
computed: {
|
|
112
127
|
directors(){
|
|
113
|
-
console.log('
|
|
114
|
-
return this.$appdata.getParam('
|
|
128
|
+
console.log('获取片区负责人')
|
|
129
|
+
return this.$appdata.getParam('片区负责人') ? [...this.$appdata.getParam('片区负责人')] : []
|
|
115
130
|
}
|
|
116
131
|
},
|
|
117
132
|
methods: {
|
|
133
|
+
//初始化街道 添加小区
|
|
134
|
+
async initstreets(pconditon){
|
|
135
|
+
this.streetslist = []
|
|
136
|
+
let HttpReset = new HttpResetClass()
|
|
137
|
+
let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
|
|
138
|
+
data: {
|
|
139
|
+
items: '*',
|
|
140
|
+
tablename: 't_street',
|
|
141
|
+
orderitem: 'id',
|
|
142
|
+
condition: pconditon
|
|
143
|
+
}
|
|
144
|
+
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
|
145
|
+
let redata = []
|
|
146
|
+
req.data.forEach((row, n) => {
|
|
147
|
+
redata[n] = {
|
|
148
|
+
label: row.f_street,
|
|
149
|
+
value: row.id,
|
|
150
|
+
data:row,
|
|
151
|
+
id:row.id
|
|
152
|
+
}
|
|
153
|
+
})
|
|
154
|
+
this.streetlist=redata
|
|
155
|
+
},
|
|
156
|
+
//初始化省市区,添加街道
|
|
157
|
+
async initpcds(pconditon){
|
|
158
|
+
this.pcdslist = []
|
|
159
|
+
let HttpReset = new HttpResetClass()
|
|
160
|
+
let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
|
|
161
|
+
data: {
|
|
162
|
+
items: '*',
|
|
163
|
+
tablename: 't_pcd',
|
|
164
|
+
orderitem: 'id',
|
|
165
|
+
condition: pconditon
|
|
166
|
+
}
|
|
167
|
+
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
|
168
|
+
let redata = []
|
|
169
|
+
req.data.forEach((row, n) => {
|
|
170
|
+
redata[n] = {
|
|
171
|
+
label: row.f_pcd,
|
|
172
|
+
value: row.id,
|
|
173
|
+
data:row,
|
|
174
|
+
id:row.id
|
|
175
|
+
}
|
|
176
|
+
})
|
|
177
|
+
this.pcdslist=redata
|
|
178
|
+
},
|
|
179
|
+
async pcdChange(val){
|
|
180
|
+
if(val){
|
|
181
|
+
//那就把街道数据重新组织一下
|
|
182
|
+
await this.initstreets(` f_filialeid = '${this.f_filialeids}' and f_pcd_id ='${val}' `)
|
|
183
|
+
// if(this.communitymodel.f_street_id){
|
|
184
|
+
// if (this.findbyid(this.streetslist,this.communitymodel.f_street_id)) {
|
|
185
|
+
// let pcd_id=this.findbyid(this.streetslist,this.communitymodel.f_street_id).f_pcd_id
|
|
186
|
+
// if(pcd_id!=val){
|
|
187
|
+
// this.communitymodel.f_street_id=''
|
|
188
|
+
// }
|
|
189
|
+
// } else {
|
|
190
|
+
// this.communitymodel.f_street_id=''
|
|
191
|
+
// }
|
|
192
|
+
//
|
|
193
|
+
// }
|
|
194
|
+
}
|
|
195
|
+
this.$resetValidation()
|
|
196
|
+
},
|
|
118
197
|
async communityyanzheng() {
|
|
119
198
|
console.log(this.communitymodel.f_community_code)
|
|
120
|
-
let res = await this.$resetpost('
|
|
199
|
+
let res = await this.$resetpost('api/af-revenue/sql/address_singleTableOrderBy', {
|
|
121
200
|
data: {
|
|
122
201
|
items: '*',
|
|
123
202
|
tablename: 't_community',
|
|
@@ -127,7 +206,7 @@ export default {
|
|
|
127
206
|
}, {resolveMsg: null, rejectMsg: null})
|
|
128
207
|
if (res.data.length > 0) {
|
|
129
208
|
if (res.data[0].id != this.communitymodel.id) {
|
|
130
|
-
this.$showAlert('
|
|
209
|
+
this.$showAlert('当前片区编号编号已存在', 'warning', 2000)
|
|
131
210
|
this.communitymodel.f_community_code = ''
|
|
132
211
|
}
|
|
133
212
|
}
|
|
@@ -143,29 +222,8 @@ export default {
|
|
|
143
222
|
return result
|
|
144
223
|
},
|
|
145
224
|
//初始化数据
|
|
146
|
-
initdata() {
|
|
147
|
-
this.
|
|
148
|
-
console.log("街道准备")
|
|
149
|
-
let HttpReset = new HttpResetClass()
|
|
150
|
-
HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy', {
|
|
151
|
-
data: {
|
|
152
|
-
items: '*',
|
|
153
|
-
tablename: 't_street',
|
|
154
|
-
orderitem: 'id',
|
|
155
|
-
condition: ` f_filialeid = '${this.f_filialeids}'`
|
|
156
|
-
}
|
|
157
|
-
}, {resolveMsg: null, rejectMsg: '获取地址失败!'}).then((req) => {
|
|
158
|
-
let redata = []
|
|
159
|
-
req.data.forEach((row, n) => {
|
|
160
|
-
redata[n] = {
|
|
161
|
-
label: row.f_street,
|
|
162
|
-
value: row.id,
|
|
163
|
-
data: row,
|
|
164
|
-
id: row.id
|
|
165
|
-
}
|
|
166
|
-
})
|
|
167
|
-
this.streetlist = redata
|
|
168
|
-
})
|
|
225
|
+
async initdata() {
|
|
226
|
+
await this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
|
|
169
227
|
},
|
|
170
228
|
// //省/市/区变化
|
|
171
229
|
// pcdChange(val) {
|
|
@@ -187,9 +245,10 @@ export default {
|
|
|
187
245
|
this.communitymodel.f_orgname = this.$login.f.orgs
|
|
188
246
|
this.communitymodel.f_depid = this.$login.f.depids
|
|
189
247
|
this.communitymodel.f_depname = this.$login.f.deps
|
|
248
|
+
this.communitymodel.f_pcd = this.findbyid(this.pcdslist, this.communitymodel.f_pcd_id).f_pcd
|
|
190
249
|
this.communitymodel.f_street = this.findbyid(this.streetlist, this.communitymodel.f_street_id).f_street
|
|
191
|
-
console.log('
|
|
192
|
-
await this.$resetpost('
|
|
250
|
+
console.log('获取片区model', this.communitymodel)
|
|
251
|
+
await this.$resetpost('api/af-revenue/logic/address_updateCommunityManage', this.communitymodel)
|
|
193
252
|
},
|
|
194
253
|
cancel() {
|
|
195
254
|
this.clearData()
|
|
@@ -101,7 +101,7 @@ export default {
|
|
|
101
101
|
methods: {
|
|
102
102
|
async streetyanzheng() {
|
|
103
103
|
console.log(this.streetmanagemodel.f_street_manage_number.length)
|
|
104
|
-
let res = await this.$resetpost('
|
|
104
|
+
let res = await this.$resetpost('api/af-revenue/sql/address_singleTableOrderBy', {
|
|
105
105
|
data: {
|
|
106
106
|
items: '*',
|
|
107
107
|
tablename: 't_street_manage',
|
|
@@ -130,7 +130,7 @@ export default {
|
|
|
130
130
|
initdata() {
|
|
131
131
|
console.log("省市区准备")
|
|
132
132
|
let HttpReset = new HttpResetClass()
|
|
133
|
-
HttpReset.load('POST', '
|
|
133
|
+
HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
|
|
134
134
|
data: {
|
|
135
135
|
items: '*',
|
|
136
136
|
tablename: 't_pcd',
|
|
@@ -172,7 +172,7 @@ export default {
|
|
|
172
172
|
this.streetmanagemodel.f_depname = this.$login.f.deps
|
|
173
173
|
this.streetmanagemodel.f_pcd = this.findbyid(this.pcdslist, this.streetmanagemodel.f_pcd_id).f_pcd
|
|
174
174
|
console.log('获取街道model', this.streetmanagemodel)
|
|
175
|
-
await this.$resetpost('
|
|
175
|
+
await this.$resetpost('api/af-revenue/logic/address_updateStreetManage', this.streetmanagemodel)
|
|
176
176
|
},
|
|
177
177
|
cancel() {
|
|
178
178
|
this.clearData()
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
</div>
|
|
58
58
|
<div class="col-sm-6 form-group "
|
|
59
59
|
:class="[$v.f_street.required ? 'has-error' : 'has-success']">
|
|
60
|
-
<label class="font_normal_body"
|
|
60
|
+
<label class="font_normal_body">市区/乡镇</label>
|
|
61
61
|
<input type="text" v-model="streetmodel.f_street"
|
|
62
|
-
class="input_search" style="width:60%" placeholder="
|
|
62
|
+
class="input_search" style="width:60%" placeholder="市区/乡镇"
|
|
63
63
|
v-validate:f_street='{required: true }'>
|
|
64
64
|
</div>
|
|
65
65
|
<div class="col-sm-6 form-group " v-if="config.hasnumber"
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
this.$showAlert('请输入正确的位数', 'warning', 2000)
|
|
155
155
|
this.streetmodel.f_street_number = ''
|
|
156
156
|
}else{
|
|
157
|
-
let res =await this.$resetpost('
|
|
157
|
+
let res =await this.$resetpost('api/af-revenue/sql/address_singleTableOrderBy', {
|
|
158
158
|
data: {
|
|
159
159
|
items: '*',
|
|
160
160
|
tablename: 't_street',
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
this.$showAlert('请输入正确的位数', 'warning', 2000)
|
|
177
177
|
this.pcdmodel.f_pcd_number = ''
|
|
178
178
|
}else{
|
|
179
|
-
let res =await this.$resetpost('
|
|
179
|
+
let res =await this.$resetpost('api/af-revenue/sql/address_singleTableOrderBy', {
|
|
180
180
|
data: {
|
|
181
181
|
items: '*',
|
|
182
182
|
tablename: 't_pcd',
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
initpcds(pconditon){
|
|
197
197
|
console.log("省市区准备")
|
|
198
198
|
let HttpReset = new HttpResetClass()
|
|
199
|
-
HttpReset.load('POST', '
|
|
199
|
+
HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
|
|
200
200
|
data: {
|
|
201
201
|
items: '*',
|
|
202
202
|
tablename: 't_pcd',
|
|
@@ -262,7 +262,7 @@
|
|
|
262
262
|
this.pcdmodel.f_depid = this.$login.f.depids
|
|
263
263
|
this.pcdmodel.f_depname = this.$login.f.deps
|
|
264
264
|
this.pcdmodel.f_pcd = this.pcdmodel.f_province+this.pcdmodel.f_city+this.pcdmodel.f_district
|
|
265
|
-
await this.$resetpost('
|
|
265
|
+
await this.$resetpost('api/af-revenue/logic/address_updatepcd', this.pcdmodel)
|
|
266
266
|
},
|
|
267
267
|
//保存街道
|
|
268
268
|
async savestreet(){
|
|
@@ -275,7 +275,7 @@
|
|
|
275
275
|
this.streetmodel.f_depname = this.$login.f.deps
|
|
276
276
|
this.streetmodel.f_pcd=this.findbyid(this.pcdslist,this.streetmodel.f_pcd_id).f_pcd
|
|
277
277
|
console.log('获取街道model', this.streetmodel)
|
|
278
|
-
await this.$resetpost('
|
|
278
|
+
await this.$resetpost('api/af-revenue/logic/address_updatestreet', this.streetmodel)
|
|
279
279
|
},
|
|
280
280
|
cancel(){
|
|
281
281
|
this.cleardara()
|