apply-clients 3.4.2 → 3.4.4

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 (130) hide show
  1. package/android.html +23 -23
  2. package/build/dev-server.js +119 -119
  3. package/build/webpack.base.conf.js +2 -1
  4. package/build/webpack.dev.conf.js +12 -0
  5. package/dingding.html +23 -0
  6. package/index.html +33 -33
  7. package/package.json +2 -1
  8. package/src/AndroidApp.vue +35 -35
  9. package/src/DingDingApp.vue +51 -0
  10. package/src/android.js +21 -21
  11. package/src/apply.js +38 -13
  12. package/src/applyAndroid.js +46 -32
  13. package/src/applyDingDing.js +12 -0
  14. package/src/components/android/AppOnetomany.vue +343 -301
  15. package/src/components/android/AppServiceView.vue +189 -10
  16. package/src/components/android/AppSign.vue +19 -7
  17. package/src/components/android/AppTakePic.vue +143 -143
  18. package/src/components/android/AreaSelect/AppQrcodeReader.vue +73 -0
  19. package/src/components/android/AreaSelect/AppResAreaMapGroup.vue +148 -0
  20. package/src/components/android/AreaSelect/AppResAreaSelect.vue +108 -0
  21. package/src/components/android/AreaSelect/AppResAreaSelectGroup.vue +142 -0
  22. package/src/components/android/Function/AppFunctionServiceControl.vue +344 -0
  23. package/src/components/android/Function/AppInstallFunction.vue +366 -0
  24. package/src/components/android/Process/AppExplorationUser.vue +500 -320
  25. package/src/components/android/Process/AppServiceControl.vue +999 -48
  26. package/src/components/android/Process/Processes/AppAddMaterialScience.vue +477 -0
  27. package/src/components/android/Process/Processes/AppBuildSign.vue +46 -0
  28. package/src/components/android/Process/Processes/AppChargeManagement.vue +637 -0
  29. package/src/components/android/Process/Processes/AppDevicesManagement.vue +519 -0
  30. package/src/components/android/Process/Processes/AppInstallationDetails.vue +116 -90
  31. package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +298 -0
  32. package/src/components/android/Process/Processes/selectApply.vue +250 -0
  33. package/src/components/android/Process/Processes/selectUserinfo.vue +182 -0
  34. package/src/components/android/ProgressReport/ProgressReportDetail.vue +64 -64
  35. package/src/components/android/Supervisory/AppProcessSupervisory.vue +205 -71
  36. package/src/components/android/Supervisory/AppSupervisoryCart.vue +69 -34
  37. package/src/components/android/TaskGraph.vue +125 -125
  38. package/src/components/common/TabButton.vue +149 -0
  39. package/src/components/common/Tabs.vue +67 -0
  40. package/src/components/image/dwg.jpg +0 -0
  41. package/src/components/image/txt.jpg +0 -0
  42. package/src/components/image//345/221/250/345/217/243/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  43. package/src/components/image//350/245/277/345/215/216/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  44. package/src/components/image//351/203/270/345/237/216/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  45. package/src/components/image//351/241/271/345/237/216/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  46. package/src/components/image//351/271/277/351/202/221/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  47. package/src/components/product/ApplyCharge/ApplyChargeList.vue +272 -53
  48. package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +3 -3
  49. package/src/components/product/AreaSelect/MyAreaSelect.vue +423 -0
  50. package/src/components/product/AreaSelect/ResAreaSelect.vue +106 -0
  51. package/src/components/product/AreaSelect/ResAreaSelectGroup.vue +150 -0
  52. package/src/components/product/AreaSelect/utils/EventListener.js +29 -0
  53. package/src/components/product/AreaSelect/utils/coerceBoolean.js +7 -0
  54. package/src/components/product/Business/BusinessApply.vue +269 -0
  55. package/src/components/product/Business/CivilApply.vue +269 -0
  56. package/src/components/product/Function/InstallFunction.vue +132 -125
  57. package/src/components/product/Function/InstallInfoSelect.vue +320 -292
  58. package/src/components/product/Function/Service/FunctionServiceControl.vue +445 -222
  59. package/src/components/product/GaoDeMapComponents/GaoDeMap.vue +231 -0
  60. package/src/components/product/GroupByApply/ApplyGroupByList.vue +253 -0
  61. package/src/components/product/GroupByApply/ApplyGroupByMain.vue +53 -0
  62. package/src/components/product/GroupByApply/ApplyGroupByPaper.vue +376 -0
  63. package/src/components/product/Install/InstallProject.vue +194 -0
  64. package/src/components/product/Material/MaterialDetailed.vue +262 -0
  65. package/src/components/product/OldApply/Handle/HandleApply.vue +337 -0
  66. package/src/components/product/OldApply/Monitor/MonitorApply.vue +360 -0
  67. package/src/components/product/OldApply/OldApply.vue +209 -0
  68. package/src/components/product/OldApply/OldApplyMessage.vue +420 -0
  69. package/src/components/product/Onetomany.vue +406 -377
  70. package/src/components/product/Print/BuildOrder/buildOrderList.vue +339 -0
  71. package/src/components/product/Print/BuildOrder/printBuildOrder.vue +157 -0
  72. package/src/components/product/Print/IgnitionBill/IgnitionBill.vue +259 -0
  73. package/src/components/product/Print/IgnitionBill/printIgnitionBill.vue +168 -0
  74. package/src/components/product/Process/ExplorationSelect.vue +495 -410
  75. package/src/components/product/Process/ExplorationUser.vue +189 -138
  76. package/src/components/product/Process/Processes/InstallationDetails.vue +25 -7
  77. package/src/components/product/Process/Processes/Print/printCharge.vue +41 -17
  78. package/src/components/product/Process/Processes/Print/printChargepc.vue +142 -0
  79. package/src/components/product/Process/Processes/Print/printRefund.vue +196 -0
  80. package/src/components/product/Process/Processes/addMaterialScience.vue +454 -0
  81. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +211 -207
  82. package/src/components/product/Process/Processes/chargeManagement.vue +20 -3
  83. package/src/components/product/Process/Processes/devicesManagement.vue +484 -478
  84. package/src/components/product/Process/Processes/selectApply.vue +2 -2
  85. package/src/components/product/Process/Service/ServiceControl.vue +638 -20
  86. package/src/components/product/Process/Service/ShowBackReason.vue +33 -33
  87. package/src/components/product/Process/ShowBackReason.vue +33 -0
  88. package/src/components/product/ServiceView.vue +357 -7
  89. package/src/components/product/Stop/StopApply.vue +101 -103
  90. package/src/components/product/Stop/StopApplyList.vue +271 -269
  91. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +884 -186
  92. package/src/components/product/Supervisory/SupervisoryControl.vue +137 -100
  93. package/src/components/product/Supervisory/SupervisoryList.vue +201 -30
  94. package/src/components/product/Supervisory/SupervisoryhCart.vue +130 -107
  95. package/src/components/product/VueUtils/ApplyUpload.vue +275 -273
  96. package/src/components/product/VueUtils/GaoPaiYi/HighMeter.vue +1090 -0
  97. package/src/components/product/VueUtils/HighMeter.vue +208 -208
  98. package/src/components/product/VueUtils/ToolsPage.vue +51 -0
  99. package/src/components/product/VueUtils/Tree.vue +330 -0
  100. package/src/dingding.js +19 -0
  101. package/src/expandcssAndroid.less +517 -1034
  102. package/src/filiale/yuchuan/android/Process/AppServiceControl.vue +735 -731
  103. package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetails.vue +824 -824
  104. package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetailsCivil.vue +650 -650
  105. package/src/filiale/yuchuan/android/Sign/AppSignTask.vue +182 -182
  106. package/src/filiale/yuchuan/android/Sign/BuildSign.vue +50 -50
  107. package/src/filiale/yuchuan/android/Sign/ConstructSign.vue +50 -50
  108. package/src/filiale/yuchuan/android/Sign/DesignSign.vue +50 -50
  109. package/src/filiale/yuchuan/android/Sign/SupervisorSign.vue +50 -50
  110. package/src/filiale/yuchuan/android/Task/Build/BuildTsak.vue +60 -60
  111. package/src/filiale/yuchuan/android/Task/Survey/SurveyTsak.vue +60 -60
  112. package/src/filiale/yuchuan/android.js +14 -14
  113. package/src/filiale/yuchuan/pc/Order/OrderApply.vue +528 -528
  114. package/src/filiale/yuchuan/pc/Order/OrderApplyList.vue +343 -343
  115. package/src/filiale/yuchuan/pc/Print/BuildOrder/buildOrderList.vue +264 -0
  116. package/src/filiale/yuchuan/pc/Print/BuildOrder/printBuildOrder.vue +152 -0
  117. package/src/filiale/yuchuan/pc/Process/ExplorationUser.vue +149 -149
  118. package/src/filiale/yuchuan/pc/Process/Processes/ApplyMapCom.vue +67 -67
  119. package/src/filiale/yuchuan/pc/Process/Processes/InstallationDetails.vue +809 -809
  120. package/src/filiale/yuchuan/pc/Process/Processes/InstallationDetailsCivil.vue +595 -595
  121. package/src/filiale/yuchuan/pc/Process/Processes/Print/printCharge.vue +125 -0
  122. package/src/filiale/yuchuan/pc/Process/Processes/chargeManagement.vue +621 -470
  123. package/src/filiale/yuchuan/pc/Process/Service/ServiceControl.vue +1108 -1074
  124. package/src/filiale/yuchuan/pc/Sign/SignRecord.vue +24 -0
  125. package/src/filiale/yuchuan/pc/Sign/SignRecordList.vue +174 -0
  126. package/src/filiale/yuchuan/pc.js +20 -12
  127. package/src/main.js +4 -1
  128. package/src/components/product/Function/StopApplyCrrdList.vue +0 -176
  129. package/src/components/product/Function/functions/ApplyRecordCancel.vue +0 -102
  130. package/src/components/product/Function/functions/StopInstall.vue +0 -106
@@ -2,11 +2,15 @@
2
2
  <div class="col-sm-12 col-xs-12 p-10">
3
3
  <accordion one-at-a-time="true">
4
4
  <panel :header="selectdata.defname" :is-open="true" type="primary">
5
+ <work-busy :is-busy="excessive"></work-busy>
5
6
  <app-service-view v-ref:serviceview :data="show_data" v-if="showview"></app-service-view>
6
7
  </panel>
7
8
  <panel header="拍照" :is-open="false" type="primary" v-if="selectdata.f_process_id">
8
9
  <app-take-pic :blobid="selectdata.f_process_id" :defname="selectdata.defname" :isdelete="true" :istakepic="true" :istype="true"></app-take-pic>
9
10
  </panel>
11
+ <panel header="签字" :is-open="false" type="primary" v-if="selectdata.f_process_id">
12
+ <app-sign :blobid="selectdata.f_process_id" :defname="selectdata.defname" @sign-success="signSuccess" :file-path="selectdata.f_process_id"@sign-clean="signClean"></app-sign>
13
+ </panel>
10
14
  </accordion>
11
15
  </div>
12
16
  </template>
@@ -40,13 +44,334 @@ export default {
40
44
  data: null,
41
45
  show_data: null,
42
46
  showview: false,
43
- config: {}
47
+ config: {},
48
+ excessive:false
44
49
  }
45
50
  },
46
51
  ready () {
47
52
  this.refurbish()
48
53
  },
