apply-clients 3.5.4-7 → 3.5.4-72

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.
Files changed (105) hide show
  1. package/build/dev-server.js +7 -11
  2. package/package.json +2 -2
  3. package/src/App.vue +25 -25
  4. package/src/apply.js +2 -3
  5. package/src/applyAndroid.js +2 -0
  6. package/src/assets//344/270/213/350/275/275.png +0 -0
  7. package/src/components/android/AppCheckTakePic.vue +168 -0
  8. package/src/components/android/Process/AppServiceControl.vue +4 -0
  9. package/src/components/android/Process/Processes/AppAddMaterialScience.vue +493 -493
  10. package/src/components/android/Process/Processes/AppChargeManagementNew.vue +637 -0
  11. package/src/components/android/Process/Processes/AppInstallationDetails.vue +480 -480
  12. package/src/components/image/dxf.png +0 -0
  13. package/src/components/product/Function/Service/FunctionServiceControl.vue +1 -1
  14. package/src/components/product/Material/MaterialDetailed.vue +1 -1
  15. package/src/components/product/MaterialsManage/MaterialsBase.vue +5 -1
  16. package/src/components/product/MaterialsManage/MaterialsManage.vue +2 -2
  17. package/src/components/product/PcZhihuanManagement.vue +160 -0
  18. package/src/components/product/Process/ExplorationSelect.vue +4 -1
  19. package/src/components/product/Process/ExplorationUser.vue +1 -0
  20. package/src/components/product/Process/Processes/addMaterialScience.vue +471 -471
  21. package/src/components/product/Process/Processes/chargeManagement.vue +1 -1
  22. package/src/components/product/ServiceView.vue +22 -1
  23. package/src/components/product/Supervisory/SupervisoryControl.vue +141 -140
  24. package/src/components/product/Supervisory/SupervisoryList.vue +452 -452
  25. package/src/filiale/baiyin/android/AppServiceControl.vue +1762 -0
  26. package/src/filiale/baiyin/android/ByAddMaterialScience.vue +823 -0
  27. package/src/filiale/baiyin/android/ByDeviceManagement.vue +916 -0
  28. package/src/filiale/baiyin/android.js +8 -0
  29. package/src/filiale/fugou/android/AppAddMaterialScience.vue +442 -0
  30. package/src/filiale/fugou/android/AppChargeManagement.vue +126 -12
  31. package/src/filiale/fugou/android/AppDevicesManagement.vue +519 -0
  32. package/src/filiale/fugou/android/AppInstallationDetails.vue +541 -0
  33. package/src/filiale/fugou/android/AppServiceControl.vue +21 -4
  34. package/src/filiale/fugou/android/AppZhihuanManagement.vue +191 -0
  35. package/src/filiale/fugou/android.js +6 -1
  36. package/src/filiale/fugou/pc/ExplorationSelect.vue +515 -0
  37. package/src/filiale/fugou/pc/InstallationDetails.vue +44 -32
  38. package/src/filiale/fugou/pc/ServiceControl.vue +124 -379
  39. package/src/filiale/fugou/pc/addMaterialScience.vue +482 -0
  40. package/src/filiale/fugou/pc/devicesManagement.vue +483 -0
  41. package/src/filiale/fugou/pc.js +4 -1
  42. package/src/filiale/gongyi/android/AppAddMaterialScience.vue +20 -8
  43. package/src/filiale/gongyi/android/AppDisclosurerecord.vue +214 -0
  44. package/src/filiale/gongyi/android/AppInstallationDetails.vue +15 -10
  45. package/src/filiale/gongyi/android/AppLegacyIssues.vue +309 -0
  46. package/src/filiale/gongyi/android/AppSign.vue +16 -3
  47. package/src/filiale/gongyi/android/AppSupplementalAgreement.vue +298 -0
  48. package/src/filiale/gongyi/android.js +3 -0
  49. package/src/filiale/gongyi/pc/ApplyUpload.vue +31 -39
  50. package/src/filiale/gongyi/pc/PcAddLogs.vue +12 -4
  51. package/src/filiale/gongyi/pc/PcDisclosurerecord.vue +218 -0
  52. package/src/filiale/gongyi/pc/PcLegacyIssues.vue +309 -0
  53. package/src/filiale/gongyi/pc/SupervisoryServiceControl.vue +1 -1
  54. package/src/filiale/gongyi/pc/SupervisoryServiceView.vue +1005 -0
  55. package/src/filiale/gongyi/pc/addMaterialScience.vue +43 -7
  56. package/src/filiale/gongyi/pc/chargeManagement.vue +765 -0
  57. package/src/filiale/gongyi/pc/supplementalAgreement.vue +277 -0
  58. package/src/filiale/gongyi/pc.js +6 -1
  59. package/src/filiale/hongda/pc/SupervisoryList.vue +13 -0
  60. package/src/filiale/jinhuang/pc/ServiceControl.vue +1925 -0
  61. package/src/filiale/jinhuang/pc/chargeManagementNew.vue +589 -0
  62. package/src/filiale/jinhuang/pc.js +7 -0
  63. package/src/filiale/qianneng/android/AppChargeManagement.vue +686 -0
  64. package/src/filiale/qianneng/android/AppExplorationUser.vue +38 -0
  65. package/src/filiale/qianneng/android/AppInstallationDetails.vue +20 -11
  66. package/src/filiale/qianneng/android.js +2 -1
  67. package/src/filiale/qianneng/pc/ApplyUpload.vue +5 -4
  68. package/src/filiale/qianneng/pc/Applybatchdispatch.vue +11 -6
  69. package/src/filiale/qianneng/pc/Applydetail.vue +0 -5
  70. package/src/filiale/qianneng/pc/InstallFunction.vue +2 -2
  71. package/src/filiale/qianneng/pc/InstallationDetails.vue +32 -4
  72. package/src/filiale/qianneng/pc/ServiceControl.vue +1 -0
  73. package/src/filiale/qianneng/pc/printactivatecard.vue +6 -6
  74. package/src/filiale/ruihua/pc/InstallationDetails.vue +610 -610
  75. package/src/filiale/ruihua/pc/ServiceControl.vue +20 -0
  76. package/src/filiale/ruihua/pc/printVentilation.vue +21 -6
  77. package/src/filiale/ruihua/pc.js +12 -12
  78. package/src/filiale/shexian/android/AppServiceControl.vue +12 -2
  79. package/src/filiale/shexian/android/AppTakePic.vue +15 -55
  80. package/src/filiale/siyangRH/android/AppAddMaterialScience.vue +0 -2
  81. package/src/filiale/siyangRH/pc/chargeManagement.vue +810 -0
  82. package/src/filiale/siyangRH/pc.js +1 -0
  83. package/src/filiale/yangchunboneng/android/AppChargeManagement.vue +16 -1
  84. package/src/filiale/yangchunboneng/android/AppDevicesManagement.vue +32 -2
  85. package/src/filiale/yangchunboneng/android/AppExplorationUser.vue +518 -506
  86. package/src/filiale/yangchunboneng/android/AppInstallationMaterial.vue +1083 -1092
  87. package/src/filiale/yangchunboneng/android/AppServiceControl.vue +34 -1
  88. package/src/filiale/yangchunboneng/android/AppSuperServiceControl.vue +1524 -1524
  89. package/src/filiale/yangchunboneng/android/AppUpload.vue +205 -136
  90. package/src/filiale/yangchunboneng/android/MaterIialOne.vue +156 -144
  91. package/src/filiale/yangchunboneng/android.js +20 -20
  92. package/src/filiale/yangchunboneng/pc/ApplyUpload.vue +392 -375
  93. package/src/filiale/yangchunboneng/pc/ExplorationSelect.vue +59 -19
  94. package/src/filiale/yangchunboneng/pc/ExplorationUser.vue +191 -0
  95. package/src/filiale/yangchunboneng/pc/InstallInfoSelect.vue +365 -365
  96. package/src/filiale/yangchunboneng/pc/ServiceControl.vue +206 -2
  97. package/src/filiale/yangchunboneng/pc/SupervisoryControlNew.vue +142 -0
  98. package/src/filiale/yangchunboneng/pc/SupervisoryList.vue +590 -535
  99. package/src/filiale/yangchunboneng/pc/SupervisoryListNew.vue +628 -0
  100. package/src/filiale/yangchunboneng/pc/SupervisoryServiceControl.vue +902 -0
  101. package/src/filiale/yangchunboneng/pc/SupervisoryServiceControlNew.vue +901 -0
  102. package/src/filiale/yangchunboneng/pc/SupervisoryServiceView.vue +1117 -0
  103. package/src/filiale/yangchunboneng/pc/chargeManagement.vue +111 -13
  104. package/src/filiale/yangchunboneng/pc.js +24 -18
  105. package/src/main.js +1 -1
