apply-clients 3.5.4-8 → 3.5.4-81

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/app/src/main/java/com/example/phonechatbot/MainActivity.java +50 -0
  2. package/build/dev-server.js +12 -4
  3. package/package.json +2 -2
  4. package/src/App.vue +5 -5
  5. package/src/apply.js +2 -3
  6. package/src/applyAndroid.js +2 -0
  7. package/src/assets//344/270/213/350/275/275.png +0 -0
  8. package/src/components/android/AppCheckTakePic.vue +168 -0
  9. package/src/components/android/Process/AppServiceControl.vue +4 -0
  10. package/src/components/android/Process/Processes/AppChargeManagementNew.vue +637 -0
  11. package/src/components/image/dxf.png +0 -0
  12. package/src/components/product/Function/Service/FunctionServiceControl.vue +497 -497
  13. package/src/components/product/Material/MaterialDetailed.vue +1 -1
  14. package/src/components/product/MaterialsManage/MaterialsBase.vue +181 -177
  15. package/src/components/product/MaterialsManage/MaterialsManage.vue +60 -60
  16. package/src/components/product/PcZhihuanManagement.vue +160 -0
  17. package/src/components/product/Process/ExplorationSelect.vue +4 -1
  18. package/src/components/product/Process/ExplorationUser.vue +1 -0
  19. package/src/components/product/Process/Processes/chargeManagement.vue +656 -656
  20. package/src/components/product/ServiceView.vue +1026 -1005
  21. package/src/components/product/Supervisory/SupervisoryControl.vue +1 -0
  22. package/src/filiale/baiyin/android/AppServiceControl.vue +1762 -0
  23. package/src/filiale/baiyin/android/ByAddMaterialScience.vue +824 -0
  24. package/src/filiale/baiyin/android/ByDeviceManagement.vue +916 -0
  25. package/src/filiale/baiyin/android.js +8 -0
  26. package/src/filiale/fugou/android/AppAddMaterialScience.vue +448 -0
  27. package/src/filiale/fugou/android/AppAddReplacement.vue +341 -0
  28. package/src/filiale/fugou/android/AppChargeManagement.vue +126 -12
  29. package/src/filiale/fugou/android/AppDevicesManagement.vue +519 -0
  30. package/src/filiale/fugou/android/AppInstallationDetails.vue +541 -0
  31. package/src/filiale/fugou/android/AppServiceControl.vue +38 -5
  32. package/src/filiale/fugou/android/AppZhihuanManagement.vue +191 -0
  33. package/src/filiale/fugou/android.js +7 -1
  34. package/src/filiale/fugou/pc/AddReplacement.vue +340 -0
  35. package/src/filiale/fugou/pc/ExplorationSelect.vue +525 -0
  36. package/src/filiale/fugou/pc/InstallationDetails.vue +54 -43
  37. package/src/filiale/fugou/pc/ServiceControl.vue +125 -379
  38. package/src/filiale/fugou/pc/ServiceView.vue +941 -0
  39. package/src/filiale/fugou/pc/addMaterialScience.vue +481 -0
  40. package/src/filiale/fugou/pc/addressAndUserinfoManagement.vue +216 -0
  41. package/src/filiale/fugou/pc/devicesManagement.vue +483 -0
  42. package/src/filiale/fugou/pc.js +7 -1
  43. package/src/filiale/gongyi/android/AppAddMaterialScience.vue +20 -8
  44. package/src/filiale/gongyi/android/AppDisclosurerecord.vue +214 -0
  45. package/src/filiale/gongyi/android/AppInstallationDetails.vue +500 -495
  46. package/src/filiale/gongyi/android/AppLegacyIssues.vue +309 -0
  47. package/src/filiale/gongyi/android/AppSign.vue +170 -157
  48. package/src/filiale/gongyi/android/AppSupplementalAgreement.vue +298 -0
  49. package/src/filiale/gongyi/android.js +18 -15
  50. package/src/filiale/gongyi/pc/ApplyUpload.vue +371 -379
  51. package/src/filiale/gongyi/pc/PcAddLogs.vue +221 -213
  52. package/src/filiale/gongyi/pc/PcDisclosurerecord.vue +218 -0
  53. package/src/filiale/gongyi/pc/PcLegacyIssues.vue +309 -0
  54. package/src/filiale/gongyi/pc/SupervisoryServiceControl.vue +894 -894
  55. package/src/filiale/gongyi/pc/SupervisoryServiceView.vue +1005 -0
  56. package/src/filiale/gongyi/pc/addMaterialScience.vue +575 -539
  57. package/src/filiale/gongyi/pc/chargeManagement.vue +765 -0
  58. package/src/filiale/gongyi/pc/supplementalAgreement.vue +277 -0
  59. package/src/filiale/gongyi/pc.js +24 -19
  60. package/src/filiale/hongda/pc/SupervisoryList.vue +422 -409
  61. package/src/filiale/jinhuang/pc/ServiceControl.vue +1925 -0
  62. package/src/filiale/jinhuang/pc/chargeManagementNew.vue +589 -0
  63. package/src/filiale/jinhuang/pc.js +7 -0
  64. package/src/filiale/qianneng/android/AppChargeManagement.vue +686 -0
  65. package/src/filiale/qianneng/android/AppExplorationUser.vue +490 -490
  66. package/src/filiale/qianneng/android/AppInstallationDetails.vue +541 -541
  67. package/src/filiale/qianneng/android.js +2 -1
  68. package/src/filiale/qianneng/pc/ApplyUpload.vue +5 -4
  69. package/src/filiale/qianneng/pc/Applybatchdispatch.vue +704 -704
  70. package/src/filiale/qianneng/pc/Applydetail.vue +0 -5
  71. package/src/filiale/qianneng/pc/InstallFunction.vue +2 -2
  72. package/src/filiale/qianneng/pc/InstallationDetails.vue +614 -587
  73. package/src/filiale/qianneng/pc/ServiceControl.vue +1384 -1384
  74. package/src/filiale/qianneng/pc/printactivatecard.vue +311 -311
  75. package/src/filiale/ruihua/pc/ServiceControl.vue +20 -0
  76. package/src/filiale/ruihua/pc/printVentilation.vue +21 -6
  77. package/src/filiale/shexian/android/AppServiceControl.vue +12 -2
  78. package/src/filiale/shexian/android/AppTakePic.vue +15 -55
  79. package/src/filiale/siyangRH/android/AppAddMaterialScience.vue +0 -2
  80. package/src/filiale/siyangRH/pc/ApplyUpload.vue +324 -324
  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 +17 -1
  84. package/src/filiale/yangchunboneng/android/AppDevicesManagement.vue +32 -2
  85. package/src/filiale/yangchunboneng/android/AppExplorationUser.vue +12 -0
  86. package/src/filiale/yangchunboneng/android/AppInstallationMaterial.vue +956 -961
  87. package/src/filiale/yangchunboneng/android/AppServiceControl.vue +34 -1
  88. package/src/filiale/yangchunboneng/android/AppSuperServiceControl.vue +1 -1
  89. package/src/filiale/yangchunboneng/android/AppUpload.vue +78 -9
  90. package/src/filiale/yangchunboneng/android/MaterIialOne.vue +31 -19
  91. package/src/filiale/yangchunboneng/android.js +1 -1
  92. package/src/filiale/yangchunboneng/pc/ApplyUpload.vue +235 -218
  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/ServiceControl.vue +207 -3
  96. package/src/filiale/yangchunboneng/pc/SupervisoryControlNew.vue +142 -0
  97. package/src/filiale/yangchunboneng/pc/SupervisoryList.vue +69 -14
  98. package/src/filiale/yangchunboneng/pc/SupervisoryListNew.vue +628 -0
  99. package/src/filiale/yangchunboneng/pc/SupervisoryServiceControl.vue +902 -0
  100. package/src/filiale/yangchunboneng/pc/SupervisoryServiceControlNew.vue +901 -0
  101. package/src/filiale/yangchunboneng/pc/SupervisoryServiceView.vue +1117 -0
  102. package/src/filiale/yangchunboneng/pc/chargeManagement.vue +112 -13
  103. package/src/filiale/yangchunboneng/pc.js +7 -1
  104. package/src/main.js +3 -3
  105. package/~/chatbot/main.py +57 -0
