apply-clients 5.0.35-46 → 5.0.35-49

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 (24) hide show
  1. package/package.json +1 -1
  2. package/src/apply.js +8 -0
  3. package/src/components/app_apply/ApplyToDoList.vue +2822 -2822
  4. package/src/components/image/doc.jpg +0 -0
  5. package/src/components/image/dwg.png +0 -0
  6. package/src/components/image/dxf.png +0 -0
  7. package/src/components/image/excel.jpg +0 -0
  8. package/src/components/image/pdf.jpg +0 -0
  9. package/src/components/product/EngineeringManagement/EngineerUpload.vue +304 -0
  10. package/src/components/product/EngineeringManagement/EngineeringManagement.vue +137 -0
  11. package/src/components/product/EngineeringManagement/EngineeringSelect.vue +588 -0
  12. package/src/components/product/EngineeringSupervisory/EngineeringApplyStopInfo.vue +281 -0
  13. package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryControl.vue +130 -0
  14. package/src/components/product/EngineeringSupervisory/EngineeringSupervisoryList.vue +350 -0
  15. package/src/components/product/Function/InstallInfoSelect.vue +255 -254
  16. package/src/components/product/Process/ExplorationSelect.vue +640 -641
  17. package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +391 -391
  18. package/src/components/product/Process/Processes/Service/ServiceControl.vue +236 -10
  19. package/src/components/product/ServiceView.vue +810 -811
  20. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +453 -453
  21. package/src/components/product/Supervisory/SupervisoryList.vue +350 -349
  22. package/src/components/product/stopInfo/ApplyStopInfo.vue +281 -280
  23. package/src/ezhouAndroid.js +48 -46
  24. package/src/main.js +32 -32
@@ -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>
@@ -134,13 +147,71 @@
134
147
  rows: [] // 购货方信息
135
148
  },
136
149
  bill: '',
137
- 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
+ }
138
158
  }
139
159
  },
