apply-clients 3.4.2 → 3.4.4
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/android.html +23 -23
- package/build/dev-server.js +119 -119
- package/build/webpack.base.conf.js +2 -1
- package/build/webpack.dev.conf.js +12 -0
- package/dingding.html +23 -0
- package/index.html +33 -33
- package/package.json +2 -1
- package/src/AndroidApp.vue +35 -35
- package/src/DingDingApp.vue +51 -0
- package/src/android.js +21 -21
- package/src/apply.js +38 -13
- package/src/applyAndroid.js +46 -32
- package/src/applyDingDing.js +12 -0
- package/src/components/android/AppOnetomany.vue +343 -301
- package/src/components/android/AppServiceView.vue +189 -10
- package/src/components/android/AppSign.vue +19 -7
- package/src/components/android/AppTakePic.vue +143 -143
- package/src/components/android/AreaSelect/AppQrcodeReader.vue +73 -0
- package/src/components/android/AreaSelect/AppResAreaMapGroup.vue +148 -0
- package/src/components/android/AreaSelect/AppResAreaSelect.vue +108 -0
- package/src/components/android/AreaSelect/AppResAreaSelectGroup.vue +142 -0
- package/src/components/android/Function/AppFunctionServiceControl.vue +344 -0
- package/src/components/android/Function/AppInstallFunction.vue +366 -0
- package/src/components/android/Process/AppExplorationUser.vue +500 -320
- package/src/components/android/Process/AppServiceControl.vue +999 -48
- package/src/components/android/Process/Processes/AppAddMaterialScience.vue +477 -0
- package/src/components/android/Process/Processes/AppBuildSign.vue +46 -0
- package/src/components/android/Process/Processes/AppChargeManagement.vue +637 -0
- package/src/components/android/Process/Processes/AppDevicesManagement.vue +519 -0
- package/src/components/android/Process/Processes/AppInstallationDetails.vue +116 -90
- package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +298 -0
- package/src/components/android/Process/Processes/selectApply.vue +250 -0
- package/src/components/android/Process/Processes/selectUserinfo.vue +182 -0
- package/src/components/android/ProgressReport/ProgressReportDetail.vue +64 -64
- package/src/components/android/Supervisory/AppProcessSupervisory.vue +205 -71
- package/src/components/android/Supervisory/AppSupervisoryCart.vue +69 -34
- package/src/components/android/TaskGraph.vue +125 -125
- package/src/components/common/TabButton.vue +149 -0
- package/src/components/common/Tabs.vue +67 -0
- package/src/components/image/dwg.jpg +0 -0
- package/src/components/image/txt.jpg +0 -0
- package/src/components/image//345/221/250/345/217/243/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
- package/src/components/image//350/245/277/345/215/216/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
- package/src/components/image//351/203/270/345/237/216/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
- package/src/components/image//351/241/271/345/237/216/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
- package/src/components/image//351/271/277/351/202/221/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
- package/src/components/product/ApplyCharge/ApplyChargeList.vue +272 -53
- package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +3 -3
- package/src/components/product/AreaSelect/MyAreaSelect.vue +423 -0
- package/src/components/product/AreaSelect/ResAreaSelect.vue +106 -0
- package/src/components/product/AreaSelect/ResAreaSelectGroup.vue +150 -0
- package/src/components/product/AreaSelect/utils/EventListener.js +29 -0
- package/src/components/product/AreaSelect/utils/coerceBoolean.js +7 -0
- package/src/components/product/Business/BusinessApply.vue +269 -0
- package/src/components/product/Business/CivilApply.vue +269 -0
- package/src/components/product/Function/InstallFunction.vue +132 -125
- package/src/components/product/Function/InstallInfoSelect.vue +320 -292
- package/src/components/product/Function/Service/FunctionServiceControl.vue +445 -222
- package/src/components/product/GaoDeMapComponents/GaoDeMap.vue +231 -0
- package/src/components/product/GroupByApply/ApplyGroupByList.vue +253 -0
- package/src/components/product/GroupByApply/ApplyGroupByMain.vue +53 -0
- package/src/components/product/GroupByApply/ApplyGroupByPaper.vue +376 -0
- package/src/components/product/Install/InstallProject.vue +194 -0
- package/src/components/product/Material/MaterialDetailed.vue +262 -0
- package/src/components/product/OldApply/Handle/HandleApply.vue +337 -0
- package/src/components/product/OldApply/Monitor/MonitorApply.vue +360 -0
- package/src/components/product/OldApply/OldApply.vue +209 -0
- package/src/components/product/OldApply/OldApplyMessage.vue +420 -0
- package/src/components/product/Onetomany.vue +406 -377
- package/src/components/product/Print/BuildOrder/buildOrderList.vue +339 -0
- package/src/components/product/Print/BuildOrder/printBuildOrder.vue +157 -0
- package/src/components/product/Print/IgnitionBill/IgnitionBill.vue +259 -0
- package/src/components/product/Print/IgnitionBill/printIgnitionBill.vue +168 -0
- package/src/components/product/Process/ExplorationSelect.vue +495 -410
- package/src/components/product/Process/ExplorationUser.vue +189 -138
- package/src/components/product/Process/Processes/InstallationDetails.vue +25 -7
- package/src/components/product/Process/Processes/Print/printCharge.vue +41 -17
- package/src/components/product/Process/Processes/Print/printChargepc.vue +142 -0
- package/src/components/product/Process/Processes/Print/printRefund.vue +196 -0
- package/src/components/product/Process/Processes/addMaterialScience.vue +454 -0
- package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +211 -207
- package/src/components/product/Process/Processes/chargeManagement.vue +20 -3
- package/src/components/product/Process/Processes/devicesManagement.vue +484 -478
- package/src/components/product/Process/Processes/selectApply.vue +2 -2
- package/src/components/product/Process/Service/ServiceControl.vue +638 -20
- package/src/components/product/Process/Service/ShowBackReason.vue +33 -33
- package/src/components/product/Process/ShowBackReason.vue +33 -0
- package/src/components/product/ServiceView.vue +357 -7
- package/src/components/product/Stop/StopApply.vue +101 -103
- package/src/components/product/Stop/StopApplyList.vue +271 -269
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +884 -186
- package/src/components/product/Supervisory/SupervisoryControl.vue +137 -100
- package/src/components/product/Supervisory/SupervisoryList.vue +201 -30
- package/src/components/product/Supervisory/SupervisoryhCart.vue +130 -107
- package/src/components/product/VueUtils/ApplyUpload.vue +275 -273
- package/src/components/product/VueUtils/GaoPaiYi/HighMeter.vue +1090 -0
- package/src/components/product/VueUtils/HighMeter.vue +208 -208
- package/src/components/product/VueUtils/ToolsPage.vue +51 -0
- package/src/components/product/VueUtils/Tree.vue +330 -0
- package/src/dingding.js +19 -0
- package/src/expandcssAndroid.less +517 -1034
- package/src/filiale/yuchuan/android/Process/AppServiceControl.vue +735 -731
- package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetails.vue +824 -824
- package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetailsCivil.vue +650 -650
- package/src/filiale/yuchuan/android/Sign/AppSignTask.vue +182 -182
- package/src/filiale/yuchuan/android/Sign/BuildSign.vue +50 -50
- package/src/filiale/yuchuan/android/Sign/ConstructSign.vue +50 -50
- package/src/filiale/yuchuan/android/Sign/DesignSign.vue +50 -50
- package/src/filiale/yuchuan/android/Sign/SupervisorSign.vue +50 -50
- package/src/filiale/yuchuan/android/Task/Build/BuildTsak.vue +60 -60
- package/src/filiale/yuchuan/android/Task/Survey/SurveyTsak.vue +60 -60
- package/src/filiale/yuchuan/android.js +14 -14
- package/src/filiale/yuchuan/pc/Order/OrderApply.vue +528 -528
- package/src/filiale/yuchuan/pc/Order/OrderApplyList.vue +343 -343
- package/src/filiale/yuchuan/pc/Print/BuildOrder/buildOrderList.vue +264 -0
- package/src/filiale/yuchuan/pc/Print/BuildOrder/printBuildOrder.vue +152 -0
- package/src/filiale/yuchuan/pc/Process/ExplorationUser.vue +149 -149
- package/src/filiale/yuchuan/pc/Process/Processes/ApplyMapCom.vue +67 -67
- package/src/filiale/yuchuan/pc/Process/Processes/InstallationDetails.vue +809 -809
- package/src/filiale/yuchuan/pc/Process/Processes/InstallationDetailsCivil.vue +595 -595
- package/src/filiale/yuchuan/pc/Process/Processes/Print/printCharge.vue +125 -0
- package/src/filiale/yuchuan/pc/Process/Processes/chargeManagement.vue +621 -470
- package/src/filiale/yuchuan/pc/Process/Service/ServiceControl.vue +1108 -1074
- package/src/filiale/yuchuan/pc/Sign/SignRecord.vue +24 -0
- package/src/filiale/yuchuan/pc/Sign/SignRecordList.vue +174 -0
- package/src/filiale/yuchuan/pc.js +20 -12
- package/src/main.js +4 -1
- package/src/components/product/Function/StopApplyCrrdList.vue +0 -176
- package/src/components/product/Function/functions/ApplyRecordCancel.vue +0 -102
- package/src/components/product/Function/functions/StopInstall.vue +0 -106
|
@@ -35,13 +35,36 @@ export default {
|
|
|
35
35
|
json_datas: null, // Json配置文件集合
|
|
36
36
|
showview: false, // 控制显示service-view组件
|
|
37
37
|
show_data: null, // 给view层显示的数据
|
|
38
|
-
config: {}
|
|
38
|
+
config: {},
|
|
39
|
+
Pricetype:''
|
|
39
40
|
}
|
|
40
41
|
},
|
|
41
42
|
ready () {
|
|
42
43
|
this.refurbish()
|
|
44
|
+
this.servicer()
|
|
43
45
|
},
|
|
44
46
|
methods: {
|
|
47
|
+
async servicer(){
|
|
48
|
+
debugger
|
|
49
|
+
let data = {
|
|
50
|
+
tablename: 't_user',
|
|
51
|
+
condition: `1=1`
|
|
52
|
+
}
|
|
53
|
+
let http = new HttpResetClass()
|
|
54
|
+
let res = await http.load(
|
|
55
|
+
'POST',
|
|
56
|
+
`rs/sql/singleTable`,
|
|
57
|
+
{data: data},
|
|
58
|
+
{resolveMsg: null, rejectMsg: '服务人查询失败!!!'}
|
|
59
|
+
)
|
|
60
|
+
debugger
|
|
61
|
+
this.setLabelOptions('服务人', res.data.map(item => {
|
|
62
|
+
return {
|
|
63
|
+
label: item.name,
|
|
64
|
+
value: item.name
|
|
65
|
+
}
|
|
66
|
+
}))
|
|
67
|
+
},
|
|
45
68
|
// 组件初始化操作
|
|
46
69
|
async refurbish() {
|
|
47
70
|
this.json_datas = this.$workflow_vue
|
|
@@ -263,7 +286,7 @@ export default {
|
|
|
263
286
|
|
|
264
287
|
// 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
|
|
265
288
|
let temp = JSON.parse(JSON.stringify(this.selectdata))
|
|
266
|
-
|
|
289
|
+
console.log('打印下temp',temp)
|
|
267
290
|
this.show_data = temp
|
|
268
291
|
this.$nextTick(() => {
|
|
269
292
|
this.showview = true
|
|
@@ -371,6 +394,34 @@ export default {
|
|
|
371
394
|
}
|
|
372
395
|
}
|
|
373
396
|
},
|
|
397
|
+
disabledButtons(...buttons) {
|
|
398
|
+
for (const item of this.show_data.buttons) {
|
|
399
|
+
if (buttons.includes(item.button_name)) {
|
|
400
|
+
item.disabled = true
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
enableButtons(...buttons) {
|
|
405
|
+
for (const item of this.show_data.buttons) {
|
|
406
|
+
if (buttons.includes(item.button_name)) {
|
|
407
|
+
item.disabled = false
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
showButtons(...buttons) {
|
|
412
|
+
for (const item of this.show_data.buttons) {
|
|
413
|
+
if (buttons.includes(item.button_name)) {
|
|
414
|
+
item.hidden = false
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
hideButtons(...buttons) {
|
|
419
|
+
for (const item of this.show_data.buttons) {
|
|
420
|
+
if (buttons.includes(item.button_name)) {
|
|
421
|
+
item.hidden = true
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
},
|
|
374
425
|
async checkDuplicate(index) {
|
|
375
426
|
let http = new HttpResetClass()
|
|
376
427
|
let data = {
|
|
@@ -429,6 +480,27 @@ export default {
|
|
|
429
480
|
}
|
|
430
481
|
})
|
|
431
482
|
},
|
|
483
|
+
// 获取集收单位
|
|
484
|
+
async getArea () {
|
|
485
|
+
let data = {
|
|
486
|
+
tablename: 't_area',
|
|
487
|
+
condition: `f_filialeid = '${this.$login.f.orgid}'`
|
|
488
|
+
}
|
|
489
|
+
let http = new HttpResetClass()
|
|
490
|
+
let res = await http.load(
|
|
491
|
+
'POST',
|
|
492
|
+
`rs/sql/singleTable`,
|
|
493
|
+
{data: data},
|
|
494
|
+
{resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
|
|
495
|
+
)
|
|
496
|
+
|
|
497
|
+
return res.data.map(item => {
|
|
498
|
+
return {
|
|
499
|
+
label: item.f_residential_area,
|
|
500
|
+
value: item.f_residential_area
|
|
501
|
+
}
|
|
502
|
+
})
|
|
503
|
+
},
|
|
432
504
|
// 缴费前置
|
|
433
505
|
chargeBefore () {
|
|
434
506
|
if (Number(this.show_data.f_due_money) > Number(this.show_data.f_cumulative_payment_money) || Number(this.show_data.f_surplus_money) > 0) {
|
|
@@ -436,11 +508,11 @@ export default {
|
|
|
436
508
|
throw null
|
|
437
509
|
}
|
|
438
510
|
},
|
|
439
|
-
// 施工前置
|
|
511
|
+
// 施工前置 加表具后状态是待开通 提交后是正常 所以这里的判断条件需改正 (and uf.f_meter_classify is null and f_meternumber is null)
|
|
440
512
|
async constructionBefore () {
|
|
441
513
|
let http = new HttpResetClass()
|
|
442
514
|
let data = {
|
|
443
|
-
condition: `ui.f_process_id = '${this.show_data.f_process_id}' and uf.
|
|
515
|
+
condition: `ui.f_process_id = '${this.show_data.f_process_id}' and uf.f_meter_classify is null and f_meternumber is null`
|
|
444
516
|
}
|
|
445
517
|
let res = await http.load(
|
|
446
518
|
'POST',
|
|
@@ -489,11 +561,17 @@ export default {
|
|
|
489
561
|
console.log(f_price_id)
|
|
490
562
|
|
|
491
563
|
let data = {
|
|
492
|
-
condition: `sp.
|
|
564
|
+
condition: `sp.f_filialeid = '${this.$login.f.orgid}'`
|
|
565
|
+
}
|
|
566
|
+
if(this.Pricetype==='机表'){
|
|
567
|
+
data.condition=`sp.f_custom = '机表'`
|
|
568
|
+
}
|
|
569
|
+
if(this.Pricetype==='非机表'){
|
|
570
|
+
data.condition=`sp.f_custom = '非机表'`
|
|
493
571
|
}
|
|
494
572
|
|
|
495
573
|
if (!isEmpty(f_price_id)) {
|
|
496
|
-
data.condition = `sp.
|
|
574
|
+
data.condition = `sp.f_filialeid = '${this.$login.f.orgid}' and sp.f_price_id = ${f_price_id}`
|
|
497
575
|
}
|
|
498
576
|
let http = new HttpResetClass()
|
|
499
577
|
let res = await http.load(
|
|
@@ -503,12 +581,17 @@ export default {
|
|
|
503
581
|
{resolveMsg: null, rejectMsg: '气价查询失败!!!'}
|
|
504
582
|
)
|
|
505
583
|
|
|
506
|
-
|
|
584
|
+
let a= res.data.map(item => {
|
|
507
585
|
return {
|
|
508
586
|
label: item.f_price_name,
|
|
509
587
|
value: item
|
|
510
588
|
}
|
|
511
589
|
})
|
|
590
|
+
this.selectdata.fields.forEach(field => {
|
|
591
|
+
if (field.label === '气价名称') {
|
|
592
|
+
field.options = a}
|
|
593
|
+
})
|
|
594
|
+
return a
|
|
512
595
|
},
|
|
513
596
|
addressInitialization () {
|
|
514
597
|
this.$getConfig(this, 'UserAddress')
|
|
@@ -553,7 +636,12 @@ export default {
|
|
|
553
636
|
}
|
|
554
637
|
if (item.label === '集收单位') {
|
|
555
638
|
item.hidden = false
|
|
556
|
-
|
|
639
|
+
if (this.show_data.f_apply_type === '工商户报建'){
|
|
640
|
+
item.required = true
|
|
641
|
+
} else {
|
|
642
|
+
item.required = false
|
|
643
|
+
}
|
|
644
|
+
|
|
557
645
|
}
|
|
558
646
|
if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层' || item.label === '门牌号') {
|
|
559
647
|
item.hidden = true
|
|
@@ -625,9 +713,230 @@ export default {
|
|
|
625
713
|
value: item.f_street
|
|
626
714
|
}
|
|
627
715
|
}))
|
|
716
|
+
},
|
|
717
|
+
async addressTips () {
|
|
718
|
+
// console.log('======================='+this.show_data.f_apply_type)
|
|
719
|
+
let res = ''
|
|
720
|
+
if (this.show_data.f_apply_type === '报警器报建' || this.show_data.f_apply_type === '工商业报警器报建') {
|
|
721
|
+
res = await this.$showMessage('报警器报建下单后将不能修改用户信息,请确认用户信息地址等是否正确,如不完善可在档案中进行修正!!!')
|
|
722
|
+
}else{
|
|
723
|
+
res = await this.$showMessage('增容改管下单后将不能修改用户信息,请确认用户信息地址等是否正确,如不完善可在档案中进行修正!!!')
|
|
724
|
+
}
|
|
725
|
+
if (res == 'confirm') {
|
|
726
|
+
return
|
|
727
|
+
}
|
|
728
|
+
throw '用户信息确认!!!'
|
|
729
|
+
},
|
|
730
|
+
async getDesignerPeople () {
|
|
731
|
+
let data = {
|
|
732
|
+
source: 'this.getParentByType($organization$).getChildByName($设计部报装$).getChildren()',
|
|
733
|
+
userid: this.$login.f.id
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
let http = new HttpResetClass()
|
|
737
|
+
let res = await http.load(
|
|
738
|
+
'POST',
|
|
739
|
+
`rs/search`,
|
|
740
|
+
{data: data},
|
|
741
|
+
{resolveMsg: null, rejectMsg: '设计人员查询失败!!!'}
|
|
742
|
+
)
|
|
743
|
+
|
|
744
|
+
return res.data.map(item => {
|
|
745
|
+
return {
|
|
746
|
+
label: item.name,
|
|
747
|
+
value: item.id
|
|
748
|
+
}
|
|
749
|
+
})
|
|
750
|
+
},
|
|
751
|
+
async surveyStopApply () {
|
|
752
|
+
console.log('终止报建!!!!!')
|
|
753
|
+
|
|
754
|
+
this.show_data.f_stop_reason = '现场勘察不符合报装条件'
|
|
755
|
+
|
|
756
|
+
let data = {
|
|
757
|
+
data: this.show_data,
|
|
758
|
+
user: this.$login.f
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
let res = await this.$resetpost(
|
|
762
|
+
`rs/logic/surveyStopApply`,
|
|
763
|
+
{data: data},
|
|
764
|
+
{resolveMsg: null, rejectMsg: '终止报建失败!!!'}
|
|
765
|
+
)
|
|
766
|
+
|
|
767
|
+
this.$dispatch('loadPage')
|
|
768
|
+
|
|
769
|
+
throw '终止报建!!!'
|
|
770
|
+
},
|
|
771
|
+
async contract_number() {
|
|
772
|
+
console.log("进入编号合同编号生成",this.$login.f.orgs)
|
|
773
|
+
let f_contract_number = ''
|
|
774
|
+
const nowDate = new Date();
|
|
775
|
+
const date = {
|
|
776
|
+
year: nowDate.getFullYear(),
|
|
777
|
+
month: nowDate.getMonth() + 1,
|
|
778
|
+
day: nowDate.getDate()
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
function upperCaseChars(dir) {
|
|
782
|
+
let string = '';
|
|
783
|
+
switch (dir){
|
|
784
|
+
case '周口市天然气有限公司':
|
|
785
|
+
string = 'ZK' // 当表达式的结果等于 房产 时,则执行该代码
|
|
786
|
+
break;
|
|
787
|
+
case '项城市天然气有限公司':
|
|
788
|
+
string = "XC" // 当表达式的结果等于 自建房 时,则执行该代码
|
|
789
|
+
break;
|
|
790
|
+
case '西华县天然气有限公司':
|
|
791
|
+
string = 'XH' // 当表达式的结果等于 商业 时,则执行该代码
|
|
792
|
+
break;
|
|
793
|
+
case '鹿邑县天然气有限公司':
|
|
794
|
+
string = 'LY' // 当表达式的结果等于 工业 时,则执行该代码
|
|
795
|
+
break;
|
|
796
|
+
case '郸城县天然气有限公司':
|
|
797
|
+
string = 'DC' // 当表达式的结果等于 中压 时,则执行该代码
|
|
798
|
+
break;
|
|
799
|
+
default :
|
|
800
|
+
break; // 如果没有与表达式相同的值,则执行该代码
|
|
801
|
+
}
|
|
802
|
+
return string;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
const dir = upperCaseChars(this.$login.f.orgs) //分公司
|
|
806
|
+
|
|
807
|
+
let type = 0 //类型
|
|
808
|
+
|
|
809
|
+
switch (this.show_data.f_entry_type){
|
|
810
|
+
case '城区/县城':
|
|
811
|
+
type = 1 // 当表达式的结果等于 城区 时,则执行该代码
|
|
812
|
+
break;
|
|
813
|
+
case '新农村':
|
|
814
|
+
type = 2 // 当表达式的结果等于 新农村 时,则执行该代码
|
|
815
|
+
break;
|
|
816
|
+
default :
|
|
817
|
+
break; // 如果没有与表达式相同的值,则执行该代码
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
let nature = 0 // 性质
|
|
821
|
+
switch (this.show_data.f_apply_nature){
|
|
822
|
+
case '楼房':
|
|
823
|
+
nature = 1 // 当表达式的结果等于 楼房 时,则执行该代码
|
|
824
|
+
break;
|
|
825
|
+
case '房产':
|
|
826
|
+
nature = 1 // 当表达式的结果等于 房产 时,则执行该代码
|
|
827
|
+
break;
|
|
828
|
+
case '自建房':
|
|
829
|
+
nature = 2 // 当表达式的结果等于 自建房 时,则执行该代码
|
|
830
|
+
break;
|
|
831
|
+
case '商业':
|
|
832
|
+
nature = 3 // 当表达式的结果等于 商业 时,则执行该代码
|
|
833
|
+
break;
|
|
834
|
+
case '学校':
|
|
835
|
+
nature = 3 // 当表达式的结果等于 学校 时,则执行该代码
|
|
836
|
+
break;
|
|
837
|
+
case '福利机构':
|
|
838
|
+
nature = 3 // 当表达式的结果等于 福利机构 时,则执行该代码
|
|
839
|
+
break;
|
|
840
|
+
case '其他':
|
|
841
|
+
nature = 3 // 当表达式的结果等于 其他 时,则执行该代码
|
|
842
|
+
break;
|
|
843
|
+
case '工业':
|
|
844
|
+
nature = 4 // 当表达式的结果等于 工业 时,则执行该代码
|
|
845
|
+
break;
|
|
846
|
+
case '中压':
|
|
847
|
+
nature = 5 // 当表达式的结果等于 中压 时,则执行该代码
|
|
848
|
+
break;
|
|
849
|
+
default :
|
|
850
|
+
break; // 如果没有与表达式相同的值,则执行该代码
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
const newMonth = date.month >= 10 ? date.month : '0' + date.month //月份
|
|
854
|
+
const dataYm = date.year + '-01-01'
|
|
855
|
+
const newYear = date.year + 1
|
|
856
|
+
const year = date.year.toString().substring(2,4) //年份
|
|
857
|
+
|
|
858
|
+
let data = {
|
|
859
|
+
orgid: this.$login.f.orgid
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
let http = new HttpResetClass()
|
|
863
|
+
let res = await http.load('POST', 'rs/sql/contractCount', {data:data}, {
|
|
864
|
+
resolveMsg: null,
|
|
865
|
+
rejectMsg: null
|
|
866
|
+
})
|
|
867
|
+
let oldDate
|
|
868
|
+
for (const item of res.data) {
|
|
869
|
+
if (item.name === '合同编号最后更新日期'){
|
|
870
|
+
oldDate = item.value
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
for (const item of res.data){
|
|
874
|
+
if (item.name === '合同编号'){
|
|
875
|
+
if (item.value === 0 || Date.parse(oldDate) < Date.parse(dataYm)) {
|
|
876
|
+
f_contract_number = dir + type + nature + year + newMonth + '001'
|
|
877
|
+
console.log("触发if", f_contract_number)
|
|
878
|
+
} else {
|
|
879
|
+
let count = item.value
|
|
880
|
+
f_contract_number = dir + type + nature + year + newMonth + this.PrefixInteger(count, 3)
|
|
881
|
+
console.log("触发else", f_contract_number)
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
this.selectdata.f_contract_number = f_contract_number
|
|
886
|
+
this.show_data.f_contract_number = f_contract_number
|
|
887
|
+
return f_contract_number
|
|
888
|
+
},
|
|
889
|
+
PrefixInteger(num, n) {
|
|
890
|
+
return (Array(n).join(0) + num).slice(-n);
|
|
628
891
|
}
|
|
629
892
|
},
|
|
630
893
|
events: {
|
|
894
|
+
'priceType'(index){
|
|
895
|
+
this.Pricetype = this.getLableValue('所属类型')
|
|
896
|
+
console.log('打印方法值',this.getPrice(this.show_data.f_price_id))
|
|
897
|
+
for (const item of this.show_data.fields) {
|
|
898
|
+
if (this.show_data.f_sprice_type !=null && this.show_data.f_sprice_type !='') {
|
|
899
|
+
if(item.label==='气价名称'){
|
|
900
|
+
this.getPrice(this.show_data.f_price_id).then(value =>{
|
|
901
|
+
item.options=value
|
|
902
|
+
})
|
|
903
|
+
console.log('最终',item.options)
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
},
|
|
908
|
+
'complyInstallation' (index) {
|
|
909
|
+
if (this.show_data.f_is_have === '否') {
|
|
910
|
+
this.hideButtons('提交', '出图', '缴费')
|
|
911
|
+
this.showButtons('终止')
|
|
912
|
+
}
|
|
913
|
+
if (this.show_data.f_is_have === '是') {
|
|
914
|
+
this.hideButtons('终止')
|
|
915
|
+
this.showButtons('提交', '出图', '缴费')
|
|
916
|
+
}
|
|
917
|
+
},
|
|
918
|
+
async 'igniteDispatchReadyEvent' () {
|
|
919
|
+
let data = {
|
|
920
|
+
tablename: 'activityins',
|
|
921
|
+
condition: `processid = '${this.show_data.f_process_id}' and defname = '工程施工' and state = '结束'`
|
|
922
|
+
}
|
|
923
|
+
let http = new HttpResetClass()
|
|
924
|
+
let res = await http.load(
|
|
925
|
+
'POST',
|
|
926
|
+
`rs/sql/singleTable`,
|
|
927
|
+
{data: data},
|
|
928
|
+
{resolveMsg: null, rejectMsg: '查询失败!!!'}
|
|
929
|
+
)
|
|
930
|
+
if (res.data.length <= 0) {
|
|
931
|
+
console.log('+++++++++++++++++++++++++++++')
|
|
932
|
+
console.log('没有施工,不能退回')
|
|
933
|
+
this.hideButtons('退回')
|
|
934
|
+
}
|
|
935
|
+
},
|
|
936
|
+
'buildReadyEvent' () {
|
|
937
|
+
this.setLabelValue('施工单位', this.$login.f.name)
|
|
938
|
+
this.setLabelValue('施工安装时间', new Date().Format('yyyy-MM-dd HH:mm:ss'))
|
|
939
|
+
},
|
|
631
940
|
// 选择材料
|
|
632
941
|
async materialNameChenge (index, fieldIndex) {
|
|
633
942
|
let material = this.show_data.onetomany[index].fields[fieldIndex].value
|
|
@@ -687,8 +996,34 @@ export default {
|
|
|
687
996
|
}
|
|
688
997
|
}))
|
|
689
998
|
},
|
|
999
|
+
// 搜索小区
|
|
1000
|
+
async 'searchAreaCollective' (area, index) {
|
|
1001
|
+
let data = {
|
|
1002
|
+
tablename: 't_area',
|
|
1003
|
+
condition: `f_filialeid = '${this.$login.f.orgid}' and f_residential_area like '%${area}%'`
|
|
1004
|
+
}
|
|
1005
|
+
let http = new HttpResetClass()
|
|
1006
|
+
let res = await http.load(
|
|
1007
|
+
'POST',
|
|
1008
|
+
`rs/sql/singleTable`,
|
|
1009
|
+
{data: data},
|
|
1010
|
+
{resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
|
|
1011
|
+
)
|
|
1012
|
+
|
|
1013
|
+
if (res.data.length === 0) {
|
|
1014
|
+
return
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
this.setLabelOptions('集收单位', res.data.map(item => {
|
|
1018
|
+
return {
|
|
1019
|
+
label: item.f_residential_area,
|
|
1020
|
+
value: item.f_residential_area
|
|
1021
|
+
}
|
|
1022
|
+
}))
|
|
1023
|
+
},
|
|
690
1024
|
// 选择气价
|
|
691
1025
|
'priceChange' (index) {
|
|
1026
|
+
debugger
|
|
692
1027
|
if (isEmpty(this.show_data.stairPrice)) {
|
|
693
1028
|
return
|
|
694
1029
|
}
|
|
@@ -1081,7 +1416,6 @@ export default {
|
|
|
1081
1416
|
// 申请节点初始化
|
|
1082
1417
|
'applyReadyEvent' () {
|
|
1083
1418
|
this.addressInitialization()
|
|
1084
|
-
|
|
1085
1419
|
this.pcdChange()
|
|
1086
1420
|
this.streetChange()
|
|
1087
1421
|
},
|
|
@@ -1100,36 +1434,320 @@ export default {
|
|
|
1100
1434
|
this.show_data.start_activity = this.$workflow_vue.start_activity
|
|
1101
1435
|
this.show_data.xmlfilename = this.$workflow_vue.workflow_xmlfilename
|
|
1102
1436
|
|
|
1437
|
+
if ((this.show_data.f_apply_type === '报警器报建' || this.show_data.f_apply_type === '工商业报警器报建') && this.show_data.defname === '工程施工' && this.show_data.f_sub_state !='完工' && this.show_data.button.button_name === '完工'){
|
|
1438
|
+
//判断是否添加报警器材料
|
|
1439
|
+
let bjqlag = false
|
|
1440
|
+
let datatemp = {
|
|
1441
|
+
'bjqid':"",
|
|
1442
|
+
'fprocessid':"",
|
|
1443
|
+
'sqvalue':"",
|
|
1444
|
+
'f_bjq_sid':"",
|
|
1445
|
+
'f_material_code':"",
|
|
1446
|
+
'f_bjq_baidu_lng':"",
|
|
1447
|
+
'f_bjq_baidu_lat':"",
|
|
1448
|
+
'f_bjq_gaode_lng':"",
|
|
1449
|
+
'f_bjq_gaode_lat':""
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
let bjqststedata = {
|
|
1453
|
+
"sid":"",
|
|
1454
|
+
"bjqtype":"",
|
|
1455
|
+
"f_process_id":"",
|
|
1456
|
+
"bjqstate":"",
|
|
1457
|
+
"f_userinfo_code":""
|
|
1458
|
+
}
|
|
1459
|
+
let numOne = [];
|
|
1460
|
+
|
|
1461
|
+
let http = new HttpResetClass()
|
|
1462
|
+
let data = {
|
|
1463
|
+
tablename: `t_material_apply`,
|
|
1464
|
+
condition: `f_process_id='${this.show_data.f_process_id}'`
|
|
1465
|
+
}
|
|
1466
|
+
let res = await http.load(
|
|
1467
|
+
'POST',
|
|
1468
|
+
`rs/sql/singleTable`,
|
|
1469
|
+
{data: data},
|
|
1470
|
+
{resolveMsg: null, rejectMsg: 'onetomany查询失败'}
|
|
1471
|
+
)
|
|
1472
|
+
res.data.forEach(item => {
|
|
1473
|
+
if (item.f_material_name.substr(0,3) === '报警器'){
|
|
1474
|
+
var bjname = item.f_material_name.split("-")
|
|
1475
|
+
bjqststedata.sid = item.f_bjq_sid
|
|
1476
|
+
bjqststedata.f_process_id = item.f_process_id
|
|
1477
|
+
bjqststedata.bjqtype = bjname[1]
|
|
1478
|
+
//====================================
|
|
1479
|
+
bjqlag = true
|
|
1480
|
+
datatemp.bjqid = item.id
|
|
1481
|
+
datatemp.fprocessid = item.f_process_id
|
|
1482
|
+
datatemp.f_bjq_sid = item.f_bjq_sid
|
|
1483
|
+
datatemp.f_material_code = item.f_material_code
|
|
1484
|
+
datatemp.f_bjq_lng = item.f_bjq_lng
|
|
1485
|
+
datatemp.f_bjq_lat = item.f_bjq_lat
|
|
1486
|
+
datatemp.f_bjq_gaode_lng = item.f_bjq_gaode_lng
|
|
1487
|
+
datatemp.f_bjq_gaode_lat = item.f_bjq_gaode_lng
|
|
1488
|
+
datatemp.f_bjq_baidu_lng = item.f_bjq_baidu_lng
|
|
1489
|
+
datatemp.f_bjq_baidu_lat = item.f_bjq_baidu_lat
|
|
1490
|
+
numOne.push(item.f_bjq_sid)
|
|
1491
|
+
}
|
|
1492
|
+
})
|
|
1493
|
+
|
|
1494
|
+
// this.show_data.onetomany.forEach(item=>{
|
|
1495
|
+
// console.log("查看报警器材料",item)
|
|
1496
|
+
// item.rows.forEach(i=>{
|
|
1497
|
+
// if (i.f_material_name.substr(0,3) === '报警器'){
|
|
1498
|
+
// var bjname = i.f_material_name.split("-")
|
|
1499
|
+
// bjqststedata.sid = i.f_bjq_sid
|
|
1500
|
+
// bjqststedata.f_process_id = i.f_process_id
|
|
1501
|
+
// bjqststedata.bjqtype = bjname[1]
|
|
1502
|
+
// //====================================
|
|
1503
|
+
// bjqlag = true
|
|
1504
|
+
// datatemp.bjqid = i.id
|
|
1505
|
+
// datatemp.fprocessid = i.f_process_id
|
|
1506
|
+
// datatemp.f_bjq_sid = i.f_bjq_sid
|
|
1507
|
+
// datatemp.f_material_code = i.f_material_code
|
|
1508
|
+
// numOne.push(i.f_bjq_sid)
|
|
1509
|
+
// }
|
|
1510
|
+
// })
|
|
1511
|
+
// })
|
|
1512
|
+
if (!bjqlag){
|
|
1513
|
+
this.$showMessage('请添加报警器物料信息!!!')
|
|
1514
|
+
return
|
|
1515
|
+
}
|
|
1516
|
+
if (numOne.length > 1){
|
|
1517
|
+
this.$showMessage("暂时支持单个报警器物料安装!!!")
|
|
1518
|
+
return
|
|
1519
|
+
}
|
|
1520
|
+
datatemp.sqvalue = this.show_data.areaData.sqvalue
|
|
1521
|
+
datatemp.f_bjq_baidu_lng = this.show_data.templatlng.baidutemplng
|
|
1522
|
+
datatemp.f_bjq_baidu_lat = this.show_data.templatlng.baidutemplat
|
|
1523
|
+
datatemp.f_bjq_gaode_lng = this.show_data.templatlng.gaodetemplng
|
|
1524
|
+
datatemp.f_bjq_gaode_lat = this.show_data.templatlng.gaodetemplat
|
|
1525
|
+
datatemp.f_bjq_lng = this.show_data.templatlng.baidutemplng
|
|
1526
|
+
datatemp.f_bjq_lat = this.show_data.templatlng.baidutemplat
|
|
1527
|
+
|
|
1528
|
+
bjqststedata.f_userinfo_code = this.show_data.f_userinfo_code
|
|
1529
|
+
|
|
1530
|
+
//判断是否推送 及推送的状态
|
|
1531
|
+
//查询是否存在, 以型号及厂家判断
|
|
1532
|
+
let bjqres = await this.$resetpost(
|
|
1533
|
+
`rs/logic/getbjqsyncinfo`,
|
|
1534
|
+
bjqststedata
|
|
1535
|
+
)
|
|
1536
|
+
if (bjqres.data.bjqstate != "成功"){
|
|
1537
|
+
//区域地址存入材料记录表
|
|
1538
|
+
let areares = await this.$resetpost(
|
|
1539
|
+
`rs/logic/saveArea`,
|
|
1540
|
+
{data: datatemp},
|
|
1541
|
+
{resolveMsg: null, rejectMsg: '区域地址保存失败'}
|
|
1542
|
+
)
|
|
1543
|
+
|
|
1544
|
+
//完工之后推送数据到汉威
|
|
1545
|
+
let adddata = {
|
|
1546
|
+
f_bjq_sid : datatemp.f_bjq_sid,
|
|
1547
|
+
f_material_code : datatemp.f_material_code,
|
|
1548
|
+
f_bjq_address: this.show_data.areaData.sqvalue,
|
|
1549
|
+
f_user_name: this.show_data.f_user_name,
|
|
1550
|
+
f_address: this.show_data.f_address,
|
|
1551
|
+
f_user_phone: this.show_data.f_phone,
|
|
1552
|
+
f_userinfo_code: this.show_data.f_userinfo_code,
|
|
1553
|
+
installtime: this.show_data.f_construction_date,
|
|
1554
|
+
f_orgid : this.show_data.f_orgid,
|
|
1555
|
+
f_bjq_lng: datatemp.f_bjq_baidu_lng,
|
|
1556
|
+
f_bjq_lat: datatemp.f_bjq_baidu_lat
|
|
1557
|
+
}
|
|
1558
|
+
let res = await this.$resetpost(
|
|
1559
|
+
`ncc/rs/logic/bjqadduser`,
|
|
1560
|
+
// `rs/logic/bjqadduser`,
|
|
1561
|
+
adddata
|
|
1562
|
+
)
|
|
1563
|
+
if (res.data.code != 200){
|
|
1564
|
+
if (bjqres.data.bjqstate.length == 0){
|
|
1565
|
+
bjqststedata.bjqstate = "失败"
|
|
1566
|
+
let bjqres3 = await this.$resetpost(
|
|
1567
|
+
`rs/logic/addbjqsyncinfo`,
|
|
1568
|
+
bjqststedata
|
|
1569
|
+
)
|
|
1570
|
+
}
|
|
1571
|
+
this.$showMessage(res.data.msg)
|
|
1572
|
+
return
|
|
1573
|
+
}
|
|
1574
|
+
//更改记录表状态
|
|
1575
|
+
if (bjqres.data.bjqstate === "失败"){
|
|
1576
|
+
bjqststedata.bjqstate = "成功"
|
|
1577
|
+
let bjqres1 = await this.$resetpost(
|
|
1578
|
+
`rs/logic/updatebjqsyncinfo`,
|
|
1579
|
+
bjqststedata
|
|
1580
|
+
)
|
|
1581
|
+
}else{
|
|
1582
|
+
bjqststedata.bjqstate = "成功"
|
|
1583
|
+
let bjqres2 = await this.$resetpost(
|
|
1584
|
+
`rs/logic/addbjqsyncinfo`,
|
|
1585
|
+
bjqststedata
|
|
1586
|
+
)
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
if ((this.show_data.f_apply_type === '工商户报建' || this.show_data.f_apply_type === '团购报建')
|
|
1591
|
+
&& (this.show_data.defname === '报装申请') && this.show_data.button.button_name === '提交'){
|
|
1592
|
+
await this.contract_number()
|
|
1593
|
+
}
|
|
1594
|
+
if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && (this.show_data.button.button_name === '保存'||this.show_data.button.button_name === '提交')){
|
|
1595
|
+
let dataz = {
|
|
1596
|
+
condition: `u.id = ${this.show_data.id}`,
|
|
1597
|
+
data: {
|
|
1598
|
+
id: this.$login.f.id,
|
|
1599
|
+
orgid: this.$login.f.orgid
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
let http = new HttpResetClass()
|
|
1603
|
+
let restpz = await http.load(
|
|
1604
|
+
'POST',
|
|
1605
|
+
`rs/sql/checkuser`,
|
|
1606
|
+
{data: dataz},
|
|
1607
|
+
{resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
1608
|
+
)
|
|
1609
|
+
this.show_data.actid=restpz.data[0].actid
|
|
1610
|
+
}
|
|
1103
1611
|
let res = await this.$resetpost(
|
|
1104
1612
|
`rs/logic/ApplyProductService`,
|
|
1105
1613
|
{data: this.show_data},
|
|
1106
1614
|
{resolveMsg: null, rejectMsg: '数据保存失败'}
|
|
1107
1615
|
)
|
|
1108
1616
|
|
|
1617
|
+
|
|
1109
1618
|
if (this.show_data.button.after) {
|
|
1110
1619
|
this[this.show_data.button.after]()
|
|
1111
1620
|
}
|
|
1112
|
-
|
|
1621
|
+
// 改管报建 增容报建 优化
|
|
1622
|
+
if((this.show_data.f_apply_type === '改管报建'||this.show_data.f_apply_type === '增容报建') && this.show_data.defname === '报装申请' && this.show_data.button.button_name === '缴费'){
|
|
1623
|
+
let datagg = {
|
|
1624
|
+
condition: `t.f_process_id='${this.show_data.f_process_id}'`,
|
|
1625
|
+
}
|
|
1626
|
+
let http = new HttpResetClass()
|
|
1627
|
+
let restgg = await http.load(
|
|
1628
|
+
'POST',
|
|
1629
|
+
`rs/sql/checkusertwo`,
|
|
1630
|
+
{data: datagg},
|
|
1631
|
+
{resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
1632
|
+
)
|
|
1633
|
+
debugger
|
|
1634
|
+
if(this.show_data.f_apply_type === '改管报建'){
|
|
1635
|
+
restgg.data[0].processname = '改管报建流程'
|
|
1636
|
+
restgg.data[0].defname = '报装缴费'
|
|
1637
|
+
}else{
|
|
1638
|
+
restgg.data[0].processname = '增容报建流程'
|
|
1639
|
+
restgg.data[0].defname = '报装缴费'
|
|
1640
|
+
}
|
|
1641
|
+
restgg.data[0].actid = restgg.data[0].actid + 1
|
|
1642
|
+
this.$dispatch('apply',restgg.data[0])
|
|
1643
|
+
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1646
|
+
// 退款报建 优化
|
|
1647
|
+
if(this.show_data.f_apply_type === '退款报建' && this.show_data.defname === '终止报建' && this.show_data.button.button_name === '提交'){
|
|
1648
|
+
let datatk = {
|
|
1649
|
+
condition: `t.f_process_id='${this.show_data.f_process_id}'`,
|
|
1650
|
+
}
|
|
1651
|
+
let http = new HttpResetClass()
|
|
1652
|
+
let resttk = await http.load(
|
|
1653
|
+
'POST',
|
|
1654
|
+
`rs/sql/checkusertwo`,
|
|
1655
|
+
{data: datatk},
|
|
1656
|
+
{resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
1657
|
+
)
|
|
1658
|
+
debugger
|
|
1659
|
+
resttk.data[0].processname = '退款报建流程'
|
|
1660
|
+
resttk.data[0].defname = '退款'
|
|
1661
|
+
this.$dispatch('apply',resttk.data[0])
|
|
1662
|
+
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
|
|
1666
|
+
if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装申请' && this.show_data.button.button_name === '合同'){
|
|
1667
|
+
let data = {
|
|
1668
|
+
tablename: 't_apply',
|
|
1669
|
+
condition: `f_process_id='${this.show_data.f_process_id}'`
|
|
1670
|
+
}
|
|
1671
|
+
let http = new HttpResetClass()
|
|
1672
|
+
let restp = await http.load(
|
|
1673
|
+
'POST',
|
|
1674
|
+
`rs/sql/singleTable`,
|
|
1675
|
+
{data: data},
|
|
1676
|
+
{resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
1677
|
+
)
|
|
1678
|
+
debugger
|
|
1679
|
+
restp.data[0].processname = '散户报建流程'
|
|
1680
|
+
restp.data[0].defname = '合同签订'
|
|
1681
|
+
this.$dispatch('apply',restp.data[0])
|
|
1682
|
+
|
|
1683
|
+
} else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && this.show_data.button.button_name === '提交'){
|
|
1684
|
+
let data2 = {
|
|
1685
|
+
condition: `u.id = ${this.show_data.id}`,
|
|
1686
|
+
data: {
|
|
1687
|
+
id: this.$login.f.id,
|
|
1688
|
+
orgid: this.$login.f.orgid
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
let http = new HttpResetClass()
|
|
1692
|
+
let restp1 = await http.load(
|
|
1693
|
+
'POST',
|
|
1694
|
+
`rs/sql/checkuser`,
|
|
1695
|
+
{data: data2},
|
|
1696
|
+
{resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
1697
|
+
)
|
|
1698
|
+
debugger
|
|
1699
|
+
console.log('有没有发请求打印查询的内容restp1',restp1)
|
|
1700
|
+
// restp1.data[0].processname = '散户报建流程'
|
|
1701
|
+
// restp1.data[0].defname = '报装缴费'
|
|
1702
|
+
this.$dispatch('apply',restp1.data[0])
|
|
1703
|
+
}else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装缴费' && this.show_data.button.button_name === '提交'){
|
|
1704
|
+
let data3 = {
|
|
1705
|
+
condition: `u.id = ${this.show_data.id}`,
|
|
1706
|
+
data: {
|
|
1707
|
+
id: this.$login.f.id,
|
|
1708
|
+
orgid: this.$login.f.orgid
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
let http = new HttpResetClass()
|
|
1712
|
+
let restp2 = await http.load(
|
|
1713
|
+
'POST',
|
|
1714
|
+
`rs/sql/checkuser`,
|
|
1715
|
+
{data: data3},
|
|
1716
|
+
{resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
1717
|
+
)
|
|
1718
|
+
debugger
|
|
1719
|
+
console.log('打印查询的内容',restp2)
|
|
1720
|
+
if(restp2.length>0){
|
|
1721
|
+
this.$dispatch('apply',restp2.data[0])
|
|
1722
|
+
}else{
|
|
1723
|
+
debugger
|
|
1724
|
+
this.$dispatch('loadPage')
|
|
1725
|
+
}
|
|
1726
|
+
}
|
|
1727
|
+
else{
|
|
1728
|
+
this.$dispatch('loadPage')
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1113
1731
|
},
|
|
1114
1732
|
// 失去焦点出触发事件
|
|
1115
1733
|
'onchange' (index) {
|
|
1116
1734
|
if (this.show_data.defname === '报装申请' || this.show_data.defname === '信息确认') {
|
|
1117
1735
|
if (
|
|
1118
|
-
this.show_data.fields[index].label === '
|
|
1119
|
-
this.show_data.fields[index].label === '
|
|
1120
|
-
this.show_data.fields[index].label === '
|
|
1121
|
-
this.show_data.fields[index].label === '
|
|
1122
|
-
this.show_data.fields[index].label === '
|
|
1736
|
+
this.show_data.fields[index].label === '区/县' ||
|
|
1737
|
+
this.show_data.fields[index].label === '街道/乡镇' ||
|
|
1738
|
+
this.show_data.fields[index].label === '集收单位' ||
|
|
1739
|
+
this.show_data.fields[index].label === '楼号/组' ||
|
|
1740
|
+
this.show_data.fields[index].label === '单元/排' ||
|
|
1123
1741
|
this.show_data.fields[index].label === '楼层' ||
|
|
1124
1742
|
this.show_data.fields[index].label === '门牌号'
|
|
1125
1743
|
) {
|
|
1126
1744
|
|
|
1127
|
-
let f_pcd = this.getLableValue('
|
|
1128
|
-
let f_street = this.getLableValue('
|
|
1129
|
-
let f_residential_area = this.getLableValue('
|
|
1130
|
-
let f_building = this.getLableValue('
|
|
1745
|
+
let f_pcd = this.getLableValue('区/县') || ''
|
|
1746
|
+
let f_street = this.getLableValue('街道/乡镇') || ''
|
|
1747
|
+
let f_residential_area = this.getLableValue('集收单位') || ''
|
|
1748
|
+
let f_building = this.getLableValue('楼号/组') || ''
|
|
1131
1749
|
let f_building_suffix = f_building ? this.config.f_building_suffix : ''
|
|
1132
|
-
let f_unit = this.getLableValue('
|
|
1750
|
+
let f_unit = this.getLableValue('单元/排') || ''
|
|
1133
1751
|
let f_unit_suffix = f_unit ? this.config.f_unit_suffix : ''
|
|
1134
1752
|
let f_floor = this.getLableValue('楼层') || ''
|
|
1135
1753
|
let f_floor_suffix = f_floor ? this.config.f_floor_suffix : ''
|