@@ -0,0 +1,191 @@
1
+ <template>
2
+ <div class="flex-row" style="overflow: auto">
3
+ <div class="basic-main">
4
+ <div :class="showData ? 'top' : 'auto'" v-show="showQuery">
5
+ <exploration-select v-ref:query :show-data="showData"></exploration-select>
6
+ </div>
7
+ <div v-if="showtotal" style="height: 89%">
8
+ <tabset v-ref:tabs :close="false">
9
+ <tab :header='selectdata.defname'>
10
+ <service-control v-ref:service :selectdata="selectdata"></service-control>
11
+ </tab>
12
+ <tab header='附件'>
13
+ <apply-upload
14
+ :blodid="selectdata.f_process_id"
15
+ :pblobid="selectdata.f_parent_process_id"
16
+ :isupload = "true"
17
+ :isdelete="true"
18
+ :isusetype="true"
19
+ :isremark = "true"
20
+ :takeimg="false"
21
+ :issearch="true"
22
+ :defname="selectdata.defname">
23
+ </apply-upload>
24
+ </tab>
25
+ </tabset>
26
+ </div>
27
+
28
+ <validator name="v">
29
+ <modal v-if="showLater" :show.sync="showLater" v-ref:modal :large="true" :backdrop="false" title="稍后处理">
30
+ <header slot="modal-header" class="modal-header">
31
+ <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
32
+ <h4 class="modal-title">稍后处理</h4>
33
+ </header>
34
+
35
+ <article slot="modal-body" class="modal-body clearfix">
36
+ <div class="form-group col-sm-12">
37
+ <label class="col-sm-2 control-label">稍后处理备注:</label>
38
+ <div class="col-sm-10">
39
+ <input type="textarea"
40
+ class="form-control input_view"
41
+ style="width: 100%"
42
+ v-model="laterapply.f_later_remarks" />
43
+ </div>
44
+ </div>
45
+ </article>
46
+
47
+ <footer slot="modal-footer" class="modal-footer">
48
+ <button type="button" class="btn btn-primary" :disabled='!$v.valid' @click="later()">稍后处理</button>
49
+ </footer>
50
+ </modal>
51
+ </validator>
52
+ </div>
53
+ </div>
54
+ </template>
55
+ <script>
56
+ import Vue from 'vue'
57
+ import {HttpResetClass} from 'vue-client'
58
+ export default {
59
+ title: '报建流程',
60
+ data () {
61
+ return {
62
+ showQuery: true, // 控制查询页
63
+ showData: true, // 控制列表数据
64
+ showtotal: false, // 详情显示
65
+ selectdata: {},
66
+ xmlname: '', // 配置文件名
67
+ showLater: false,
68
+ laterapply: {}
69
+ }
70
+ },
71
+ ready () {
72
+ },
73
+ methods: {
74
+ // 获取页面配置json文件
75
+ async loadName () {
76
+
77
+ let data = {
78
+ workname: this.selectdata.processname
79
+ }
80
+ let http = new HttpResetClass()
81
+ let res = await http.load(
82
+ 'POST',
83
+ 'rs/logic/ApplyGetConfigs',
84
+ {data: data},
85
+ {resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
86
+ )
87
+
88
+ Vue.prototype.$workflow_vue = res.data
89
+ },
90
+ async later () {
91
+ let http = new HttpResetClass()
92
+ let data = {
93
+ laterapply: this.laterapply,
94
+ selectdata: this.selectdata,
95
+ user: this.$login.f
96
+ }
97
+ let res = await http.load('POST', 'rs/logic/laterprocessing', {data:data}, {
98
+ resolveMsg: null,
99
+ rejectMsg: '稍后处理记录保存失败!!!'
100
+ })
101
+ this.closeModal()
102
+ },
103
+ closeModal () {
104
+ this.selectdata = null
105
+ this.showLater = false
106
+ this.laterapply = {}
107
+
108
+ this.$refs.query.loadPage()
109
+ }
110
+ },
111
+ events: {
112
+ 'onMessage' (data) {
113
+ console.log('接收消息')
114
+ console.log(data)
115
+ if (data.type === 'apply-task') {
116
+ this.$refs.query.$refs.cp.$refs.cri.search()
117
+ }
118
+ },
119
+ // 刷新控制层
120
+ async 'breakControl' (servicedata) {
121
+
122
+ if (servicedata.id) {
123
+ let data = {
124
+ condition: `u.id = ${servicedata.id}`,
125
+ data: {
126
+ id: this.$login.f.id,
127
+ orgid: this.$login.f.orgid
128
+ }
129
+ }
130
+ let res = await this.$resetpost(
131
+ 'rs/sql/checkuser',
132
+ {data: data},
133
+ {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
134
+ )
135
+
136
+ this.selectdata = res.data[0]
137
+ } else {
138
+ this.selectdata = servicedata
139
+ }
140
+
141
+ this.showtotal = false
142
+ this.$nextTick(() => {
143
+ this.showtotal = true
144
+ })
145
+
146
+ },
147
+ async openLater (row) {
148
+ this.selectdata = row
149
+ this.showLater = true
150
+ },
151
+ // 初始化
152
+ async 'apply' (val) {
153
+ this.showtotal = false
154
+ this.selectdata = val
155
+
156
+ // 次方法必须同步执行,否则后续会出问题
157
+ // 获取页面json配置文件
158
+ await this.loadName()
159
+
160
+ // 显示详细
161
+ this.showtotal = true
162
+ // 关闭列表数据
163
+ this.showData = false
164
+ // 关闭分页
165
+ this.$refs.query.$refs.cp.pager = false
166
+ },
167
+ 'search' () {
168
+ // 关闭详细
169
+ this.showtotal = false
170
+ // 显示列表数据
171
+ this.showData = true
172
+ // 显示分页
173
+ this.$refs.query.$refs.cp.pager = true
174
+ // 调用查询
175
+ this.$refs.query.$refs.cp.$refs.cri.search()
176
+ },
177
+ 'loadPage' () {
178
+ // 关闭详细
179
+ this.showtotal = false
180
+ // 显示列表数据
181
+ this.showData = true
182
+ // 显示分页
183
+ this.$refs.query.$refs.cp.pager = true
184
+ // 调用查询
185
+ this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
186
+ }
187
+ },
188
+ watch: {
189
+ }
190
+ }
191
+ </script>
@@ -486,6 +486,43 @@
486
486
  }
487
487
  })
