apply-clients 5.0.35-5 → 5.0.35-52

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 (84) hide show
  1. package/.eslintrc.js +16 -16
  2. package/package.json +3 -3
  3. package/src/AndroidApp.vue +28 -28
  4. package/src/android.js +1 -1
  5. package/src/apply.js +14 -1
  6. package/src/assets//347/224/250/346/210/267/345/234/260/345/235/200.png +0 -0
  7. package/src/assets//347/224/250/346/210/267/345/247/223/345/220/215.png +0 -0
  8. package/src/assets//347/224/250/346/210/267/347/224/265/350/257/235.png +0 -0
  9. package/src/components/app_apply/ApplyDownList.vue +168 -164
  10. package/src/components/app_apply/ApplyInfo.vue +56 -56
  11. package/src/components/app_apply/ApplyListUpload.vue +268 -268
  12. package/src/components/app_apply/ApplyToDoList.vue +2660 -10
  13. package/src/components/app_apply/Gongcheng.vue +2836 -0
  14. package/src/components/app_apply/OneToMany.vue +194 -0
  15. package/src/components/app_apply/PlaceControler.vue +299 -256
  16. package/src/components/app_apply/ServiceControl.vue +354 -335
  17. package/src/components/app_apply/ServiceView.vue +383 -383
  18. package/src/components/app_apply/ezhou/FeiMinYongV.vue +109 -109
  19. package/src/components/app_apply/ezhou/FeiMinYongVV.vue +100 -100
  20. package/src/components/app_apply/ezhou/MinYong.vue +92 -92
  21. package/src/components/app_apply/ezhou/ServiceView.vue +790 -620
  22. package/src/components/image/doc.jpg +0 -0
  23. package/src/components/image/dwg.png +0 -0
  24. package/src/components/image/dxf.png +0 -0
  25. package/src/components/image/excel.jpg +0 -0
  26. package/src/components/image/pdf.jpg +0 -0
  27. package/src/components/product/Common/ApplyValidateBill.vue +13 -6
  28. package/src/components/product/Common/PrintBill.vue +3 -2
  29. package/src/components/product/EngineeringManagement/EngineerUpload.vue +304 -0
  30. package/src/components/product/EngineeringManagement/EngineeringManagement.vue +137 -0
  31. package/src/components/product/EngineeringManagement/EngineeringSelect.vue +588 -0
  32. package/src/components/product/EngineeringSupervisory/EngineeringApplyStopInfo.vue +281 -0
  33. package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryControl.vue +130 -0
  34. package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryList.vue +350 -0
  35. package/src/components/product/Function/InstallInfoSelect.vue +255 -254
  36. package/src/components/product/Function/Service/FunctionServiceControl.vue +37 -1
  37. package/src/components/product/Function/functions/ApplyUpload.vue +556 -0
  38. package/src/components/product/Function/functions/BuyerMessage.vue +512 -512
  39. package/src/components/product/Function/functions/InstallFee.vue +546 -343
  40. package/src/components/product/Process/ExplorationSelect.vue +640 -636
  41. package/src/components/product/Process/Processes/CustomerRecordMessage.vue +2 -5
  42. package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +123 -37
  43. package/src/components/product/Process/Processes/Service/PaperTicketBill.vue +85 -0
  44. package/src/components/product/Process/Processes/Service/ServiceControl.vue +268 -19
  45. package/src/components/product/ServiceView.vue +16 -6
  46. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +53 -6
  47. package/src/components/product/Supervisory/SupervisoryList.vue +350 -349
  48. package/src/components/product/applyReport/ApplyReport.vue +205 -0
  49. package/src/components/product/applyReport/PrintApplyReport.vue +116 -0
  50. package/src/components/product/stopInfo/ApplyStopInfo.vue +281 -280
  51. package/src/ezhouAndroid.js +13 -10
  52. package/src/index.js +8 -8
  53. package/src/main.js +1 -1
  54. package/src/plugins/commonService.js +11 -7
  55. package/static/newStyle/clear.png +0 -0
  56. package/static/newStyle/fife.png +0 -0
  57. package/static/newStyle/hidden.png +0 -0
  58. package/static/newStyle/label-clear.png +0 -0
  59. package/static/newStyle/left-img.png +0 -0
  60. package/static/newStyle/list_ok.png +0 -0
  61. package/static/newStyle/login-check.png +0 -0
  62. package/static/newStyle/login-con.png +0 -0
  63. package/static/newStyle/login-do.gif +0 -0
  64. package/static/newStyle/login-f.png +0 -0
  65. package/static/newStyle/login-info.png +0 -0
  66. package/static/newStyle/login-left.png +0 -0
  67. package/static/newStyle/login-org.png +0 -0
  68. package/static/newStyle/login-pwd.png +0 -0
  69. package/static/newStyle/login-user.png +0 -0
  70. package/static/newStyle/loginbg.gif +0 -0
  71. package/static/newStyle/loginbg1280.gif +0 -0
  72. package/static/newStyle/loginbg1366.gif +0 -0
  73. package/static/newStyle/loginbg_1.gif +0 -0
  74. package/static/newStyle/searchin.png +0 -0
  75. package/static/newStyle/searchout.png +0 -0
  76. package/static/newStyle/setting.png +0 -0
  77. package/static/newStyle/setting1.png +0 -0
  78. package/static/newStyle/shirk.png +0 -0
  79. package/static/newStyle/stretch_bottom.png +0 -0
  80. package/static/newStyle/stretch_left.png +0 -0
  81. package/static/newStyle/stretch_right.png +0 -0
  82. package/static/newStyle/stretch_top.png +0 -0
  83. package/static/newStyle/system-off.png +0 -0
  84. package/static/newStyle//350/261/252/344/275/263/347/207/203/346/260/224.png +0 -0