@@ -43,6 +43,9 @@
43
43
  this.refurbish()
44
44
  },
45
45
  methods: {
46
+ getServicPeo(){
47
+ this.setLabelValue("服务人",this.$login.f.name)
48
+ },
46
49
  async servicer(){
47
50
  let data = {
48
51
  tablename: 't_user',
@@ -166,8 +169,13 @@
166
169
 
167
170
  }
168
171
  }
169
-
170
-
172
+ if(item.rolename){
173
+ //判断当前用户是否有这个角色
174
+ if(!this.$login.f.rolestr.includes(item.rolename)){
175
+ item.readonly=true
176
+ item.disabled=true
177
+ }
178
+ }
171
179
  if (item.type === 'checkbox') {
172
180
  if (this.selectdata[item.field]) {
173
181
  item.value = JSON.parse(this.selectdata[item.field])
@@ -309,6 +317,7 @@
309
317
  this.$nextTick(() => {
310
318
  this.showview = true
311
319
  })
320
+ this.getServicPeo()
312
321
  },
313
322
  // 金额转大写
314
323
  smalltoBIG(n) {
@@ -523,6 +532,25 @@
523
532
  throw null
524
533
  }
525
534
  },
535
+ // 缴费前置
536
+ async gethostBefore () {
537
+ let data = {
538
+ tablename: 't_apply',
539
+ condition: `f_process_id = '${this.show_data.f_parent_process_id}'`
540
+ }
541
+ let http = new HttpResetClass()
542
+ let res = await http.load(
543
+ 'POST',
544
+ `rs/sql/apply_singleTable`,
545
+ {data: data},
546
+ {resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
547
+ )
548
+ let show_data = res.data[0]
549
+ if (Number(show_data.f_due_money) > Number(show_data.f_cumulative_payment_money) || Number(show_data.f_surplus_money) > 0) {
550
+ this.$showAlert('主流程费用未结清!!!', 'warning', 3000)
551
+ throw null
552
+ }
553
+ },
526
554
  // 施工前置 加表具后状态是待开通 提交后是正常 所以这里的判断条件需改正 (and uf.f_meter_classify is null and f_meternumber is null)
527
555
  async constructionBefore () {
528
556
  let http = new HttpResetClass()
@@ -542,6 +570,66 @@
542
570
  throw `还有${res.data[0].num}户未安装,无法提交`
543
571
  }
544
572
  },
573
+ async materialinput () {
574
+ let http = new HttpResetClass()
575
+ let data = {
576
+ condition: `f_parent_process_id = '${this.show_data.f_process_id}'`,
577
+ defname: ` defname = '工程施工' and state = '结束'`
578
+ }
579
+ let res = await http.load(
580
+ 'POST',
581
+ 'rs/sql/getdefnamenum',
582
+ {data: data},
583
+ {
584
+ resolveMsg: null,
585
+ rejectMsg: '子流程工程施工结束数量查询失败!!!'
586
+ })
587
+ if (res.data[0].num > res.data[0].actnum) {
588
+ let num = res.data[0].num - res.data[0].actnum
589
+ this.$showAlert(`还有${num}户工程施工未结束,无法提交!!!`, 'warning', 3000)
590
+ throw `还有${num}户工程施工未结束,无法提交!!!`
591
+ }
592
+ },
593
+ async qualitytesting () {
594
+ let http = new HttpResetClass()
595
+ let data = {
596
+ condition: `f_parent_process_id = '${this.show_data.f_process_id}'`,
597
+ defname: ` defname = '质检' and state = '结束'`
598
+ }
599
+ let res = await http.load(
600
+ 'POST',
601
+ 'rs/sql/getdefnamenum',
602
+ {data: data},
603
+ {
604
+ resolveMsg: null,
605
+ rejectMsg: '子流程工程施工结束数量查询失败!!!'
606
+ })
607
+ if (this.show_data.f_installed_households > res.data[0].actnum) {
608
+ let num = this.show_data.f_installed_households - res.data[0].actnum
609
+ this.$showAlert(`还有${num}户质检未结束,无法提交!!!`, 'warning', 3000)
610
+ throw `还有${num}户质检未结束,无法提交!!!`
611
+ }
612
+ },
613
+ async construction () {
614
+ let http = new HttpResetClass()
615
+ let data = {
616
+ condition: `f_parent_process_id = '${this.show_data.f_process_id}'`,
617
+ defname: ` defname = '完工' and state = '开始活动'`
618
+ }
619
+ let res = await http.load(
620
+ 'POST',
621
+ 'rs/sql/getdefnamenum',
622
+ {data: data},
623
+ {
624
+ resolveMsg: null,
625
+ rejectMsg: '子流程完工数量查询失败!!!'
626
+ })
627
+ if (res.data[0].num > res.data[0].actnum) {
628
+ let num = res.data[0].num - res.data[0].actnum
629
+ this.$showAlert(`还有${num}户子流程未完工,无法提交!!!`, 'warning', 3000)
630
+ throw `还有${num}户子流程未完工,无法提交!!!`
631
+ }
632
+ },
545
633
  changePipeBuild () {
546
634
  if (this.selectdata.f_process_dep === '工程部') {
547
635
  return 'this.getParentByType($organization$).getChildByName($工程部报装$).getChildren()'
@@ -605,7 +693,7 @@
605
693
  let f_address_type = this.show_data.f_address_type
606
694
  for (const item of this.show_data.fields) {
607
695
  if (f_address_type === '民用市区') {
608
- if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号'|| item.label === '小区') {
696
+ if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '小区') {
609
697
  item.hidden = false
610
698
  item.required = true
611
699
  }
@@ -618,7 +706,7 @@
618
706
  }
619
707
  }
620
708
  if (f_address_type === '民用乡镇') {
621
- if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号'|| item.label === '小区') {
709
+ if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '小区') {
622
710
  item.hidden = false
623
711
  item.required = true
624
712
  }
@@ -648,7 +736,7 @@
648
736
  }
649
737
 
650
738
  }