49
54
  methods: {
55
+ async buttonCommit() {
56
+ if(this.show_data.button.button_name){
57
+ this.$refs.serviceview.disablebtu()
58
+ }
59
+ console.log('222222222')
60
+ if (this.show_data.button.before) {
61
+ await this[this.show_data.button.before]()
62
+ }
63
+ // 点击重置按钮就重置数据
64
+ if (this.show_data.button.button_name === '重置') {
65
+ this.$dispatch('breakControl', this.selectdata)
66
+ return
67
+ }
68
+ this.show_data.user = Vue.user
69
+ // this.show_data.user = {"f_show_department_name":"","parentname":"市场部","functions":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"客服系统","icon":"/images/lefticon/档案管理.png","hasright":false,"resourcetype":"function","parentid":"27","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"city-manage","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"231","name":"街道管理","templatename":"functionedit","id":"230","position":"1","fullname":"资源管理.功能模块.客服系统.档案管理.街道管理","fullid":"3.21.27.212.230","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"area-manage","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"219","name":"小区管理","templatename":"functionedit","id":"218","position":"3","fullname":"资源管理.功能模块.客服系统.档案管理.小区管理","fullid":"3.21.27.212.218","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"address-manage","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"33664","name":"地址管理","templatename":"functionedit","id":"33663","position":"5","fullname":"资源管理.功能模块.客服系统.档案管理.地址管理","fullid":"3.21.27.212.33663","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"file-user-files","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"237","name":"用户档案","templatename":"functionedit","id":"236","position":"5","fullname":"资源管理.功能模块.客服系统.档案管理.用户档案","fullid":"3.21.27.212.236","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"档案管理","link":"file-user-files-new","hasright":true,"resourcetype":"function","parentid":"212","f_parentname":"档案管理","children":[],"selfid":"39450","name":"预备户管理","templatename":"functionedit","id":"39449","position":"6","fullname":"资源管理.功能模块.客服系统.档案管理.预备户管理","fullid":"3.21.27.212.39449","tablename":"t_function"}],"selfid":"213","name":"档案管理","templatename":"functionedit","id":"212","position":"2","fullname":"资源管理.功能模块.客服系统.档案管理","fullid":"3.21.27.212","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"客服系统","icon":"/images/lefticon/报建系统.png","hasright":true,"resourcetype":"function","parentid":"27","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"install-function","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34680","name":"功能业务","templatename":"functionedit","id":"34679","position":"1","fullname":"资源管理.功能模块.客服系统.报建业务.功能业务","fullid":"3.21.27.34673.34679","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"exploration-user","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34686","name":"流程业务","templatename":"functionedit","id":"34685","position":"2","fullname":"资源管理.功能模块.客服系统.报建业务.流程业务","fullid":"3.21.27.34673.34685","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"supervisory-control","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34692","name":"流程监控","templatename":"functionedit","id":"34691","position":"3","fullname":"资源管理.功能模块.客服系统.报建业务.流程监控","fullid":"3.21.27.34673.34691","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"apply-charge-search","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34698","name":"收费明细","templatename":"functionedit","id":"34697","position":"4","fullname":"资源管理.功能模块.客服系统.报建业务.收费明细","fullid":"3.21.27.34673.34697","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"order-apply","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34704","name":"预约申请","templatename":"functionedit","id":"34703","position":"5","fullname":"资源管理.功能模块.客服系统.报建业务.预约申请","fullid":"3.21.27.34673.34703","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"stop-apply","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34710","name":"终止报建","templatename":"functionedit","id":"34709","position":"6","fullname":"资源管理.功能模块.客服系统.报建业务.终止报建","fullid":"3.21.27.34673.34709","tablename":"t_function"}],"selfid":"34674","name":"报建业务","templatename":"functionedit","id":"34673","position":"12","fullname":"资源管理.功能模块.客服系统.报建业务","fullid":"3.21.27.34673","tablename":"t_function"}],"qrcode":"/rs/user/getQRcode?QRCODE=12b2-1631604191812-03447","rolesnames":"营业厅报装,市场部报装,设计部报装,工程部报装,运营部报装,财务部报装,角色监控","roles":"51383,51485,51707,51767,51833,51905,52289","f_sex":"男","f_icon":"tree_user","fullnames":"河南亿星集团实业有限公司.周口市天然气有限公司.市场部.报建测试","dir":"ZhouKou","userid":"12b2-1631604191812-03447","accesstime":"1632214307117","parentid":"46545","f_show_rolestr":"","fullids":"30463.10101.46545.51953.","number":"10101","f_dep_id":"1010101201","f_idnumber":null,"selfid":"51954","templatename":"useredit","logindate":"2021-09-14 18:46:54","id":"51953","state":"在职","tablename":"t_user","deptype":"部门","depids":"46545","loginid":"15","imgid":null,"f_user_telephone":null,"rolestr":"营业厅报装,市场部报装,设计部报装,工程部报装,运营部报装,财务部报装,角色监控","deps":"市场部","loginnum":"0","f_age":null,"resourcetype":"user","orgid":"10101","f_department_name":"周口市场部","ename":"bjcs","deleted":"false","entitytype":"t_user","f_description":null,"loginip":"192.168.66.37","name":"报建测试","position":"1","orgs":"周口市天然气有限公司","haslicense":true,"f_role_name":"营业厅报装 市场部报装 设计部报装 工程部报装 运营部报装 财务部报装 角色监控 ","f_allArea":[],"f_gasman":[{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"15294978548","rolestr":"抄表员","resourcetype":"user","userid":"100814","parentid":"46581","f_department_name":"周口客服部","ename":"100814","password":"1","deleted":"false","entitytype":"t_user","selfid":"100814","name":"高雪荣","templatename":"useredit","id":"100814","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"qrcode":"/rs/user/getQRcode?QRCODE=004","roles":"51959","f_sex":"男","f_icon":"tree_user","userid":"004","accesstime":"1631765198067","parentid":"46581","password":"1","selfid":"59044","templatename":"useredit","id":"59043","state":"在职","tablename":"t_user","loginid":"15","rolestr":"抄表员","resourcetype":"user","f_department_name":"周口客服部","ename":"cbcs","deleted":"false","entitytype":"t_user","loginip":"10.10.10.1","name":"抄表测试","position":"23","haslicense":"true","f_role_name":"抄表员 "},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18538602709","rolestr":"抄表员","resourcetype":"user","userid":"100462","parentid":"46581","f_department_name":"周口客服部","ename":"100462","password":"1","deleted":"false","entitytype":"t_user","selfid":"100462","name":"刘林静","templatename":"useredit","id":"100462","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18839409830","rolestr":"抄表员","resourcetype":"user","userid":"100528","parentid":"46581","f_department_name":"周口客服部","ename":"100528","password":"1","deleted":"false","entitytype":"t_user","selfid":"100528","name":"秦春梅","templatename":"useredit","id":"100528","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"13243376616","rolestr":"抄表员","resourcetype":"user","userid":"102935","parentid":"46581","f_department_name":"周口客服部","ename":"102935","password":"1","deleted":"false","entitytype":"t_user","selfid":"102935","name":"石磊","templatename":"useredit","id":"102935","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18538602706","rolestr":"抄表员","resourcetype":"user","userid":"100818","parentid":"46581","f_department_name":"周口客服部","ename":"100818","password":"1","deleted":"false","entitytype":"t_user","selfid":"100818","name":"白静","templatename":"useredit","id":"100818","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"15294991670","rolestr":"抄表员","resourcetype":"user","userid":"102934","parentid":"46581","f_department_name":"周口客服部","ename":"102934","password":"1","deleted":"false","entitytype":"t_user","selfid":"102934","name":"郭新胜","templatename":"useredit","id":"102934","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"15036438918","rolestr":"抄表员","resourcetype":"user","userid":"103392","accesstime":"1631757950369","parentid":"46581","f_department_name":"周口客服部","ename":"103392","password":"1","deleted":"false","entitytype":"t_user","loginip":"10.10.10.1","selfid":"103392","name":"牛永胜","templatename":"useredit","id":"103392","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"13592232789","rolestr":"抄表员","resourcetype":"user","userid":"100337","parentid":"46581","f_department_name":"周口客服部","ename":"100337","password":"1","deleted":"false","entitytype":"t_user","selfid":"100337","name":"王雪丽","templatename":"useredit","id":"100337","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"17796528119","rolestr":"抄表员","resourcetype":"user","userid":"101021","parentid":"46581","f_department_name":"周口客服部","ename":"101021","password":"1","deleted":"false","entitytype":"t_user","selfid":"101021","name":"张书荣","templatename":"useredit","id":"101021","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18839409832","rolestr":"抄表员","resourcetype":"user","userid":"100330","parentid":"46581","f_department_name":"周口客服部","ename":"100330","password":"1","deleted":"false","entitytype":"t_user","selfid":"100330","name":"武文平","templatename":"useredit","id":"100330","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"13839441227","rolestr":"抄表员","resourcetype":"user","userid":"100871","parentid":"46581","f_department_name":"周口客服部","ename":"100871","password":"1","deleted":"false","entitytype":"t_user","selfid":"100871","name":"李明磊","templatename":"useredit","id":"100871","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"}],"lics":[]}
70
+ this.show_data.start_activity = this.json_datas.start_activity
71
+ this.show_data.xmlfilename = this.json_datas.workflow_xmlfilename
72
+
73
+ console.log("查看报警器材料1---------")
74
+ if ((this.show_data.f_apply_type === '报警器报建' || this.show_data.f_apply_type === '工商业报警器报建') && this.show_data.defname === '工程施工' && this.show_data.f_sub_state !='完工' && this.show_data.button.button_name === '完工'){
75
+ console.log("查看报警器材料2---------")
76
+ //判断是否添加报警器材料
77
+ let bjqlag = false
78
+ let datatemp = {
79
+ 'bjqid':"",
80
+ 'fprocessid':"",
81
+ 'sqvalue':"",
82
+ 'f_bjq_sid':"",
83
+ 'f_material_code':""
84
+ }
85
+ let bjqststedata = {
86
+ "sid":"",
87
+ "bjqtype":"",
88
+ "f_process_id":"",
89
+ "bjqstate":"",
90
+ "f_userinfo_code":""
91
+ }
92
+ let numOne = [];
93
+ console.log("查看报警器材料3---------",this.show_data)
94
+ console.log("查看报警器材料4---------",this.show_data.onetomany)
95
+
96
+ let http = new HttpResetClass()
97
+ let data = {
98
+ tablename: `t_material_apply`,
99
+ condition: `f_process_id='${this.show_data.f_process_id}'`
100
+ }
101
+ let res = await http.load(
102
+ 'POST',
103
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable?aaa=123`,
104
+ {data: data},
105
+ {resolveMsg: null, rejectMsg: 'onetomany查询失败'}
106
+ )
107
+ res.data.forEach(item => {
108
+ if (item.f_material_name.substr(0,3) === '报警器'){
109
+ var bjname = item.f_material_name.split("-")
110
+ bjqststedata.sid = item.f_bjq_sid
111
+ bjqststedata.f_process_id = item.f_process_id
112
+ bjqststedata.bjqtype = bjname[1]
113
+ //====================================
114
+ bjqlag = true
115
+ datatemp.bjqid = item.id
116
+ datatemp.fprocessid = item.f_process_id
117
+ datatemp.f_bjq_sid = item.f_bjq_sid
118
+ datatemp.f_material_code = item.f_material_code
119
+ datatemp.f_bjq_lng = item.f_bjq_lng
120
+ datatemp.f_bjq_lat = item.f_bjq_lat
121
+ datatemp.f_bjq_gaode_lng = item.f_bjq_gaode_lng
122
+ datatemp.f_bjq_gaode_lat = item.f_bjq_gaode_lng
123
+ datatemp.f_bjq_baidu_lng = item.f_bjq_baidu_lng
124
+ datatemp.f_bjq_baidu_lat = item.f_bjq_baidu_lat
125
+ numOne.push(item.f_bjq_sid)
126
+ }
127
+ })
128
+ // this.show_data.onetomany.forEach(item=>{
129
+ // console.log("查看报警器材料",item)
130
+ // item.rows.forEach(i=>{
131
+ // if (i.f_material_name.substr(0,3) === '报警器'){
132
+ // var bjname = i.f_material_name.split("-")
133
+ // bjqststedata.sid = i.f_bjq_sid
134
+ // bjqststedata.f_process_id = i.f_process_id
135
+ // bjqststedata.bjqtype = bjname[1]
136
+ // //====================================
137
+ // bjqlag = true
138
+ // datatemp.bjqid = i.id
139
+ // datatemp.fprocessid = i.f_process_id
140
+ // datatemp.f_bjq_sid = i.f_bjq_sid
141
+ // datatemp.f_material_code = i.f_material_code
142
+ // datatemp.f_bjq_lng = i.f_bjq_lng
143
+ // datatemp.f_bjq_lat = i.f_bjq_lat
144
+ // datatemp.f_bjq_gaode_lng = i.f_bjq_gaode_lng
145
+ // datatemp.f_bjq_gaode_lat = i.f_bjq_gaode_lng
146
+ // datatemp.f_bjq_baidu_lng = i.f_bjq_baidu_lng
147
+ // datatemp.f_bjq_baidu_lat = i.f_bjq_baidu_lat
148
+ // numOne.push(i.f_bjq_sid)
149
+ // }
150
+ // })
151
+ // })
152
+ if (!bjqlag){
153
+ this.$showMessage('请添加报警器物料信息!!!')
154
+ return
155
+ }
156
+ if (numOne.length > 1){
157
+ this.$showMessage("暂时支持单个报警器物料安装!!!")
158
+ return
159
+ }
160
+ datatemp.sqvalue = this.show_data.areaData.sqvalue
161
+
162
+ bjqststedata.f_userinfo_code = this.show_data.f_userinfo_code
163
+ //判断是否推送 及推送的状态
164
+ //查询是否存在, 以型号及厂家判断
165
+ let bjqres = await this.$resetpost(
166
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/getbjqsyncinfo`,
167
+ bjqststedata
168
+ )
169
+ if (bjqres.data.bjqstate != "成功"){
170
+ //区域地址存入材料记录表
171
+ let areares = await this.$resetpost(
172
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/saveArea`,
173
+ // `rs/logic/saveArea`,
174
+ {data: datatemp},
175
+ {resolveMsg: null, rejectMsg: '区域地址保存失败'}
176
+ )
177
+
178
+ // 完工之后推送数据到汉威
179
+ let adddata = {
180
+ f_bjq_sid : datatemp.f_bjq_sid,
181
+ f_material_code : datatemp.f_material_code,
182
+ f_bjq_lng : datatemp.f_bjq_lng,
183
+ f_bjq_lat : datatemp.f_bjq_lat,
184
+ f_orgid : this.show_data.f_orgid,
185
+ f_bjq_address: this.show_data.areaData.sqvalue,
186
+ f_user_name: this.show_data.f_user_name,
187
+ f_address: this.show_data.f_address,
188
+ f_user_phone: this.show_data.f_phone,
189
+ f_userinfo_code: this.show_data.f_userinfo_code,
190
+ installtime: this.show_data.f_construction_date,
191
+ }
192
+ let res = await this.$resetpost(
193
+ `${this.$androidUtil.getProxyUrl()}/ncc/rs/logic/bjqadduser`,
194
+ // `ncc/rs/logic/bjqadduser`,
195
+ // `${this.$androidUtil.getProxyUrl()}/rs/logic/bjqadduser`,
196
+ adddata
197
+ )
198
+ if (res.data.code != 200){
199
+ if (bjqres.data.bjqstate.length == 0){
200
+ bjqststedata.bjqstate = "失败"
201
+ let bjqres3 = await this.$resetpost(
202
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/addbjqsyncinfo`,
203
+ bjqststedata
204
+ )
205
+ }
206
+ this.$showMessage(res.data.msg)
207
+ return
208
+ }
209
+
210
+ //更改记录表状态
211
+ if (bjqres.data.bjqstate === "失败"){
212
+ bjqststedata.bjqstate = "成功"
213
+ let bjqres1 = await this.$resetpost(
214
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/updatebjqsyncinfo`,
215
+ bjqststedata
216
+ )
217
+ }else{
218
+ bjqststedata.bjqstate = "成功"
219
+ let bjqres2 = await this.$resetpost(
220
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/addbjqsyncinfo`,
221
+ bjqststedata
222
+ )
223
+ }
224
+ }
225
+ }
226
+ if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && (this.show_data.button.button_name === '提交'||this.show_data.button.button_name === '保存')){
227
+ let dataz = {
228
+ condition: `u.id = ${this.show_data.id}`,
229
+ data: {
230
+ id: Vue.user.id,
231
+ orgid: Vue.user.orgid
232
+ }
233
+ }
234
+ let http = new HttpResetClass()
235
+ let restpz = await http.load(
236
+ 'POST',
237
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`,
238
+ {data: dataz},
239
+ {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
240
+ )
241
+ this.show_data.actid=restpz.data[0].actid
242
+ }
243
+ if(this.show_data.button.button_name != '返回'){
244
+ this.excessive=true
245
+ let res = await this.$resetpost(
246
+ // `rs/logic/ApplyProductService`,
247
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/ApplyProductService`,
248
+ {data: this.show_data},
249
+ {resolveMsg: null, rejectMsg: '数据保存失败'}
250
+ )
251
+ this.excessive=false
252
+ if (this.show_data.button.after) {
253
+ this[this.show_data.button.after]()
254
+ }
255
+ }else {
256
+ if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装缴费' ){
257
+ if (this.show_data.button.after) {
258
+ this[this.show_data.button.after]()
259
+ }
260
+ this.$dispatch('confirm')
261
+ this.$dispatch('confirm')
262
+ }else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '工程派工'){
263
+ if (this.show_data.button.after) {
264
+ this[this.show_data.button.after]()
265
+ }
266
+ this.$dispatch('confirm')
267
+ this.$dispatch('confirm')
268
+ this.$dispatch('confirm')
269
+ }else{
270
+ if (this.show_data.button.after) {
271
+ this[this.show_data.button.after]()
272
+ }
273
+
274
+ this.$dispatch('confirm')
275
+ }
276
+
277
+ }
278
+
279
+ // 返回上层
280
+ if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装申请' && this.show_data.button.button_name === '合同'){
281
+ this.excessive=true
282
+ let data = {
283
+ tablename: 't_apply',
284
+ condition: `f_process_id='${this.show_data.f_process_id}'`
285
+ }
286
+ let http = new HttpResetClass()
287
+ let restp = await http.load(
288
+ 'POST',
289
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
290
+ {data: data},
291
+ {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
292
+ )
293
+ restp.data[0].processname = '散户报建流程'
294
+ restp.data[0].defname = '合同签订'
295
+ let _this = this
296
+ this.$dispatch('gotoson', {
297
+ _this: _this,
298
+ title: restp.data[0].defname,
299
+ safe: true
300
+ })
301
+ this.$goto('app-service-control', {selectdata: restp.data[0]}, 'self')
302
+ this.excessive=false
303
+
304
+ } else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '合同签订' && this.show_data.button.button_name === '提交'){
305
+ this.excessive=true
306
+ let data2 = {
307
+ condition: `u.id = ${this.show_data.id}`,
308
+ data: {
309
+ id: Vue.user.id,
310
+ orgid: Vue.user.orgid
311
+ }
312
+ }
313
+ let http = new HttpResetClass()
314
+ let restp1 = await http.load(
315
+ 'POST',
316
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`,
317
+ {data: data2},
318
+ {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
319
+ )
320
+ console.log('打印查询的内容',restp1)
321
+ // restp1.data[0].processname = '散户报建流程'
322
+ // restp1.data[0].defname = '报装缴费'
323
+
324
+ let _this = this
325
+ this.$dispatch('gotoson', {
326
+ _this: _this,
327
+ title: restp1.data[0].defname,
328
+ safe: true
329
+ })
330
+ this.$goto('app-service-control', {selectdata: restp1.data[0]}, 'self')
331
+ this.excessive=false
332
+ }else if(this.show_data.f_apply_type === '散户报建' && this.show_data.defname === '报装缴费' && this.show_data.button.button_name === '提交'){
333
+ this.excessive=true
334
+ let data3 = {
335
+ condition: `u.id = ${this.show_data.id}`,
336
+ data: {
337
+ id: Vue.user.id,
338
+ orgid: Vue.user.orgid
339
+ }
340
+ }
341
+ let http = new HttpResetClass()
342
+ let restp2 = await http.load(
343
+ 'POST',
344
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/checkuser`,
345
+ {data: data3},
346
+ {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
347
+ )
348
+ console.log('打印查询的内容',restp2)
349
+ debugger
350
+ if(restp2.length>0){
351
+ let _this = this
352
+ this.$dispatch('gotoson', {
353
+ _this: _this,
354
+ title: restp2.data[0].defname,
355
+ safe: true
356
+ })
357
+ this.$goto('app-service-control', {selectdata: restp2.data[0]}, 'self')
358
+ this.excessive=false
359
+ }else{
360
+ this.excessive=false
361
+ debugger
362
+ this.$dispatch('confirm')
363
+ this.$dispatch('confirm')
364
+ this.$dispatch('confirm')
365
+ }
366
+ }
367
+ else{
368
+ this.excessive=false
369
+ // console.log('-----')
370
+ this.$dispatch('confirm')
371
+ }
372
+
373
+
374
+ },
50
375
  async refurbish() {
51
376
  let data = {
52
377
  workname: this.selectdata.processname
@@ -59,7 +384,6 @@ export default {
59
384
  )
60
385
 
61
386
  this.json_datas = res.data
62
- // this.json_datas = {"start_activity":"报装申请","workflow_xmlfilename":"散户报建流程","activitys":[{"title":"报装申请","tables":["t_apply"],"fields":[{"label":"工程名称","type":"input","field":"f_entry_name","readonly":false,"disabled":false,"required":true},{"label":"报建类型","type":"select","field":"f_apply_type","readonly":true,"required":true,"disabled":true,"placeholder":"请选择","param":true,"options":[]},{"label":"用户名称","type":"input","field":"f_user_name","readonly":false,"disabled":false,"required":true},{"label":"用户电话","type":"tel","field":"f_phone","readonly":false,"disabled":false,"required":true},{"label":"证件类型","type":"select","field":"f_credentials","readonly":false,"required":true,"disabled":false,"placeholder":"请选择","param":true,"options":[{"label":"身份证","value":"身份证"},{"label":"营业执照","value":"营业执照"}]},{"label":"证件号码","type":"input","field":"f_idnumber","readonly":false,"required":true,"disabled":false},{"label":"片区","type":"select","field":"f_slice_area","readonly":false,"required":true,"disabled":false,"ready":"getSliceArea","options":[]},{"label":"地址类型","type":"select","field":"f_address_type","readonly":false,"required":true,"disabled":false,"onchange":"addressTypeChange","options":[{"label":"民用城区","value":"民用城区"},{"label":"民用农村","value":"民用农村"},{"label":"特殊城区","value":"特殊城区"},{"label":"特殊农村","value":"特殊农村"}]},{"label":"区/县","type":"select","field":"f_pcd","hidden":true,"readonly":false,"required":true,"disabled":false,"ready":"getPcd","onchange":"pcdChange","options":[]},{"label":"街道","type":"select","field":"f_street","hidden":true,"readonly":false,"required":true,"disabled":false,"onchange":"streetChange","options":[]},{"label":"小区","type":"select","field":"f_residential_area","hidden":true,"readonly":false,"required":true,"disabled":false,"options":[]},{"label":"楼号(乡/镇)","type":"input","field":"f_building","hidden":true,"readonly":false,"required":false,"disabled":false},{"label":"单元(村)","type":"input","field":"f_unit","hidden":true,"readonly":false,"required":false,"disabled":false},{"label":"楼层(组)","type":"input","field":"f_floor","hidden":true,"readonly":false,"required":false,"disabled":false},{"label":"门牌号(号)","type":"input","field":"f_room","hidden":true,"readonly":false,"required":false,"disabled":false},{"label":"地址","type":"textarea","field":"f_address","rows":1,"readonly":false,"required":true,"disabled":false},{"label":"预约地址","type":"textarea","field":"f_order_address","rows":1,"readonly":true,"required":false,"disabled":false},{"label":"备注","type":"textarea","field":"f_apply_remarks","rows":2,"readonly":false,"required":false,"disabled":false}],"components":[],"buttons":[{"button_name":"保存"},{"button_name":"勘察","disabled":true},{"button_name":"合同","disabled":true}],"readyEvent":"applyReadyEvent"},{"title":"勘察派工","tables":["t_apply"],"fields":[{"label":"工程名称","type":"input","field":"f_entry_name","readonly":true,"disabled":false,"required":true},{"label":"工程编号","type":"input","field":"f_apply_num","readonly":true,"disabled":false,"required":true},{"label":"报建类型","type":"input","field":"f_apply_type","readonly":true,"required":true,"disabled":false},{"label":"用户编号","type":"input","field":"f_userinfo_code","readonly":true,"disabled":false,"required":true},{"label":"用户名称","type":"input","field":"f_user_name","readonly":true,"disabled":false,"required":true},{"label":"用户电话","type":"tel","field":"f_phone","readonly":true,"disabled":false,"required":true},{"label":"证件类型","type":"input","field":"f_credentials","readonly":true,"required":true,"disabled":false},{"label":"证件号码","type":"input","field":"f_idnumber","readonly":true,"required":true,"disabled":false},{"label":"地址","type":"textarea","field":"f_address","rows":1,"readonly":true,"required":true,"disabled":false}],"components":[],"buttons":[{"button_name":"保存"},{"button_name":"下发","source":"this.getParentByType($organization$).getChildByName($市场部报装$).getChildren()","button_fields":[{"label":"下发给","type":"select","field":"f_issue_man","placeholder":"请输入","readonly":false,"disabled":false,"required":true,"options":[]}],"disabled":true}]},{"title":"现场勘察","tables":["t_apply"],"fields":[{"label":"工程名称","type":"input","field":"f_entry_name","readonly":true,"disabled":false,"required":true},{"label":"工程编号","type":"input","field":"f_apply_num","readonly":true,"disabled":false,"required":true},{"label":"报建类型","type":"input","field":"f_apply_type","readonly":true,"required":true,"disabled":false},{"label":"用户编号","type":"input","field":"f_userinfo_code","readonly":true,"disabled":false,"required":true},{"label":"用户名称","type":"input","field":"f_user_name","readonly":true,"disabled":false,"required":true},{"label":"用户电话","type":"tel","field":"f_phone","readonly":true,"disabled":false,"required":true},{"label":"证件类型","type":"input","field":"f_credentials","readonly":true,"required":true,"disabled":false},{"label":"证件号码","type":"input","field":"f_idnumber","readonly":true,"required":true,"disabled":false},{"label":"地址","type":"textarea","field":"f_address","rows":1,"readonly":true,"required":true,"disabled":false},{"label":"勘查结果","type":"textarea","field":"f_prospecting_result","rows":2,"readonly":false,"required":true,"disabled":false}],"components":[],"buttons":[{"button_name":"保存"},{"button_name":"提交","disabled":true}]},{"title":"合同签订","tables":["t_apply"],"fields":[{"label":"工程名称","type":"input","field":"f_entry_name","readonly":true,"disabled":false,"required":true},{"label":"工程编号","type":"input","field":"f_apply_num","readonly":true,"disabled":false,"required":true},{"label":"报建类型","type":"input","field":"f_apply_type","readonly":true,"required":true,"disabled":false},{"label":"用户编号","type":"input","field":"f_userinfo_code","readonly":true,"disabled":false,"required":true},{"label":"用户名称","type":"input","field":"f_user_name","readonly":true,"disabled":false,"required":true},{"label":"用户电话","type":"tel","field":"f_phone","readonly":true,"disabled":false,"required":true},{"label":"证件类型","type":"input","field":"f_credentials","readonly":true,"required":true,"disabled":false},{"label":"证件号码","type":"input","field":"f_idnumber","readonly":true,"required":true,"disabled":false},{"label":"地址","type":"textarea","field":"f_address","rows":1,"readonly":true,"required":true,"disabled":false},{"label":"合同编号","type":"input","field":"f_contract_number","prefix":"","suffix":null,"placeholder":"请输入","readonly":true,"required":true,"default":"this.selectdata.f_apply_num","eval":true},{"label":"合同金额","type":"number","field":"f_contract_money","placeholder":"0.00","readonly":false,"required":true,"onchange":"contractMoneyChange"},{"label":"追加金额","type":"number","field":"f_add_contract_money","placeholder":"请输入","readonly":true,"required":true,"default":0},{"label":"应交金额","type":"number","field":"f_due_money","placeholder":"请输入","readonly":true,"required":true,"default":0},{"label":"合同签订时间","type":"datepicker","field":"f_contract_date","placeholder":"请选择","readonly":false,"required":true}],"components":[{"title":"补充协议","device":"pc","name":"supplemental-agreement"},{"title":"补充协议","device":"app","name":"app-supplemental-agreement"}],"buttons":[{"button_name":"保存"},{"button_name":"提交","disabled":true}]},{"title":"报装缴费","tables":["t_apply"],"fields":[{"label":"工程名称","type":"input","field":"f_entry_name","readonly":true,"disabled":false,"required":true},{"label":"工程编号","type":"input","field":"f_apply_num","readonly":true,"disabled":false,"required":true},{"label":"报建类型","type":"input","field":"f_apply_type","readonly":true,"required":true,"disabled":false},{"label":"用户编号","type":"input","field":"f_userinfo_code","readonly":true,"disabled":false,"required":true},{"label":"用户名称","type":"input","field":"f_user_name","readonly":true,"disabled":false,"required":true},{"label":"用户电话","type":"tel","field":"f_phone","readonly":true,"disabled":false,"required":true},{"label":"证件类型","type":"input","field":"f_credentials","readonly":true,"required":true,"disabled":false},{"label":"证件号码","type":"input","field":"f_idnumber","readonly":true,"required":true,"disabled":false},{"label":"地址","type":"textarea","field":"f_address","rows":2,"readonly":true,"required":true,"disabled":false},{"label":"合同编号","type":"input","field":"f_contract_number","placeholder":"","readonly":true,"required":true},{"label":"合同金额","type":"number","field":"f_contract_money","placeholder":"请输入","readonly":true,"required":true},{"label":"追加款","type":"number","field":"f_add_contract_money","placeholder":"请输入","readonly":true,"required":false},{"label":"应交金额","type":"number","field":"f_due_money","placeholder":"请输入","readonly":true,"required":false},{"label":"累计缴费金额","type":"number","field":"f_cumulative_payment_money","placeholder":"请输入","readonly":true,"required":false},{"label":"未结总金额","type":"number","field":"f_surplus_money","placeholder":"请输入","readonly":true,"required":false},{"label":"付款比例","type":"input","field":"f_payment_ratio","placeholder":"请输入","readonly":true,"required":false},{"label":"累计退款金额","type":"number","field":"f_cumulative_retreat_money","placeholder":"请输入","readonly":true,"required":false,"default":0}],"components":[{"title":"缴费明细","device":"pc","name":"apply-charge-management"},{"title":"补充协议","device":"pc","name":"supplemental-agreement","mark":1},{"title":"缴费明细","device":"app","name":"app-charge-management"},{"title":"补充协议","device":"app","name":"app-supplemental-agreement","mark":1}],"buttons":[{"button_name":"保存"},{"before":"chargeBefore","button_name":"提交","disabled":true}]},{"title":"工程派工","tables":["t_apply"],"fields":[{"label":"工程名称","type":"input","field":"f_entry_name","readonly":true,"disabled":false,"required":true},{"label":"工程编号","type":"input","field":"f_apply_num","readonly":true,"disabled":false,"required":true},{"label":"报建类型","type":"input","field":"f_apply_type","readonly":true,"required":true,"disabled":false},{"label":"用户编号","type":"input","field":"f_userinfo_code","readonly":true,"disabled":false,"required":true},{"label":"用户名称","type":"input","field":"f_user_name","readonly":true,"disabled":false,"required":true},{"label":"用户电话","type":"tel","field":"f_phone","readonly":true,"disabled":false,"required":true},{"label":"证件类型","type":"input","field":"f_credentials","readonly":true,"required":true,"disabled":false},{"label":"证件号码","type":"input","field":"f_idnumber","readonly":true,"required":true,"disabled":false},{"label":"地址","type":"textarea","field":"f_address","rows":1,"readonly":true,"required":true,"disabled":false}],"buttons":[{"button_name":"保存"},{"button_name":"下发","source":"this.getParentByType($organization$).getChildByName($工程部报装$).getChildren()","button_fields":[{"label":"下发给","type":"select","field":"f_issue_man","placeholder":"请输入","readonly":false,"disabled":false,"required":true,"options":[]}],"disabled":true}]},{"title":"工程施工","tables":["t_apply"],"fields":[{"label":"工程名称","type":"input","field":"f_entry_name","readonly":true,"disabled":false,"required":true},{"label":"工程编号","type":"input","field":"f_apply_num","readonly":true,"disabled":false,"required":true},{"label":"报建类型","type":"input","field":"f_apply_type","readonly":true,"required":true,"disabled":false},{"label":"用户编号","type":"input","field":"f_userinfo_code","readonly":true,"disabled":false,"required":true},{"label":"用户名称","type":"input","field":"f_user_name","readonly":true,"disabled":false,"required":true},{"label":"用户电话","type":"tel","field":"f_phone","readonly":true,"disabled":false,"required":true},{"label":"证件类型","type":"input","field":"f_credentials","readonly":true,"required":true,"disabled":false},{"label":"证件号码","type":"input","field":"f_idnumber","readonly":true,"required":true,"disabled":false},{"label":"地址","type":"textarea","field":"f_address","rows":2,"readonly":true,"required":true,"disabled":false},{"label":"施工单位","type":"input","field":"f_construction_unit","readonly":false,"required":true,"disabled":false,"default":"this.$login.f.name","eval":true},{"label":"施工安装时间","type":"datepicker","field":"f_construction_date","readonly":false,"required":true,"disabled":false},{"bootstraped":"col-sm-12 col-xs-12","label":"安装项目","type":"checkbox","field":"f_install_project","readonly":false,"required":true,"disabled":false,"param":false,"options":[{"label":"入户","value":"入户"},{"label":"热水器","value":"热水器"},{"label":"壁挂炉","value":"壁挂炉"}]},{"label":"施工安装情况","type":"textarea","field":"f_install_situation","rows":2,"readonly":false,"required":true,"disabled":false},{"label":"施工备注","type":"textarea","field":"f_construction_remarks","rows":2,"readonly":false,"required":false,"disabled":false}],"onetomany":[{"title":"材料明细","hidden":false,"tables":["t_material_list"],"hiddenOperate":false,"modalSize":"large","addHidden":false,"addStyle":null,"deleteHidden":false,"deleteText":"删除","deleteMessage":null,"updateHidden":false,"updateText":"修改","fields":[{"label":"材料名称","type":"input","field":"f_material_name","placeholder":"请输入","readonly":false,"required":true},{"label":"材料型号","type":"input","field":"f_material_style","placeholder":"请输入","readonly":false,"required":true},{"label":"材料价格","type":"number","field":"f_material_price","placeholder":"请输入","readonly":false,"required":true},{"label":"材料单位","type":"input","field":"f_material_unit","placeholder":"请输入","readonly":false,"required":true},{"label":"材料数量","type":"number","field":"f_material_number","placeholder":"请输入","readonly":false,"required":true},{"label":"材料备注","type":"input","field":"f_material_remarks","placeholder":"请输入","readonly":false,"required":false}]}],"components":[{"title":"安装明细","device":"pc","name":"installation-details"},{"title":"安装明细","device":"app","name":"app-installation-details"},{"title":"用气设备","device":"pc","name":"apply-devices-management"},{"title":"用气设备","device":"app","name":"app-apply-devices-management"}],"buttons":[{"button_name":"保存"},{"before":"constructionBefore","button_name":"提交","disabled":true}]},{"title":"点火派单","tables":["t_apply"],"fields":[{"label":"工程名称","type":"input","field":"f_entry_name","readonly":true,"disabled":false,"required":true},{"label":"工程编号","type":"input","field":"f_apply_num","readonly":true,"disabled":false,"required":true},{"label":"报建类型","type":"input","field":"f_apply_type","readonly":true,"required":true,"disabled":false},{"label":"用户编号","type":"input","field":"f_userinfo_code","readonly":true,"disabled":false,"required":true},{"label":"用户名称","type":"input","field":"f_user_name","readonly":true,"disabled":false,"required":true},{"label":"用户电话","type":"tel","field":"f_phone","readonly":true,"disabled":false,"required":true},{"label":"证件类型","type":"input","field":"f_credentials","readonly":true,"required":true,"disabled":false},{"label":"证件号码","type":"input","field":"f_idnumber","readonly":true,"required":true,"disabled":false},{"label":"地址","type":"textarea","field":"f_address","rows":1,"readonly":true,"required":true,"disabled":false},{"label":"施工单位","type":"input","field":"f_construction_unit","readonly":true,"required":true,"disabled":false},{"label":"施工安装时间","type":"datepicker","field":"f_construction_date","readonly":true,"required":true,"disabled":true},{"bootstraped":"col-sm-12 col-xs-12","label":"安装项目","type":"checkbox","field":"f_install_project","readonly":true,"required":true,"disabled":true,"param":false,"options":[{"label":"入户","value":"入户"},{"label":"热水器","value":"热水器"},{"label":"壁挂炉","value":"壁挂炉"}]},{"label":"施工安装情况","type":"textarea","field":"f_install_situation","rows":2,"readonly":true,"required":true,"disabled":false},{"label":"施工备注","type":"textarea","field":"f_construction_remarks","rows":2,"readonly":true,"required":false,"disabled":false}],"components":[],"buttons":[{"button_name":"保存"},{"button_name":"下发","source":"this.getParentByType($organization$).getChildByName($运营部报装$).getChildren()","button_fields":[{"label":"下发给","type":"select","field":"f_issue_man","placeholder":"请输入","readonly":false,"disabled":false,"required":true,"options":[]}],"disabled":true}]},{"title":"通气点火","tables":["t_apply"],"fields":[{"label":"工程名称","type":"input","field":"f_entry_name","readonly":true,"disabled":false,"required":true},{"label":"工程编号","type":"input","field":"f_apply_num","readonly":true,"disabled":false,"required":true},{"label":"报建类型","type":"input","field":"f_apply_type","readonly":true,"required":true,"disabled":false},{"label":"用户编号","type":"input","field":"f_userinfo_code","readonly":true,"disabled":false,"required":true},{"label":"用户名称","type":"input","field":"f_user_name","readonly":true,"disabled":false,"required":true},{"label":"用户电话","type":"tel","field":"f_phone","readonly":true,"disabled":false,"required":true},{"label":"证件类型","type":"input","field":"f_credentials","readonly":true,"required":true,"disabled":false},{"label":"证件号码","type":"input","field":"f_idnumber","readonly":true,"required":true,"disabled":false},{"label":"地址","type":"textarea","field":"f_address","rows":1,"readonly":true,"required":true,"disabled":false},{"label":"施工单位","type":"input","field":"f_construction_unit","readonly":true,"required":true,"disabled":false},{"label":"施工安装时间","type":"datepicker","field":"f_construction_date","readonly":true,"required":true,"disabled":true},{"bootstraped":"col-sm-12 col-xs-12","label":"安装项目","type":"checkbox","field":"f_install_project","readonly":true,"required":true,"disabled":true,"param":true},{"label":"施工安装情况","type":"textarea","field":"f_install_situation","rows":2,"readonly":true,"required":true,"disabled":false},{"label":"施工备注","type":"textarea","field":"f_construction_remarks","rows":2,"readonly":true,"required":false,"disabled":false},{"label":"点火人","type":"input","field":"f_igniter_people","readonly":true,"required":true,"disabled":false,"default":"this.$login.f.name","eval":true},{"label":"通气时间","type":"datepicker","field":"f_ventilate_date","readonly":true,"required":true,"disabled":true,"default":true},{"label":"通气情况","type":"textarea","field":"f_gas_result","readonly":false,"required":true,"disabled":true,"rows":"7","default":"客户如认可以下内容请签字,如有不认可之处请说明情况\n1、气密性检测合格,已对各接口处进行查漏无泄漏\n2、燃气表运转正常并告知用户。灶具点火测试正常。使用金属波纹管\n3、已向用户讲解安全常识及注意事项。发放《用户使用手册》并张贴提示标签\n4、灶具品牌 油烟机品牌\n5、热水器品牌 壁挂炉品牌\n6、金属波纹品牌。"},{"label":"通气备注","type":"textarea","field":"f_gas_result","readonly":false,"required":false,"disabled":false},{"label":"是否购买保险","type":"select","field":"f_is_insure","placeholder":"请输入","readonly":false,"disabled":false,"required":true,"options":[{"label":"是","value":"是"},{"label":"否","value":"否"}],"default":"是","onchange":"isInsureChange"},{"label":"保费开始日期","type":"datepicker","field":"f_ins_start_date","readonly":false,"required":true,"disabled":false,"default":true,"format":"yyyy-MM-dd","hidden":true},{"label":"保费结束日期","type":"datepicker","field":"f_ins_expiration_date","readonly":false,"required":true,"disabled":false,"hidden":true},{"label":"险种","type":"select","field":"f_insurance_type","readonly":false,"disabled":false,"required":true,"options":[],"param":true,"hidden":true},{"label":"保费金额","type":"number","field":"f_insurance_money","placeholder":"请输入","readonly":false,"required":true,"hidden":true},{"label":"保险备注","type":"textarea","field":"f_ins_comments","rows":2,"readonly":false,"required":false,"disabled":false,"hidden":true}],"components":[{"title":"安装明细","device":"pc","name":"installation-details"},{"title":"安装明细","device":"app","name":"app-installation-details"},{"title":"用气设备","device":"pc","name":"apply-devices-management"},{"title":"用气设备","device":"app","name":"app-apply-devices-management"}],"buttons":[{"button_name":"保存"},{"button_name":"提交","disabled":true}],"readyEvent":"gasReadyEvent"},{"title":"完工","tables":["t_apply"],"fields":[{"label":"完工","type":"input","field":"f_successful","disabled":true,"value":"---success---"}]}]}
63
387
 
64
388
  let sum = 0
65
389
  let jsonData = {}
@@ -135,7 +459,7 @@ export default {
135
459
  }
136
460
  }
137
461
  }
