apply-clients 5.0.35-6 → 5.0.35-60

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 (51) 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/components/app_apply/ApplyDownList.vue +168 -164
  7. package/src/components/app_apply/ApplyInfo.vue +56 -56
  8. package/src/components/app_apply/ApplyListUpload.vue +268 -268
  9. package/src/components/app_apply/ApplyToDoList.vue +2820 -242
  10. package/src/components/app_apply/Gongcheng.vue +3596 -0
  11. package/src/components/app_apply/OneToMany.vue +194 -0
  12. package/src/components/app_apply/PlaceControler.vue +299 -256
  13. package/src/components/app_apply/ServiceControl.vue +495 -335
  14. package/src/components/app_apply/ServiceView.vue +383 -383
  15. package/src/components/app_apply/ezhou/FeiMinYongV.vue +109 -109
  16. package/src/components/app_apply/ezhou/FeiMinYongVV.vue +100 -100
  17. package/src/components/app_apply/ezhou/MinYong.vue +92 -92
  18. package/src/components/app_apply/ezhou/ServiceView.vue +790 -620
  19. package/src/components/image/doc.jpg +0 -0
  20. package/src/components/image/dwg.png +0 -0
  21. package/src/components/image/dxf.png +0 -0
  22. package/src/components/image/excel.jpg +0 -0
  23. package/src/components/image/pdf.jpg +0 -0
  24. package/src/components/product/Common/ApplyValidateBill.vue +13 -6
  25. package/src/components/product/Common/PrintBill.vue +3 -2
  26. package/src/components/product/EngineeringManagement/EngineerUpload.vue +304 -0
  27. package/src/components/product/EngineeringManagement/EngineeringManagement.vue +137 -0
  28. package/src/components/product/EngineeringManagement/EngineeringSelect.vue +588 -0
  29. package/src/components/product/EngineeringSupervisory/EngineeringApplyStopInfo.vue +281 -0
  30. package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryControl.vue +130 -0
  31. package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryList.vue +350 -0
  32. package/src/components/product/Function/InstallInfoSelect.vue +3 -2
  33. package/src/components/product/Function/Service/FunctionServiceControl.vue +37 -1
  34. package/src/components/product/Function/functions/ApplyUpload.vue +556 -0
  35. package/src/components/product/Function/functions/BuyerMessage.vue +1 -1
  36. package/src/components/product/Function/functions/InstallFee.vue +1145 -919
  37. package/src/components/product/Process/ExplorationSelect.vue +9 -5
  38. package/src/components/product/Process/Processes/CustomerRecordMessage.vue +2 -5
  39. package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +123 -37
  40. package/src/components/product/Process/Processes/Service/PaperTicketBill.vue +85 -0
  41. package/src/components/product/Process/Processes/Service/ServiceControl.vue +269 -19
  42. package/src/components/product/ServiceView.vue +16 -6
  43. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +53 -6
  44. package/src/components/product/Supervisory/SupervisoryList.vue +3 -2
  45. package/src/components/product/applyReport/ApplyReport.vue +205 -0
  46. package/src/components/product/applyReport/PrintApplyReport.vue +116 -0
  47. package/src/components/product/stopInfo/ApplyStopInfo.vue +2 -1
  48. package/src/ezhouAndroid.js +48 -45
  49. package/src/index.js +8 -8
  50. package/src/main.js +32 -32
  51. package/src/plugins/commonService.js +11 -7
@@ -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,72 @@
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
+ f_idnumber:this.selectdata.f_social_credit_code,
189
+ user:this.$login.f
190
+ }
191
+ await http.load('POST','rs/logic/newaddApplyproduct',{data:data}, {resolveMsg: null, rejectMsg: '转发失败,请联系开发人员'})
192
+ this.$dispatch('close')
193
+ },
194
+ // 终止报建
195
+ async stopapplys () {
196
+ this.models = Object.assign({}, this.selectdata, this.models)
197
+ this.models.id = null
198
+ this.models.applyid = this.selectdata.id
199
+ this.models.f_operat_type = '终止报建'
200
+ this.models.f_state = '有效'
201
+ this.models.f_describe = this.selectdata.f_user_name + '已终止报建'
202
+ let data ={
203
+ tablename:'t_project_stop',
204
+ parameters:this.models
205
+ }
206
+ let http = new HttpResetClass()
207
+ await http.load('POST','rs/logic/save', {data:data},{resolveMsg: null, rejectMsg: "添加失败"})
208
+ await http.load('POST','rs/logic/stopapply', {data:this.models},{resolveMsg: null, rejectMsg: "终止失败"})
209
+ this.closeback()
210
+ this.$dispatch('close')
211
+ },
212
+ // 关闭终止备注弹框
213
+ closeback() {
214
+ this.stop_show = false
215
+ },
142
216
  closeAccept () {
143
217
  this.acceptprint = false
144
218
  },