651
- if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层' || item.label === '门牌号') {
739
+ if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层' ) {
652
740
  item.hidden = true
653
741
  item.required = false
654
742
  }
@@ -781,91 +869,6 @@
781
869
  month: nowDate.getMonth() + 1,
782
870
  day: nowDate.getDate()
783
871
  }
784
-
785
- function upperCaseChars(dir) {
786
- let string = '';
787
- switch (dir){
788
- case '周口市天然气有限公司':
789
- string = 'ZK' // 当表达式的结果等于 房产 时,则执行该代码
790
- break;
791
- case '项城市天然气有限公司':
792
- string = "XC" // 当表达式的结果等于 自建房 时,则执行该代码
793
- break;
794
- case '西华县天然气有限公司':
795
- string = 'XH' // 当表达式的结果等于 商业 时,则执行该代码
796
- break;
797
- case '鹿邑县天然气有限公司':
798
- string = 'LY' // 当表达式的结果等于 工业 时,则执行该代码
799
- break;
800
- case '郸城县天然气有限公司':
801
- string = 'DC' // 当表达式的结果等于 中压 时,则执行该代码
802
- break;
803
- case '测试公司(一)':
804
- string = 'CS' // 当表达式的结果等于 中压 时,则执行该代码
805
- break;
806
- case '甘泉县丰源天然气有限责任公司':
807
- string = 'GQ' // 当表达式的结果等于 中压 时,则执行该代码
808
- break;
809
- default : 'HT'
810
- break; // 如果没有与表达式相同的公司,则执行该代码
811
- }
812
- return string;
813
- }
814
-
815
- const dir = upperCaseChars(this.$login.f.orgs) //分公司
816
-
817
- let type = 0 //类型
818
-
819
- switch (this.show_data.f_entry_type){
820
- case '城区/县城':
821
- type = 1 // 当表达式的结果等于 城区 时,则执行该代码
822
- break;
823
- case '新农村':
824
- type = 2 // 当表达式的结果等于 新农村 时,则执行该代码
825
- break;
826
- case '测试':
827
- type = 3 // 当表达式的结果等于 新农村 时,则执行该代码
828
- break;
829
- default :
830
- break; // 如果没有与表达式相同的值,则执行该代码
831
- }
832
-
833
- let nature = 0 // 性质
834
- switch (this.show_data.f_apply_nature){
835
- case '楼房':
836
- nature = 1 // 当表达式的结果等于 楼房 时,则执行该代码
837
- break;
838
- case '房产':
839
- nature = 1 // 当表达式的结果等于 房产 时,则执行该代码
840
- break;
841
- case '自建房':
842
- nature = 2 // 当表达式的结果等于 自建房 时,则执行该代码
843
- break;
844
- case '商业':
845
- nature = 3 // 当表达式的结果等于 商业 时,则执行该代码
846
- break;
847
- case '学校':
848
- nature = 3 // 当表达式的结果等于 学校 时,则执行该代码
849
- break;
850
- case '福利机构':
851
- nature = 3 // 当表达式的结果等于 福利机构 时,则执行该代码
852
- break;
853
- case '其他':
854
- nature = 3 // 当表达式的结果等于 其他 时,则执行该代码
855
- break;
856
- case '工业':
857
- nature = 4 // 当表达式的结果等于 工业 时,则执行该代码
858
- break;
859
- case '中压':
860
- nature = 5 // 当表达式的结果等于 中压 时,则执行该代码
861
- break;
862
- case '测试':
863
- nature = 6 // 当表达式的结果等于 中压 时,则执行该代码
864
- break;
865
- default :
866
- break; // 如果没有与表达式相同的值,则执行该代码
867
- }
868
-
869
872
  const newMonth = date.month >= 10 ? date.month : '0' + date.month //月份