138
-
462
+ console.log("item.ready"+item.ready)
139
463
  if (item.ready) {
140
464
  item.options = await this[item.ready]()
141
465
  }
@@ -287,10 +611,23 @@ export default {
287
611
  let temp = JSON.parse(JSON.stringify(this.selectdata))
288
612
 
289
613
  this.show_data = temp
614
+ if(!this.show_data.showfei){
615
+ this.$set('show_data.showfei', '未收费')
616
+ }
617
+ //this.show_data.showfei=false
618
+
290
619
  this.$nextTick(() => {
291
620
  this.showview = true
292
621
  })
293
622
  },
623
+ signClean () {
624
+ this.selectdata.f_construction_sign = null
625
+ },
626
+ signSuccess (fileUrl) {
627
+ console.log('==============签字回调==================')
628
+ console.log(fileUrl)
629
+ this.selectdata.f_construction_sign = fileUrl
630
+ },
294
631
  // 金额转大写
295
632
  smalltoBIG(n) {
296
633
  let fraction = ['角', '分'];
@@ -334,6 +671,34 @@ export default {
334
671
  }
335
672
  }
336
673
  },
674
+ hideLabels(...labels) {
675
+ for (const item of this.show_data.fields) {
676
+ if (labels.includes(item.label)) {
677
+ item.hidden = true
678
+ }
679
+ }
680
+ },
681
+ requiredLabels(...labels) {
682
+ for (const item of this.show_data.fields) {
683
+ if (labels.includes(item.label)) {
684
+ item.required = true
685
+ }
686
+ }
687
+ },
688
+ electiveLabels(...labels) {
689
+ for (const item of this.show_data.fields) {
690
+ if (labels.includes(item.label)) {
691
+ item.required = false
692
+ }
693
+ }
694
+ },
695
+ showLabels(...labels) {
696
+ for (const item of this.show_data.fields) {
697
+ if (labels.includes(item.label)) {
698
+ item.hidden = false
699
+ }
700
+ }
701
+ },
337
702
  setLabelValue(label, value) {
338
703
  for (const item of this.show_data.fields) {
339
704
  if (item.label === label) {
@@ -349,6 +714,183 @@ export default {
349
714
  }
350
715
  }
351
716
  },
717
+ disabledButtons(...buttons) {
718
+ for (const item of this.show_data.buttons) {
719
+ if (buttons.includes(item.button_name)) {
720
+ item.disabled = true
721
+ }
722
+ }
723
+ },
724
+ enableButtons(...buttons) {
725
+ for (const item of this.show_data.buttons) {
726
+ if (buttons.includes(item.button_name)) {
727
+ item.disabled = false
728
+ }
729
+ }
730
+ },
731
+ showButtons(...buttons) {
732
+ for (const item of this.show_data.buttons) {
733
+ if (buttons.includes(item.button_name)) {
734
+ item.hidden = false
735
+ }
736
+ }
737
+ },
738
+ hideButtons(...buttons) {
739
+ for (const item of this.show_data.buttons) {
740
+ if (buttons.includes(item.button_name)) {
741
+ item.hidden = true
742
+ }
743
+ }
744
+ },
745
+ async streetChange () {
746
+ if (isEmpty(this.show_data.f_street)) {
747
+ return
748
+ }
749
+
750
+ let data = {
751
+ tablename: 't_area',
752
+ // condition: `f_filialeid = '${this.$login.f.orgid}' and f_street = '${this.show_data.f_street}'`
753
+ condition: `f_filialeid = '${Vue.user.orgid}' and f_street = '${this.show_data.f_street}'`
754
+ }
755
+ let http = new HttpResetClass()
756
+ let res = await http.load(
757
+ 'POST',
758
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
759
+ {data: data},
760
+ {resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
761
+ )
762
+
763
+ this.setLabelOptions('集收单位', res.data.map(item => {
764
+ return {
765
+ label: item.f_residential_area,
766
+ value: item.f_residential_area
767
+ }
768
+ }))
769
+ },
770
+ // 获取集收单位
771
+ async getArea () {
772
+ let data = {
773
+ tablename: 't_area',
774
+ condition: `f_filialeid = '${Vue.user.orgid}'`
775
+ }
776
+ let http = new HttpResetClass()
777
+ let res = await http.load(
778
+ 'POST',
779
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
780
+ {data: data},
781
+ {resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
782
+ )
783
+
784
+ return res.data.map(item => {
785
+ return {
786
+ label: item.f_residential_area,
787
+ value: item.f_residential_area
788
+ }
789
+ })
790
+ },
791
+ async pcdChange () {
792
+ if (isEmpty(this.show_data.f_pcd)) {
793
+ return
794
+ }
795
+
796
+ let data = {
797
+ tablename: 't_street',
798
+ // condition: `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
799
+ condition: `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
800
+ }
801
+ let f_address_type = this.getLableValue('地址类型')
802
+
803
+ if (f_address_type === '民用市区') {
804
+ // data.condition = `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '市区'`
805
+ data.condition = `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '市区'`
806
+ }
807
+ if (f_address_type === '民用乡镇') {
808
+ // data.condition = `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '乡镇'`
809
+ data.condition = `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '乡镇'`
810
+ }
811
+
812
+ let http = new HttpResetClass()
813
+ let res = await http.load(
814
+ 'POST',
815
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
816
+ {data: data},
817
+ {resolveMsg: null, rejectMsg: '街道/乡镇查询失败!!!'}
818
+ )
819
+
820
+ this.setLabelOptions('街道/乡镇', res.data.map(item => {
821
+ return {
822
+ label: item.f_street,
823
+ value: item.f_street
824
+ }
825
+ }))
826
+ },
827
+ async addressInitialization () {
828
+ //this.$getConfig(this, 'UserAddress')
829
+ //获取地址配置文件
830
+ try {
831
+ let res = await new HttpResetClass().load('get',`${this.$androidUtil.getProxyUrl()}/rs/vue/UserAddress.json`,null,{resolveMsg: null, rejectMsg: null})
832
+ Object.assign(this.config, res.data)
833
+ } catch (error) {
834
+ console.log("未获取到地址信息")
835
+ }
836
+ console.log("???????????不走了吗!")
837
+ let f_address_type = this.show_data.f_address_type
838
+
839
+ for (const item of this.show_data.fields) {
840
+ if (f_address_type === '民用市区') {
841
+ if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
842
+ item.hidden = false
843
+ item.required = true
844
+ }
845
+ if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
846
+ item.hidden = false
847
+ item.required = false
848
+ }
849
+ if (item.label === '地址') {
850
+ item.readonly = true
851
+ }
852
+ }
853
+ if (f_address_type === '民用乡镇') {
854
+ if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
855
+ item.hidden = false
856
+ item.required = true
857
+ }
858
+ if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
859
+ item.hidden = false
860
+ item.required = false
861
+ }
862
+ if (item.label === '楼层') {
863
+ item.hidden = true
864
+ item.required = false
865
+ }
866
+ if (item.label === '地址') {
867
+ item.readonly = true
868
+ }
869
+ }
870
+ if (f_address_type === '特殊地址') {
871
+ if (item.label === '区/县' || item.label === '街道/乡镇') {
872
+ item.hidden = false
873
+ item.required = true
874
+ }
875
+ if (item.label === '集收单位') {
876
+ item.hidden = false
877
+ item.required = false
878
+ }
879
+ if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层' || item.label === '门牌号') {
880
+ item.hidden = true
881
+ item.required = false
882
+ }
883
+ if (item.label === '地址') {
884
+ item.readonly = false
885
+ }
886
+ }
887
+
888
+ if (this.show_data.f_apply_source === '线下发起' && item.label === '预约地址') {
889
+ item.hidden = true
890
+ }
891
+ }
892
+ },
893
+
352
894
  async checkDuplicate(index) {
353
895
  let http = new HttpResetClass()
354
896
  let data = {
@@ -389,6 +931,18 @@ export default {
389
931
 
390
932
  this.refurbish()
391
933
  },
934
+ async addressTips () {
935
+ let res = ''
936
+ if (this.show_data.f_apply_type === '报警器报建' || this.show_data.f_apply_type === '工商业报警器报建') {
937
+ res = await this.$showMessage('报警器报建下单后将不能修改用户信息,请确认用户信息地址等是否正确,如不完善可在档案中进行修正!!!')
938
+ }else{
939
+ res = await this.$showMessage('增容改管下单后将不能修改用户信息,请确认用户信息地址等是否正确,如不完善可在档案中进行修正!!!')
940
+ }
941
+ if (res == 'confirm') {
942
+ return
943
+ }
944
+ throw '用户信息确认!!!'
945
+ },
392
946
  // 缴费前置
393
947
  chargeBefore () {
394
948
  if (Number(this.show_data.f_due_money) > Number(this.show_data.f_cumulative_payment_money) || Number(this.show_data.f_surplus_money) > 0) {
@@ -400,7 +954,7 @@ export default {
400
954
  async constructionBefore () {
401
955
  let http = new HttpResetClass()
402
956
  let data = {
403
- condition: `ui.f_process_id = '${this.show_data.f_process_id}' and uf.f_table_state = '待开通'`
957
+ condition: `ui.f_process_id = '${this.show_data.f_process_id}' and uf.f_meter_classify is null and f_meternumber is null`
404
958
  }
405
959
  let res = await http.load(
406
960
  'POST',
@@ -429,11 +983,11 @@ export default {
429
983
  console.log(f_price_id)
430
984
 
431
985
  let data = {
432
- condition: `sp.f_orgid = '${Vue.user.orgid}'`
986
+ condition: `sp.f_filialeid = '${Vue.user.orgid}'`
433
987
  }
434
988
 
435
989
  if (!isEmpty(f_price_id)) {
436
- data.condition = `sp.f_orgid = '${Vue.user.orgid}' and sp.f_price_id = ${f_price_id}`
990
+ data.condition = `sp.f_filialeid = '${Vue.user.orgid}' and sp.f_price_id = ${f_price_id}`
437
991
  }
438
992
  let http = new HttpResetClass()
439
993
  let res = await http.load(
@@ -449,16 +1003,153 @@ export default {
449
1003
  value: item
450
1004
  }
451
1005
  })
1006
+ },
1007
+ async getDesignerPeople () {
1008
+ let data = {
1009
+ source: 'this.getParentByType($organization$).getChildByName($设计部报装$).getChildren()',
1010
+ userid: Vue.user.id
1011
+ }
1012
+
1013
+ let http = new HttpResetClass()
1014
+ let res = await http.load(
1015
+ 'POST',
1016
+ `${this.$androidUtil.getProxyUrl()}/rs/search`,
1017
+ {data: data},
1018
+ {resolveMsg: null, rejectMsg: '设计人员查询失败!!!'}
1019
+ )
1020
+
1021
+ return res.data.map(item => {
1022
+ return {
1023
+ label: item.name,
1024
+ value: item.id
1025
+ }
1026
+ })
1027
+ },
1028
+ async surveyStopApply () {
1029
+ console.log('终止报建!!!!!')
1030
+
1031
+ this.show_data.f_stop_reason = '现场勘察不符合报装条件'
1032
+
1033
+ let data = {
1034
+ data: this.show_data,
1035
+ user: Vue.user
1036
+ }
1037
+
1038
+ let res = await this.$resetpost(
1039
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/surveyStopApply`,
1040
+ {data: data},
1041
+ {resolveMsg: null, rejectMsg: '终止报建失败!!!'}
1042
+ )
1043
+
1044
+ this.$dispatch('loadPage')
1045
+
1046
+ throw '终止报建!!!'
1047
+ },
1048
+ async getDevInfo () {
1049
+ let data = {
1050
+ tablename: 't_dev_info',
1051
+ condition: `f_orgid = '${Vue.user.orgid}'`
1052
+ }
1053
+ let http = new HttpResetClass()
1054
+ let res = await http.load(
1055
+ 'POST',
1056
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
1057
+ {data: data},
1058
+ {resolveMsg: null, rejectMsg: '公司查询失败!!!'}
1059
+ )
1060
+
1061
+ return res.data.map(item => {
1062
+ return {
1063
+ label: item.f_dev_name,
1064
+ value: item.f_dev_name
1065
+ }
1066
+ })
1067
+ },
1068
+ // 获取片区
1069
+ async getSliceArea () {
1070
+ let data = {
1071
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
1072
+ userid: Vue.user.id
1073
+ }
1074
+
1075
+ let http = new HttpResetClass()
1076
+ let res = await http.load(
1077
+ 'POST',
1078
+ `${this.$androidUtil.getProxyUrl()}/rs/search`,
1079
+ {data: data},
1080
+ {resolveMsg: null, rejectMsg: '片区查询失败!!!'}
1081
+ )
1082
+
1083
+ return res.data.map(item => {
1084
+ return {
1085
+ label: item.name,
1086
+ value: item.name
1087
+ }
1088
+ })
1089
+ },
1090
+ // 获取区县
1091
+ async getPcd () {
1092
+ let data = {
1093
+ tablename: 't_pcd',
1094
+ condition: `f_filialeid = '${Vue.user.orgid}'`
1095
+ }
1096
+ let http = new HttpResetClass()
1097
+ let res = await http.load(
1098
+ 'POST',
1099
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
1100
+ {data: data},
1101
+ {resolveMsg: null, rejectMsg: '区县查询失败!!!'}
1102
+ )
1103
+
1104
+ return res.data.map(item => {
1105
+ return {
1106
+ label: item.f_pcd,
1107
+ value: item.f_pcd
1108
+ }
1109
+ })
452
1110
  }
1111
+
453
1112
  },
454
1113
  events: {
455
- 'breakControl' () {
456
- this.breakControl()
1114
+ 'complyInstallation' (index) {
1115
+ if (this.show_data.f_is_have === '否') {
1116
+ this.hideButtons('提交', '出图', '缴费')
1117
+ this.showButtons('终止')
1118
+ }
1119
+ if (this.show_data.f_is_have === '是') {
1120
+ this.hideButtons('终止')
1121
+ this.showButtons('提交', '出图', '缴费')
1122
+ }
1123
+ },
1124
+ async 'igniteDispatchReadyEvent' () {
1125
+ let data = {
1126
+ tablename: 'activityins',
1127
+ condition: `processid = '${this.show_data.f_process_id}' and defname = '工程施工' and state = '结束'`
1128
+ }
1129
+ let http = new HttpResetClass()
1130
+ let res = await http.load(
1131
+ 'POST',
1132
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
1133
+ {data: data},
1134
+ {resolveMsg: null, rejectMsg: '查询失败!!!'}
1135
+ )
1136
+ if (res.data.length <= 0) {
1137
+ console.log('+++++++++++++++++++++++++++++')
1138
+ console.log('没有施工,不能退回')
1139
+ this.hideButtons('退回')
1140
+ }
1141
+ },
1142
+ 'breakControl' (val) {
1143
+ this.breakControl(val)
457
1144
  },
458
1145
  // 检查重复
459
1146
  'checkRepeat' (index) {
460
1147
  this.checkDuplicate(index)
461
1148
  },
1149
+ 'buildReadyEvent' () {
1150
+ this.setLabelValue('施工单位', Vue.user.name)
1151
+ this.setLabelValue('施工安装时间', new Date().Format('yyyy-MM-dd HH:mm:ss'))
1152
+ },
462
1153
  // 选择材料
463
1154
  async materialNameChenge (index, fieldIndex) {
464
1155
  let material = this.show_data.onetomany[index].fields[fieldIndex].value
@@ -531,6 +1222,7 @@ export default {
531
1222
  },
532
1223
  // 通气点火初始化
533
1224
  async 'gasReadyEvent' () {
1225
+ console.log('----通气点火初始化----')
534
1226
  if (!isEmpty(this.show_data.f_price_id)) {
535
1227
  let priceList = await this.getPrice(this.show_data.f_price_id)
536
1228
  this.setLabelValue('气价名称', priceList[0].value)
@@ -540,6 +1232,8 @@ export default {
540
1232
  tablename: 't_userfees',
541
1233
  condition: `f_orgid = '${Vue.user.orgid}' and f_userinfo_id = '${this.show_data.f_userinfo_id}' and f_state = '待执行'`
542
1234
  }
1235
+
1236
+ console.log('---------查询是否有待执行保险-----------')
543
1237
  let http = new HttpResetClass()
544
1238
  let res = await http.load(
545
1239
  'POST',
@@ -548,6 +1242,7 @@ export default {
548
1242
  {resolveMsg: null, rejectMsg: '保险查询失败!!!'}
549
1243
  )
550
1244
  if (res.data.length > 0) {
1245
+ console.log('----------具有待执行保险------------')
551
1246
  this.setLabelValue('待执行保险', '是')
552
1247
  for (const item of this.show_data.fields) {
553
1248
  if (item.label === '保费开始日期' || item.label === '是否购买保险' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
@@ -556,7 +1251,9 @@ export default {
556
1251
  item.value = null
557
1252
  }
558
1253
  }
1254
+ console.log('----------具有待执行保险------------')
559
1255
  } else {
1256
+ console.log('----------不有待执行保险------------')
560
1257
  this.setLabelValue('待执行保险', '否')
561
1258
  for (const item of this.show_data.fields) {
562
1259
  if (item.label === '是否购买保险' || item.label === '保费开始日期' || item.label === '保费结束日期' || item.label === '险种' || item.label === '保费金额' || item.label === '保险备注') {
@@ -564,6 +1261,7 @@ export default {
564
1261
  item.required = true
565
1262
  }
566
1263
  }
1264
+ console.log('----------具有待执行保险------------')
567
1265
  }
568
1266
 
569
1267
  // 初始化显示内容
@@ -608,60 +1306,39 @@ export default {
608
1306
  },
609
1307
  // ===========================================
610
1308
  async 'button'() {
611
- if (this.show_data.button.before) {
612
- await this[this.show_data.button.before]()
613
- }
614
- // 点击重置按钮就重置数据
615
- if (this.show_data.button.button_name === '重置') {
616
- this.$dispatch('breakControl', this.selectdata)
617
- return
618
- }
619
-
620
- this.show_data.user = Vue.user
621
- // this.show_data.user = {"f_show_department_name":"","parentname":"市场部","functions":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"客服系统","icon":"/images/lefticon/档案管理.png","hasright":false,"resourcetype":"function","parentid":"27","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"city-manage","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"231","name":"街道管理","templatename":"functionedit","id":"230","position":"1","fullname":"资源管理.功能模块.客服系统.档案管理.街道管理","fullid":"3.21.27.212.230","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"area-manage","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"219","name":"小区管理","templatename":"functionedit","id":"218","position":"3","fullname":"资源管理.功能模块.客服系统.档案管理.小区管理","fullid":"3.21.27.212.218","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"address-manage","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"33664","name":"地址管理","templatename":"functionedit","id":"33663","position":"5","fullname":"资源管理.功能模块.客服系统.档案管理.地址管理","fullid":"3.21.27.212.33663","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","parentname":"档案管理","link":"file-user-files","hasright":true,"resourcetype":"function","parentid":"212","children":[],"selfid":"237","name":"用户档案","templatename":"functionedit","id":"236","position":"5","fullname":"资源管理.功能模块.客服系统.档案管理.用户档案","fullid":"3.21.27.212.236","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"档案管理","link":"file-user-files-new","hasright":true,"resourcetype":"function","parentid":"212","f_parentname":"档案管理","children":[],"selfid":"39450","name":"预备户管理","templatename":"functionedit","id":"39449","position":"6","fullname":"资源管理.功能模块.客服系统.档案管理.预备户管理","fullid":"3.21.27.212.39449","tablename":"t_function"}],"selfid":"213","name":"档案管理","templatename":"functionedit","id":"212","position":"2","fullname":"资源管理.功能模块.客服系统.档案管理","fullid":"3.21.27.212","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"客服系统","icon":"/images/lefticon/报建系统.png","hasright":true,"resourcetype":"function","parentid":"27","f_parentname":"客服系统","children":[{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"install-function","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34680","name":"功能业务","templatename":"functionedit","id":"34679","position":"1","fullname":"资源管理.功能模块.客服系统.报建业务.功能业务","fullid":"3.21.27.34673.34679","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"exploration-user","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34686","name":"流程业务","templatename":"functionedit","id":"34685","position":"2","fullname":"资源管理.功能模块.客服系统.报建业务.流程业务","fullid":"3.21.27.34673.34685","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"supervisory-control","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34692","name":"流程监控","templatename":"functionedit","id":"34691","position":"3","fullname":"资源管理.功能模块.客服系统.报建业务.流程监控","fullid":"3.21.27.34673.34691","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"apply-charge-search","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34698","name":"收费明细","templatename":"functionedit","id":"34697","position":"4","fullname":"资源管理.功能模块.客服系统.报建业务.收费明细","fullid":"3.21.27.34673.34697","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"order-apply","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34704","name":"预约申请","templatename":"functionedit","id":"34703","position":"5","fullname":"资源管理.功能模块.客服系统.报建业务.预约申请","fullid":"3.21.27.34673.34703","tablename":"t_function"},{"pagenames":"公共通讯录维护模板","processnames":"发邮件流程","loginid":"15","parentname":"报建业务","link":"stop-apply","hasright":true,"resourcetype":"function","parentid":"34673","f_parentname":"报建业务","children":[],"selfid":"34710","name":"终止报建","templatename":"functionedit","id":"34709","position":"6","fullname":"资源管理.功能模块.客服系统.报建业务.终止报建","fullid":"3.21.27.34673.34709","tablename":"t_function"}],"selfid":"34674","name":"报建业务","templatename":"functionedit","id":"34673","position":"12","fullname":"资源管理.功能模块.客服系统.报建业务","fullid":"3.21.27.34673","tablename":"t_function"}],"qrcode":"/rs/user/getQRcode?QRCODE=12b2-1631604191812-03447","rolesnames":"营业厅报装,市场部报装,设计部报装,工程部报装,运营部报装,财务部报装,角色监控","roles":"51383,51485,51707,51767,51833,51905,52289","f_sex":"男","f_icon":"tree_user","fullnames":"河南亿星集团实业有限公司.周口市天然气有限公司.市场部.报建测试","dir":"ZhouKou","userid":"12b2-1631604191812-03447","accesstime":"1632214307117","parentid":"46545","f_show_rolestr":"","fullids":"30463.10101.46545.51953.","number":"10101","f_dep_id":"1010101201","f_idnumber":null,"selfid":"51954","templatename":"useredit","logindate":"2021-09-14 18:46:54","id":"51953","state":"在职","tablename":"t_user","deptype":"部门","depids":"46545","loginid":"15","imgid":null,"f_user_telephone":null,"rolestr":"营业厅报装,市场部报装,设计部报装,工程部报装,运营部报装,财务部报装,角色监控","deps":"市场部","loginnum":"0","f_age":null,"resourcetype":"user","orgid":"10101","f_department_name":"周口市场部","ename":"bjcs","deleted":"false","entitytype":"t_user","f_description":null,"loginip":"192.168.66.37","name":"报建测试","position":"1","orgs":"周口市天然气有限公司","haslicense":true,"f_role_name":"营业厅报装 市场部报装 设计部报装 工程部报装 运营部报装 财务部报装 角色监控 ","f_allArea":[],"f_gasman":[{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"15294978548","rolestr":"抄表员","resourcetype":"user","userid":"100814","parentid":"46581","f_department_name":"周口客服部","ename":"100814","password":"1","deleted":"false","entitytype":"t_user","selfid":"100814","name":"高雪荣","templatename":"useredit","id":"100814","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"qrcode":"/rs/user/getQRcode?QRCODE=004","roles":"51959","f_sex":"男","f_icon":"tree_user","userid":"004","accesstime":"1631765198067","parentid":"46581","password":"1","selfid":"59044","templatename":"useredit","id":"59043","state":"在职","tablename":"t_user","loginid":"15","rolestr":"抄表员","resourcetype":"user","f_department_name":"周口客服部","ename":"cbcs","deleted":"false","entitytype":"t_user","loginip":"10.10.10.1","name":"抄表测试","position":"23","haslicense":"true","f_role_name":"抄表员 "},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18538602709","rolestr":"抄表员","resourcetype":"user","userid":"100462","parentid":"46581","f_department_name":"周口客服部","ename":"100462","password":"1","deleted":"false","entitytype":"t_user","selfid":"100462","name":"刘林静","templatename":"useredit","id":"100462","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18839409830","rolestr":"抄表员","resourcetype":"user","userid":"100528","parentid":"46581","f_department_name":"周口客服部","ename":"100528","password":"1","deleted":"false","entitytype":"t_user","selfid":"100528","name":"秦春梅","templatename":"useredit","id":"100528","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"13243376616","rolestr":"抄表员","resourcetype":"user","userid":"102935","parentid":"46581","f_department_name":"周口客服部","ename":"102935","password":"1","deleted":"false","entitytype":"t_user","selfid":"102935","name":"石磊","templatename":"useredit","id":"102935","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18538602706","rolestr":"抄表员","resourcetype":"user","userid":"100818","parentid":"46581","f_department_name":"周口客服部","ename":"100818","password":"1","deleted":"false","entitytype":"t_user","selfid":"100818","name":"白静","templatename":"useredit","id":"100818","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"15294991670","rolestr":"抄表员","resourcetype":"user","userid":"102934","parentid":"46581","f_department_name":"周口客服部","ename":"102934","password":"1","deleted":"false","entitytype":"t_user","selfid":"102934","name":"郭新胜","templatename":"useredit","id":"102934","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"15036438918","rolestr":"抄表员","resourcetype":"user","userid":"103392","accesstime":"1631757950369","parentid":"46581","f_department_name":"周口客服部","ename":"103392","password":"1","deleted":"false","entitytype":"t_user","loginip":"10.10.10.1","selfid":"103392","name":"牛永胜","templatename":"useredit","id":"103392","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"13592232789","rolestr":"抄表员","resourcetype":"user","userid":"100337","parentid":"46581","f_department_name":"周口客服部","ename":"100337","password":"1","deleted":"false","entitytype":"t_user","selfid":"100337","name":"王雪丽","templatename":"useredit","id":"100337","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"17796528119","rolestr":"抄表员","resourcetype":"user","userid":"101021","parentid":"46581","f_department_name":"周口客服部","ename":"101021","password":"1","deleted":"false","entitytype":"t_user","selfid":"101021","name":"张书荣","templatename":"useredit","id":"101021","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"18839409832","rolestr":"抄表员","resourcetype":"user","userid":"100330","parentid":"46581","f_department_name":"周口客服部","ename":"100330","password":"1","deleted":"false","entitytype":"t_user","selfid":"100330","name":"武文平","templatename":"useredit","id":"100330","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"},{"loginid":"1","roles":"51959","f_icon":"tree_user","f_user_telephone":"13839441227","rolestr":"抄表员","resourcetype":"user","userid":"100871","parentid":"46581","f_department_name":"周口客服部","ename":"100871","password":"1","deleted":"false","entitytype":"t_user","selfid":"100871","name":"李明磊","templatename":"useredit","id":"100871","position":"23","state":"在职","tablename":"t_user","f_role_name":"抄表员"}],"lics":[]}
622
- this.show_data.start_activity = this.json_datas.start_activity
623
- this.show_data.xmlfilename = this.json_datas.workflow_xmlfilename
624
-
625
- let res = await this.$resetpost(
626
- // `rs/logic/ApplyProductService`,
627
- `${this.$androidUtil.getProxyUrl()}/rs/logic/ApplyProductService`,
628
- {data: this.show_data},
629
- {resolveMsg: null, rejectMsg: '数据保存失败'}
630
- )
631
-
632
- if (this.show_data.button.after) {
633
- this[this.show_data.button.after]()
634
- }
635
- // 返回上层
636
- this.$dispatch('confirm')
1309
+ console.log('-----')
1310
+ await this.buttonCommit()
637
1311
  },
638
1312
  // 失去焦点出触发事件
639
1313
  'onchange' (index) {
640
1314
  if (this.show_data.defname === '报装申请') {
641
1315
  if (
642
- this.show_data.fields[index].label === '街道' ||
643
- this.show_data.fields[index].label === '小区' ||
644
- this.show_data.fields[index].label === '楼号(乡/镇)' ||
645
- this.show_data.fields[index].label === '单元(村)' ||
646
- this.show_data.fields[index].label === '楼层(组)' ||
647
- this.show_data.fields[index].label === '门牌号(号)'
1316
+ this.show_data.fields[index].label === '区/县' ||
1317
+ this.show_data.fields[index].label === '街道/乡镇' ||
1318
+ this.show_data.fields[index].label === '集收单位' ||
1319
+ this.show_data.fields[index].label === '楼号/组' ||
1320
+ this.show_data.fields[index].label === '单元/排' ||
1321
+ this.show_data.fields[index].label === '楼层' ||
1322
+ this.show_data.fields[index].label === '门牌号'
648
1323
  ) {
649
1324
 
650
- let f_street = this.getLableValue('街道')
651
- let f_residential_area = this.getLableValue('小区')
652
- let f_building = this.getLableValue('楼号(乡/镇)')
1325
+ let f_pcd = this.getLableValue('区/县') || ''
1326
+ let f_street = this.getLableValue('街道/乡镇') || ''
1327
+ let f_residential_area = this.getLableValue('集收单位') || ''
1328
+ let f_building = this.getLableValue('楼号/组') || ''
653
1329
  let f_building_suffix = f_building ? this.config.f_building_suffix : ''
654
- let f_unit = this.getLableValue('单元(村)')
1330
+ let f_unit = this.getLableValue('单元/排') || ''
655
1331
  let f_unit_suffix = f_unit ? this.config.f_unit_suffix : ''
656
- let f_floor = this.getLableValue('楼层(组)')
1332
+ let f_floor = this.getLableValue('楼层') || ''
657
1333
  let f_floor_suffix = f_floor ? this.config.f_floor_suffix : ''
658
- let f_room = this.getLableValue('门牌号(号)')
1334
+ let f_room = this.getLableValue('门牌号') || ''
659
1335
  let f_room_suffix = f_room ? this.config.f_room_suffix : ''
660
1336
 
661
1337
  let f_address = null
662
1338
 
663
1339
  let f_address_type = this.show_data.f_address_type
664
- if (f_address_type === '民用城区') {
1340
+ f_address = f_pcd + f_street + f_residential_area + f_building + f_building_suffix + f_unit + f_unit_suffix + f_floor + f_floor_suffix + f_room + f_room_suffix
1341
+ /*if (f_address_type === '民用城区') {
665
1342
  f_address = f_street + f_residential_area + f_building + f_building_suffix + f_unit + f_unit_suffix + f_floor + f_floor_suffix + f_room + f_room_suffix
666
1343
  }
667
1344
  if (f_address_type === '民用农村') {
@@ -669,11 +1346,275 @@ export default {
669
1346
  }
670
1347
  if (f_address_type === '特殊城区') {
671
1348
  f_address = f_street + f_residential_area
672
- }
1349
+ }*/
673
1350
  this.setLabelValue("地址", f_address)
674
1351
  }
675
1352
  }
676
1353
  },
1354
+ async 'getDesignerPeople' () {
1355
+ let data = {
1356
+ source: 'this.getParentByType($organization$).getChildByName($设计部报装$).getChildren()',
1357
+ userid: this.$login.f.id
1358
+ }
1359
+
1360
+ let http = new HttpResetClass()
1361
+ let res = await http.load(
1362
+ 'POST',
1363
+ `rs/search`,
1364
+ {data: data},
1365
+ {resolveMsg: null, rejectMsg: '设计人员查询失败!!!'}
1366
+ )
1367
+
1368
+ return res.data.map(item => {
1369
+ return {
1370
+ label: item.name,
1371
+ value: item.id
1372
+ }
1373
+ })
1374
+ },
1375
+ // 申请节点初始化
1376
+ 'applyReadyEvent' () {
1377
+ this.addressInitialization()
1378
+
1379
+ this.pcdChange()
1380
+ this.streetChange()
1381
+ },
1382
+ // 街道失去焦点
1383
+ async 'streetChange' (index) {
1384
+ if (isEmpty(this.show_data.f_street)) {
1385
+ return
1386
+ }
1387
+
1388
+ this.setLabelValue('集收单位', null)
1389
+
1390
+ let data = {
1391
+ tablename: 't_area',
1392
+ condition: `f_filialeid = '${Vue.user.orgid}' and f_street = '${this.show_data.f_street}'`
1393
+ }
1394
+ let http = new HttpResetClass()
1395
+ let res = await http.load(
1396
+ 'POST',
1397
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
1398
+ {data: data},
1399
+ {resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
1400
+ )
1401
+
1402
+ this.setLabelOptions('集收单位', res.data.map(item => {
1403
+ return {
1404
+ label: item.f_residential_area,
1405
+ value: item.f_residential_area
1406
+ }
1407
+ }))
1408
+ },
1409
+ // 选择报建项目
1410
+ 'selectApply' (row) {
1411
+ this.setLabelValue('工程名称', row.f_entry_name)
1412
+ this.setLabelValue('工程编号', row.f_apply_num)
1413
+ this.setLabelValue('报建类型', row.f_apply_type)
1414
+ this.setLabelValue('用户名称', row.f_user_name)
1415
+ this.setLabelValue('用户电话', row.f_phone)
1416
+ this.setLabelValue('证件类型', row.f_credentials)
1417
+ this.setLabelValue('证件号码', row.f_idnumber)
1418
+ this.setLabelValue('地址', row.f_address)
1419
+ this.setLabelValue('累计缴费金额', row.f_cumulative_payment_money)
1420
+
1421
+ this.show_data.parentApply = JSON.parse(JSON.stringify(row))
1422
+
1423
+ delete row.id
1424
+ delete row.actid
1425
+ delete row.defid
1426
+ delete row.defname
1427
+ delete row.version
1428
+ delete row.f_apply_num
1429
+ delete row.f_sub_state
1430
+ delete row.f_apply_type
1431
+ delete row.f_process_id
1432
+
1433
+ this.show_data = Object.assign({}, this.show_data, row)
1434
+
1435
+ this.show_data.f_parent_process_id = this.show_data.parentApply.f_process_id
1436
+ },
1437
+ // 区县失去焦点
1438
+ async 'pcdChange' (index) {
1439
+ if (isEmpty(this.show_data.f_pcd)) {
1440
+ return
1441
+ }
1442
+
1443
+ this.setLabelValue('街道/乡镇', null)
1444
+ this.setLabelValue('集收单位', null)
1445
+
1446
+
1447
+
1448
+ let data = {
1449
+ tablename: 't_street',
1450
+ condition: `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
1451
+ }
1452
+ let f_address_type = this.getLableValue('地址类型')
1453
+
1454
+ if (f_address_type === '民用市区') {
1455
+ data.condition = `f_filialeid = '${Vue.user.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '市区'`
1456
+ }
1457
+ if (f_address_type === '民用乡镇') {
1458
+ data.condition = `f_filialeid = '${Vue.user.f.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '乡镇'`
1459
+ }
1460
+
1461
+ let http = new HttpResetClass()
1462
+ let res = await http.load(
1463
+ 'POST',
1464
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
1465
+ {data: data},
1466
+ {resolveMsg: null, rejectMsg: '街道/乡镇查询失败!!!'}
1467
+ )
1468
+
1469
+ this.setLabelOptions('街道/乡镇', res.data.map(item => {
1470
+ return {
1471
+ label: item.f_street,
1472
+ value: item.f_street
1473
+ }
1474
+ }))
1475
+ },
1476
+ // 选择用户档案信息
1477
+ 'selectUserinfo' (row) {
1478
+ this.setLabelValue('用户编号', row.f_userinfo_code)
1479
+ this.setLabelValue('用户名称', row.f_user_name)
1480
+ this.setLabelValue('用户电话', row.f_user_phone)
1481
+ this.setLabelValue('证件类型', row.f_credentials)
1482
+ this.setLabelValue('证件号码', row.f_idnumber)
1483
+ this.setLabelValue('地址', row.f_address)
1484
+
1485
+ this.show_data.f_userinfo_id = row.f_userinfo_id
1486
+ this.show_data.f_userinfo_code = row.f_userinfo_code
1487
+ },
1488
+ // 地址类型失去焦点
1489
+ 'addressTypeChange' (index) {
1490
+ this.setLabelValue('街道/乡镇', null)
1491
+ this.setLabelValue('集收单位', null)
1492
+ let f_address_type = this.show_data.fields[index].value
1493
+ for (const item of this.show_data.fields) {
1494
+ if (f_address_type === '民用市区') {
1495
+ if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
1496
+ item.hidden = false
1497
+ item.required = true
1498
+ item.value = null
1499
+ }
1500
+ if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
1501
+ item.hidden = false
1502
+ item.required = false
1503
+ item.value = null
1504
+ }
1505
+ if (item.label === '地址') {
1506
+ item.readonly = true
1507
+ item.value = null
1508
+ }
1509
+ }
1510
+ if (f_address_type === '民用乡镇') {
1511
+ if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
1512
+ item.hidden = false
1513
+ item.required = true
1514
+ item.value = null
1515
+ }
1516
+ if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
1517
+ item.hidden = false
1518
+ item.required = false
1519
+ item.value = null
1520
+ }
1521
+ if (item.label === '楼层') {
1522
+ item.hidden = true
1523
+ item.required = false
1524
+ item.value = null
1525
+ }
1526
+ if (item.label === '地址') {
1527
+ item.readonly = true
1528
+ item.value = null
1529
+ }
1530
+ }
1531
+ if (f_address_type === '特殊地址') {
1532
+ if (item.label === '区/县' || item.label === '街道/乡镇') {
1533
+ item.hidden = false
1534
+ item.required = true
1535
+ item.value = null
1536
+ }
1537
+ if (item.label === '集收单位') {
1538
+ item.hidden = false
1539
+ item.required = false
1540
+ item.value = null
1541
+ }
1542
+ if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层' || item.label === '门牌号') {
1543
+ item.hidden = true
1544
+ item.required = false
1545
+ item.value = null
1546
+ }
1547
+ if (item.label === '地址') {
1548
+ item.readonly = false
1549
+ item.value = null
1550
+ }
1551
+ }
1552
+ }
1553
+ },
1554
+ // 搜索小区
1555
+ async 'searchArea' (area, index) {
1556
+ let data = {
1557
+ tablename: 't_area',
1558
+ condition: `f_filialeid = '${Vue.user.orgid}' and f_street = '${this.show_data.f_street}' and f_residential_area like '%${area}%'`
1559
+ }
1560
+ let http = new HttpResetClass()
1561
+ let res = await http.load(
1562
+ 'POST',
1563
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
1564
+ {data: data},
1565
+ {resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
1566
+ )
1567
+
1568
+ if (res.data.length === 0) {
1569
+ return
1570
+ }
1571
+
1572
+ this.setLabelOptions('集收单位', res.data.map(item => {
1573
+ return {
1574
+ label: item.f_residential_area,
1575
+ value: item.f_residential_area
1576
+ }
1577
+ }))
1578
+ },
1579
+ // 搜索小区
1580
+ async 'searchAreaCollective' (area, index) {
1581
+ let data = {
1582
+ tablename: 't_area',
1583
+ condition: `f_filialeid = '${Vue.user.orgid}' and f_residential_area like '%${area}%'`
1584
+ }
1585
+ let http = new HttpResetClass()
1586
+ let res = await http.load(
1587
+ 'POST',
1588
+ `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`,
1589
+ {data: data},
1590
+ {resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
1591
+ )
1592
+
1593
+ if (res.data.length === 0) {
1594
+ return
1595
+ }
1596
+
1597
+ this.setLabelOptions('集收单位', res.data.map(item => {
1598
+ return {
1599
+ label: item.f_residential_area,
1600
+ value: item.f_residential_area
1601
+ }
1602
+ }))
1603
+ },
1604
+ // 团购转散户初始化
1605
+ 'apply2ReadyEvent' () {
1606
+ if (this.show_data.f_apply_source === '线下发起') {
1607
+ this.addressInitialization()
1608
+ this.hideLabels('用户编号')
1609
+ this.electiveLabels('用户编号')
1610
+ this.showLabels('片区', '地址类型')
1611
+ this.requiredLabels('片区', '地址类型')
1612
+ }
1613
+ if (this.show_data.f_apply_source === '自动发起') {
1614
+ this.hideLabels('片区', '地址类型')
1615
+ this.electiveLabels('片区', '地址类型',)
1616
+ }
1617
+ },
677
1618
  'onblur' (index) {},
678
1619
  'oninput' (index) {},
679
1620
  'initializtionView' () {},
@@ -747,9 +1688,19 @@ export default {
747
1688
  },
748
1689
  'onbutinput' (index) {
749
1690
 
1691
+ },
1692
+ 'changeShowfei' (val) {
1693
+ console.log('回调修改父组件属性----'+val)
1694
+ this.show_data.showfei=val
750
1695
  }
751
1696
  },
752
1697
  watch: {
1698
+ /*async 'show_data.showfei' (val) {
1699
+ console.log(`支付成功!!!!!!${val}`)
1700
+ if(this.show_data.showfei=='已付款'){
1701
+ await this.buttonCommit()
1702
+ }
1703
+ }*/
753
1704
  }
754
1705
  }
755
1706
  </script>