@@ -70,7 +70,20 @@
70
70
  <!-- <report-print id='bill-fee' top='15mm' left='5mm' width='90%' height='70%' :showbtn="false" preview="true"-->
71
71
  <!-- v-ref:reportprint></report-print>-->
72
72
  <!-- </div>-->
73
-
73
+ <modal :show.sync="stop_show" v-ref:modal stop_show="false">
74
+ <header slot="modal-header" class="modal-header">
75
+ <button type="button" class="close" @click="closeback"><span>&times;</span></button>
76
+ <h4 class="modal-title">终止备注</h4>
77
+ </header>
78
+ <article slot="modal-body" class="modal-body">
79
+ <div class="from-group">
80
+ <input type="text" class="form-control" v-model="models.f_stop_remarks"/>
81
+ </div>
82
+ </article>
83
+ <footer slot="modal-footer" class="modal-footer">
84
+ <button v-show="stop_show" type="button" class="btn btn-default" @click='stopapplys'>确认</button>
85
+ </footer>
86
+ </modal>
74
87
 
75
88
  </template>
76
89
  <script>
@@ -117,6 +130,8 @@
117
130
  contract: null, // 单值表合同编号记录
118
131
  technologist: [], // 技术人员 角色下的人
119
132
  price: 0,
133
+ xiangmu:'',
134
+ xia:'',
120
135
  cost: 0,
121
136
  number: 0,
122
137
  pgd: '',
@@ -132,13 +147,71 @@
132
147
  rows: [] // 购货方信息
133
148
  },
134
149
  bill: '',
135
- areaall:[]
150
+ areaall:[],
151
+ stop_show:false, // 终止备注开关
152
+ models: {
153
+ f_date: Util.toStandardTimeString(),
154
+ f_department: this.$login.f.f_parentname,
155
+ f_operator: this.$login.f.name,
156
+ f_filiale: this.$login.f.f_fengongsi
157
+ }
136
158
  }
137
159
  },