488
488
  },
489
+ /*获取街道和乡镇*/
490
+ async getStreet() {
491
+ let data = {
492
+ tablename: 't_street',
493
+ condition: `f_filialeid = '${this.$login.f.orgid}' and f_iscity in ('市区','乡镇')`
494
+ }
495
+ let http = new HttpResetClass()
496
+ let res = await http.load(
497
+ 'POST',
498
+ `rs/sql/apply_singleTable`,
499
+ {data: data},
500
+ {resolveMsg: null, rejectMsg: '街道/乡镇查询失败!!!'}
501
+ )
502
+ return res.data.map(item => {
503
+ return {
504
+ label: item.f_street,
505
+ value: item.f_street
506
+ }
507
+ })
508
+ },
509
+ async streetChangeNew() {
510
+ if (isEmpty(this.show_data.f_street)) {
511
+ return
512
+ }
513
+ //设置区县和地址类型
514
+ let data = {
515
+ tablename: 't_street',
516
+ condition: `f_filialeid = '${this.$login.f.orgid}' and f_street = '${this.show_data.f_street}'`
517
+ }
518
+ let http = new HttpResetClass()
519
+ let res = await http.load(
520
+ 'POST',
521
+ `rs/sql/apply_singleTable`,
522
+ {data: data},
523
+ {resolveMsg: null, rejectMsg: '街道/乡镇查询失败!!!'}
524
+ )
525
+ },
489
526
  // 获取区县