@@ -449,7 +523,7 @@
449
523
  } else {
450
524
  data = {
451
525
  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}'`
526
+ condition: `f_process_id='${this.selectdata.f_process_id}'`
453
527
  }
454
528
  }
455
529
  let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
@@ -914,6 +988,40 @@
914
988
  }
915
989
  }
916
990
  }
991
+ if (this.show_data.defname === '施工') {
992
+ let http = new HttpResetClass()
993
+ let data = {
994
+ f_process_id: this.show_data.f_process_id,
995
+ defname: this.show_data.defname
996
+ }
997
+ let res = await http.load('POST', 'rs/sql/getFileNames', {data:data},
998
+ {resolveMsg: null, rejectMsg: null})
999
+
1000
+ // for (let i = 0; i < res.length; i++){
1001
+ // this.data.f_project_material += res.data.fusetype + ','
1002
+ // }
1003
+ res.data.forEach(item =>{
1004
+ this.show_data.f_project_material += item.fusetype + ','
1005
+ })
1006
+ }
1007
+ // if (this.show_data.defname === '施工验收') {
1008
+ // let http = new HttpResetClass()
1009
+ // let data = {
1010
+ // f_process_id: this.show_data.f_process_id,
1011
+ // defname: this.show_data.defname
1012
+ // }
1013
+ // let res = await http.load('POST', 'rs/sql/getFileNames', {data:data},
1014
+ // {resolveMsg: null, rejectMsg: null})
1015
+ // this.show_data.f_iscomplete_information = ''
1016
+ // res.data.forEach(item =>{
1017
+ // this.show_data.f_iscomplete_information += item.fusetype + ','
1018
+ // })
1019
+ // for (j = 0; j < this.show_data.fields.length; j++) {
1020
+ // if (this.show_data.fields[j].label === '验收已上传文件') {
1021
+ // this.show_data.fields[j].value = this.show_data.f_iscomplete_information
1022
+ // }
1023
+ // }
1024
+ // }
917
1025
  // 显示组件
918
1026
  // this.showview = false
919
1027
  // debugger
@@ -956,6 +1064,48 @@
956
1064
  }
957
1065
  }
958
1066
  }
1067
+ if(this.$refs.service_show.data.fields[index].label=="施工提交资料"){
1068
+ for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
1069
+
1070
+ if(this.$refs.service_show.data.fields[i].label=="施工已上传文件"){
1071
+ //增加和删除框中的内容
1072
+ if(this.$refs.service_show.data.fields[index].items[index2].value == false){
1073
+ this.$refs.service_show.data.fields[i].value+=this.$refs.service_show.data.fields[index].items[index2].label+" ";
1074
+ this.$refs.service_show.data.fields[index].items[index2].value=true;
1075
+ }else{
1076
+ let deleteValue = this.$refs.service_show.data.fields[index].items[index2].label;
1077
+ let values =this.$refs.service_show.data.fields[i].value;
1078
+ let result = values.split(" ").filter((item)=>{
1079
+ return item!=deleteValue;
1080
+ }).join(" ")
1081
+ this.$refs.service_show.data.fields[i].value =result;
1082
+ this.$refs.service_show.data.fields[index].items[index2].value=false;
1083
+ }
1084
+ //}
1085
+ }
1086
+ }
1087
+ }
1088
+ if(this.$refs.service_show.data.fields[index].label=="验收提交资料"){
1089
+ for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
1090
+
1091
+ if(this.$refs.service_show.data.fields[i].label=="验收已上传文件"){
1092
+ //增加和删除框中的内容
1093
+ if(this.$refs.service_show.data.fields[index].items[index2].value == false){
1094
+ this.$refs.service_show.data.fields[i].value+=this.$refs.service_show.data.fields[index].items[index2].label+" ";
1095
+ this.$refs.service_show.data.fields[index].items[index2].value=true;
1096
+ }else{
1097
+ let deleteValue = this.$refs.service_show.data.fields[index].items[index2].label;
1098
+ let values =this.$refs.service_show.data.fields[i].value;
1099
+ let result = values.split(" ").filter((item)=>{
1100
+ return item!=deleteValue;
1101
+ }).join(" ")
1102
+ this.$refs.service_show.data.fields[i].value =result;
1103
+ this.$refs.service_show.data.fields[index].items[index2].value=false;
1104
+ }
1105
+ //}
1106
+ }
1107
+ }
1108
+ }
959
1109
  },