138
160
  methods: {
139
161
  /*
140
162
  ============================================收费临时使用
141
163
  */
164
+ // 转到报建
165
+ async addactive(modify) {
166
+ this.selectdata.applyid = this.selectdata.id
167
+ // this.$resetpost('rs/logic/stopapply', {data: this.selectdata})
168
+ this.$workflow_vue.start_activity = modify
169
+ let http = new HttpResetClass()
170
+ let res = await http.load('POST','rs/logic/ApplyGetProcessID',{data:{filename:this.$workflow_vue.workflow_xmlfilename,start_activity:this.$workflow_vue.start_activity}}, {resolveMsg: null, rejectMsg: '获取流程ID失败,请联系开发人员'})
171
+ let data = {
172
+ defname: this.$workflow_vue.start_activity,
173
+ f_process_id: res.data.f_process_id,
174
+ f_apply_date: Util.toStandardTimeString(),
175
+ f_product_id: res.data.f_product_id,
176
+ start_activity:this.$workflow_vue.start_activity,
177
+ f_user_type:this.selectdata.f_user_type,
178
+ f_user_name:this.selectdata.f_user_name,
179
+ f_phone:this.selectdata.f_phone,
180
+ f_area:this.selectdata.f_area,
181
+ f_street:this.selectdata.f_street,
182
+ f_residential_area:this.selectdata.f_residential_area,
183
+ f_building:this.selectdata.f_building,
184
+ f_unit:this.selectdata.f_unit,
185
+ f_floor:this.selectdata.f_floor,
186
+ f_room:this.selectdata.f_room,
187
+ f_address:this.selectdata.f_address,
188
+ user:this.$login.f
189
+ }
190
+ await http.load('POST','rs/logic/newaddApplyproduct',{data:data}, {resolveMsg: null, rejectMsg: '转发失败,请联系开发人员'})
191
+ this.$dispatch('close')
192
+ },
193
+ // 终止报建
194
+ async stopapplys () {
195
+ this.models = Object.assign({}, this.selectdata, this.models)
196
+ this.models.id = null
197
+ this.models.applyid = this.selectdata.id
198
+ this.models.f_operat_type = '终止报建'
199
+ this.models.f_state = '有效'
200
+ this.models.f_describe = this.selectdata.f_user_name + '已终止报建'
201
+ let data ={
202
+ tablename:'t_project_stop',
203
+ parameters:this.models
204
+ }
205
+ let http = new HttpResetClass()
206
+ await http.load('POST','rs/logic/save', {data:data},{resolveMsg: null, rejectMsg: "添加失败"})
207
+ await http.load('POST','rs/logic/stopapply', {data:this.models},{resolveMsg: null, rejectMsg: "终止失败"})
208
+ this.closeback()
209
+ this.$dispatch('close')
210
+ },
211
+ // 关闭终止备注弹框
212
+ closeback() {
213
+ this.stop_show = false
214
+ },
142
215
  closeAccept () {
143
216
  this.acceptprint = false
144
217
  },
@@ -449,7 +522,7 @@
449
522
  } else {
450
523
  data = {
451
524
  tablename: this.data.onetomany[index].tables[0],
452
- condition: `f_apply_num = '${this.selectdata.f_apply_num}' and f_process_id='${this.selectdata.f_process_id}'`
525
+ condition: `f_process_id='${this.selectdata.f_process_id}'`
453
526
  }
454
527
  }
455
528
  let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
@@ -914,6 +987,40 @@
914
987
  }
915
988
  }
916
989
  }
990
+ if (this.show_data.defname === '施工') {
991
+ let http = new HttpResetClass()
992
+ let data = {
993
+ f_process_id: this.show_data.f_process_id,
994
+ defname: this.show_data.defname
995
+ }
996
+ let res = await http.load('POST', 'rs/sql/getFileNames', {data:data},
997
+ {resolveMsg: null, rejectMsg: null})
998
+
999
+ // for (let i = 0; i < res.length; i++){
1000
+ // this.data.f_project_material += res.data.fusetype + ','
1001
+ // }
1002
+ res.data.forEach(item =>{
1003
+ this.show_data.f_project_material += item.fusetype + ','
1004
+ })
1005
+ }
1006
+ // if (this.show_data.defname === '施工验收') {
1007
+ // let http = new HttpResetClass()
1008
+ // let data = {
1009
+ // f_process_id: this.show_data.f_process_id,
1010
+ // defname: this.show_data.defname
1011
+ // }
1012
+ // let res = await http.load('POST', 'rs/sql/getFileNames', {data:data},
1013
+ // {resolveMsg: null, rejectMsg: null})
1014
+ // this.show_data.f_iscomplete_information = ''
1015
+ // res.data.forEach(item =>{
1016
+ // this.show_data.f_iscomplete_information += item.fusetype + ','
1017
+ // })
1018
+ // for (j = 0; j < this.show_data.fields.length; j++) {
1019
+ // if (this.show_data.fields[j].label === '验收已上传文件') {
1020
+ // this.show_data.fields[j].value = this.show_data.f_iscomplete_information
1021
+ // }
1022
+ // }
1023
+ // }
917
1024
  // 显示组件
918
1025
  // this.showview = false
919
1026
  // debugger
@@ -956,6 +1063,48 @@
956
1063
  }
957
1064
  }
958
1065
  }