490
527
  async getPcd () {
491
528
  let data = {
@@ -528,6 +565,22 @@
528
565
  }
529
566
  })
530
567
  },
568
+ //通气前置,添加设备
569
+ async addDeviceBefore () {
570
+ let http = new HttpResetClass()
571
+ var condition1=`f_userinfo_id = '${this.selectdata.f_userinfo_id}'`
572
+ let data = {
573
+ condition: condition1
574
+ }
575
+ let res = await http.load('POST', 'rs/sql/getUserFilesAndDevicesAmount', {data:data}, {
576
+ resolveMsg: null,
577
+ rejectMsg: '获取表具失败!!!'
578
+ })
579
+ if (res.data.amount===0) {
580
+ this.$showMessage('请添加设备!!!', 'warning', 3000)
581
+ throw null
582
+ }
583
+ },
531
584
  // 缴费前置
532
585
  async chargeBefore () {
533
586
  if (Number(this.show_data.f_due_money) > Number(this.show_data.f_cumulative_payment_money) || Number(this.show_data.f_surplus_money) > 0) {
@@ -551,6 +604,23 @@
551
604
  this.$showMessage(`还有${res.data[0].num}户表具未安装,无法提交`, 'warning', 3000)
552
605
  throw `还有${res.data[0].num}户表具未安装,无法提交`
553
606
  }
607
+ let condition1=''
608
+ if(this.selectdata.f_sub_state ==='完工'){
609
+ condition1=`f_userinfo_id = '${this.selectdata.f_userinfo_id}' and f_table_state='正常'`
610
+ }else{
611
+ condition1=`f_userinfo_id = '${this.selectdata.f_userinfo_id}' and f_table_state='待开通'`
612
+ }
613
+ data = {
614
+ condition: condition1
615
+ }
616
+ let res1 = await http.load('POST', 'rs/sql/getUserFilesAndDevicesAmount', {data:data}, {
617
+ resolveMsg: null,
618
+ rejectMsg: '获取设备失败!!!'
619
+ })
620
+ if (res1.data[0].amount < 2) {
621
+ this.$showMessage(`设备必须添加2个,否则无法提交`, 'warning', 3000)
622
+ throw `设备必须添加2个,否则无法提交`
623
+ }
554
624
  }
