apply-clients 7.1.36-1 → 7.1.36-yuchuan-2

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 (62) hide show
  1. package/build/dev-server.js +8 -2
  2. package/dist-android.7z +0 -0
  3. package/dist.7z +0 -0
  4. package/package.json +1 -1
  5. package/rebel.xml +16 -0
  6. package/src/AndroidApp.vue +35 -35
  7. package/src/apply.js +31 -4
  8. package/src/applyAndroid.js +83 -76
  9. package/src/components/android/AppSign.vue +13 -10
  10. package/src/components/android/Process/AppExplorationUser.vue +454 -454
  11. package/src/components/android/Process/AppServiceControl.vue +3 -3
  12. package/src/components/android/Process/Processes/AppChaiChuInfo.vue +546 -0
  13. package/src/components/android/Process/Processes/AppDevicesManagement.vue +2 -1
  14. package/src/components/android/Process/Processes/AppInstallationDetails.vue +69 -20
  15. package/src/components/android/Process/Processes/newAppDevicesManagement.vue +2 -1
  16. package/src/components/android/Process/Processes/newAppInstallationDetails.vue +5 -5
  17. package/src/components/android/Supervisory/AppProcessSupervisory.vue +334 -298
  18. package/src/components/android/Task/GuanXianJianShe/AppExplorationGuanXian.vue +432 -0
  19. package/src/components/android/Task/ShenHe/BuZhangShenHe.vue +64 -0
  20. package/src/components/android/Task/ShenHe/JingLiShenHe.vue +64 -0
  21. package/src/components/android/Task/UpBuild/UpJianLi.vue +98 -95
  22. package/src/components/product/ApplyCharge/ApplyChargeList.vue +27 -0
  23. package/src/components/product/ApplyGaiXianCharge/ApplyGaiXianChargeList.vue +198 -0
  24. package/src/components/product/ApplyGaiXianCharge/ApplyGaiXianChargeSearch.vue +30 -0
  25. package/src/components/product/ApplyGuanXian/GuanXianCaiLiao.vue +235 -0
  26. package/src/components/product/ApplyGuanXian/GuanXianExplorationSelect.vue +323 -0
  27. package/src/components/product/ApplyGuanXian/GuanXianExplorationUser.vue +144 -0
  28. package/src/components/product/ApplyGuanXian/GuanXianSupervisoryhCart.vue +119 -0
  29. package/src/components/product/ApplyGuanXian/TabButton.vue +157 -0
  30. package/src/components/product/ApplyGuanXian/Tabs.vue +67 -0
  31. package/src/components/product/Function/InstallInfoSelect.vue +370 -370
  32. package/src/components/product/Function/Service/FunctionServiceControl.vue +475 -475
  33. package/src/components/product/Ignition/IgnitionList.vue +236 -232
  34. package/src/components/product/Ignition/IgnitionListManage.vue +69 -28
  35. package/src/components/product/Ignition/IgnitionRecord.vue +56 -17
  36. package/src/components/product/List/ShowDevices.vue +279 -277
  37. package/src/components/product/Print/OrderPrint/printChaiChuOrder.vue +260 -0
  38. package/src/components/product/Process/ExplorationSelect.vue +581 -566
  39. package/src/components/product/Process/ExplorationUser.vue +158 -155
  40. package/src/components/product/Process/NewExplorationUser.vue +184 -0
  41. package/src/components/product/Process/Processes/ApplyChaiChuInfo.vue +587 -0
  42. package/src/components/product/Process/Processes/InstallationDetails.vue +86 -33
  43. package/src/components/product/Process/Processes/Print/printCharge.vue +5 -1
  44. package/src/components/product/Process/Processes/Print/printPaymentApproval.vue +224 -221
  45. package/src/components/product/Process/Processes/Print/printPaymentSubject.vue +170 -0
  46. package/src/components/product/Process/Processes/chargeManagement.vue +24 -6
  47. package/src/components/product/Process/Processes/devicesManagement.vue +2 -1
  48. package/src/components/product/Process/Processes/newInstallationDetails.vue +3 -3
  49. package/src/components/product/Process/Processes/selectChaiChuUserinfo.vue +230 -0
  50. package/src/components/product/Process/Processes/selectOldUserinfo.vue +241 -241
  51. package/src/components/product/Process/Service/ServiceControl.vue +178 -16
  52. package/src/components/product/Report/ReportItems.vue +79 -0
  53. package/src/components/product/Report/apply-stair-anzhuang.vue +361 -0
  54. package/src/components/product/Report/apply-stair-kaifa.vue +138 -0
  55. package/src/components/product/Report/apply-stair-tongqi.vue +137 -0
  56. package/src/components/product/Report/apply-stair-wtongqi.vue +138 -0
  57. package/src/components/product/ServiceView.vue +644 -632
  58. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +594 -551
  59. package/src/components/product/Supervisory/SupervisoryList.vue +78 -26
  60. package/src/main.js +27 -27
  61. package/static/images/lefticon//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
  62. package/static/images/lefticon//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