1066
+ if(this.$refs.service_show.data.fields[index].label=="施工提交资料"){
1067
+ for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
1068
+
1069
+ if(this.$refs.service_show.data.fields[i].label=="施工已上传文件"){
1070
+ //增加和删除框中的内容
1071
+ if(this.$refs.service_show.data.fields[index].items[index2].value == false){
1072
+ this.$refs.service_show.data.fields[i].value+=this.$refs.service_show.data.fields[index].items[index2].label+" ";
1073
+ this.$refs.service_show.data.fields[index].items[index2].value=true;
1074
+ }else{
1075
+ let deleteValue = this.$refs.service_show.data.fields[index].items[index2].label;
1076
+ let values =this.$refs.service_show.data.fields[i].value;
1077
+ let result = values.split(" ").filter((item)=>{
1078
+ return item!=deleteValue;
1079
+ }).join(" ")
1080
+ this.$refs.service_show.data.fields[i].value =result;
1081
+ this.$refs.service_show.data.fields[index].items[index2].value=false;
1082
+ }
1083
+ //}
1084
+ }
1085
+ }
1086
+ }
1087
+ if(this.$refs.service_show.data.fields[index].label=="验收提交资料"){
1088
+ for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
1089
+
1090
+ if(this.$refs.service_show.data.fields[i].label=="验收已上传文件"){
1091
+ //增加和删除框中的内容
1092
+ if(this.$refs.service_show.data.fields[index].items[index2].value == false){
1093
+ this.$refs.service_show.data.fields[i].value+=this.$refs.service_show.data.fields[index].items[index2].label+" ";
1094
+ this.$refs.service_show.data.fields[index].items[index2].value=true;
1095
+ }else{
1096
+ let deleteValue = this.$refs.service_show.data.fields[index].items[index2].label;
1097
+ let values =this.$refs.service_show.data.fields[i].value;
1098
+ let result = values.split(" ").filter((item)=>{
1099
+ return item!=deleteValue;
1100
+ }).join(" ")
1101
+ this.$refs.service_show.data.fields[i].value =result;
1102
+ this.$refs.service_show.data.fields[index].items[index2].value=false;
1103
+ }
1104
+ //}
1105
+ }
1106
+ }
1107
+ }
959
1108
  },