870
873
  const dataYm = date.year + '-01-01'
871
874
  const newYear = date.year + 1
@@ -1405,7 +1408,7 @@
1405
1408
  let f_address_type = this.show_data.fields[index].value
1406
1409
  for (const item of this.show_data.fields) {
1407
1410
  if (f_address_type === '民用市区') {
1408
- if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号'|| item.label === '小区') {
1411
+ if ( item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '小区') {
1409
1412
  item.hidden = false
1410
1413
  item.required = true
1411
1414
  item.value = null
@@ -1421,7 +1424,7 @@
1421
1424
  }
1422
1425
  }
1423
1426
  if (f_address_type === '民用乡镇') {
1424
- if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号'|| item.label === '小区') {
1427
+ if ( item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '小区') {
1425
1428
  item.hidden = false
1426
1429
  item.required = true
1427
1430
  item.value = null
@@ -1442,7 +1445,7 @@
1442
1445
  }
1443
1446
  }
1444
1447
  if (f_address_type === '特殊地址') {
1445
- if (item.label === '区/县' || item.label === '街道/乡镇') {
1448
+ if ( item.label === '街道/乡镇') {
1446
1449
  item.hidden = false
1447
1450
  item.required = true
1448
1451
  item.value = null
@@ -1452,7 +1455,7 @@
1452
1455
  item.required = false
1453
1456
  item.value = null
1454
1457
  }
1455
- if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层' || item.label === '门牌号') {
1458
+ if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层' ) {
1456
1459
  item.hidden = true
1457
1460
  item.required = false
1458
1461
  item.value = null
@@ -1463,6 +1466,7 @@
1463
1466
  }
1464
1467
  }
1465
1468
  }