960
1110
  'get-number'(val) {
961
1111
  this.number = val
@@ -970,8 +1120,11 @@
970
1120
  ,
971
1121
  // 任意select选中时触发事件,关联性操作
972
1122
  async 'select_cascade'(index) {
973
-
974
-
1123
+ for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
1124
+ if (this.$refs.service_show.data.fields[i].label === '工程盈利') {
1125
+ this.$refs.service_show.data.fields[i].value = c
1126
+ }
1127
+ }
975
1128
 
976
1129
 
977
1130
  if (this.$refs.service_show.data.fields[index].label == '施工单位' ||
@@ -1412,21 +1565,33 @@
1412
1565
  if (this.$refs.service_show.data.fields[i].label === '楼号' && this.$refs.service_show.data.fields[i].value) {
1413
1566
  address += this.$refs.service_show.data.fields[i].value
1414
1567
  }
1568
+ if (this.$refs.service_show.data.fields[i].label === '楼号' && this.$refs.service_show.data.fields[i].value) {
1569
+ address += '栋'
1570
+ }
1415
1571
  if (this.$refs.service_show.data.fields[i].label === '单元号' && this.$refs.service_show.data.fields[i].value) {
1416
1572
  address += '-' +this.$refs.service_show.data.fields[i].value
1417
1573
  }
1574
+ if (this.$refs.service_show.data.fields[i].label === '单元号' && this.$refs.service_show.data.fields[i].value) {
1575
+ address += '单元'
1576
+ }
1418
1577
  if (this.$refs.service_show.data.fields[i].label === '楼层' && this.$refs.service_show.data.fields[i].value) {
1419
1578
  address += '-' +this.$refs.service_show.data.fields[i].value
1420
1579
  }
1580
+ if (this.$refs.service_show.data.fields[i].label === '楼层' && this.$refs.service_show.data.fields[i].value) {
1581
+ address += '层'
1582
+ }
1421
1583
  if (this.$refs.service_show.data.fields[i].label === '门牌号' && this.$refs.service_show.data.fields[i].value) {
1422
1584
  address += '-' +this.$refs.service_show.data.fields[i].value
1423
1585
  }
1586
+ if (this.$refs.service_show.data.fields[i].label === '门牌号' && this.$refs.service_show.data.fields[i].value) {
1587
+ address += '室'
1588
+ }
1424
1589
 
1425
1590
  }
1426
1591
  console.log('获取到的address=>' + address)
1427
1592
  // 数据获取完毕时放入地址text
1428
1593
  for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
1429
- if (this.$refs.service_show.data.fields[i].label === '地址') {
1594
+ if (this.$refs.service_show.data.fields[i].label === '地址' || this.$refs.service_show.data.fields[i].label === '报装地址') {
1430
1595
  this.$refs.service_show.data.fields[i].value = address
1431
1596
  console.log('修改fields[i].value后的值=>' + this.$refs.service_show.data.fields[i].value)
1432
1597
  }
@@ -1439,31 +1604,34 @@
1439
1604
  this.$refs.service_show.data.fields[index].label === '人工费'
1440
1605
  ) {
1441
1606
  console.log('即将合成价格')
1607
+ let a1 = 0
1608
+ let b1 = 0
1609
+ let c1 = 0
1442
1610
  let fee = 0
1443
1611
  for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
1444
1612
  // 控制设置级联
1445
1613
  // 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
1446
1614
  // xxx xx xxx
1447
1615
  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)
1616
+ a1 = this.$refs.service_show.data.fields[i].value
1449
1617
  }
1450
1618
  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)
1619
+ b1= this.$refs.service_show.data.fields[i].value
1452
1620
  }
1453
1621
  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)