960
1109
  'get-number'(val) {
961
1110
  this.number = val
@@ -970,8 +1119,11 @@
970
1119
  ,
971
1120
  // 任意select选中时触发事件,关联性操作
972
1121
  async 'select_cascade'(index) {
973
-
974
-
1122
+ for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
1123
+ if (this.$refs.service_show.data.fields[i].label === '工程盈利') {
1124
+ this.$refs.service_show.data.fields[i].value = c
1125
+ }
1126
+ }
975
1127
 
976
1128
 
977
1129
  if (this.$refs.service_show.data.fields[index].label == '施工单位' ||
@@ -1412,21 +1564,33 @@
1412
1564
  if (this.$refs.service_show.data.fields[i].label === '楼号' && this.$refs.service_show.data.fields[i].value) {
1413
1565
  address += this.$refs.service_show.data.fields[i].value
1414
1566
  }
1567
+ if (this.$refs.service_show.data.fields[i].label === '楼号' && this.$refs.service_show.data.fields[i].value) {
1568
+ address += '栋'
1569
+ }
1415
1570
  if (this.$refs.service_show.data.fields[i].label === '单元号' && this.$refs.service_show.data.fields[i].value) {
1416
1571
  address += '-' +this.$refs.service_show.data.fields[i].value
1417
1572
  }
1573
+ if (this.$refs.service_show.data.fields[i].label === '单元号' && this.$refs.service_show.data.fields[i].value) {
1574
+ address += '单元'
1575
+ }
1418
1576
  if (this.$refs.service_show.data.fields[i].label === '楼层' && this.$refs.service_show.data.fields[i].value) {
1419
1577
  address += '-' +this.$refs.service_show.data.fields[i].value
1420
1578
  }
1579
+ if (this.$refs.service_show.data.fields[i].label === '楼层' && this.$refs.service_show.data.fields[i].value) {
1580
+ address += '层'
1581
+ }
1421
1582
  if (this.$refs.service_show.data.fields[i].label === '门牌号' && this.$refs.service_show.data.fields[i].value) {
1422
1583
  address += '-' +this.$refs.service_show.data.fields[i].value
1423
1584
  }
1585
+ if (this.$refs.service_show.data.fields[i].label === '门牌号' && this.$refs.service_show.data.fields[i].value) {
1586
+ address += '室'
1587
+ }
1424
1588
 
1425
1589
  }
1426
1590
  console.log('获取到的address=>' + address)
1427
1591
  // 数据获取完毕时放入地址text
1428
1592
  for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
1429
- if (this.$refs.service_show.data.fields[i].label === '地址') {
1593
+ if (this.$refs.service_show.data.fields[i].label === '地址' || this.$refs.service_show.data.fields[i].label === '报装地址') {
1430
1594
  this.$refs.service_show.data.fields[i].value = address
1431
1595
  console.log('修改fields[i].value后的值=>' + this.$refs.service_show.data.fields[i].value)
1432
1596
  }
@@ -1439,31 +1603,34 @@
1439
1603
  this.$refs.service_show.data.fields[index].label === '人工费'
1440
1604
  ) {
1441
1605
  console.log('即将合成价格')
1606
+ let a1 = 0
1607
+ let b1 = 0
1608
+ let c1 = 0
1442
1609
  let fee = 0
1443
1610
  for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
1444
1611
  // 控制设置级联
1445
1612
  // 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
1446
1613
  // xxx xx xxx
1447
1614
  if (this.$refs.service_show.data.fields[i].label === '工程安装费' && this.$refs.service_show.data.fields[i].value) {
1448
- fee += parseInt(this.$refs.service_show.data.fields[i].value)
1615
+ a1 = this.$refs.service_show.data.fields[i].value
1449
1616
  }
1450
1617
  if (this.$refs.service_show.data.fields[i].label === '材料费' && this.$refs.service_show.data.fields[i].value) {
1451
- fee += parseInt(this.$refs.service_show.data.fields[i].value)
1618
+ b1= this.$refs.service_show.data.fields[i].value
1452
1619
  }
1453
1620
  if (this.$refs.service_show.data.fields[i].label === '人工费' && this.$refs.service_show.data.fields[i].value) {
1454
- fee += parseInt(this.$refs.service_show.data.fields[i].value)
1621
+ c1 = this.$refs.service_show.data.fields[i].value
1455
1622
  }
1623
+ fee=parseFloat(parseFloat(a1) + parseFloat(b1)+parseFloat(c1)).toFixed(2)
1456
1624
  // 数据获取完毕时放入地址text
1457
1625
  for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
1458
1626
  if (this.$refs.service_show.data.fields[i].label === '费用合计'||this.$refs.service_show.data.fields[i].label === '未结总金额') {
1459
- this.$refs.service_show.data.fields[i].value = fee
1627
+ this.$refs.service_show.data.fields[i].value =fee
1460
1628
  console.log('修改fields[i].value后的值=>' + this.$refs.service_show.data.fields[i].value)
1461
1629
  }
1462
1630
  }
1463
1631
  }
1464
1632
  }
1465
1633
  if (this.$refs.service_show.data.fields[index].label == '用户类型'){
1466
- debugger
1467
1634
  if(this.$refs.service_show.data.fields[index].value == '非民用'){
1468
1635
  for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
1469
1636
  if (this.$refs.service_show.data.fields[i].label === '小区名称') {
@@ -1478,6 +1645,60 @@
1478
1645
  }
1479
1646
  }
1480
1647
  }