555
625
  },
556
626
  //收费时添加 预算的 流程节点,如果 当前节点费用未 缴清, 不能进行下一步流程
@@ -778,6 +848,7 @@
778
848
  }
779
849
  }
780
850
  },
851
+
781
852
  async streetChange () {
782
853
  if (isEmpty(this.show_data.f_street)) {
783
854
  return
@@ -1149,6 +1220,7 @@
1149
1220
  },
1150
1221
  // 搜索小区
1151
1222
  async 'searchArea' (area, index) {
1223
+ debugger
1152
1224
  let data = {
1153
1225
  tablename: 't_area',
1154
1226
  condition: `f_filialeid = '${this.$login.f.orgid}' and f_street = '${this.show_data.f_street}' and f_residential_area like '%${area}%'`
@@ -1338,6 +1410,12 @@
1338
1410
  this.setLabelValue('证件类型', row.f_credentials)
1339
1411
  this.setLabelValue('证件号码', row.f_idnumber)
1340
1412
  this.setLabelValue('地址', row.f_address)
1413
+ this.setLabelValue('气价名称', row.f_price_name)
1414
+ this.setLabelValue('气价类型', row.f_price_type)
1415
+ this.setLabelValue('用气性质', row.f_gasproperties)
1416
+ this.setLabelValue('价格', row.f_detailprice)
1417
+ this.setLabelValue(' 抵扣单价', row.f_gas_type)
1418
+ this.setLabelValue('抵扣总额', row.f_project_money)
1341
1419
 
1342
1420
  this.show_data.f_userinfo_id = row.f_userinfo_id
1343
1421
  this.show_data.f_userinfo_code = row.f_userinfo_code
@@ -1471,6 +1549,70 @@
1471
1549
  }
1472
1550
  }))
1473
1551
  },