@@ -128,7 +128,11 @@ export default {
128
128
  item.value = []
129
129
  }
130
130
  }
131
-
131
+ if(this.selectdata.state === '结束'){
132
+ item.readonly = true
133
+ item.disabled = true
134
+ console.log('当前defname'+this.selectdata.defname+'当前title'+this.selectdata.title)
135
+ }
132
136
  this.selectdata[item.field] = item.value
133
137
  }
134
138
 
@@ -138,6 +142,9 @@ export default {
138
142
  if (!item.mark) {
139
143
  item.mark = 0
140
144
  }
145
+ if(this.selectdata.state === '结束'){
146
+ item.mark = 1
147
+ }
141
148
  })
142
149
  }
143
150
 
@@ -199,7 +206,7 @@ export default {
199
206
 
200
207
  // 初始化 buttons_fields
201
208
  for (const item of this.selectdata.buttons) {
202
- if (item.button_name === '下发') {
209
+ if (item.button_name === '下发' || item.button_name === '转派') {
203
210
 
204
211
  let data = {
205
212
  source: item.source,
@@ -256,6 +263,9 @@ export default {
256
263
  }
257
264
  })
258
265
  }
266
+ if(this.selectdata.state === '结束'){
267
+ item.hidden = true
268
+ }
259
269
  }
260
270
 
261
271
  if (this.selectdata.f_apply_nature === '散户' && this.selectdata.defname === '现场勘察') {
@@ -481,6 +491,9 @@ export default {
481
491
  if ((this.show_data.f_apply_type === '民用报建' && this.show_data.f_apply_nature === '小区') || this.show_data.f_apply_type === '非民用报建') {
482
492
  return
483
493
  }
494
+ if (this.show_data.f_house_type === '旧报建导入'){
495
+ return
496
+ }
484
497
  if (Number(this.show_data.f_due_money) > Number(this.show_data.f_cumulative_payment_money) || Number(this.show_data.f_surplus_money) > 0) {
485
498
  this.$showAlert('费用未结清!!!', 'warning', 3000)
486
499
  throw null
@@ -506,7 +519,7 @@ export default {
506
519
  // 获取设计人员
507
520
  async getDesignerPeople () {
508
521
  let data = {
509
- source: 'this.getParentByType($organization$).getChildByName($营业厅报装$).getChildren()',
522
+ source: 'this.getParentByType($organization$).getChildByName($设计人员$).getChildren()',
510
523
  userid: this.$login.f.id
511
524
  }
512
525
 
@@ -519,7 +532,7 @@ export default {
519
532
  return res.data.map(item => {
520
533
  return {
521
534
  label: item.name,
522
- value: item.id
535
+ value: item.name
523
536
  }
524
537
  })
525
538
  },
@@ -774,6 +787,7 @@ export default {
774
787
  }
775
788
  }))
776
789
  },
790
+ //查询现场负责人
777
791
  async getConstructionWorker(){
778
792
  let data = {
779
793
  source: 'this.getParentByType($organization$).getChildByName($建设单位$).getChildren()',
@@ -781,7 +795,7 @@ export default {
781
795
  }
782
796
 
783
797
  let res = await this.$resetpost(
784
- `${this.$androidUtil.getProxyUrl()}/rs/search`,
798
+ `rs/search`,
785
799
  {data: data},
786
800
  {resolveMsg: null, rejectMsg: '现场负责人查询失败!!!'}
787
801
  )
@@ -844,6 +858,29 @@ export default {
844
858
  userid: this.$login.f.id
845
859
  }
846
860
 
861
+ let res = await this.$resetpost(
862
+ 'rs/search',
863
+ {data: data},
864
+ {resolveMsg: null, rejectMsg: '安装单位负责人查询失败!!!'}
865
+ )
866
+ console.log("显示返回值",res)
867
+ let constructionUnit = res.data.map(item => {
868
+ return {
869
+ label: item.name,
870
+ value: item.id
871
+ }
872
+ })
873
+ constructionUnit = constructionUnit.sort((a,b) => a.value - b.value)
874
+ console.log("显示返回值1",constructionUnit)
875
+ return constructionUnit
876
+ },
877
+ // 管线施工单位
878
+ async getGuanXianBuildUnit () {
879
+ let data = {
880
+ source: 'this.getParentByType($organization$).getChildByName($工程施工队$).getChildren()',
881
+ userid: this.$login.f.id
882
+ }
883
+
847
884
  let res = await this.$resetpost(
848
885
  'rs/search',
849
886
  {data: data},
@@ -853,7 +890,7 @@ export default {
853
890
  return res.data.map(item => {
854
891
  return {
855
892
  label: item.name,
856
- value: item.id
893
+ value: item.name
857
894
  }
858
895
  })
859
896
  },
@@ -902,6 +939,26 @@ export default {
902
939
  }
903
940
  })
904
941
  },
942
+ // 管线监理单位
943
+ async getSupervisorName () {
944
+ let data = {
945
+ source: 'this.getParentByType($organization$).getChildByName($监理单位$).getChildren()',
946
+ userid: this.$login.f.id
947
+ }
948
+
949
+ let res = await this.$resetpost(
950
+ 'rs/search',
951
+ {data: data},
952
+ {resolveMsg: null, rejectMsg: '监理单位人员查询失败!!!'}
953
+ )
954
+ return res.data.map(item => {
955
+ return {
956
+ label: item.name,
957
+ value: item.name
958
+ }
959
+ })
960
+ },
961
+
905
962
  // 监理现场负责人
906
963
  async getSupervisorOperatorId () {
907
964
  let data = {
@@ -942,6 +999,28 @@ export default {
942
999
  result.push({label:'无',value:'无'})
943
1000
  return result
944
1001
  },
1002
+ // 管线土建单位
1003
+ async getEngineeringName () {
1004
+ let data = {
1005
+ source: 'this.getParentByType($organization$).getChildByName($土建单位$).getChildren()',
1006
+ userid: this.$login.f.id
1007
+ }
1008
+
1009
+ let res = await this.$resetpost(
1010
+ 'rs/search',
1011
+ {data: data},
1012
+ {resolveMsg: null, rejectMsg: '土建单位人员查询失败!!!'}
1013
+ )
1014
+ let result = res.data.map(item => {
1015
+ return {
1016
+ label: item.name,
1017
+ value: item.name
1018
+ }
1019
+ })
1020
+ result.push({label:'用户自理',value:'用户自理'})
1021
+ result.push({label:'无',value:'无'})
1022
+ return result
1023
+ },
945
1024
  // 检测单位
946
1025
  async getCheckOperator () {
947
1026
  let data = {
@@ -964,6 +1043,28 @@ export default {
964
1043
  result.push({label:'无',value:'无'})
965
1044
  return result
966
1045
  },
1046
+ // 管线检测单位
1047
+ async getCheckName () {
1048
+ let data = {
1049
+ source: 'this.getParentByType($organization$).getChildByName($检测单位$).getChildren()',
1050
+ userid: this.$login.f.id
1051
+ }
1052
+
1053
+ let res = await this.$resetpost(
1054
+ 'rs/search',
1055
+ {data: data},
1056
+ {resolveMsg: null, rejectMsg: '检测单位人员查询失败!!!'}
1057
+ )
1058
+
1059
+ let result = res.data.map(item => {
1060
+ return {
1061
+ label: item.name,
1062
+ value: item.name
1063
+ }
1064
+ })
1065
+ result.push({label:'无',value:'无'})
1066
+ return result
1067
+ },
967
1068
  // 获取气表品牌
968
1069
  async getMeterBrand () {
969
1070
  let data = {
@@ -1024,6 +1125,7 @@ export default {
1024
1125
  }
1025
1126
  })
1026
1127
  },
1128
+ //获取燃气公司内部签署人
1027
1129
  async getContractSignatory () {
1028
1130
  let data = {
1029
1131
  condition: `asj.f_type = '内部' and asj.f_subject_type = '企业' and asj.f_state = '有效' and asj.f_auth_state = '审核通过' and asg.f_state = '有效' and asg.f_sign_state = '签章成功'`
@@ -1096,7 +1198,7 @@ export default {
1096
1198
  {resolveMsg: null, rejectMsg: null}
1097
1199
  )
1098
1200
  },
1099
- // 生成合同编号
1201
+ // 生成合同编号(已作废)
1100
1202
  async getContractNumber() {
1101
1203
  const nowDate = new Date()
1102
1204
  let year = nowDate.getFullYear()
@@ -1132,6 +1234,7 @@ export default {
1132
1234
  this.setLabelValue('供气合同编号',gongQiContractNumber)
1133
1235
  }
1134
1236
  },
1237
+ //获取气价列表
1135
1238
  async getPrice (index) {
1136
1239
  if (isEmpty(this.show_data.f_gas_nature) || isEmpty(this.show_data.f_price_type)) {
1137
1240
  return
@@ -1257,13 +1360,16 @@ export default {
1257
1360
  {data: data},
1258
1361
  {resolveMsg: null, rejectMsg: null}
1259
1362
  )
1260
- for (const item of this.selectdata.fields) {
1261
- if (item.label === '缴费日期') {
1262
- item.value = res.data[0].finishtime
1263
- this.selectdata[item.field] = item.value
1363
+ if (res.data[0]) {
1364
+ for (const item of this.selectdata.fields) {
1365
+ if (item.label === '缴费日期') {
1366
+ item.value = res.data[0].finishtime
1367
+ this.selectdata[item.field] = item.value
1368
+ }
1264
1369
  }
1265
1370
  }
1266
1371
  },
1372
+ //获取工程施工时各部门当前签字环节
1267
1373
  async getSingAct() {
1268
1374
  let data = {
1269
1375
  f_process_id: this.selectdata.f_process_id
@@ -1284,11 +1390,18 @@ export default {
1284
1390
  }
1285
1391
  }
1286
1392
  },
1393
+ //获取土建的乙方
1287
1394
  getYiFang() {
1288
1395
  return [{label: '榆林榆川天然气', value: '榆林榆川天然气'},
1289
1396
  {label: this.selectdata.f_user_name, value: this.selectdata.f_user_name},
1290
1397
  {label: '无', value: '无'}]
1291
1398
  },
1399
+ getGaiXianType () {
1400
+ return [{label: "隐患整改", value: "隐患整改"},
1401
+ {label: "改造工程", value: "改造工程"},
1402
+ {label: "改线工程", value: "改线工程"},
1403
+ {label: "老旧小区", value: "老旧小区"}]
1404
+ },
1292
1405
  async checkIsUser() {
1293
1406
  let data = {
1294
1407
  items: 'count(*) num' ,
@@ -1334,7 +1447,25 @@ export default {
1334
1447
  , '户内施工备注', '庭院出单日期', '庭院回单日期', '庭院施工备注', '是否发起签字', '签字是否完成', '签字所在环节')
1335
1448
  this.requiredLabels('现场项目负责人', '安装单位', '安装单位现场负责人','建设单位', '监理单位', '土建单位', '检测单位', '现场项目负责人', '是否发起签字', '签字是否完成', '签字所在环节')
1336
1449
  }
1337
- }
1450
+ },
1451
+ //拆除流程核对气量提交
1452
+ async gasCheckBefore() {
1453
+ let http = new HttpResetClass()
1454
+ let data = {
1455
+ tablename: 't_files',
1456
+ condition: `f_blobid = '${this.selectdata.f_process_id}' and defname = '${this.selectdata.defname}' and fusetype = '气量核对单'`
1457
+ }
1458
+ let res = await http.load(
1459
+ 'POST',
1460
+ `rs/sql/applySingleTable`,
1461
+ {data: data},
1462
+ {resolveMsg: null, rejectMsg: null}
1463
+ )
1464
+ if (res.data.length <= 0) {
1465
+ this.$showMessage('气量核对单未上传,无法提交!!!')
1466
+ throw '气量核对单未上传,无法提交!'
1467
+ }
1468
+ },
1338
1469
  },
1339
1470
  events: {
1340
1471
  // 强制开关阀
@@ -1433,7 +1564,10 @@ export default {
1433
1564
  if (row.f_address_detail){
1434
1565
  this.setLabelValue('详细地址', row.f_address_detail)
1435
1566
  }
1436
-
1567
+ if (this.show_data.f_apply_type === '改线业务'){
1568
+ this.setLabelValue('工程名称', row.f_user_name)
1569
+ this.setLabelValue('联系电话', row.f_user_phone)
1570
+ }
1437
1571
  this.show_data.f_address_detail = row.f_address_detail
1438
1572
  this.show_data.f_residential_area = row.f_residential_area
1439
1573
  this.show_data.unit = row.unit
@@ -1445,10 +1579,23 @@ export default {
1445
1579
  this.show_data.f_paper_account = row.f_paper_account
1446
1580
  this.show_data.f_userinfo_id = row.f_userinfo_id
1447
1581
  console.log("当前数据",this.show_data)
1582
+ if (this.show_data.f_apply_type === '设备拆除'){
1583
+ let data = {
1584
+ userinfo: row,
1585
+ apply: this.show_data,
1586
+ loginUser: this.$login.f
1587
+ }
1588
+ let res = await this.$resetpost(
1589
+ `rs/logic/addChaiChuUser`,
1590
+ {data: data},
1591
+ {resolveMsg: '添加拆除用户成功!!!', rejectMsg: '添加拆除用户失败!!!'}
1592
+ )
1593
+ this.$dispatch('breakControl', this.show_data)
1594
+ }
1448
1595
  },
1449
1596
  async 'priceReadEvent' (index) {
1450
1597
  await this.setContractSignatory()
1451
- await this.getContractNumber()
1598
+ // await this.getContractNumber()
1452
1599
  await this.getPrice(index)
1453
1600
  await this.priceChange()
1454
1601
  },
@@ -1556,8 +1703,9 @@ export default {
1556
1703
  // 开启签字
1557
1704
  async 'startSignActivity' () {
1558
1705
  this.hideButtons('签字')
1559
- await this.constructionBefore()
1560
-
1706
+ if(this.show_data.f_apply_type !== '管线建设'){
1707
+ await this.constructionBefore()
1708
+ }
1561
1709
  let data = {
1562
1710
  apply: this.show_data,
1563
1711
  user: this.$login.f
@@ -1698,6 +1846,13 @@ export default {
1698
1846
  return
1699
1847
  }
1700
1848
  },
1849
+ // 土建单位失去焦点
1850
+ 'judgmentEngineering' (index) {
1851
+ if (this.show_data.f_engineering_operator_id === '无' && this.show_data.f_civil_engineering !== "无") {
1852
+ this.$showAlert('土建单位未选择请注意!!!', 'warning', 3000)
1853
+ throw null
1854
+ }
1855
+ },
1701
1856
  // 报建性质失去焦点
1702
1857
  'applyNatureChange' (index) {
1703
1858
  if (this.show_data.f_apply_nature === '散户') {
@@ -1797,6 +1952,13 @@ export default {
1797
1952
  this.hideLabels('纠纷原因')
1798
1953
  }
1799
1954
  },
1955
+ //金额大小写转换
1956
+ 'applyCapitalizedAmount' (index){
1957
+ // 通过正则过滤小数点后两位
1958
+ let money = (this.show_data.fields[index].value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
1959
+ this.setLabelValue('应交金额大写',this.smalltoBIG(money))
1960
+ },
1961
+
1800
1962
  // ===========================================
1801
1963
  'initializtionView' () {
1802
1964
  if (this.show_data.f_apply_nature === '散户') {
@@ -0,0 +1,79 @@
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="baobiao">
4
+ <tab-button v-ref:list :active="0">
5
+ <tabs header="市场开发部月度报表">
6
+ <apply-stair-kaifa v-ref:paperfeimain></apply-stair-kaifa>
7
+ </tabs>
8
+ <tabs header="每月安装收入明细表">
9
+ <apply-stair-anzhuang v-ref:papermain></apply-stair-anzhuang>
10
+ </tabs>
11
+ <tabs header="用户管理部通气月报表">
12
+ <apply-stair-tongqi v-ref:paperfeimain></apply-stair-tongqi>
13
+ </tabs>
14
+ <tabs header="用户管理部未通气月报表">
15
+ <apply-stair-wtongqi v-ref:paperfeimain></apply-stair-wtongqi>
16
+ </tabs>
17
+ </tab-button>
18
+ </div>
19
+ </div>
20
+ </template>
21
+ <script>
22
+ import Vue from 'vue'
23
+ import {HttpResetClass} from 'vue-client'
24
+ export default {
25
+ title: '报表明细',
26
+ data () {
27
+ return {
28
+ showRight: false,
29
+ type: null,
30
+ selectdata: null,
31
+ show: []
32
+ }
33
+ },
34
+ methods: {
35
+ },
36
+ events: {
37
+ 'handleOrder' (type, row) {
38
+ this.showRight = false
39
+
40
+ this.type = type
41
+ this.selectdata = row
42
+
43
+ this.$nextTick(() => {
44
+ this.showRight = true
45
+ })
46
+ },
47
+ 'search' () {
48
+ this.selectdata = null
49
+ this.showRight = false
50
+ this.type = null
51
+
52
+ this.$refs.query.$refs.cp.$refs.cri.search()
53
+ }
54
+ },
55
+ watch: {
56
+ }
57
+ }
58
+ </script>
59
+ <style>
60
+ .baobiao {
61
+ padding: 1%;
62
+ margin: 1%;
63
+ width: 99%;
64
+ height: auto;
65
+ background-color: #ffffff;
66
+ border-radius: 14px;
67
+ box-shadow: 0px 1px 10px 0px rgba(2, 56, 104, 0.13);
68
+ }
69
+
70
+ .baobiao-right {
71
+ padding: 1%;
72
+ margin: 1% 1% 1% 0;
73
+ width: 58%;
74
+ height: auto;
75
+ background-color: #ffffff;
76
+ box-shadow: 0px 1px 10px 0px rgba(2, 56, 104, 0.13);
77
+ border-radius: 14px;
78
+ }
79
+ </style>