1648
+
1649
+ if (this.$refs.service_show.data.fields[index].label === '施工是否完成') {
1650
+ let temp = this.$refs.service_show.data.fields[index].value
1651
+ console.log('==============================施工是否完成:' + temp)
1652
+ if (temp === '是') {
1653
+ let f_project_material = ''
1654
+ if (this.$refs.service_show.data.defname === '施工') {
1655
+ let http = new HttpResetClass()
1656
+ let data = {
1657
+ f_process_id: this.$refs.service_show.data.f_process_id,
1658
+ defname: this.$refs.service_show.data.defname
1659
+ }
1660
+ let res = await http.load('POST', 'rs/sql/getFileNames', {data:data},
1661
+ {resolveMsg: null, rejectMsg: null})
1662
+ res.data.forEach(item =>{
1663
+ f_project_material += item.fusetype + ','
1664
+ })
1665
+ }
1666
+
1667
+ for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
1668
+ if (this.$refs.service_show.data.fields[i].label === '施工已上传文件') {
1669
+ this.$refs.service_show.data.fields[i].value = f_project_material
1670
+ }
1671
+ }
1672
+ }
1673
+ }
1674
+
1675
+ if (this.$refs.service_show.data.fields[index].label === '验收是否完成') {
1676
+ let temp = this.$refs.service_show.data.fields[index].value
1677
+ console.log('==============================验收是否完成:' + temp)
1678
+ if (temp === '是') {
1679
+ let f_iscomplete_information = ''
1680
+ if (this.$refs.service_show.data.defname === '施工验收') {
1681
+ let http = new HttpResetClass()
1682
+ let data = {
1683
+ f_process_id: this.$refs.service_show.data.f_process_id,
1684
+ defname: this.$refs.service_show.data.defname
1685
+ }
1686
+ let res = await http.load('POST', 'rs/sql/getFileNames', {data:data},
1687
+ {resolveMsg: null, rejectMsg: null})
1688
+ res.data.forEach(item =>{
1689
+ f_iscomplete_information += item.fusetype + ','
1690
+ })
1691
+ }
1692
+
1693
+ for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
1694
+ if (this.$refs.service_show.data.fields[i].label === '验收已上传文件') {
1695
+ this.$refs.service_show.data.fields[i].value = f_iscomplete_information
1696
+ }
1697
+ }
1698
+ }
1699
+ }
1700
+
1701
+
1481
1702
  },
1482
1703
  // onetomany模态框监听事件