1552
+ // 街道失去焦点
1553
+ async 'streetChangeNew' (index) {
1554
+ if (isEmpty(this.show_data.f_street)) {
1555
+ return
1556
+ }
1557
+ //设置区县和地址类型
1558
+ let data = {
1559
+ tablename: 't_street',
1560
+ condition: `f_filialeid = '${this.$login.f.orgid}' and f_street = '${this.show_data.f_street}'`
1561
+ }
1562
+ let http = new HttpResetClass()
1563
+ let res = await http.load(
1564
+ 'POST',
1565
+ `rs/sql/apply_singleTable`,
1566
+ {data: data},
1567
+ {resolveMsg: null, rejectMsg: '街道/乡镇查询失败!!!'}
1568
+ )
1569
+ if(res.data[0].f_iscity==="市区"){
1570
+ this.setLabelValue('地址类型',"民用市区")
1571
+ }else if(res.data[0].f_iscity==="乡镇"){
1572
+ this.setLabelValue('地址类型',"民用乡镇")
1573
+ }else{
1574
+ this.setLabelValue('地址类型', "特殊地址")
1575
+ }
1576
+ this.setLabelValue('区/县',res.data[0].f_pcd)
1577
+ //获取小区
1578
+ let data2 = {
1579
+ tablename: 't_area',
1580
+ condition: `f_filialeid = '${this.$login.f.orgid}' and f_street = '${this.show_data.f_street}'`
1581
+ }
1582
+ let http2 = new HttpResetClass()
1583
+ let res2 = await http2.load(
1584
+ 'POST',
1585
+ `rs/sql/apply_singleTable`,
1586
+ {data: data2},
1587
+ {resolveMsg: null, rejectMsg: '小区查询失败!!!'}
1588
+ )
1589
+
1590
+ this.setLabelOptions('小区', res2.data.map(item => {
1591
+ return {
1592
+ label: item.f_residential_area,
1593
+ value: item.f_residential_area
1594
+ }
1595
+ }))
1596
+ },
1597
+
1598
+ async 'AreaChangeNew' (index) {
1599
+ if (isEmpty(this.show_data.f_residential_area)) {
1600
+ return
1601
+ }
1602
+ //设置区县和地址类型
1603
+ let data = {
1604
+ tablename: 't_area',
1605
+ condition: `f_filialeid = '${this.$login.f.orgid}' and f_residential_area= '${this.show_data.f_residential_area}'`
1606
+ }
1607
+ let http = new HttpResetClass()
1608
+ let res = await http.load(
1609
+ 'POST',
1610
+ `rs/sql/apply_singleTable`,
1611
+ {data: data},
1612
+ {resolveMsg: null, rejectMsg: '街道/乡镇查询失败!!!'}
1613
+ )
1614
+ this.setLabelValue('片区',res.data[0].f_slice_area)
1615
+ },
1474
1616
  // 区县失去焦点
1475
1617
  async 'pcdChange' (index) {
1476
1618
  if (isEmpty(this.show_data.f_pcd)) {
@@ -1576,6 +1718,67 @@
1576
1718
  }
1577
1719
  }
1578
1720
  },