1622
+ c1 = this.$refs.service_show.data.fields[i].value
1455
1623
  }
1624
+ fee=parseFloat(parseFloat(a1) + parseFloat(b1)+parseFloat(c1)).toFixed(2)
1456
1625
  // 数据获取完毕时放入地址text
1457
1626
  for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
1458
1627
  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
1628
+ this.$refs.service_show.data.fields[i].value =fee
1460
1629
  console.log('修改fields[i].value后的值=>' + this.$refs.service_show.data.fields[i].value)
1461
1630
  }
1462
1631
  }
1463
1632
  }
1464
1633
  }
1465
1634
  if (this.$refs.service_show.data.fields[index].label == '用户类型'){
1466
- debugger
1467
1635
  if(this.$refs.service_show.data.fields[index].value == '非民用'){
1468
1636
  for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
1469
1637
  if (this.$refs.service_show.data.fields[i].label === '小区名称') {
@@ -1478,6 +1646,60 @@
1478
1646
  }
1479
1647
  }
1480
1648
  }
1649
+
1650
+ if (this.$refs.service_show.data.fields[index].label === '施工是否完成') {
1651
+ let temp = this.$refs.service_show.data.fields[index].value
1652
+ console.log('==============================施工是否完成:' + temp)
1653
+ if (temp === '是') {
1654
+ let f_project_material = ''
1655
+ if (this.$refs.service_show.data.defname === '施工') {
1656
+ let http = new HttpResetClass()
1657
+ let data = {
1658
+ f_process_id: this.$refs.service_show.data.f_process_id,
1659
+ defname: this.$refs.service_show.data.defname
1660
+ }
1661
+ let res = await http.load('POST', 'rs/sql/getFileNames', {data:data},
1662
+ {resolveMsg: null, rejectMsg: null})
1663
+ res.data.forEach(item =>{
1664
+ f_project_material += item.fusetype + ','
1665
+ })
1666
+ }
1667
+
1668
+ for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
1669
+ if (this.$refs.service_show.data.fields[i].label === '施工已上传文件') {
1670
+ this.$refs.service_show.data.fields[i].value = f_project_material
1671
+ }
1672
+ }
1673
+ }
1674
+ }
1675
+
1676
+ if (this.$refs.service_show.data.fields[index].label === '验收是否完成') {
1677
+ let temp = this.$refs.service_show.data.fields[index].value
1678
+ console.log('==============================验收是否完成:' + temp)
1679
+ if (temp === '是') {
1680
+ let f_iscomplete_information = ''
1681
+ if (this.$refs.service_show.data.defname === '施工验收') {
1682
+ let http = new HttpResetClass()
1683
+ let data = {
1684
+ f_process_id: this.$refs.service_show.data.f_process_id,
1685
+ defname: this.$refs.service_show.data.defname
1686
+ }
1687
+ let res = await http.load('POST', 'rs/sql/getFileNames', {data:data},
1688
+ {resolveMsg: null, rejectMsg: null})
1689
+ res.data.forEach(item =>{
1690
+ f_iscomplete_information += item.fusetype + ','
1691
+ })
1692
+ }
1693
+
1694
+ for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
1695
+ if (this.$refs.service_show.data.fields[i].label === '验收已上传文件') {
1696
+ this.$refs.service_show.data.fields[i].value = f_iscomplete_information
1697
+ }
1698
+ }
1699
+ }
1700
+ }
1701
+
1702
+
1481
1703
  },
1482
1704
  // onetomany模态框监听事件