1483
1704
  async 'select_cascade_modal'(i,j){
@@ -1518,7 +1739,26 @@
1518
1739
  ,
1519
1740
  // 获取view层button事件/
1520
1741
  async 'button'(model) {
1521
- // console.log("button事件接收参数:", model)
1742
+ debugger
1743
+ console.log("button事件接收参数:", model)
1744
+ if (this.data.defname==='踏勘、建立工程编号'){
1745
+ if (model.button.button_name === '终止'){
1746
+ this.stop_show=true
1747
+ return
1748
+ }
1749
+ }
1750
+ if (this.data.defname === '通气转单'){
1751
+ if (model.button.button_name === '散户报装'){
1752
+ this.addactive('报装申请')
1753
+ }
1754
+ if (model.button.button_name === '集体报装'){
1755
+ this.addactive('集体报装申请')
1756
+ }
1757
+ setTimeout(() => {
1758
+
1759
+ }, 200)
1760
+ }
1761
+
1522
1762
  // 点击重置按钮就重置数据
1523
1763
  if (model.button.button_name === '重置') {
1524
1764
  this.refurbish()
@@ -1567,10 +1807,23 @@
1567
1807
 
1568
1808
  }
1569
1809
  if (model.button.button_name === '提交') {
1810
+ // for (let i = 0; i < this.show_data.fields.length; i++) {
1811
+ // if (this.show_data.fields[i].label === '收费项目') {
1812
+ // let yuanXiang = this.show_data.fields[i].value
1813
+ // if (yuanXiang != '' && yuanXiang != null) {
1814
+ // for (let i = 0; i < yuanXiang.length; i++) {
1815
+ // this.xia += yuanXiang[i] + '-'
1816
+ // }
1817
+ // let idx = this.xia.lastIndexOf("-");
1818
+ // this.xiangmu = this.xia.substring(0,idx)
1819
+ // }
1820
+ // model.f_charge_items = this.xiangmu
1821
+ // }
1822
+ // }
1570
1823
  var flag = false
1571
1824
  if (this.data.defname == '合同审核') {
1572
1825
  flag = true
1573
- http = new HttpResetClass()
1826
+ let http = new HttpResetClass()
1574
1827
  let data = {
1575
1828
  tablename: 't_singlevalue',
1576
1829
  condition: `name = '合同编号' and f_filialeids = '${this.$login.f.f_orgids}'`
@@ -1611,7 +1864,7 @@
1611
1864
  if(requestData.model.f_stair_price_name === ''|| requestData.model.f_stair_price_name === null|| requestData.model.f_stair_price_name === undefined){
1612
1865
  requestData.model.f_stair_price_name = this.selectdata.f_stair_price_name
1613
1866
  }
1614
- console.log(requestData.model.f_stair_price_name)
1867
+ console.log("流程下一步",requestData.model.f_stair_price_name)
1615
1868
  // 下发,提交,保存,退回通用业务后台处理logic
1616
1869
  url = 'rs/logic/ApplyProductService'
1617
1870
  requestData = {
@@ -1651,8 +1904,6 @@
1651
1904
  this.$showMessage(res.data.msg)
1652
1905
  }
1653
1906
  }
1654
-
1655
-
1656
1907
  /*
1657
1908
  if(this.selectdata.defname =='报装申请'|| this.selectdata.defname =='现场勘查'|| this.selectdata.defname =='验收'||this.selectdata.defname =='集体报装申请'||this.selectdata.defname =='现场勘查人员分配'||this.selectdata.defname =='安装通气' ){
1658
1909
  console.log("defname======================================",this.selectdata.defname)
@@ -1696,9 +1947,6 @@
1696
1947
  await http1.load('POST', 'rs/logic/getPost', {data:data2})
1697
1948
  }
1698
1949
  */
1699
-
1700
-
1701
-
1702
1950
  }
1703
1951
  ,
1704
1952
  async 'onetomanydelete'(i, j) {
@@ -1805,4 +2053,5 @@
1805
2053
  }
1806
2054
  }
1807
2055
  }
2056
+
1808
2057
  </script>
@@ -10,13 +10,13 @@
10
10
  <!--</div>-->
11
11
  <validator name="v">
12
12
  <form class="form-horizontal">
13
- <div class="col-sm-12 form-group">
13
+ <div class="col-sm-12 form-group form-group1">
14
14
  <div v-for="(index,item) in data.fields">
15
15
  <!--input-->
16
- <div :style="item.style? item.style+';height: 34px;':'height: 34px;'"
16
+ <div :style="item.style+';height: 34px;'"
17
17
  v-if="item.type==='input' || item.type==='number'||item.type === 'tel'||item.type === 'email'"
18
18
  v-show="!item.hidden"
19
- :class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-4 form-group']">
19
+ :class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-4 form-group form-group1']">
20
20
  <label :style="item.label_style? item.label_style:''+';width:85px;'"
21
21
  :class="item.label_bootstraped?item.label_bootstraped+' control-label-justify control-label':item.label_style?'':'control-label-justify control-label col-sm-6'">{{item.label}}</label>
22
22
  <div :style="item.value_style? item.value_style:''"
@@ -36,7 +36,7 @@
36
36
  <!--时间datepicker-->
37
37
  <div :style="item.style? item.style+';height: 34px;':'height: 34px;'" v-if="item.type==='datepicker'"
38
38
  v-show="!item.hidden"
39
- :class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-4 form-group']">
39
+ :class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-4 form-group form-group1']">
40
40
  <label style="width:85px"
41
41
  :class="item.label_bootstraped?item.label_bootstraped+' control-label-justify control-label':'control-label control-label-justify col-sm-6'">{{item.label}}</label>
42
42
  <div :class="item.value_bootstraped?item.value_bootstraped:'col-sm-6'">
@@ -94,7 +94,7 @@
94
94
 
95
95
  <!--select-->
96
96
  <div style="height: 34px" v-if="item.type==='select'" v-show="!item.hidden"
97
- :class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-4 form-group']">
97
+ :class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group ':'col-sm-4 form-group']">
98
98
  <label style="width:85px;"
99
99
  :class="item.label_bootstraped?item.label_bootstraped+' control-label control-label-justify':'control-label-justify control-label col-sm-6'">{{item.label}}</label>
100
100
  <input-select :class="item.value_bootstraped?item.value_bootstraped:'col-sm-6'" @blur="check_disable"
@@ -106,6 +106,7 @@
106
106
 
107
107
  </div>
108
108
 
109
+
109
110
  <!--checkbox-->
110
111
  <div v-if="item.type==='checkbox'"
111
112
  :class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-12 form-group']">
@@ -122,7 +123,7 @@
122
123
  </div>
123
124
  <!-- onetomany -->
124
125
  <div class="col-sm-12" v-for="(i,datagrid) in data.onetomany">
125
- <table v-show="!datagrid.hidden" class="table table-bordered table-striped table-hover">
126
+ <table v-show="!datagrid.hidden" class="table table-bordered table-striped table-hover" style="margin-top: 80px">
126
127
  <tr style="background-color: #00A3F0">
127
128
  <th style="text-align: center;border-color: #00A3F0"><font color="white">序号</font></th>
128
129
  <th v-for="labels in datagrid.fields" style="text-align: center;border-color: #00A3F0">
@@ -506,6 +507,12 @@
506
507
  },
507
508
  // 初始化数据