1721
+ 'addressTypeChangeNew' (index) {
1722
+ let f_address_type = this.show_data.fields[index].value
1723
+ for (const item of this.show_data.fields) {
1724
+ if (f_address_type === '民用市区') {
1725
+ if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '小区' || item.label === '门牌号') {
1726
+ item.hidden = false
1727
+ item.required = true
1728
+ }
1729
+ if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
1730
+ item.hidden = false
1731
+ item.required = false
1732
+ item.value = null
1733
+ }
1734
+ if (item.label === '地址') {
1735
+ item.readonly = true
1736
+ item.value = null
1737
+ }
1738
+ }
1739
+ if (f_address_type === '民用乡镇') {
1740
+ if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '小区' || item.label === '门牌号') {
1741
+ item.hidden = false
1742
+ item.required = true
1743
+ }
1744
+ if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
1745
+ item.hidden = false
1746
+ item.required = false
1747
+ item.value = null
1748
+ }
1749
+ if (item.label === '楼层') {
1750
+ item.hidden = true
1751
+ item.required = false
1752
+ item.value = null
1753
+ }
1754
+ if (item.label === '地址') {
1755
+ item.readonly = true
1756
+ item.value = null
1757
+ }
1758
+ }
1759
+ if (f_address_type === '特殊地址') {
1760
+ if (item.label === '区/县' || item.label === '街道/乡镇') {
1761
+ item.hidden = false
1762
+ item.required = true
1763
+ item.value = null
1764
+ }
1765
+ if (item.label === '小区') {
1766
+ item.hidden = false
1767
+ item.required = false
1768
+ item.value = null
1769
+ }
1770
+ if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层' || item.label === '门牌号') {
1771
+ item.hidden = true
1772
+ item.required = false
1773
+ item.value = null
1774
+ }
1775
+ if (item.label === '地址') {
1776
+ item.readonly = false
1777
+ item.value = null
1778
+ }
1779
+ }
1780
+ }
1781
+ },
1579
1782
  //报建性质改变合同类型
1580
1783
  'changehetong'(index){
1581
1784
  let nextindex = parseInt(index) + 1
@@ -1656,7 +1859,7 @@
1656
1859
  }
1657
1860
  }
1658
1861
  }