1483
1705
  async 'select_cascade_modal'(i,j){
@@ -1518,7 +1740,26 @@
1518
1740
  ,
1519
1741
  // 获取view层button事件/
1520
1742
  async 'button'(model) {
1521
- // console.log("button事件接收参数:", model)
1743
+ debugger
1744
+ console.log("button事件接收参数:", model)
1745
+ if (this.data.defname==='踏勘、建立工程编号'){
1746
+ if (model.button.button_name === '终止'){
1747
+ this.stop_show=true
1748
+ return
1749
+ }
1750
+ }
1751
+ if (this.data.defname === '通气转单'){
1752
+ if (model.button.button_name === '散户报装'){
1753
+ this.addactive('报装申请')
1754
+ }
1755
+ if (model.button.button_name === '集体报装'){
1756
+ this.addactive('集体报装申请')
1757
+ }
1758
+ setTimeout(() => {
1759
+
1760
+ }, 200)
1761
+ }
1762
+
1522
1763
  // 点击重置按钮就重置数据
1523
1764
  if (model.button.button_name === '重置') {
1524
1765
  this.refurbish()
@@ -1567,10 +1808,23 @@
1567
1808
 
1568
1809
  }
1569
1810
  if (model.button.button_name === '提交') {
1811
+ // for (let i = 0; i < this.show_data.fields.length; i++) {
1812
+ // if (this.show_data.fields[i].label === '收费项目') {
1813
+ // let yuanXiang = this.show_data.fields[i].value
1814
+ // if (yuanXiang != '' && yuanXiang != null) {
1815
+ // for (let i = 0; i < yuanXiang.length; i++) {
1816
+ // this.xia += yuanXiang[i] + '-'
1817
+ // }
1818
+ // let idx = this.xia.lastIndexOf("-");
1819
+ // this.xiangmu = this.xia.substring(0,idx)
1820
+ // }
1821
+ // model.f_charge_items = this.xiangmu
1822
+ // }
1823
+ // }
1570
1824
  var flag = false
1571
1825
  if (this.data.defname == '合同审核') {
1572
1826
  flag = true
1573
- http = new HttpResetClass()
1827
+ let http = new HttpResetClass()
1574
1828
  let data = {
1575
1829
  tablename: 't_singlevalue',
1576
1830
  condition: `name = '合同编号' and f_filialeids = '${this.$login.f.f_orgids}'`
@@ -1611,7 +1865,7 @@
1611
1865
  if(requestData.model.f_stair_price_name === ''|| requestData.model.f_stair_price_name === null|| requestData.model.f_stair_price_name === undefined){
1612
1866
  requestData.model.f_stair_price_name = this.selectdata.f_stair_price_name
1613
1867
  }
1614
- console.log(requestData.model.f_stair_price_name)
1868
+ console.log("流程下一步",requestData.model.f_stair_price_name)
1615
1869
  // 下发,提交,保存,退回通用业务后台处理logic
1616
1870
  url = 'rs/logic/ApplyProductService'
1617
1871
  requestData = {
@@ -1651,8 +1905,6 @@
1651
1905
  this.$showMessage(res.data.msg)
1652
1906
  }
1653
1907
  }
1654
-
1655
-
1656
1908
  /*
1657
1909
  if(this.selectdata.defname =='报装申请'|| this.selectdata.defname =='现场勘查'|| this.selectdata.defname =='验收'||this.selectdata.defname =='集体报装申请'||this.selectdata.defname =='现场勘查人员分配'||this.selectdata.defname =='安装通气' ){
1658
1910
  console.log("defname======================================",this.selectdata.defname)
@@ -1696,9 +1948,6 @@
1696
1948
  await http1.load('POST', 'rs/logic/getPost', {data:data2})
1697
1949
  }
1698
1950
  */
1699
-
1700
-
1701
-
1702
1951
  }
1703
1952
  ,
1704
1953
  async 'onetomanydelete'(i, j) {
@@ -1805,4 +2054,5 @@
1805
2054
  }
1806
2055
  }
1807
2056
  }
2057
+
1808
2058
  </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 {
@@ -113,7 +113,7 @@
113
113
  <div class="col-sm-2" style="float: left">
114
114
  <label class="col-sm-4 control-label">报装来源</label>
115
115
  <div class="col-sm-8">
116
- <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'全部',value:''},{label:'燃气系统',value:'燃气系统'},{label:'微信',value:'微信'}]"
116
+ <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'全部',value:''},{label:'燃气系统',value:'燃气系统'},{label:'微信',value:'微信'},{label:'住建局',value:'住建局'}]"
117
117
  condition="f_apply_source = '{}'" placeholder='报装来源'
118
118
  v-model="model.f_apply_source" :value.sync="model.f_apply_source" close-on-select>
119
119
  </v-select>
@@ -246,7 +246,8 @@
246
246
  model: new PagedList('rs/sql/supervisory', 20, {
247
247
  data: {
248
248
  id: `${this.$login.f.name}`,
249
- fengongsi: `${this.$login.f.f_fengongsi}`
249
+ fengongsi: `${this.$login.f.f_fengongsi}`,
250
+ f_product_id :0
250
251
  }
251
252
  }),
252
253
  condition: '',