140
160
  methods: {
141
161
  /*
142
162
  ============================================收费临时使用
143
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
+ },
144
215
  closeAccept () {
145
216
  this.acceptprint = false
146
217
  },
@@ -916,6 +987,40 @@
916
987
  }
917
988
  }
918
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
+ // }
919
1024
  // 显示组件
920
1025
  // this.showview = false
921
1026
  // debugger
@@ -958,6 +1063,48 @@
958
1063
  }
959
1064
  }
960
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
+ }
961
1108
  },
962
1109
  'get-number'(val) {
963
1110
  this.number = val
@@ -1417,21 +1564,33 @@
1417
1564
  if (this.$refs.service_show.data.fields[i].label === '楼号' && this.$refs.service_show.data.fields[i].value) {
1418
1565
  address += this.$refs.service_show.data.fields[i].value
1419
1566
  }
1567
+ if (this.$refs.service_show.data.fields[i].label === '楼号' && this.$refs.service_show.data.fields[i].value) {
1568
+ address += '栋'
1569
+ }
1420
1570
  if (this.$refs.service_show.data.fields[i].label === '单元号' && this.$refs.service_show.data.fields[i].value) {
1421
1571
  address += '-' +this.$refs.service_show.data.fields[i].value
1422
1572
  }
1573
+ if (this.$refs.service_show.data.fields[i].label === '单元号' && this.$refs.service_show.data.fields[i].value) {
1574
+ address += '单元'
1575
+ }
1423
1576
  if (this.$refs.service_show.data.fields[i].label === '楼层' && this.$refs.service_show.data.fields[i].value) {
1424
1577
  address += '-' +this.$refs.service_show.data.fields[i].value
1425
1578
  }
1579
+ if (this.$refs.service_show.data.fields[i].label === '楼层' && this.$refs.service_show.data.fields[i].value) {
1580
+ address += '层'
1581
+ }
1426
1582
  if (this.$refs.service_show.data.fields[i].label === '门牌号' && this.$refs.service_show.data.fields[i].value) {
1427
1583
  address += '-' +this.$refs.service_show.data.fields[i].value
1428
1584
  }
1585
+ if (this.$refs.service_show.data.fields[i].label === '门牌号' && this.$refs.service_show.data.fields[i].value) {
1586
+ address += '室'
1587
+ }
1429
1588
 
1430
1589
  }
1431
1590
  console.log('获取到的address=>' + address)
1432
1591
  // 数据获取完毕时放入地址text
1433
1592
  for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
1434
- 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 === '报装地址') {
1435
1594
  this.$refs.service_show.data.fields[i].value = address
1436
1595
  console.log('修改fields[i].value后的值=>' + this.$refs.service_show.data.fields[i].value)
1437
1596
  }
@@ -1472,7 +1631,6 @@
1472
1631
  }
1473
1632
  }
1474
1633
  if (this.$refs.service_show.data.fields[index].label == '用户类型'){
1475
- debugger
1476
1634
  if(this.$refs.service_show.data.fields[index].value == '非民用'){
1477
1635
  for (let i = 0; i < this.$refs.service_show.data.fields.length; i++) {
1478
1636
  if (this.$refs.service_show.data.fields[i].label === '小区名称') {
@@ -1487,6 +1645,60 @@
1487
1645
  }
1488
1646
  }
1489
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
+
1490
1702
  },
1491
1703
  // onetomany模态框监听事件
1492
1704
  async 'select_cascade_modal'(i,j){
@@ -1528,6 +1740,23 @@
1528
1740
  // 获取view层button事件/
1529
1741
  async 'button'(model) {
1530
1742
  // console.log("button事件接收参数:", model)
1743
+ if (this.data.defname==='踏勘、建立工程编号'){
1744
+ if (model.button.button_name === '终止'){
1745
+ this.stop_show=true
1746
+ return
1747
+ }
1748
+ }
1749
+ if (this.data.defname==='通气转单'){
1750
+ if (model.button.button_name === '散户报装'){
1751
+ this.addactive('报装申请')
1752
+ return
1753
+ }
1754
+ }
1755
+ if (this.data.defname==='通气转单'){
1756
+ if (model.button.button_name === '集体报装'){
1757
+ this.addactive('集体报装申请')
1758
+ return
1759
+ }
1531
1760
  // 点击重置按钮就重置数据
1532
1761
  if (model.button.button_name === '重置') {
1533
1762
  this.refurbish()
@@ -1592,7 +1821,7 @@
1592
1821
  var flag = false
1593
1822
  if (this.data.defname == '合同审核') {
1594
1823
  flag = true
1595
- http = new HttpResetClass()
1824
+ let http = new HttpResetClass()
1596
1825
  let data = {
1597
1826
  tablename: 't_singlevalue',
1598
1827
  condition: `name = '合同编号' and f_filialeids = '${this.$login.f.f_orgids}'`
@@ -1673,8 +1902,7 @@
1673
1902
  this.$showMessage(res.data.msg)
1674
1903
  }
1675
1904
  }
1676
-
1677
-
1905
+ }
1678
1906
  /*
1679
1907
  if(this.selectdata.defname =='报装申请'|| this.selectdata.defname =='现场勘查'|| this.selectdata.defname =='验收'||this.selectdata.defname =='集体报装申请'||this.selectdata.defname =='现场勘查人员分配'||this.selectdata.defname =='安装通气' ){
1680
1908
  console.log("defname======================================",this.selectdata.defname)
@@ -1718,9 +1946,6 @@
1718
1946
  await http1.load('POST', 'rs/logic/getPost', {data:data2})
1719
1947
  }
1720
1948
  */
1721
-
1722
-
1723
-
1724
1949
  }
1725
1950
  ,
1726
1951
  async 'onetomanydelete'(i, j) {
@@ -1827,4 +2052,5 @@
1827
2052
  }
1828
2053
  }
1829
2054
  }
2055
+
1830
2056
  </script>