1659
- if(this.show_data.defname === '工程派工' && this.show_data.button.button_name === '提交'){
1862
+ if(this.show_data.defname === '工程派工' ){
1660
1863
  this.show_data.f_budget_peoples = []
1661
1864
  for (const item of this.show_data.fields) {
1662
1865
  if (item.label === '施工人') {
@@ -1693,13 +1896,14 @@
1693
1896
  {data: this.show_data},
1694
1897
  {resolveMsg: null, rejectMsg: '数据保存失败'}
1695
1898
  )
1696
- if(this.show_data.f_apply_type == '验收审批' && this.show_data.defname === '验收审批' && this.show_data.button.button_name === '提交'){
1899
+ if((this.show_data.f_apply_type == '验收审批' && this.show_data.defname === '验收审批' && this.show_data.button.button_name === '提交') ||(this.show_data.f_apply_type === '工程施工' && this.show_data.defname === '工程施工' && this.show_data.button.button_name === '提交' )){
1697
1900
  const http = new HttpResetClass()
1698
1901
  let data = {
1699
1902
  tablename: 't_apply',
1700
- condition: `f_parent_process_id = '${this.show_data.f_parent_process_id}' and f_apply_type = '验收审批' and f_sub_state != '完工'`
1903
+ condition: `f_parent_process_id = '${this.show_data.f_parent_process_id}' and f_apply_type in ('验收审批','工程施工') and f_sub_state != '完工'`
1701
1904
  }
1702
1905
  await http.load('post',`rs/sql/apply_singleTable`,{data: data},{rejectMsg:null,resolveMsg:null}).then( res=>{
1906
+ //判断res.data.length == 0,则子流程已经完工,然后将付流程进行到下一步
1703
1907
  if (res.data.length == 0){
1704
1908
  http.load('post',`rs/sql/checkuser`,{data: {condition:` f_process_id= '${this.show_data.f_parent_process_id}'`, data: {id: this.$login.f.id,orgid: this.$login.f.orgid}}},{resolveMsg:null,rejectMsg:null}).then(row=>{
1705
1909
  const show_data = row.data[0]
@@ -0,0 +1,142 @@
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="basic-main">
4
+ <div :class="showData ? 'top' : 'auto'">
5
+ <supervisory-list-new v-ref:query :show-data="showData"></supervisory-list-new>
6
+ </div>
7
+ <div v-if="showtotal" style="height: 89%">
8
+ <div class="col-sm-2" style="margin-top: 20px">
9
+ <supervisory-chart :selectdata="selectdata"></supervisory-chart>
10
+ </div>
11
+ <div class="col-sm-10" style="margin-top: 20px">
12
+ <tabset v-ref:tabs :close="false">
13
+ <tab :header='selectdata.defname'>
14
+ <supervisory-service-control-new :selectdata="selectdata" :node-snapshot="true"></supervisory-service-control-new>
15
+ </tab>
16
+ <tab header='附件'>
17
+ <apply-upload
18
+ :blodid="selectdata.f_process_id"
19
+ :pblobid="selectdata.f_parent_process_id"
20
+ :isupload = "false"
21
+ :isdelete="false"
22
+ :isusetype="true"
23
+ :isremark = "true"
24
+ :takeimg="false"
25
+ :issearch="true"
26
+ :defname="selectdata.defname">
27
+ </apply-upload>
28
+ </tab>
29
+ </tabset>
30
+ </div>
31
+ <div style="height: 1%">
32
+
33
+ </div>
34
+ </div>
35
+ </div>
36
+ </div>
37
+
38
+ </template>
39
+ <script>
40
+ import Vue from 'vue'
41
+ import {HttpResetClass} from 'vue-client'
42
+ export default {
43
+ title: '流程监控',
44
+ data () {
45
+ return {
46
+ showtotal: false, // 控制详细信息显示
47
+ showData: true,
48
+ selectdata: {},
49
+ xmlname: '' // 配置文件名称
50
+ }
51
+ },
52
+ created () {
53
+ },
54
+ methods: {
55
+ // 获取页面配置json文件
56
+ async loadName () {
57
+ let data = {
58
+ workname: this.selectdata.processname
59
+ }
60
+
61
+ let res = await this.$resetpost(
62
+ 'rs/logic/ApplyGetConfigs',
63
+ {data: data},
64
+ {resolveMsg: null, rejectMsg: '配置数据获取失败!!!'}
65
+ )
66
+
67
+ Vue.prototype.$workflow_vue = res.data
68
+ }
69
+ },
70
+ events: {
71
+ // 刷新控制层
72
+ async 'breakControl' (servicedata) {
73
+
74
+ if (servicedata.id) {
75
+ let data = {
76
+ condition: `u.id = ${servicedata.id}`,
77
+ data: {
78
+ orgid: this.$login.f.orgid
79
+ }
80
+ }
81
+ let res = await this.$resetpost(
82
+ 'rs/sql/supervisory',
83
+ {data: data},
84
+ {resolveMsg: null, rejectMsg: '数据更新失败,请手查询更新!!!'}
85
+ )
86
+ this.selectdata = Object.assign({}, this.selectdata, res.data[0])
87
+ } else {
88
+ this.selectdata = servicedata
89
+ }
90
+
91
+ this.showtotal = false
92
+ this.$nextTick(() => {
93
+ this.showtotal = true
94
+ })
95
+
96
+ },
97
+ 'onMessage' (data) {
98
+ console.log('接收消息')
99
+ console.log(data)
100
+ if (data.type === 'apply-task') {
101
+ this.$refs.queryuser.$refs.cp.$refs.cri.search()
102
+ }
103
+ },
104
+ async 'apply' (val) {
105
+ this.selectdata = null
106
+ this.selectdata = val
107
+ this.showtotal = false
108
+
109
+ // 获取配置文件
110
+ await this.loadName()
111
+
112
+ this.$refs.query.$refs.cp.pager = false
113
+ this.showData = false
114
+
115
+ this.showtotal = true
116
+ },
117
+ 'search' () {
118
+ // 关闭详细
119
+ this.showtotal = false
120
+ // 显示列表数据
121
+ this.showData = true
122
+ // 显示分页
123
+ this.$refs.query.$refs.cp.pager = true
124
+ // 调用查询
125
+ this.$refs.query.$refs.cp.$refs.cri.search()
126
+ },
127
+ 'loadPage' () {
128
+ // 关闭详细
129
+ this.showtotal = false
130
+ // 显示列表数据
131
+ this.showData = true
132
+ // 显示分页
133
+ this.$refs.query.$refs.cp.pager = true
134
+ // 调用查询
135
+ this.$refs.query.$refs.cp.loadPage(this.$refs.query.model.pageIndex)
136
+ }
137
+ },
138
+
139
+ watch: {
140
+ }
141
+ }
142
+ </script>