508
509
  initializtion() {
510
+ if(this.data.f_apply_type='集体报建' && this.data.f_user_type=='非民用' && this.data.defname=='验收'){
511
+ for(let j=0;j< this.data.fields.length;j++) {
512
+ this.data.fields[j].required = false
513
+ }
514
+ }
515
+
509
516
  let fields = this.data.fields
510
517
  let flag = false
511
518
  for (let i = 0; i < fields.length; i++) {
@@ -797,4 +804,7 @@
797
804
  tr {
798
805
  height: 34px;
799
806
  }
807
+ .form-group{
808
+ margin-top:20px;
809
+ }
800
810
  </style>
@@ -20,6 +20,7 @@
20
20
  </template>
21
21
  <script>
22
22
  import {HttpResetClass} from 'vue-client'
23
+ import Vue from "vue";
23
24
  export default {
24
25
  title: '报建监控控制层',
25
26
  props: ['selectdata'],
@@ -36,6 +37,45 @@
36
37
  },
37
38
  // json配置数据处理 比如下拉框的options
38
39
  async initializtion() {
40
+ // onetomany 数据获取
41
+ if (this.data.onetomany) {
42
+ console.log('判断是onetomany,this.data.onetomany的数据为=>' + JSON.stringify(this.data.onetomany))
43
+ for (let index = 0; index < this.data.onetomany.length; index++) {
44
+ let http = new HttpResetClass()
45
+ let data = {}
46
+ if (this.data.onetomany[index].tables[0] == 't_charge_record') {
47
+ data = {
48
+ tablename: this.data.onetomany[index].tables[0],
49
+ condition: `f_apply_num = '${this.selectdata.f_apply_num}' and f_process_id='${this.selectdata.f_process_id}' and f_charging_status != '作废'`
50
+ }
51
+ } else {
52
+ data = {
53
+ tablename: this.data.onetomany[index].tables[0],
54
+ condition: `f_process_id='${this.selectdata.f_process_id}'`
55
+ }
56
+ }
57
+ let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
58
+ resolveMsg: null,
59
+ rejectMsg: 'onetomany查询失败'
60
+ })
61
+ // 初始化 onetomany
62
+ let rows = []
63
+ console.log('查询返回结果res.data=>' + JSON.stringify(res.data))
64
+ this.data.onetomany[index].rows = res.data
65
+ // console.log(JSON.stringify('this.data.onetomany[index].rows=>' + JSON.stringify(this.data.onetomany[index].rows)))
66
+
67
+ // 初始化onetomany中的fields
68
+ for (let j = 0; j < this.data.onetomany[index].fields.length; j++) {
69
+ // 如果配置类型为select,优先从参数列表获取options
70
+ if (this.data.onetomany[index].fields[j].type === 'select') {
71
+ let temp = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
72
+ if (temp && temp.length > 0) {
73
+ this.data.onetomany[index].fields[j].options = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
74
+ }
75
+ }
76
+ }
77
+ }
78
+ }
39
79
  // selectdata 填充 data
40
80
  if (this.selectdata.f_survey_name) {
41
81
  let buyerinfos = []
@@ -133,11 +173,6 @@
133
173
  }
134
174
  ]
135
175
  }
136
- // 完成时间和完成人,部门,分公司
137
- this.data.filiale = this.selectdata.f_filiale
138
- this.data.f_parentname = this.selectdata.f_parentname
139
- this.data.operate_date = this.selectdata.finishtime
140
- this.data.operator = this.selectdata.sender
141
176
  }
142
177
  },
143
178
  events:{
@@ -393,7 +428,19 @@
393
428
  if (sum == 1) {
394
429
  this.data = jsonData
395
430
  this.initializtion()
396
- this.showview = true
431
+ // 完成时间和完成人,部门,分公司
432
+ if(this.selectdata.defname =='完工'){ this.data.filiale = this.selectdata.f_filiale
433
+ this.data.f_parentname = this.selectdata.f_parentname
434
+ this.data.operate_date = this.selectdata.sendtime
435
+ this.data.operator = this.selectdata.sender
436
+ this.showview = true
437
+ }else{
438
+ this.data.f_parentname = this.selectdata.f_parentname
439
+ this.data.operate_date = this.selectdata.finishtime
440
+ this.data.operator = this.selectdata.person
441
+ this.showview = true
442
+ }
443
+
397
444
  } else if (sum == 0) {
398
445
  this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
399
446
  } else {