1469
+ this.pcdChange()
1466
1470
  },
1467
1471
  // 团购转散户初始化
1468
1472
  'apply2ReadyEvent' () {
@@ -1499,163 +1503,6 @@
1499
1503
  this.show_data.start_activity = this.$workflow_vue.start_activity
1500
1504
  this.show_data.xmlfilename = this.$workflow_vue.workflow_xmlfilename
1501
1505
 
1502
- 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 === '完工'){
1503
- //判断是否添加报警器材料
1504
- let bjqlag = false
1505
- let datatemp = {
1506
- 'bjqid':"",
1507
- 'fprocessid':"",
1508
- 'sqvalue':"",
1509
- 'f_bjq_sid':"",
1510
- 'f_material_code':"",
1511
- 'f_bjq_baidu_lng':"",
1512
- 'f_bjq_baidu_lat':"",
1513
- 'f_bjq_gaode_lng':"",
1514
- 'f_bjq_gaode_lat':""
1515
- }
1516
-
1517
- let bjqststedata = {
1518
- "sid":"",
1519
- "bjqtype":"",
1520
- "f_process_id":"",
1521
- "bjqstate":"",
1522
- "f_userinfo_code":""
1523
- }
1524
- let numOne = [];
1525
-
1526
- let http = new HttpResetClass()
1527
- let data = {
1528
- tablename: `t_material_apply`,
1529
- condition: `f_process_id='${this.show_data.f_process_id}'`
1530
- }
1531
- let res = await http.load(
1532
- 'POST',
1533
- `rs/sql/apply_singleTable`,
1534
- {data: data},
1535
- {resolveMsg: null, rejectMsg: 'onetomany查询失败'}
1536
- )
1537
- res.data.forEach(item => {
1538
- if (item.f_material_name.substr(0,3) === '报警器'){
1539
- var bjname = item.f_material_name.split("-")
1540
- bjqststedata.sid = item.f_bjq_sid
1541
- bjqststedata.f_process_id = item.f_process_id
1542
- bjqststedata.bjqtype = bjname[1]
1543
- //====================================
1544
- bjqlag = true
1545
- datatemp.bjqid = item.id
1546
- datatemp.fprocessid = item.f_process_id
1547
- datatemp.f_bjq_sid = item.f_bjq_sid
1548
- datatemp.f_material_code = item.f_material_code
1549
- datatemp.f_bjq_lng = item.f_bjq_lng
1550
- datatemp.f_bjq_lat = item.f_bjq_lat
1551
- datatemp.f_bjq_gaode_lng = item.f_bjq_gaode_lng
1552
- datatemp.f_bjq_gaode_lat = item.f_bjq_gaode_lng
1553
- datatemp.f_bjq_baidu_lng = item.f_bjq_baidu_lng
1554
- datatemp.f_bjq_baidu_lat = item.f_bjq_baidu_lat
1555
- numOne.push(item.f_bjq_sid)
1556
- }
1557
- })
1558
-
1559
- // this.show_data.onetomany.forEach(item=>{
1560
- // console.log("查看报警器材料",item)
1561
- // item.rows.forEach(i=>{
1562
- // if (i.f_material_name.substr(0,3) === '报警器'){
1563
- // var bjname = i.f_material_name.split("-")
1564
- // bjqststedata.sid = i.f_bjq_sid
1565
- // bjqststedata.f_process_id = i.f_process_id
1566
- // bjqststedata.bjqtype = bjname[1]
1567
- // //====================================
1568
- // bjqlag = true
1569
- // datatemp.bjqid = i.id
1570
- // datatemp.fprocessid = i.f_process_id
1571
- // datatemp.f_bjq_sid = i.f_bjq_sid
1572
- // datatemp.f_material_code = i.f_material_code
1573
- // numOne.push(i.f_bjq_sid)
1574
- // }
1575
- // })
1576
- // })
1577
- if (!bjqlag){
1578
- this.$showMessage('请添加报警器物料信息!!!')
1579
- return
1580
- }
1581
- if (numOne.length > 1){
1582
- this.$showMessage("暂时支持单个报警器物料安装!!!")
1583
- return
1584
- }
1585
- datatemp.sqvalue = this.show_data.areaData.sqvalue
1586
- datatemp.f_bjq_baidu_lng = this.show_data.templatlng.baidutemplng
1587
- datatemp.f_bjq_baidu_lat = this.show_data.templatlng.baidutemplat
1588
- datatemp.f_bjq_gaode_lng = this.show_data.templatlng.gaodetemplng
1589
- datatemp.f_bjq_gaode_lat = this.show_data.templatlng.gaodetemplat
1590
- datatemp.f_bjq_lng = this.show_data.templatlng.baidutemplng
1591
- datatemp.f_bjq_lat = this.show_data.templatlng.baidutemplat
1592
-
1593
- bjqststedata.f_userinfo_code = this.show_data.f_userinfo_code
1594
-
1595
- //判断是否推送 及推送的状态
1596
- //查询是否存在, 以型号及厂家判断
1597
- let bjqres = await this.$resetpost(
1598
- `rs/logic/getbjqsyncinfo`,
1599
- bjqststedata
1600
- )
1601
- if (bjqres.data.bjqstate != "成功"){
1602
- //区域地址存入材料记录表
1603
- let areares = await this.$resetpost(
1604
- `rs/logic/saveArea`,
1605
- {data: datatemp},
1606
- {resolveMsg: null, rejectMsg: '区域地址保存失败'}
1607
- )
1608
-
1609
- //完工之后推送数据到汉威
1610
- let adddata = {
1611
- f_bjq_sid : datatemp.f_bjq_sid,
1612
- f_material_code : datatemp.f_material_code,
1613
- f_bjq_address: this.show_data.areaData.sqvalue,
1614
- f_user_name: this.show_data.f_user_name,
1615
- f_address: this.show_data.f_address,
1616
- f_user_phone: this.show_data.f_phone,
1617
- f_userinfo_code: this.show_data.f_userinfo_code,
1618
- installtime: this.show_data.f_construction_date,
1619
- f_orgid : this.show_data.f_orgid,
1620
- f_bjq_lng: datatemp.f_bjq_baidu_lng,
1621
- f_bjq_lat: datatemp.f_bjq_baidu_lat
1622
- }
1623
- let res = await this.$resetpost(
1624
- `ncc/rs/logic/bjqadduser`,
1625
- // `rs/logic/bjqadduser`,
1626
- adddata
1627
- )
1628
- if (res.data.code != 200){
1629
- if (bjqres.data.bjqstate.length == 0){
1630
- bjqststedata.bjqstate = "失败"
1631
- let bjqres3 = await this.$resetpost(
1632
- `rs/logic/addbjqsyncinfo`,
1633
- bjqststedata
1634
- )
1635
- }
1636
- this.$showMessage(res.data.msg)
1637
- return
1638
- }
1639
- //更改记录表状态
1640
- if (bjqres.data.bjqstate === "失败"){
1641
- bjqststedata.bjqstate = "成功"
1642
- let bjqres1 = await this.$resetpost(
1643
- `rs/logic/updatebjqsyncinfo`,
1644
- bjqststedata
1645
- )
1646
- }else{
1647
- bjqststedata.bjqstate = "成功"
1648
- let bjqres2 = await this.$resetpost(
1649
- `rs/logic/addbjqsyncinfo`,
1650
- bjqststedata
1651
- )
1652
- }
1653
- }
1654
- }
1655
- if ((this.show_data.f_apply_type === '工商户报建' || this.show_data.f_apply_type === '团购报建')
1656
- && (this.show_data.defname === '报装申请') && this.show_data.button.button_name === '提交'){
1657
- await this.contract_number()
1658
- }
1659
1506
  if (this.show_data.defname === '通气点火' && this.show_data.f_is_ventilation == '否'&& this.show_data.button.button_name === '提交' ){
1660
1507
  let data = {
1661
1508
  data: this.show_data,
@@ -1669,23 +1516,18 @@
1669
1516
  this.$dispatch('loadPage')
1670
1517
  return
1671
1518
  }
1672
- // if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && (this.show_data.button.button_name === '保存'||this.show_data.button.button_name === '提交')){
1673
- // let dataz = {
1674
- // condition: `u.id = ${this.show_data.id}`,
1675
- // data: {
1676
- // id: this.$login.f.id,
1677
- // orgid: this.$login.f.orgid
1678
- // }
1679
- // }
1680
- // let http = new HttpResetClass()
1681
- // let restpz = await http.load(
1682
- // 'POST',
1683
- // `rs/sql/checkuser`,
1684
- // {data: dataz},
1685
- // {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
1686
- // )
1687
- // this.show_data.actid=restpz.data[0].actid
1688
- // }
1519
+ if(this.show_data.f_apply_type === '团购报建' && this.show_data.defname === '室内外工程' && this.show_data.button.button_name === '提交'){
1520
+ if(this.show_data.f_no_indoors == '是'){
1521
+ this.show_data.button.button_name = '转散户'
1522
+ }else {
1523
+ this.show_data.button.button_name = '室外'
1524
+ }
1525
+ }
1526
+ if(this.show_data.f_apply_type === '团购报建' && this.show_data.defname === '室外施工' && this.show_data.button.button_name === '提交'){
1527
+ if(this.show_data.f_no_indoors == '否'){
1528
+ this.show_data.button.button_name = '转散户'
1529
+ }
1530
+ }
1689
1531
  let res = await this.$resetpost(
1690
1532
  `rs/logic/ApplyProductService`,
1691
1533
  {data: this.show_data},
@@ -1696,120 +1538,11 @@
1696
1538
  if (this.show_data.button.after) {
1697
1539
  this[this.show_data.button.after]()
1698
1540
  }
1699
- // // 改管报建 增容报建 优化
1700
- // if((this.show_data.f_apply_type === '改管报建'||this.show_data.f_apply_type === '增容报建') && this.show_data.defname === '报装申请' && this.show_data.button.button_name === '缴费'){
1701
- // let datagg = {
1702
- // condition: `t.f_process_id='${this.show_data.f_process_id}'`,
1703
- // }
1704
- // let http = new HttpResetClass()
1705
- // let restgg = await http.load(
1706
- // 'POST',
1707
- // `rs/sql/checkusertwo`,
1708
- // {data: datagg},
1709
- // {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
1710
- // )
1711
- // debugger
1712
- // if(this.show_data.f_apply_type === '改管报建'){
1713
- // restgg.data[0].processname = '改管报建流程'
1714
- // restgg.data[0].defname = '报装缴费'
1715
- // }else{
1716
- // restgg.data[0].processname = '增容报建流程'
1717
- // restgg.data[0].defname = '报装缴费'
1718
- // }
1719
- // restgg.data[0].actid = restgg.data[0].actid + 1
1720
- // this.$dispatch('apply',restgg.data[0])
1721
- //
1722
- // }
1723
- //
1724
- // // 退款报建 优化
1725
- // if(this.show_data.f_apply_type === '退款报建' && this.show_data.defname === '终止报建' && this.show_data.button.button_name === '提交'){
1726
- // let datatk = {
1727
- // condition: `t.f_process_id='${this.show_data.f_process_id}'`,
1728
- // }
1729
- // let http = new HttpResetClass()
1730
- // let resttk = await http.load(
1731
- // 'POST',
1732
- // `rs/sql/checkusertwo`,
1733
- // {data: datatk},
1734
- // {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
1735
- // )
1736
- // debugger
1737
- // resttk.data[0].processname = '退款报建流程'
1738
- // resttk.data[0].defname = '退款'
1739
- // this.$dispatch('apply',resttk.data[0])
1740
- //
1741
- // }
1742
- //
1743
- //
1744
- // if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装申请' && this.show_data.button.button_name === '合同'){
1745
- // let data = {
1746
- // tablename: 't_apply',
1747
- // condition: `f_process_id='${this.show_data.f_process_id}'`
1748
- // }
1749
- // let http = new HttpResetClass()
1750
- // let restp = await http.load(
1751
- // 'POST',
1752
- // `rs/sql/apply_singleTable`,
1753
- // {data: data},
1754
- // {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
1755
- // )
1756
- // debugger
1757
- // restp.data[0].processname = '散户报建流程'
1758
- // restp.data[0].defname = '合同签订'
1759
- // this.$dispatch('apply',restp.data[0])
1760
- //
1761
- // } else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && this.show_data.button.button_name === '提交'){
1762
- // let data2 = {
1763
- // condition: `u.id = ${this.show_data.id}`,
1764
- // data: {
1765
- // id: this.$login.f.id,
1766
- // orgid: this.$login.f.orgid
1767
- // }
1768
- // }
1769
- // let http = new HttpResetClass()
1770
- // let restp1 = await http.load(
1771
- // 'POST',
1772
- // `rs/sql/checkuser`,
1773
- // {data: data2},
1774
- // {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
1775
- // )
1776
- // debugger
1777
- // console.log('有没有发请求打印查询的内容restp1',restp1)
1778
- // // restp1.data[0].processname = '散户报建流程'
1779
- // // restp1.data[0].defname = '报装缴费'
1780
- // this.$dispatch('apply',restp1.data[0])
1781
- // }else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装缴费' && this.show_data.button.button_name === '提交'){
1782
- // let data3 = {
1783
- // condition: `u.id = ${this.show_data.id}`,
1784
- // data: {
1785
- // id: this.$login.f.id,
1786
- // orgid: this.$login.f.orgid
1787
- // }
1788
- // }
1789
- // let http = new HttpResetClass()
1790
- // let restp2 = await http.load(
1791
- // 'POST',
1792
- // `rs/sql/checkuser`,
1793
- // {data: data3},
1794
- // {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
1795
- // )
1796
- // debugger
1797
- // console.log('打印查询的内容',restp2)
1798
- // if(restp2.length>0){
1799
- // this.$dispatch('apply',restp2.data[0])
1800
- // }else{
1801
- // debugger
1802
- // this.$dispatch('loadPage')
1803
- // }
1804
- // }
1805
- // else{
1806
- // this.$dispatch('loadPage')
1807
- // }
1808
1541
  this.$dispatch('loadPage')
1809
1542
  },
1810
1543
  // 失去焦点出触发事件
1811
1544
  'onchange' (index) {
1812
- if (this.show_data.defname === '报装申请' || this.show_data.defname === '信息确认') {
1545
+ if (this.show_data.defname === '报装申请' || this.show_data.defname === '通气点火' || this.show_data.defname === '合同签订') {
1813
1546
 
1814
1547
  if (
1815
1548
  this.show_data.fields[index].label === '区/县' ||
@@ -1844,7 +1577,19 @@
1844
1577
  }
1845
1578
  },
1846
1579
  selectSearch (val, index) {},
1847
- 'onblur' (index) {},
1580
+ 'onblur' (index) {
1581
+ if(this.show_data.fields[index].label==="优惠金额"){
1582
+ let contract=this.getLableValue('合同金额')
1583
+ let add=this.getLableValue('追加款')
1584
+ let money = this.getLableValue('优惠金额')
1585
+ //转为数字,然后contract减去money,保留两位小数
1586
+ let money_num = parseFloat(money)
1587
+ let add_num = parseFloat(add)
1588
+ let contract_num = parseFloat(contract)
1589
+ let new_contract = contract_num+add_num - money_num
1590
+ this.setLabelValue('应交金额', new_contract.toFixed(2))
1591
+ }
1592
+ },
1848
1593
  'oninput' (index) {},
1849
1594
  'initializtionView' () {},
1850
1595
  async 'onchangeModal' (index, fieldIndex) {