apply-clients 7.1.34 → 7.1.36-1

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 (493) hide show
  1. package/.eslintrc.js +5 -1
  2. package/android.html +9 -0
  3. package/build/css-loaders.js +34 -0
  4. package/build/dev-client.js +8 -0
  5. package/build/dev-server.js +166 -0
  6. package/build/example-server.js +80 -0
  7. package/build/release.sh +28 -0
  8. package/build/utils.js +80 -0
  9. package/build/webpack.base.conf.js +123 -0
  10. package/build/webpack.baseandroid.conf.js +123 -0
  11. package/build/webpack.dev.conf.js +43 -0
  12. package/build/webpack.devandroid.conf.js +34 -0
  13. package/build/webpack.example.conf.js +49 -0
  14. package/build/webpack.prod.conf.js +60 -0
  15. package/build/webpack.prodandroid.conf.js +60 -0
  16. package/dist-android.7z +0 -0
  17. package/dist.7z +0 -0
  18. package/index.html +39 -30
  19. package/package.json +14 -8
  20. package/src/AndroidApp.vue +21 -14
  21. package/src/App.vue +4 -6
  22. package/{dist-android/static → src/android-bootstrap/fonts}/glyphicons-halflings-regular.eot +0 -0
  23. package/{dist-android/static → src/android-bootstrap/fonts}/glyphicons-halflings-regular.svg +0 -0
  24. package/{dist-android/static → src/android-bootstrap/fonts}/glyphicons-halflings-regular.ttf +0 -0
  25. package/{dist-android/static → src/android-bootstrap/fonts}/glyphicons-halflings-regular.woff +0 -0
  26. package/{dist-android/static → src/android-bootstrap/fonts}/glyphicons-halflings-regular.woff2 +0 -0
  27. package/src/android-bootstrap/less/.csscomb.json +304 -0
  28. package/src/android-bootstrap/less/.csslintrc +19 -0
  29. package/src/android-bootstrap/less/alerts.less +73 -0
  30. package/src/android-bootstrap/less/badges.less +66 -0
  31. package/src/android-bootstrap/less/bootstrap.less +56 -0
  32. package/src/android-bootstrap/less/breadcrumbs.less +26 -0
  33. package/src/android-bootstrap/less/button-groups.less +247 -0
  34. package/src/android-bootstrap/less/buttons.less +173 -0
  35. package/src/android-bootstrap/less/carousel.less +269 -0
  36. package/src/android-bootstrap/less/close.less +34 -0
  37. package/src/android-bootstrap/less/code.less +69 -0
  38. package/src/android-bootstrap/less/component-animations.less +33 -0
  39. package/src/android-bootstrap/less/dropdowns.less +216 -0
  40. package/src/android-bootstrap/less/forms.less +626 -0
  41. package/src/android-bootstrap/less/glyphicons.less +305 -0
  42. package/src/android-bootstrap/less/grid.less +84 -0
  43. package/src/android-bootstrap/less/input-groups.less +167 -0
  44. package/src/android-bootstrap/less/jumbotron.less +52 -0
  45. package/src/android-bootstrap/less/labels.less +64 -0
  46. package/src/android-bootstrap/less/list-group.less +141 -0
  47. package/src/android-bootstrap/less/media.less +66 -0
  48. package/src/android-bootstrap/less/mixins/alerts.less +14 -0
  49. package/src/android-bootstrap/less/mixins/background-variant.less +9 -0
  50. package/src/android-bootstrap/less/mixins/border-radius.less +18 -0
  51. package/src/android-bootstrap/less/mixins/buttons.less +69 -0
  52. package/src/android-bootstrap/less/mixins/center-block.less +7 -0
  53. package/src/android-bootstrap/less/mixins/clearfix.less +22 -0
  54. package/src/android-bootstrap/less/mixins/forms.less +90 -0
  55. package/src/android-bootstrap/less/mixins/gradients.less +59 -0
  56. package/src/android-bootstrap/less/mixins/grid-framework.less +92 -0
  57. package/src/android-bootstrap/less/mixins/grid.less +122 -0
  58. package/src/android-bootstrap/less/mixins/hide-text.less +21 -0
  59. package/src/android-bootstrap/less/mixins/image.less +33 -0
  60. package/src/android-bootstrap/less/mixins/labels.less +12 -0
  61. package/src/android-bootstrap/less/mixins/list-group.less +30 -0
  62. package/src/android-bootstrap/less/mixins/nav-divider.less +10 -0
  63. package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -0
  64. package/src/android-bootstrap/less/mixins/opacity.less +8 -0
  65. package/src/android-bootstrap/less/mixins/pagination.less +24 -0
  66. package/src/android-bootstrap/less/mixins/panels.less +24 -0
  67. package/src/android-bootstrap/less/mixins/progress-bar.less +10 -0
  68. package/src/android-bootstrap/less/mixins/reset-filter.less +8 -0
  69. package/src/android-bootstrap/less/mixins/reset-text.less +18 -0
  70. package/src/android-bootstrap/less/mixins/resize.less +6 -0
  71. package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -0
  72. package/src/android-bootstrap/less/mixins/size.less +10 -0
  73. package/src/android-bootstrap/less/mixins/tab-focus.less +9 -0
  74. package/src/android-bootstrap/less/mixins/table-row.less +44 -0
  75. package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -0
  76. package/src/android-bootstrap/less/mixins/text-overflow.less +8 -0
  77. package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -0
  78. package/src/android-bootstrap/less/mixins.less +40 -0
  79. package/src/android-bootstrap/less/modals.less +151 -0
  80. package/src/android-bootstrap/less/navbar.less +660 -0
  81. package/src/android-bootstrap/less/navs.less +302 -0
  82. package/src/android-bootstrap/less/normalize.less +424 -0
  83. package/src/android-bootstrap/less/pager.less +76 -0
  84. package/src/android-bootstrap/less/pagination.less +89 -0
  85. package/src/android-bootstrap/less/panels.less +274 -0
  86. package/src/android-bootstrap/less/popovers.less +131 -0
  87. package/src/android-bootstrap/less/print.less +101 -0
  88. package/src/android-bootstrap/less/progress-bars.less +87 -0
  89. package/src/android-bootstrap/less/responsive-embed.less +35 -0
  90. package/src/android-bootstrap/less/responsive-utilities.less +194 -0
  91. package/src/android-bootstrap/less/scaffolding.less +161 -0
  92. package/src/android-bootstrap/less/tables.less +262 -0
  93. package/src/android-bootstrap/less/theme.less +291 -0
  94. package/src/android-bootstrap/less/thumbnails.less +36 -0
  95. package/src/android-bootstrap/less/tooltip.less +102 -0
  96. package/src/android-bootstrap/less/type.less +303 -0
  97. package/src/android-bootstrap/less/utilities.less +55 -0
  98. package/src/android-bootstrap/less/variables.less +896 -0
  99. package/src/android-bootstrap/less/wells.less +29 -0
  100. package/src/android.js +7 -4
  101. package/src/apply.js +109 -69
  102. package/src/applyAndroid.js +65 -28
  103. package/src/assets/marker-default.png +0 -0
  104. package/src/assets/myLocationIcon.png +0 -0
  105. package/src/assets//345/210/240/351/231/244.png +0 -0
  106. package/src/components/android/AppOnetomany.vue +301 -0
  107. package/src/components/android/AppServiceView.vue +603 -0
  108. package/src/components/android/AppSign.vue +228 -0
  109. package/src/components/android/AppTakePic.vue +142 -0
  110. package/src/components/android/AppUpload.vue +260 -0
  111. package/src/components/android/Ignition/VentilationIgnition.vue +408 -0
  112. package/src/components/android/Ignition/VentilationIgnitionHandle.vue +455 -0
  113. package/src/components/android/Process/AppExplorationUser.vue +454 -0
  114. package/src/components/android/Process/AppServiceControl.vue +1397 -0
  115. package/src/components/android/Process/Processes/AppDevicesManagement.vue +338 -0
  116. package/src/components/android/Process/Processes/AppInstallationDetails.vue +818 -0
  117. package/src/components/android/Process/Processes/SurveyUserSign.vue +65 -0
  118. package/src/components/android/Process/Processes/newAppDevicesManagement.vue +343 -0
  119. package/src/components/android/Process/Processes/newAppInstallationDetails.vue +669 -0
  120. package/src/components/android/Sign/AppSignTask.vue +183 -0
  121. package/src/components/android/Sign/SignProcess.vue +103 -0
  122. package/src/components/android/Supervisory/AppProcessSupervisory.vue +298 -0
  123. package/src/components/android/Supervisory/AppSupervisoryCart.vue +128 -0
  124. package/src/components/android/Task/Build/BuildTsak.vue +114 -0
  125. package/src/components/android/Task/BuildIgnition/BuildIgnition.vue +114 -0
  126. package/src/components/android/Task/RepairFromSend/RepairFrom.vue +124 -0
  127. package/src/components/android/Task/RepairFromSend/RepairSend.vue +124 -0
  128. package/src/components/android/Task/ShiGongXinXi/AppShowBuildUser.vue +427 -0
  129. package/src/components/android/Task/ShiGongXinXi/ShowBuild.vue +95 -0
  130. package/src/components/android/Task/Survey/SurveyTsak.vue +141 -0
  131. package/src/components/android/Task/UpBuild/UpBuildDui.vue +95 -0
  132. package/src/components/android/Task/UpBuild/UpBuildTsak.vue +95 -0
  133. package/src/components/android/Task/UpBuild/UpJianLi.vue +95 -0
  134. package/src/components/android/TaskGraph.vue +130 -0
  135. package/src/components/android/newPackage/customerServiceManager.vue +218 -0
  136. package/src/components/android/newPackage/designDrawings.vue +94 -0
  137. package/src/components/android/newPackage/detailedData.vue +24 -0
  138. package/src/components/android/newPackage/projectPrice.vue +218 -0
  139. package/src/components/image/dwg.png +0 -0
  140. package/src/components/image/dxf.png +0 -0
  141. package/src/components/product/ApplyCharge/ApplyChargeList.vue +541 -73
  142. package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +2 -2
  143. package/src/components/product/ApplyMap/ApplyDragaboutList.vue +223 -0
  144. package/src/components/product/ApplyMap/ApplyInputSearch.vue +212 -0
  145. package/src/components/product/ApplyMap/ApplyMapCom.vue +82 -0
  146. package/src/components/product/ApplyMap/ApplyMapLocation.vue +850 -0
  147. package/src/components/product/ChongZheng/ApplyChongZhengList.vue +414 -0
  148. package/src/components/product/ChongZheng/ApplyChongZhengSearch.vue +30 -0
  149. package/src/components/product/Function/InstallFunction.vue +133 -147
  150. package/src/components/product/Function/InstallInfoSelect.vue +370 -281
  151. package/src/components/product/Function/Service/FunctionServiceControl.vue +378 -148
  152. package/src/components/product/Ignition/IgnitionDispatch.vue +92 -0
  153. package/src/components/product/Ignition/IgnitionList.vue +232 -0
  154. package/src/components/product/Ignition/IgnitionListManage.vue +362 -0
  155. package/src/components/product/Ignition/IgnitionRecord.vue +318 -0
  156. package/src/components/product/List/ShowDevices.vue +277 -0
  157. package/src/components/product/Onetomany.vue +377 -0
  158. package/src/components/product/Print/BuildOrder/buildOrderList.vue +445 -0
  159. package/src/components/product/Print/BuildOrder/printBuildOrder.vue +252 -0
  160. package/src/components/product/Print/BuildOrder/printGaiXianOrder.vue +232 -0
  161. package/src/components/product/Print/OrderPrint/GaiXianOrder.vue +281 -0
  162. package/src/components/product/Print/img/R-C.jpg +0 -0
  163. package/src/components/product/Process/ExplorationSelect.vue +566 -347
  164. package/src/components/product/Process/ExplorationUser.vue +155 -135
  165. package/src/components/product/Process/Processes/ExhibitionPicture.vue +27 -0
  166. package/src/components/product/Process/Processes/InstallationDetails.vue +1000 -484
  167. package/src/components/product/Process/Processes/Print/img/10101.png +0 -0
  168. package/src/components/product/Process/Processes/Print/img/1010109.png +0 -0
  169. package/src/components/product/Process/Processes/Print/img/1010110.png +0 -0
  170. package/src/components/product/Process/Processes/Print/img/1010111.png +0 -0
  171. package/src/components/product/Process/Processes/Print/img/1010112.png +0 -0
  172. package/src/components/product/Process/Processes/Print/printCharge.vue +246 -0
  173. package/src/components/product/Process/Processes/Print/printPaymentApproval.vue +221 -0
  174. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +207 -249
  175. package/src/components/product/Process/Processes/chargeManagement.vue +686 -562
  176. package/src/components/product/Process/Processes/devicesManagement.vue +373 -0
  177. package/src/components/product/Process/Processes/newDevicesManagement.vue +379 -0
  178. package/src/components/product/Process/Processes/newInstallationDetails.vue +718 -0
  179. package/src/components/product/Process/Processes/satisfactionShow.vue +202 -0
  180. package/src/components/product/Process/Processes/selectApply.vue +250 -0
  181. package/src/components/product/Process/Processes/selectOldUserinfo.vue +241 -0
  182. package/src/components/product/Process/Processes/selectUserinfo.vue +234 -0
  183. package/src/components/product/Process/Processes/supplementalAgreement.vue +182 -181
  184. package/src/components/product/Process/Service/ServiceControl.vue +1900 -756
  185. package/src/components/product/Process/Service/ShowBackReason.vue +33 -0
  186. package/src/components/product/ServiceView.vue +632 -755
  187. package/src/components/product/Stop/StopApply.vue +105 -0
  188. package/src/components/product/Stop/StopApplyList.vue +224 -0
  189. package/src/components/product/Supervisory/ExportExcel.vue +360 -0
  190. package/src/components/product/Supervisory/NewSupervisoryhCart.vue +175 -0
  191. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +425 -73
  192. package/src/components/product/Supervisory/SupervisoryControl.vue +114 -121
  193. package/src/components/product/Supervisory/SupervisoryList.vue +339 -62
  194. package/src/components/product/Supervisory/SupervisoryhCart.vue +119 -103
  195. package/src/components/product/VueUtils/ApplyUpload.vue +70 -47
  196. package/src/components/product/VueUtils/HighMeter.vue +208 -0
  197. package/src/expandcssAndroid.less +1034 -0
  198. package/src/main.js +5 -1
  199. package/src/public/history/HistoryApplyList.vue +108 -0
  200. package/src/public/history/PublicHistoryApply.vue +39 -0
  201. package/src/public/history/PublicSupervisoryhCart.vue +72 -0
  202. package/src/public/order/PublicOrderApply.vue +387 -0
  203. package/static/images/lefticon/{/345/256/211/346/243/200/346/237/245/347/234/213.png → anjianjihua.png} +0 -0
  204. package/static/images/lefticon/{/346/241/243/346/241/210/347/256/241/347/220/206.png → danganguanli.png} +0 -0
  205. package/static/images/lefticon/{/345/224/256/346/260/224/346/224/266/350/264/271.png → shouqishoufei.png} +0 -0
  206. package/static/images/lefticon/{/347/211/251/350/201/224/347/275/221/350/241/250.png → wulianwang.png} +0 -0
  207. package/static/images/lefticon/{/347/263/273/347/273/237/347/256/241/347/220/206.png → xitongguanli.png} +0 -0
  208. package/static/images/lefticon/{/347/273/274/345/220/210/346/237/245/350/257/242.png → yingyechaxun.png} +0 -0
  209. package/static/images/lefticon/{/345/221/274/345/217/253/347/263/273/347/273/237.png → yuyinkefu.png} +0 -0
  210. package/static/images/lefticon/{/347/273/274/345/220/210/344/270/232/345/212/241.png → zongheyewu.png} +0 -0
  211. package/static/images/lefticon//345/220/210/345/220/214/347/256/241/347/220/206.png +0 -0
  212. package/{dist-android/static/denglu.png → static/images/lefticonNew//345/215/241/346/234/215/345/212/241/347/256/241/347/220/206.png} +0 -0
  213. package/static/images/lefticonNew//345/220/210/345/220/214/347/256/241/347/220/206.png +0 -0
  214. package/static/images/lefticonNew//345/221/274/345/217/253/347/263/273/347/273/237.png +0 -0
  215. package/static/images/lefticonNew//345/224/256/346/260/224/346/224/266/350/264/271.png +0 -0
  216. package/static/images/lefticonNew//345/233/276/345/261/2023/346/213/267/350/264/2354.png +0 -0
  217. package/static/images/lefticonNew//345/233/276/345/261/202577.png +0 -0
  218. package/{dist-android/static/psicon.png → static/images/lefticonNew//345/233/276/345/261/2028/346/213/267/350/264/23513.png} +0 -0
  219. package/static/images/lefticonNew//345/256/211/346/243/200/346/237/245/347/234/213.png +0 -0
  220. package/static/images/lefticonNew//345/256/211/346/243/200/350/256/241/345/210/222.png +0 -0
  221. package/static/images/lefticonNew//345/276/256/344/277/241/346/234/215/345/212/241.png +0 -0
  222. package/static/images/lefticonNew//346/212/245/345/273/272/347/263/273/347/273/237.png +0 -0
  223. package/static/images/lefticonNew//346/212/245/350/241/250/346/237/245/350/257/242.png +0 -0
  224. package/static/images/lefticonNew//346/227/245/345/270/270/347/256/241/347/220/206.png +0 -0
  225. package/static/images/lefticonNew//346/234/272/350/241/250/347/256/241/347/220/206.png +0 -0
  226. package/static/images/lefticonNew//346/237/245/350/257/242/345/210/227/350/241/250.png +0 -0
  227. package/static/images/lefticonNew//346/241/243/346/241/210/347/256/241/347/220/206.png +0 -0
  228. package/static/images/lefticonNew//347/211/251/350/201/224/347/275/221/350/241/250.png +0 -0
  229. package/static/images/lefticonNew//347/263/273/347/273/237/347/256/241/347/220/206.png +0 -0
  230. package/static/images/lefticonNew//347/263/273/347/273/237/350/256/276/347/275/256.png +0 -0
  231. package/static/images/lefticonNew//347/273/217/350/220/245/347/256/241/346/216/247.png +0 -0
  232. package/static/images/lefticonNew//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
  233. package/static/images/lefticonNew//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
  234. package/static/images/lefticonNew//350/217/234/345/215/225/344/274/270/347/274/251.png +0 -0
  235. package/static/images/lefticonNew//351/200/200/345/207/272/347/263/273/347/273/237.png +0 -0
  236. package/yarn-error.log +9976 -0
  237. package/dist-android/index.html +0 -3
  238. package/dist-android/static/.gitkeep +0 -0
  239. package/dist-android/static/0.js +0 -2
  240. package/dist-android/static/0.js.map +0 -1
  241. package/dist-android/static/1.js +0 -2
  242. package/dist-android/static/1.js.map +0 -1
  243. package/dist-android/static/10.js +0 -2
  244. package/dist-android/static/10.js.map +0 -1
  245. package/dist-android/static/100.js +0 -2
  246. package/dist-android/static/100.js.map +0 -1
  247. package/dist-android/static/11.js +0 -2
  248. package/dist-android/static/11.js.map +0 -1
  249. package/dist-android/static/12.js +0 -2
  250. package/dist-android/static/12.js.map +0 -1
  251. package/dist-android/static/13.js +0 -2
  252. package/dist-android/static/13.js.map +0 -1
  253. package/dist-android/static/14.js +0 -2
  254. package/dist-android/static/14.js.map +0 -1
  255. package/dist-android/static/15.js +0 -2
  256. package/dist-android/static/15.js.map +0 -1
  257. package/dist-android/static/16.js +0 -2
  258. package/dist-android/static/16.js.map +0 -1
  259. package/dist-android/static/17.js +0 -2
  260. package/dist-android/static/17.js.map +0 -1
  261. package/dist-android/static/18.js +0 -2
  262. package/dist-android/static/18.js.map +0 -1
  263. package/dist-android/static/19.js +0 -2
  264. package/dist-android/static/19.js.map +0 -1
  265. package/dist-android/static/2.js +0 -2
  266. package/dist-android/static/2.js.map +0 -1
  267. package/dist-android/static/20.js +0 -2
  268. package/dist-android/static/20.js.map +0 -1
  269. package/dist-android/static/21.js +0 -2
  270. package/dist-android/static/21.js.map +0 -1
  271. package/dist-android/static/22.js +0 -2
  272. package/dist-android/static/22.js.map +0 -1
  273. package/dist-android/static/23.js +0 -2
  274. package/dist-android/static/23.js.map +0 -1
  275. package/dist-android/static/24.js +0 -2
  276. package/dist-android/static/24.js.map +0 -1
  277. package/dist-android/static/25.js +0 -2
  278. package/dist-android/static/25.js.map +0 -1
  279. package/dist-android/static/26.js +0 -2
  280. package/dist-android/static/26.js.map +0 -1
  281. package/dist-android/static/27.js +0 -2
  282. package/dist-android/static/27.js.map +0 -1
  283. package/dist-android/static/28.js +0 -2
  284. package/dist-android/static/28.js.map +0 -1
  285. package/dist-android/static/29.js +0 -2
  286. package/dist-android/static/29.js.map +0 -1
  287. package/dist-android/static/3.js +0 -2
  288. package/dist-android/static/3.js.map +0 -1
  289. package/dist-android/static/30.js +0 -2
  290. package/dist-android/static/30.js.map +0 -1
  291. package/dist-android/static/31.js +0 -2
  292. package/dist-android/static/31.js.map +0 -1
  293. package/dist-android/static/32.js +0 -2
  294. package/dist-android/static/32.js.map +0 -1
  295. package/dist-android/static/33.js +0 -2
  296. package/dist-android/static/33.js.map +0 -1
  297. package/dist-android/static/34.js +0 -2
  298. package/dist-android/static/34.js.map +0 -1
  299. package/dist-android/static/35.js +0 -2
  300. package/dist-android/static/35.js.map +0 -1
  301. package/dist-android/static/36.js +0 -2
  302. package/dist-android/static/36.js.map +0 -1
  303. package/dist-android/static/37.js +0 -2
  304. package/dist-android/static/37.js.map +0 -1
  305. package/dist-android/static/38.js +0 -2
  306. package/dist-android/static/38.js.map +0 -1
  307. package/dist-android/static/39.js +0 -2
  308. package/dist-android/static/39.js.map +0 -1
  309. package/dist-android/static/4.js +0 -2
  310. package/dist-android/static/4.js.map +0 -1
  311. package/dist-android/static/40.js +0 -2
  312. package/dist-android/static/40.js.map +0 -1
  313. package/dist-android/static/41.js +0 -2
  314. package/dist-android/static/41.js.map +0 -1
  315. package/dist-android/static/42.js +0 -2
  316. package/dist-android/static/42.js.map +0 -1
  317. package/dist-android/static/43.js +0 -2
  318. package/dist-android/static/43.js.map +0 -1
  319. package/dist-android/static/44.js +0 -2
  320. package/dist-android/static/44.js.map +0 -1
  321. package/dist-android/static/45.js +0 -2
  322. package/dist-android/static/45.js.map +0 -1
  323. package/dist-android/static/46.js +0 -2
  324. package/dist-android/static/46.js.map +0 -1
  325. package/dist-android/static/47.js +0 -2
  326. package/dist-android/static/47.js.map +0 -1
  327. package/dist-android/static/48.js +0 -2
  328. package/dist-android/static/48.js.map +0 -1
  329. package/dist-android/static/49.js +0 -2
  330. package/dist-android/static/49.js.map +0 -1
  331. package/dist-android/static/5.js +0 -2
  332. package/dist-android/static/5.js.map +0 -1
  333. package/dist-android/static/50.js +0 -2
  334. package/dist-android/static/50.js.map +0 -1
  335. package/dist-android/static/51.js +0 -2
  336. package/dist-android/static/51.js.map +0 -1
  337. package/dist-android/static/52.js +0 -2
  338. package/dist-android/static/52.js.map +0 -1
  339. package/dist-android/static/53.js +0 -2
  340. package/dist-android/static/53.js.map +0 -1
  341. package/dist-android/static/54.js +0 -2
  342. package/dist-android/static/54.js.map +0 -1
  343. package/dist-android/static/55.js +0 -2
  344. package/dist-android/static/55.js.map +0 -1
  345. package/dist-android/static/56.js +0 -2
  346. package/dist-android/static/56.js.map +0 -1
  347. package/dist-android/static/57.js +0 -2
  348. package/dist-android/static/57.js.map +0 -1
  349. package/dist-android/static/58.js +0 -2
  350. package/dist-android/static/58.js.map +0 -1
  351. package/dist-android/static/59.js +0 -2
  352. package/dist-android/static/59.js.map +0 -1
  353. package/dist-android/static/6.js +0 -2
  354. package/dist-android/static/6.js.map +0 -1
  355. package/dist-android/static/60.js +0 -2
  356. package/dist-android/static/60.js.map +0 -1
  357. package/dist-android/static/61.js +0 -2
  358. package/dist-android/static/61.js.map +0 -1
  359. package/dist-android/static/62.js +0 -2
  360. package/dist-android/static/62.js.map +0 -1
  361. package/dist-android/static/63.js +0 -2
  362. package/dist-android/static/63.js.map +0 -1
  363. package/dist-android/static/64.js +0 -2
  364. package/dist-android/static/64.js.map +0 -1
  365. package/dist-android/static/65.js +0 -2
  366. package/dist-android/static/65.js.map +0 -1
  367. package/dist-android/static/66.js +0 -2
  368. package/dist-android/static/66.js.map +0 -1
  369. package/dist-android/static/67.js +0 -2
  370. package/dist-android/static/67.js.map +0 -1
  371. package/dist-android/static/68.js +0 -2
  372. package/dist-android/static/68.js.map +0 -1
  373. package/dist-android/static/69.js +0 -2
  374. package/dist-android/static/69.js.map +0 -1
  375. package/dist-android/static/7.js +0 -6
  376. package/dist-android/static/7.js.map +0 -1
  377. package/dist-android/static/70.js +0 -2
  378. package/dist-android/static/70.js.map +0 -1
  379. package/dist-android/static/71.js +0 -2
  380. package/dist-android/static/71.js.map +0 -1
  381. package/dist-android/static/72.js +0 -2
  382. package/dist-android/static/72.js.map +0 -1
  383. package/dist-android/static/73.js +0 -2
  384. package/dist-android/static/73.js.map +0 -1
  385. package/dist-android/static/74.js +0 -2
  386. package/dist-android/static/74.js.map +0 -1
  387. package/dist-android/static/75.js +0 -2
  388. package/dist-android/static/75.js.map +0 -1
  389. package/dist-android/static/76.js +0 -2
  390. package/dist-android/static/76.js.map +0 -1
  391. package/dist-android/static/77.js +0 -2
  392. package/dist-android/static/77.js.map +0 -1
  393. package/dist-android/static/78.js +0 -2
  394. package/dist-android/static/78.js.map +0 -1
  395. package/dist-android/static/79.js +0 -2
  396. package/dist-android/static/79.js.map +0 -1
  397. package/dist-android/static/8.js +0 -2
  398. package/dist-android/static/8.js.map +0 -1
  399. package/dist-android/static/80.js +0 -2
  400. package/dist-android/static/80.js.map +0 -1
  401. package/dist-android/static/81.js +0 -2
  402. package/dist-android/static/81.js.map +0 -1
  403. package/dist-android/static/82.js +0 -2
  404. package/dist-android/static/82.js.map +0 -1
  405. package/dist-android/static/83.js +0 -2
  406. package/dist-android/static/83.js.map +0 -1
  407. package/dist-android/static/84.js +0 -2
  408. package/dist-android/static/84.js.map +0 -1
  409. package/dist-android/static/85.js +0 -2
  410. package/dist-android/static/85.js.map +0 -1
  411. package/dist-android/static/86.js +0 -2
  412. package/dist-android/static/86.js.map +0 -1
  413. package/dist-android/static/87.js +0 -2
  414. package/dist-android/static/87.js.map +0 -1
  415. package/dist-android/static/88.js +0 -2
  416. package/dist-android/static/88.js.map +0 -1
  417. package/dist-android/static/89.js +0 -2
  418. package/dist-android/static/89.js.map +0 -1
  419. package/dist-android/static/9.js +0 -3
  420. package/dist-android/static/9.js.map +0 -1
  421. package/dist-android/static/90.js +0 -2
  422. package/dist-android/static/90.js.map +0 -1
  423. package/dist-android/static/91.js +0 -2
  424. package/dist-android/static/91.js.map +0 -1
  425. package/dist-android/static/92.js +0 -2
  426. package/dist-android/static/92.js.map +0 -1
  427. package/dist-android/static/93.js +0 -2
  428. package/dist-android/static/93.js.map +0 -1
  429. package/dist-android/static/94.js +0 -2
  430. package/dist-android/static/94.js.map +0 -1
  431. package/dist-android/static/95.js +0 -2
  432. package/dist-android/static/95.js.map +0 -1
  433. package/dist-android/static/96.js +0 -2
  434. package/dist-android/static/96.js.map +0 -1
  435. package/dist-android/static/97.js +0 -2
  436. package/dist-android/static/97.js.map +0 -1
  437. package/dist-android/static/98.js +0 -2
  438. package/dist-android/static/98.js.map +0 -1
  439. package/dist-android/static/99.js +0 -2
  440. package/dist-android/static/99.js.map +0 -1
  441. package/dist-android/static/app.css +0 -2
  442. package/dist-android/static/app.css.map +0 -1
  443. package/dist-android/static/app.js +0 -80
  444. package/dist-android/static/app.js.map +0 -1
  445. package/dist-android/static/batchleft.png +0 -0
  446. package/dist-android/static/batchright.png +0 -0
  447. package/dist-android/static/bluemainbg.jpg +0 -0
  448. package/dist-android/static/config.json +0 -7
  449. package/dist-android/static/huangtengbiaozhi.png +0 -0
  450. package/dist-android/static/jingyin.jpg +0 -0
  451. package/dist-android/static/login_bg.jpg +0 -0
  452. package/dist-android/static/login_title.png +0 -0
  453. package/dist-android/static/login_title1.png +0 -0
  454. package/dist-android/static/loginbg.jpg +0 -0
  455. package/dist-android/static/loginlogo.png +0 -0
  456. package/dist-android/static/main_logo.png +0 -0
  457. package/dist-android/static/mainbg.jpg +0 -0
  458. package/dist-android/static/menulogo.png +0 -0
  459. package/dist-android/static/newmainbg.jpg +0 -0
  460. package/dist-android/static/singleleft.png +0 -0
  461. package/dist-android/static/singleright.png +0 -0
  462. package/dist-android/static/treeopen.png +0 -0
  463. package/dist-android/static/treeout.png +0 -0
  464. package/dist-android/static/treeset.png +0 -0
  465. package/dist-android/static/usericon.png +0 -0
  466. package/dist-android/static/workflow_apply.json +0 -766
  467. package/dist-android/static/xinxi.png +0 -0
  468. package/dist-android/static//344/277/256/346/224/271/345/257/206/347/240/201.png +0 -0
  469. package/dist-android/static//345/256/211/346/243/200/345/257/274/350/210/252/347/253/226/345/261/2173.png +0 -0
  470. package/dist-android/static//345/257/274/345/207/272/346/225/260/346/215/256.png +0 -0
  471. package/dist-android/static//346/270/205/347/251/272/346/225/260/346/215/256.png +0 -0
  472. package/src/components/app_apply/Acceptance.vue +0 -298
  473. package/src/components/app_apply/ApplyApp.vue +0 -91
  474. package/src/components/app_apply/ApplyDownList.vue +0 -166
  475. package/src/components/app_apply/ApplyInfo.vue +0 -56
  476. package/src/components/app_apply/ApplyListUpload.vue +0 -258
  477. package/src/components/app_apply/ApplyToDoList.vue +0 -165
  478. package/src/components/app_apply/ApplyUserInfo.vue +0 -56
  479. package/src/components/app_apply/FieldExploration.vue +0 -267
  480. package/src/components/app_apply/PlaceControler.vue +0 -258
  481. package/src/components/app_apply/ServiceControl.vue +0 -267
  482. package/src/components/app_apply/ServiceView.vue +0 -355
  483. package/src/components/app_apply/ToolsPage.vue +0 -51
  484. package/src/components/app_apply/Ventilation.vue +0 -199
  485. package/src/components/product/ApplyCharge/ApplyChargeReport.vue +0 -107
  486. package/src/components/product/Function/StopApplyCrrdList.vue +0 -176
  487. package/src/components/product/Function/functions/ApplyRecordCancel.vue +0 -102
  488. package/src/components/product/Function/functions/StopInstall.vue +0 -106
  489. package/src/components/product/Process/Processes/printCharge.vue +0 -126
  490. package/src/components/product/Process/ShowBackReason.vue +0 -32
  491. package/src/components/product/ReportForm/GasIgnitionSummary.vue +0 -352
  492. package/src/components/product/VueUtils/ToolsPage.vue +0 -51
  493. package/src/components/product/VueUtils/Tree.vue +0 -330
@@ -1,856 +1,2000 @@
1
1
  <template>
2
-
3
- <div class="auto clearfix">
2
+ <div class="" v-if="showview">
4
3
  <show-back-reason :selectdata="show_data"></show-back-reason>
4
+ <service-view v-ref:serviceview :data="show_data"></service-view>
5
5
  </div>
6
-
7
- <service-view v-ref:serviceview :data="show_data" v-if="showview"></service-view>
8
-
9
6
  </template>
10
7
  <script>
11
- import Vue from 'vue'
12
- import {HttpResetClass} from 'vue-client'
13
- import {getNowDate,isEmpty} from '../../../Util'
14
- // Date格式化
15
- Date.prototype.Format = function (fmt) {
16
- var o = {
17
- "M+": this.getMonth() + 1, //月份
18
- "d+": this.getDate(), //日
19
- "H+": this.getHours(), //小时
20
- "m+": this.getMinutes(), //分
21
- "s+": this.getSeconds(), //秒
22
- "q+": Math.floor((this.getMonth() + 3) / 3), //季度
23
- "S": this.getMilliseconds() //毫秒
24
- };
25
- if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
26
- for (var k in o)
27
- if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
28
- return fmt;
29
- }
8
+ import {HttpResetClass} from 'vue-client'
9
+ import {isEmpty} from '../../../Util'
30
10
 
31
- export default {
32
- title: '报建流程业务控制层',
33
- props: ['selectdata'],
34
- data() {
35
- return {
36
- data: null, // 数据库数据,json配置文件数据的数据集合
37
- json_datas: null, // Json配置文件集合
38
- showview: false, // 控制显示service-view组件
39
- show_data: null // 给view层显示的数据
40
- }
41
- },
42
- created () {
43
- this.refurbish()
44
- },
45
- methods: {
46
- // 组件初始化操作
47
- refurbish() {
48
- this.json_datas = this.$workflow_vue
49
- let sum = 0
50
- let jsonData = {}
51
- if (!this.json_datas || !this.json_datas.activitys || this.json_datas.activitys.length == 0) {
52
- this.$showMessage("网络故障,请刷新页面")
53
- return
11
+ // Date格式化
12
+ Date.prototype.Format = function (fmt) {
13
+ var o = {
14
+ "M+": this.getMonth() + 1, //月份
15
+ "d+": this.getDate(), //日
16
+ "H+": this.getHours(), //小时
17
+ "m+": this.getMinutes(), //分
18
+ "s+": this.getSeconds(), //秒
19
+ "q+": Math.floor((this.getMonth() + 3) / 3), //季度
20
+ "S": this.getMilliseconds() //毫秒
21
+ };
22
+ if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
23
+ for (var k in o)
24
+ if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
25
+ return fmt;
26
+ }
27
+
28
+ export default {
29
+ title: '报建流程业务控制层',
30
+ props: ['selectdata'],
31
+ data () {
32
+ return {
33
+ data: null, // 数据库数据,json配置文件数据的数据集合
34
+ json_datas: null, // Json配置文件集合
35
+ showview: false, // 控制显示service-view组件
36
+ show_data: null, // 给view层显示的数据
37
+ area: {}, // 小区详细
38
+ config: {}
39
+ }
40
+ },
41
+ ready () {
42
+ this.refurbish()
43
+ },
44
+ methods: {
45
+ // 组件初始化操作
46
+ async refurbish() {
47
+ this.json_datas = this.$workflow_vue
48
+ let sum = 0
49
+ let jsonData = {}
50
+ if (!this.json_datas || !this.json_datas.activitys || this.json_datas.activitys.length === 0) {
51
+ this.$showMessage("网络故障,请刷新页面")
52
+ return
53
+ }
54
+ this.json_datas.activitys.forEach(item => {
55
+ if (this.selectdata.defname === item.title) {
56
+ jsonData = item // 拿到当前节点的json配置信息
57
+ sum++ // 节点名一样的个数
54
58
  }
55
- for (let i = 0; i < this.json_datas.activitys.length; i++) {
56
- if (this.selectdata.defname == this.json_datas.activitys[i].title) {
57
- jsonData = this.json_datas.activitys[i] // 拿到当前节点的json配置信息
58
- sum++ // 节点名一样的个数
59
- }
59
+ return this.selectdata.defname === item.title // 拿到当前节点的json配置信息
60
+ })
61
+
62
+ if (sum === 0) {
63
+ this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
64
+ return
65
+ }
66
+ if (sum > 1) {
67
+ this.$showMessage(`在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置:${sum}个`)
68
+ return
69
+ }
70
+
71
+ this.selectdata = Object.assign({}, this.selectdata, jsonData)
72
+
73
+ // fields 字段填充值
74
+ for (const item of this.selectdata.fields) {
75
+ if (!item.value) {
76
+ item.value = null
60
77
  }
61
- if (sum == 1) {
62
- this.data = null
63
- this.data = jsonData
64
- // selectdata 填充 data
65
- this.data = Object.assign({}, this.data, this.selectdata)
66
- this.initializeJSON()
67
- } else if (sum == 0) {
68
- this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
69
- } else {
70
- this.$showMessage(`在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置:${sum}个`)
71
- }
72
- },
73
- // json配置数据处理
74
- async initializeJSON() {
75
- // 有默认值,value就给默认值,没有就是null
76
- this.data.fields.forEach(item => {
77
- if (!item.value) {
78
- if (item.value === 0) {
79
- item.value = 0
80
- } else {
81
- item.value = null
82
- }
83
- }
84
- if (item.default || item.default == 0) {
85
- item.value = item.default
86
- }
87
- if (this.selectdata[item.field]) {
88
- // 将json字符串格式化赋值给value
89
- if (String(this.selectdata[item.field]).startsWith("{")) {
90
- item.value = JSON.parse(this.selectdata[item.field])
91
- this.selectdata[item.field] = JSON.parse(this.selectdata[item.field])
92
- } else {
93
- item.value = this.selectdata[item.field]
94
- }
78
+
79
+ if (!item.value && (item.default || item.default === 0) && item.type !== 'datepicker') {
80
+ if (item.eval) {
81
+ item.value = eval(item.default)
95
82
  } else {
96
- if (this.selectdata[item.field] === 0) {
97
- item.value = 0
98
- }
83
+ item.value = item.default
99
84
  }
85
+ }
100
86
 
101
- // datepicker 没有值给当时值
102
- if (item.type === 'datepicker' && !item.value && item.default) {
103
- item.value = new Date().Format('yyyy-MM-dd HH:mm:ss')
87
+ if (this.selectdata[item.field]) {
88
+ // 将json字符串格式化赋值给value
89
+ if (String(this.selectdata[item.field]).startsWith("{")) {
90
+ item.value = JSON.parse(this.selectdata[item.field])
91
+ } else {
92
+ item.value = this.selectdata[item.field]
104
93
  }
94
+ }
95
+ if (this.selectdata[item.field] === 0) {
96
+ item.value = 0
97
+ }
105
98
 
106
- // 如果配置类型为select,优先从参数列表获取options
107
- if (item.type === 'select') {
108
- let temp = null
99
+ // datepicker
100
+ if (item.type === 'datepicker' && !item.value && item.default) {
101
+ item.value = new Date().Format(`${item.format ? item.format : 'yyyy-MM-dd HH:mm:ss'}`)
102
+ }
109
103
 
110
- temp = this.$appdata.getParam(item.label)
104
+ // 如果配置类型为select,优先从参数列表获取options
105
+ if (item.type === 'select' || item.type === 'checkbox') {
106
+ if (item.param) {
107
+ let temp = this.$appdata.getParam(item.label)
111
108
 
112
- if (temp && temp.length > 0 && item.label) {
109
+ if (temp && temp.length > 0) {
113
110
  item.options = temp
114
- } else {
115
- if (item.paramLabel) {
116
- temp = this.$appdata.getParam(item.paramLabel)
117
- if (temp && temp.length > 0) {
118
- item.options = temp
119
- }
111
+ }
112
+
113
+ if (item.paramLabel) {
114
+ temp = this.$appdata.getParam(item.paramLabel)
115
+ if (temp && temp.length > 0) {
116
+ item.options = temp
120
117
  }
121
118
  }
122
119
  }
123
- })
120
+ }
121
+ if (item.ready) {
122
+ item.options = await this[item.ready]()
123
+ }
124
+ if (item.type === 'checkbox') {
125
+ if (this.selectdata[item.field]) {
126
+ item.value = JSON.parse(this.selectdata[item.field])
127
+ } else {
128
+ item.value = []
129
+ }
130
+ }
131
+
132
+ this.selectdata[item.field] = item.value
133
+ }
124
134
 
125
- // 控制组件
126
- if (this.data.components) {
127
- this.data.components.forEach(item => {
135
+ // 控制组件
136
+ if (this.selectdata.components) {
137
+ this.selectdata.components.forEach(item => {
138
+ if (!item.mark) {
128
139
  item.mark = 0
129
- })
130
- }
140
+ }
141
+ })
142
+ }
131
143
 
132
- // 初始化 fields 可对数据进行特殊处理
133
- this.initializeFields()
134
- console.log("this.data的数据:" + JSON.stringify(this.data))
135
- // 初始化 buttons_fields
136
- for (let i = 0; i < this.data.buttons.length; i++) {
137
- // 下发按钮相关配置
138
- if (this.data.buttons[i].button_name === '下发') {
139
- if (this.data.buttons[i].button_fields && this.data.buttons[i].button_fields.length === 1) {
140
- if (this.data.source){
141
- let http = new HttpResetClass()
142
- let res = await http.load('POST', 'rs/search', {
143
- source: this.data.source,
144
- userid: this.$login.f.id
145
- }, {resolveMsg: null, rejectMsg: null})
146
-
147
- let options = []
148
- for (let i = 0; i < res.data.length; i++) {
149
- options.push(
150
- {
151
- "label": res.data[i].name,
152
- "value": res.data[i].name
153
- }
154
- )
155
- }
156
- this.data.buttons[i].button_fields[0]['options'] = options
157
- } else {
158
- this.$showMessage("请配置获取人员表达式")
159
- }
160
- } else {
161
- this.$showMessage("下发按钮必须满足 当且仅当一个字段")
144
+ // 初始化onetomany
145
+ if (this.selectdata.onetomany) {
146
+ for (const item of this.selectdata.onetomany) {
147
+ let res = null
148
+ if (item.queryEvent) {
149
+ res = this[item.queryEvent]()
150
+ } else {
151
+ let data = {
152
+ tablename: item.tables[0],
153
+ condition: `f_process_id='${this.selectdata.f_process_id}'`
162
154
  }
155
+ res = await this.$resetpost(
156
+ 'rs/sql/applySingleTable',
157
+ {data: data},
158
+ {resolveMsg: null, rejectMsg: 'onetomany查询失败'}
159
+ )
163
160
  }
164
- if (this.data.buttons[i].button_fields) {
165
- this.data.buttons[i].button_fields.forEach(x => {
166
- // 如果配置类型为select,优先从参数列表获取options
167
- if (x.type === 'select' && this.$appdata.getParam(x.label)) {
168
- x.options = this.$appdata.getParam(x.label).trim()
169
- }
170
- })
171
- }
172
- }
173
161
 
174
- // onetomany 数据获取
175
- if (this.data.onetomany) {
176
- for (let index = 0; index < this.data.onetomany.length; index++) {
177
- let res = null
178
- if (!this.data.onetomany[index].queryEvent || this.data.onetomany[index].queryEvent === 'default'){
179
- let http = new HttpResetClass()
180
- let data = {
181
- tablename: this.data.onetomany[index].tables[0],
182
- condition: `f_process_id='${this.selectdata.f_process_id}'`
162
+ item.rows = res.data
163
+
164
+ // 初始化onetomany中的fields
165
+ for (const field of item.fields) {
166
+ if (!field.value) {
167
+ if (field.value !== 0) {
168
+ field.value = null
183
169
  }
184
- res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
185
- resolveMsg: null,
186
- rejectMsg: 'onetomany查询失败'
187
- })
188
- } else {
189
- res = this[this.data.onetomany[index].queryEvent]()
190
170
  }
191
171
 
192
- // 初始化 onetomany
193
- this.data.onetomany[index].rows = res.data
172
+ if (field.default || field.default === 0) {
173
+ field.value = field.default
174
+ }
194
175
 
195
- // 初始化onetomany中的fields
196
- for (let j = 0; j < this.data.onetomany[index].fields.length; j++) {
197
- if (!this.data.onetomany[index].fields[j].value) {
198
- if (this.data.onetomany[index].fields[j].value === 0) {
199
- this.data.onetomany[index].fields[j].value = 0
200
- } else {
201
- this.data.onetomany[index].fields[j].value = null
202
- }
203
- }
204
- if (this.data.onetomany[index].fields[j].default || this.data.onetomany[index].fields[j].default == 0) {
205
- this.data.onetomany[index].fields[j].value = this.data.onetomany[index].fields[j].default
176
+ // datepicker
177
+ if (field.type === 'datepicker' && !field.value && field.default) {
178
+ field.value = new Date().Format(`${field.format ? field.format : 'yyyy-MM-dd HH:mm:ss'}`)
179
+ }
180
+
181
+ if (field.type === 'select') {
182
+
183
+ let temp = this.$appdata.getParam(field.label)
184
+
185
+ if (temp && temp.length > 0) {
186
+ field.options = temp
206
187
  }
207
- // 如果配置类型为select,优先从参数列表获取options
208
- if (this.data.onetomany[index].fields[j].type === 'select') {
209
- let temp = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
188
+
189
+ if (field.paramLabel) {
190
+ temp = this.$appdata.getParam(field.paramLabel)
210
191
  if (temp && temp.length > 0) {
211
- this.data.onetomany[index].fields[j].options = temp
192
+ item.options = temp
212
193
  }
213
194
  }
214
195
  }
215
196
  }
216
197
  }
198
+ }
217
199
 
218
- // 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
219
- let temp = JSON.parse(JSON.stringify(this.data))
200
+ // 初始化 buttons_fields
201
+ for (const item of this.selectdata.buttons) {
202
+ if (item.button_name === '下发') {
220
203
 
221
- this.show_data = temp
222
- this.$nextTick(() => {
223
- this.showview = true
224
- })
225
- // 查询区域和街道
226
- if (this.selectdata.defname === '报装申请') {
227
- let http = new HttpResetClass()
228
- let condition = "f_filialeids = '" + this.$login.f.f_orgids + "'"
229
- let res = await http.load('POST','rs/sql/apply_singleTable',{data:{tablename:'t_area',condition:condition}}, {resolveMsg: null, rejectMsg: null})
230
- for (let i = 0; i < this.show_data.fields.length; i++) {
231
-
232
- if (this.show_data.fields[i].label == '区域') {
233
- let data = []
234
- let array = []
235
- data = res.data.map(item => {
236
- return item.f_area;
237
- })
238
- for (let q = 0; q < data.length; q++) {
239
- let arraydata = {
240
- 'label': data[q],
241
- 'value': data[q]
242
- }
243
- if (array.length != 0) {
244
- for (let w = 0; w < array.length; w++) {
245
- if (array[w].label == data[q]) {
246
- break
247
- }
248
- while (w == array.length - 1) {
249
- array.push(arraydata)
250
- break
251
- }
252
- }
253
- } else {
254
- array.push(arraydata)
255
- }
256
- }
257
- this.show_data.fields[i].options = array
258
- console.log("街道选择框数据:" + JSON.stringify(this.show_data.fields[i].options))
204
+ let data = {
205
+ source: item.source,
206
+ userid: this.$login.f.id
207
+ }
208
+ if (item.sourceMethod) {
209
+ data.source = this[item.sourceMethod]()
210
+ }
211
+ if (!data.source) {
212
+ this.$showMessage("请配置获取人员表达式")
213
+ return
214
+ }
215
+
216
+ let res = await this.$resetpost(
217
+ 'rs/search',
218
+ {data: data},
219
+ {resolveMsg: null, rejectMsg: '下发人员查询失败!!!'}
220
+ )
221
+
222
+ let options = res.data.map(source => {
223
+ return {
224
+ "label": source.name,
225
+ "value": source.id
259
226
  }
260
- if (this.show_data.fields[i].label == '街道') {
261
- let data = []
262
- let array = []
263
- data = res.data.map(item => {
264
- return item.f_street;
265
- })
266
- for (let q = 0; q < data.length; q++) {
267
- let arraydata = {
268
- 'label': data[q],
269
- 'value': data[q]
227
+ })
228
+
229
+ if (item.button_fields.length !== 1) {
230
+ this.$showMessage("下发有且只能有一个字段!!!")
231
+ return
232
+ }
233
+
234
+ item.button_fields[0].options = options
235
+ }
236
+ if (item.button_fields) {
237
+ item.button_fields.forEach(x => {
238
+ // 如果配置类型为select,优先从参数列表获取options
239
+ if (x.type === 'select') {
240
+
241
+ if (x.param) {
242
+ let temp = this.$appdata.getParam(x.label)
243
+
244
+ if (temp && temp.length > 0) {
245
+ x.options = temp
270
246
  }
271
- if (array.length != 0) {
272
- for (let w = 0; w < array.length; w++) {
273
- if (array[w].label == data[q]) {
274
- break
275
- }
276
- while (w == array.length - 1) {
277
- array.push(arraydata)
278
- break
279
- }
247
+
248
+ if (x.paramLabel) {
249
+ temp = this.$appdata.getParam(x.paramLabel)
250
+ if (temp && temp.length > 0) {
251
+ x.options = temp
280
252
  }
281
- } else {
282
- array.push(arraydata)
283
253
  }
284
254
  }
285
- this.show_data.fields[i].options = array
286
- console.log("小区选择框数据:" + JSON.stringify(this.show_data.fields[i].options))
255
+
287
256
  }
257
+ })
258
+ }
259
+ }
260
+
261
+ if (this.selectdata.f_apply_nature === '散户' && this.selectdata.defname === '现场勘察') {
262
+ for (const item of this.selectdata.fields) {
263
+ if (item.label.includes('安装户数')) {
264
+ item.readonly = true
288
265
  }
289
266
  }
290
- },
291
- // 初始化fields值
292
- initializeFields() {
267
+ }
268
+ // 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
269
+ let temp = JSON.parse(JSON.stringify(this.selectdata))
270
+
271
+ this.show_data = temp
272
+ this.$nextTick(() => {
273
+ this.showview = true
274
+ })
293
275
 
294
- },
295
- // 金额转大写
296
- smalltoBIG(n) {
297
- let fraction = ['角', '分'];
298
- let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
299
- let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
300
- let head = n < 0 ? '欠' : '';
301
- n = Math.abs(n);
276
+ },
277
+ // 金额转大写
278
+ smalltoBIG(n) {
279
+ let fraction = ['角', '分'];
280
+ let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
281
+ let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
282
+ let head = n < 0 ? '欠' : '';
283
+ n = Math.abs(n);
302
284
 
303
- let s = '';
285
+ let s = '';
304
286
 
305
- for (var i = 0; i < fraction.length; i++) {
306
- s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
307
- }
308
- s = s || '整';
309
- n = Math.floor(n);
287
+ for (var i = 0; i < fraction.length; i++) {
288
+ s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
289
+ }
290
+ s = s || '整';
291
+ n = Math.floor(n);
310
292
 
311
- for (var i = 0; i < unit[0].length && n > 0; i++) {
312
- let p = '';
313
- for (var j = 0; j < unit[1].length && n > 0; j++) {
314
- p = digit[n % 10] + unit[1][j] + p;
315
- n = Math.floor(n / 10);
316
- }
317
- s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
318
- }
319
- return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
320
- },
321
- getLableValue(label) {
322
- for (const item of this.show_data.fields) {
323
- if (item.label === label && item.type !== 'number') {
324
- return item.value || ''
325
- }
326
- if (item.label === label && item.type === 'number') {
327
- return item.value || 0
328
- }
293
+ for (var i = 0; i < unit[0].length && n > 0; i++) {
294
+ let p = '';
295
+ for (var j = 0; j < unit[1].length && n > 0; j++) {
296
+ p = digit[n % 10] + unit[1][j] + p;
297
+ n = Math.floor(n / 10);
329
298
  }
330
- },
331
- setLabelValue(label, value) {
332
- for (const item of this.show_data.fields) {
333
- if (item.label === label) {
334
- item.value = value
335
- }
299
+ s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
300
+ }
301
+ return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
302
+ },
303
+ getLableValue(label) {
304
+ for (const item of this.show_data.fields) {
305
+ if (item.label === label && item.type !== 'number') {
306
+ return item.value || ''
336
307
  }
337
- },
338
- async buttonBefore(model) {
339
- // if (
340
- // model.button.button_name === '提交' &&
341
- // model.defname === '收费' &&
342
- // (
343
- // model.f_apply_type === '散户报建' ||
344
- // model.f_apply_type === '工业户报建' ||
345
- // model.f_apply_type === '商业户报建'
346
- // ) &&
347
- // model.f_surplus_money > 0
348
- // ) {
349
- // throw '未结金额大于0,无法提交!!!'
350
- // }
351
- // if (model.defname === '施工' && model.button.button_name === '提交') {
352
- // let http = new HttpResetClass()
353
- // let data = {
354
- // f_process_id: model.f_process_id
355
- // }
356
- // let res = await http.load('POST', 'rs/sql/notInstalled', {data: data}, {resolveMsg: null, rejectMsg: null})
357
- // if (res.data[0].num > 0) {
358
- // throw `还有${res.data[0].num}户未安装,无法提交`
359
- // }
360
- // }
361
- return model
362
- },
363
- // ========================= 武安 =================================
364
- // 地址类型变化
365
- addressType() {
366
- for (const item of this.show_data.fields) {
367
- if (item.label === '小区' && this.show_data.f_address_type === '民用地址') {
368
- item.required = true
369
- }
370
- if (item.label === '小区' && this.show_data.f_address_type === '特殊地址') {
371
- item.required = false
372
- }
373
- if (
374
- (
375
- item.label === '楼号' ||
376
- item.label === '单元' ||
377
- item.label === '楼层' ||
378
- item.label === '门牌号'
379
- ) && this.show_data.f_address_type === '民用地址'
380
- ) {
381
- item.required = true
382
- item.hidden = false
383
- item.value = null
384
- }
385
- if (
386
- (
387
- item.label === '楼号' ||
388
- item.label === '单元' ||
389
- item.label === '楼层' ||
390
- item.label === '门牌号'
391
- ) && this.show_data.f_address_type === '特殊地址'
392
- ) {
393
- item.required = false
394
- item.hidden = true
395
- item.value = null
396
- }
308
+ if (item.label === label && item.type === 'number') {
309
+ return item.value || 0
397
310
  }
398
- },
399
- async getStreetList () {
400
- let data = {
401
- tablename: 't_street',
402
- condition: `f_filialeid = ${this.$login.f.orgid} and f_street is not null`
311
+ }
312
+ },
313
+ getLableOptions(label) {
314
+ for (const item of this.show_data.fields) {
315
+ if (item.label === label) {
316
+ return item.options
317
+ }
318
+ }
319
+ },
320
+ setLabelValue(label, value) {
321
+ for (const item of this.show_data.fields) {
322
+ if (item.label === label) {
323
+ item.value = value
324
+ this.show_data[item.field] = value
325
+ }
326
+ }
327
+ },
328
+ setLabelOptions(label, options) {
329
+ for (const item of this.show_data.fields) {
330
+ if (item.label === label) {
331
+ item.options = options
332
+ }
333
+ }
334
+ },
335
+ showLabels(...labels) {
336
+ for (const item of this.show_data.fields) {
337
+ if (labels.includes(item.label)) {
338
+ item.hidden = false
339
+ }
340
+ }
341
+ },
342
+ hideLabels(...labels) {
343
+ for (const item of this.show_data.fields) {
344
+ if (labels.includes(item.label)) {
345
+ item.hidden = true
346
+ }
347
+ }
348
+ },
349
+ showButtons(...buttons) {
350
+ for (const item of this.show_data.buttons) {
351
+ if (buttons.includes(item.button_name)) {
352
+ item.hidden = false
353
+ }
354
+ }
355
+ },
356
+ hideButtons(...buttons) {
357
+ for (const item of this.show_data.buttons) {
358
+ if (buttons.includes(item.button_name)) {
359
+ item.hidden = true
360
+ }
361
+ }
362
+ },
363
+ requiredLabels(...labels) {
364
+ for (const item of this.show_data.fields) {
365
+ if (labels.includes(item.label)) {
366
+ item.required = true
367
+ }
368
+ }
369
+ },
370
+ electiveLabels(...labels) {
371
+ for (const item of this.show_data.fields) {
372
+ if (labels.includes(item.label)) {
373
+ item.required = false
374
+ }
375
+ }
376
+ },
377
+ readonlyLabels(...labels) {
378
+ for (const item of this.show_data.fields) {
379
+ if (labels.includes(item.label)) {
380
+ item.readonly = true
381
+ item.disabled = true
382
+ }
383
+ }
384
+ },
385
+ readwriteLabels(...labels) {
386
+ for (const item of this.show_data.fields) {
387
+ if (labels.includes(item.label)) {
388
+ item.readonly = false
389
+ item.disabled = false
390
+ }
391
+ }
392
+ },
393
+ disabledButtons(...buttons) {
394
+ for (const item of this.show_data.buttons) {
395
+ if (buttons.includes(item.button_name)) {
396
+ item.disabled = true
397
+ }
398
+ }
399
+ },
400
+ enableButtons(...buttons) {
401
+ for (const item of this.show_data.buttons) {
402
+ if (buttons.includes(item.button_name)) {
403
+ item.disabled = false
404
+ }
405
+ }
406
+ },
407
+ showComponents(...titles) {
408
+ for (const item of this.show_data.components) {
409
+ if (titles.includes(item.title) && item.device === 'pc') {
410
+ item.hidden = false
411
+ }
412
+ }
413
+ },
414
+ hideComponents(...titles) {
415
+ for (const item of this.show_data.components) {
416
+ if (titles.includes(item.title) && item.device === 'pc') {
417
+ item.hidden = true
403
418
  }
419
+ }
420
+ },
421
+ async checkDuplicate(index) {
422
+ let http = new HttpResetClass()
423
+ let data = {
424
+ tablename: 't_apply',
425
+ condition: `${this.show_data.fields[index].field} = '${this.show_data.fields[index].value}'`
426
+ }
427
+ let res = await http.load('POST', 'rs/sql/applySingleTable', {data: data}, {
428
+ resolveMsg: null,
429
+ rejectMsg: `${this.show_data.fields[index].label}查询失败`
430
+ })
431
+ if (res.data.length > 0) {
432
+ this.show_data.fields[index].value = null
433
+ this.$showAlert(`${this.show_data.fields[index].label}已存在!!!`, 'warning', 3000)
434
+ }
435
+ },
436
+ // 获取片区
437
+ async getSliceArea () {
438
+ let data = {
439
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
440
+ userid: this.$login.f.id
441
+ }
404
442
 
405
- let res = await this.$resetpost(
406
- `rs/sql/singleTable`,
407
- {data: data},
408
- {resolveMsg: null, rejectMsg: '街道查询失败,请重新进入!!!'}
409
- )
443
+ let http = new HttpResetClass()
444
+ let res = await http.load(
445
+ 'POST',
446
+ `rs/search`,
447
+ {data: data},
448
+ {resolveMsg: null, rejectMsg: '片区查询失败!!!'}
449
+ )
410
450
 
411
- let streetList = []
451
+ return res.data.map(item => {
452
+ return {
453
+ label: item.name,
454
+ value: item.name
455
+ }
456
+ })
457
+ },
458
+ // 获取区县
459
+ async getPcd () {
460
+ let data = {
461
+ tablename: 't_pcd',
462
+ condition: `f_filialeid = '${this.$login.f.orgid}'`
463
+ }
464
+ let http = new HttpResetClass()
465
+ let res = await http.load(
466
+ 'POST',
467
+ `rs/sql/applySingleTable`,
468
+ {data: data},
469
+ {resolveMsg: null, rejectMsg: '区县查询失败!!!'}
470
+ )
412
471
 
413
- res.data.forEach(item => {
414
- streetList.push({
415
- label: item.f_street,
416
- value: item.f_street
417
- })
418
- })
472
+ return res.data.map(item => {
473
+ return {
474
+ label: item.f_pcd,
475
+ value: item.f_pcd
476
+ }
477
+ })
478
+ },
479
+ // 缴费前置
480
+ chargeBefore () {
481
+ if ((this.show_data.f_apply_type === '民用报建' && this.show_data.f_apply_nature === '小区') || this.show_data.f_apply_type === '非民用报建') {
482
+ return
483
+ }
484
+ if (Number(this.show_data.f_due_money) > Number(this.show_data.f_cumulative_payment_money) || Number(this.show_data.f_surplus_money) > 0) {
485
+ this.$showAlert('费用未结清!!!', 'warning', 3000)
486
+ throw null
487
+ }
488
+ },
489
+ // 缴费流程退回前置
490
+ async backBefore() {
491
+ let data = {
492
+ tablename: 't_apply',
493
+ condition: `f_process_id = '${this.selectdata.f_process_id}'`
494
+ }
495
+ let http = new HttpResetClass()
496
+ let res = await http.load(
497
+ 'POST',
498
+ `rs/sql/applySingleTable`,
499
+ {data: data},
500
+ {resolveMsg: null, rejectMsg: null}
501
+ )
502
+ if (res.data.length > 0 && res.data[0].f_surplus_money !== res.data[0].f_due_money) {
503
+ this.$showMessage('用户已缴费,无法退回!!!')
504
+ }
505
+ },
506
+ // 获取设计人员
507
+ async getDesignerPeople () {
508
+ let data = {
509
+ source: 'this.getParentByType($organization$).getChildByName($营业厅报装$).getChildren()',
510
+ userid: this.$login.f.id
511
+ }
419
512
 
420
- for (const item of this.show_data.fields) {
421
- if (item.label === '街道') {
422
- item.options = streetList
423
- }
513
+ let res = await this.$resetpost(
514
+ 'rs/search',
515
+ {data: data},
516
+ {resolveMsg: null, rejectMsg: '设计人员查询失败!!!'}
517
+ )
518
+
519
+ return res.data.map(item => {
520
+ return {
521
+ label: item.name,
522
+ value: item.id
424
523
  }
425
- },
426
- async getAreaList () {
524
+ })
525
+ },
526
+ //现场勘察
527
+ async prospectingBefore() {
427
528
  let data = {
428
- tablename: 't_area',
429
- condition: `f_filialeid = ${this.$login.f.orgid} and f_street = '${this.getLableValue('街道')}'`
529
+ tablename: 't_files',
530
+ condition: `f_blobid = '${this.selectdata.f_process_id}' and defname = '现场勘察' and fremarks = '报装手机签字文件'`
430
531
  }
431
-
432
- let res = await this.$resetpost(
433
- `rs/sql/singleTable`,
532
+ let http = new HttpResetClass()
533
+ let res = await http.load(
534
+ 'POST',
535
+ `rs/sql/applySingleTable`,
434
536
  {data: data},
435
- {resolveMsg: null, rejectMsg: '小区查询失败,请重新进入!!!'}
537
+ {resolveMsg: null, rejectMsg: null}
436
538
  )
437
-
438
- let areaList = []
439
-
440
- res.data.forEach(item => {
441
- areaList.push({
442
- label: item.f_residential_area,
443
- value: item.f_residential_area
444
- })
445
- })
446
-
447
- for (const item of this.show_data.fields) {
448
- if (item.label === '小区') {
449
- item.options = areaList
450
- }
539
+ if (res.data.length <= 0) {
540
+ this.$showMessage('现场勘察未签字,无法提交!!!')
541
+ throw '现场勘察未签字,无法提交!'
451
542
  }
543
+ },
544
+ //合同签订提交
545
+ async contractSigningBefore() {
546
+ let http = new HttpResetClass()
547
+ let data = {
548
+ tablename: 't_contract',
549
+ condition: `f_process_id = '${this.selectdata.f_process_id}' and f_sign_state <> '签订完成'`
452
550
  }
453
- // ========================= 武安 =================================
454
- },
455
- events: {
456
- // ========================= 武安 =================================
457
- // ========================= 武安 =================================
458
- 'openAddModel'(index) {
459
- // ========================= 武安 =================================
460
- // ========================= 武安 =================================
461
- },
462
- // 获取view层button事件/
463
- async 'button'(model) {
464
- // 修改提交数据
465
- model = Object.assign({}, this.selectdata, model)
466
- // 点击重置按钮就重置数据
467
- if (model.button.button_name === '重置') {
468
- this.$dispatch('breakControl', this.data)
469
- return
470
- }
471
- // 联合验收必须上传附件
472
- if (model.defname === '联合验收' && model.button.button_name === '提交') {
473
- let http = new HttpResetClass()
474
- let data = {
475
- tablename: 't_files',
476
- condition: "f_blobid = '" + this.selectdata.f_process_id + "'"
477
- }
478
- let res = await http.load('POST', 'rs/sql/apply_singleTable', {data: data}, {resolveMsg: null, rejectMsg: null})
479
- if (!res.data.length > 0) {
480
- this.$showMessage("您没有上传附件,无法提交!")
481
- return
482
- }
483
- }
484
-
485
- // 提交前置
486
- try {
487
- model = await this.buttonBefore(model)
488
- } catch (e) {
489
- this.$showAlert(e, 'warning', 3000)
490
- return
551
+ let res = await http.load(
552
+ 'POST',
553
+ `rs/sql/applySingleTable`,
554
+ {data: data},
555
+ {resolveMsg: null, rejectMsg: null}
556
+ )
557
+ if (res.data.length <= 0) {
558
+ let data = {
559
+ tablename: 't_files',
560
+ condition: `f_blobid = '${this.selectdata.f_process_id}' and defname = '${this.selectdata.defname}' and fusetype = '纸质合同'`
491
561
  }
492
-
493
- let http = new HttpResetClass()
494
- let requestData = {
495
- tables: this.data.tables,
496
- start_activity: this.$workflow_vue.start_activity,
497
- model: model,
498
- loginUser: this.$login.f,
499
- workflow_xmlfilename: this.$workflow_vue.workflow_xmlfilename
500
- }
501
- // 下发,提交,保存,退回通用业务后台处理logic
502
- let url = 'rs/logic/ApplyProductService'
503
- let res = await http.load('POST', url, {data: requestData}, {resolveMsg: null, rejectMsg: '数据保存失败'})
504
-
505
- if (res.data.code == 200) {
506
- this.$dispatch('search')
507
- } else {
508
- if (res.data.msg) {
509
- this.$showMessage(res.data.msg)
510
- }
562
+ let res = await http.load(
563
+ 'POST',
564
+ `rs/sql/applySingleTable`,
565
+ {data: data},
566
+ {resolveMsg: null, rejectMsg: null}
567
+ )
568
+ if (res.data.length <= 0) {
569
+ this.$showMessage('合同未签订完成且纸质合同未上传,无法提交!!!')
570
+ throw '纸质合同未上传,无法提交!'
511
571
  }
512
- },
513
- async 'initializtionView'() {
514
- // ========================= 武安 =================================
515
- this.addressType()
516
-
517
- if (this.show_data.defname === '用户受理' && this.show_data.f_apply_type === '散户报建') {
518
- await this.getStreetList()
519
- }
520
- // ========================= 武安 =================================
521
- },
522
- // 失去焦点出触发事件
523
- async 'onchange'(index) {
524
- console.log('失去焦点')
525
- // ========================= 武安 =================================
526
- if (this.show_data.defname === '用户受理'){
527
- if (this.show_data.fields[index].label === '地址类型'){
528
- this.addressType()
529
- }
530
- if (this.show_data.fields[index].label === '街道' && this.show_data.f_apply_type !== '散户报建'){
531
- console.log('-----------添加街道-----------')
532
- if (this.show_data.fields[index].value === null || this.show_data.fields[index].value === '') {
533
- this.show_data.fields[index].value = null
534
- this.$showAlert('街道地址不能为空!!!', 'warning', 3000)
535
- return
536
- }
572
+ }
573
+ },
574
+ async otherAuthentication() {
575
+ console.log("当前数据", this.selectdata)
576
+ this.$showMessage(`请确认是否进行重新认证,确认前请保证身份信息正确!!!`, ['confirm']).then(async (res) => {
577
+ if (res === 'confirm') {
537
578
  let http = new HttpResetClass()
538
579
  let data = {
539
- f_adjustable_id: '', // 调压箱编号
540
- f_orgid: this.$login.f.orgid, // 组织id
541
- f_orgname: this.$login.f.orgs, // 组织名
542
- f_pcd: '河北省邯郸市武安市', // 省市区
543
- f_pcd_id: 8, // 省市区id
544
- // f_pcd_id: 124, // 50.4测试
545
- f_slice_area: '', // 片区
546
- f_operatorid: this.$login.f.id, // 操作人id
547
- f_operator: this.$login.f.name, // 操作人
548
- f_filialeid: this.$login.f.orgid, // 创建地址所属分公司(默认当前操作人)
549
- f_street: this.show_data.fields[index].value.trim(), // 地址
550
- f_comments: '报建系统自动创建' // 备注
551
- }
552
- try{
553
- let res = await http.load('POST', 'rs/logic/address_updatestreet', {data: data}, {resolveMsg: null, rejectMsg: null})
554
- } catch (e) {
555
- if (e.status === 635){
556
- this.$showAlert('此街道已存在!!!', 'warning', 3000)
557
- } else {
558
- this.$showAlert('自动添加街道失败,请手动添加!!!', 'danger', 3000)
559
- }
560
- }
561
- }
562
- if (this.show_data.fields[index].label === '街道' && this.show_data.f_apply_type === '散户报建') {
563
- this.setLabelValue('小区', '')
564
- await this.getAreaList()
565
- }
566
- if (this.show_data.fields[index].label === '小区' && this.show_data.f_apply_type !== '散户报建'){
567
- if (this.show_data.fields[index].value === null || this.show_data.fields[index].value === '') {
568
- this.show_data.fields[index].value = null
569
- this.$showAlert('小区名称不能为空!!!', 'warning', 3000)
570
- return
571
- }
572
- // 先查询街道
573
- let street = null
574
- for (const item of this.show_data.fields) {
575
- if (item.label === '街道') {
576
- if (item.value.trim() === null || item.value.trim() === ''){
577
- this.show_data.fields[index].value = null
578
- this.$showAlert('请先录入街道信息,才能录入小区信息!!!', 'warning', 3000)
579
- return
580
- }
581
- let http = new HttpResetClass()
582
- let data = {
583
- condition: `1=1 and s.f_filialeid in ('${this.$login.f.orgid}') and f_province = '河北省' and f_city = '邯郸市' and f_district = '武安市' and f_street = '${item.value.trim()}'`
584
- }
585
- let res = await http.load('POST', 'rs/sql/address_getstreetlist', {data: data}, {resolveMsg: null, rejectMsg: null})
586
- if (res.data.length > 0) {
587
- street = res.data[0]
588
- } else {
589
- this.show_data.fields[index].value = null
590
- this.$showAlert(`【${item.value}】街道不存在,请手动添加或重新输入街道信息,在录入小区信息!!!`, 'warning', 3000)
591
- }
592
- }
580
+ apply: this.selectdata
593
581
  }
594
- console.log('-----------添加小区-----------')
595
- let data = {
596
- f_linkname: '', // 联系人
597
- f_linkphone: '', // 联系电话
598
- f_adjustable_id: '', // 调压箱编号
599
- f_user_type: '', // 用户类型
600
- f_gasproperties: '', // 用气性质
601
- f_meter_brand: '', // 气表品牌
602
- f_price_name: '', // 气价名称
603
- f_price_type: '', // 气价类型
604
- f_meter_style: '', // 气表型号
605
- f_position: '', // 表安装位置
606
- f_meter_type: '', // 气表类型
607
- f_area_id: '', // 小区编号 (自动生成)
608
- f_filialeid: this.$login.f.orgid, // 创建地址所属分公司(默认当前操作人)
609
- f_operatorid: this.$login.f.id, // 操作人id
610
- f_operator: this.$login.f.name, // 操作人
611
- f_orgid: this.$login.f.orgid, // 组织id
612
- f_orgname: this.$login.f.orgs, // 组织名
613
- f_pcd_id: 8, // 省市区id
614
- // f_pcd_id: 124, // 50.4测试
615
- f_pcd: '河北省邯郸市武安市', // 省市区
616
- f_street_id: street.id, // 街道id
617
- f_street: street.f_street,// 街道
618
- f_area_code: '01', // 片区编码
619
- f_slice_area: '武安片区', // 片区
620
- // f_area_code: '66556', // 50.4测试
621
- // f_slice_area: '武安明星', // 50.4测试
622
- slice_area: [
623
- {
624
- name: '武安片区',
625
- code: '01'
582
+ let result = await http.load(
583
+ 'POST',
584
+ 'rs/logic/anotherLegalize',
585
+ {data: data},
586
+ {
587
+ resolveMsg: '重新发起实名认证成功!',
588
+ rejectMsg: '重新发起实名认证失败!'
589
+ }).then((res)=>{
590
+ if(res.data === 200){
591
+ this.$dispatch('loadPage')
626
592
  }
627
- ],
628
- // slice_area: [ // 50.4测试
629
- // {
630
- // name: '武安明星',
631
- // code: '66556'
632
- // }
633
- // ],
634
- f_residential_area: this.show_data.fields[index].value.trim(), // 小区名称
635
- f_area_address: `河北省邯郸市武安市${street.f_street}`, // 详细地址(省市区+街道)
636
- f_comments: '报建系统自动创建'
637
- }
638
- try{
639
- let http = new HttpResetClass()
640
- let res = await http.load('POST', 'rs/logic/address_updatearea', {data: data}, {resolveMsg: null, rejectMsg: null})
641
- } catch (e) {
642
- if (e.status === 635){
643
- this.$showAlert('此小区已存在!!!', 'warning', 3000)
644
- } else {
645
- this.$showAlert('自动添加小区失败,请手动添加!!!', 'warning', 3000)
646
- }
647
- }
648
- }
649
- // 地址拼接
650
- if (
651
- this.show_data.fields[index].label === '区域' ||
652
- this.show_data.fields[index].label === '街道' ||
653
- this.show_data.fields[index].label === '小区' ||
654
- this.show_data.fields[index].label === '楼号' ||
655
- this.show_data.fields[index].label === '单元' ||
656
- this.show_data.fields[index].label === '楼层' ||
657
- this.show_data.fields[index].label === '门牌号'
658
- ) {
659
- let f_address = null
660
- // if (this.show_data.f_address_type !== '民用地址') {
661
- f_address = this.getLableValue('区域') + this.getLableValue('街道')
662
- // }
663
- this.setLabelValue('地址',f_address)
664
- }
665
- }
666
- if (this.show_data.defname === '竣工验收') {
667
- if (this.show_data.fields[index].label === '验收是否合格'){
668
- for (const button of this.show_data.buttons) {
669
- if (this.show_data.fields[index].value === '否' && button.button_name === '退回') {
670
- button.hidden = false
671
- } else {
672
- button.hidden = true
673
- }
674
- }
675
- }
676
- }
677
- if (this.show_data.defname === '合同签订') {
678
- if (this.show_data.fields[index].label === '合同编号') {
679
- if (!isEmpty(this.show_data.fields[index].value)) {
680
- let http = new HttpResetClass()
681
- let data = {
682
- tablename: 't_apply',
683
- condition: `f_contract_number='${this.show_data.fields[index].value}'`
684
- }
685
- let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
686
- resolveMsg: null,
687
- rejectMsg: '合同编号查重失败'
688
- })
689
- if (res.data.length > 0) {
690
- this.show_data.fields[index].value = null
691
- this.$showAlert('合同编号已存在!!!', 'warning', 3000)
692
- }
693
- }
694
- }
695
- if (this.show_data.fields[index].label === '单价(户)') {
696
- let http = new HttpResetClass()
697
- let data = {
698
- num1: this.getLableValue(this.show_data.fields[index].label),
699
- num2: this.getLableValue('户数'),
700
- operator: '*'
701
- }
702
- try {
703
- let res = await http.load('POST', 'rs/logic/compute', {data: data}, {
704
- resolveMsg: null,
705
- rejectMsg: null
706
- })
707
- data = {
708
- num1: res.data,
709
- num2: this.getLableValue('其他费用'),
710
- operator: '+'
711
- }
712
- res = await http.load('POST', 'rs/logic/compute', {data: data}, {
713
- resolveMsg: null,
714
- rejectMsg: null
715
- })
716
- this.setLabelValue('合同金额',res.data)
717
- } catch (e) {
718
- this.$showAlert(e.data.msg, 'warning', 3000)
719
- }
593
+ })
720
594
  }
721
- if (this.show_data.fields[index].label === '其他费用') {
595
+ })
596
+ throw '重新发起实名认证!!!'
597
+ },
598
+ async otherSigned() {
599
+ console.log("当前数据", this.selectdata)
600
+ this.$showMessage(`请确认是否进行重新发送签署短信!!!`, ['confirm']).then(async (res) => {
601
+ if (res === 'confirm') {
722
602
  let http = new HttpResetClass()
723
603
  let data = {
724
- num1: this.getLableValue(this.show_data.fields[index].label),
725
- num2: this.getLableValue('合同金额'),
726
- operator: '+'
604
+ apply: this.selectdata
727
605
  }
728
- try {
729
- let res = await http.load('POST', 'rs/logic/compute', {data: data}, {
730
- resolveMsg: null,
731
- rejectMsg: null
732
- })
733
- this.setLabelValue('合同金额',res.data)
734
- } catch (e) {
735
- this.$showAlert(e.data.msg, 'warning', 3000)
736
- }
737
- }
738
- }
739
- // ========================= 武安 =================================
740
- // 号码检测
741
- if (this.show_data.fields[index].label === '电话号码') {
742
- let phone = this.show_data.fields[index].value
743
- // 电话号码效验
744
- if (!(/^1[3456789]\d{9}$/.test(phone))) {
745
- this.show_data.fields[index].value = ""
746
- this.$showAlert('电话号码格式不正确,请重新输入。', 'info', 2000)
606
+ let result = await http.load(
607
+ 'POST',
608
+ 'rs/logic/anotherMAS',
609
+ {data: data},
610
+ {
611
+ resolveMsg: '重新发送签署短信成功!',
612
+ rejectMsg: '重新发送签署短信失败!'
613
+ }).then((res)=>{
614
+ if(res.data === 200){
615
+ this.$dispatch('loadPage')
616
+ }
617
+ })
747
618
  }
619
+ })
620
+ throw '重新发送签署短信!!!'
621
+ },
622
+ // 施工前置
623
+ async constructionBefore () {
624
+ await this.userSignBefore()
625
+ if (this.show_data.f_apply_nature !== '分户挂表') {
626
+ let http = new HttpResetClass()
627
+ let data = {
628
+ condition: `ui.f_process_id = '${this.show_data.f_process_id}' and f_meternumber is null and f_gasbrand_id is not null `
748
629
  }
749
- //时间提醒
750
- if (this.show_data.fields[index].label.includes("时间") || this.show_data.fields[index].type === 'datepicker') {
751
- let setTime = this.show_data.fields[index].value
752
- let nowTime = new Date().Format("yyyy-MM-dd HH:mm:ss")
753
- if (nowTime >= setTime) {
754
- this.$showMessage("请注意,当前节点时间/工期已过期!")
755
- }
630
+ let res = await http.load(
631
+ 'POST',
632
+ 'rs/sql/countApplyUserinfo',
633
+ {data: data},
634
+ {
635
+ resolveMsg: null,
636
+ rejectMsg: '安装明细查询失败!!!'
637
+ })
638
+ if (res.data[0].num > 0) {
639
+ this.$showMessage(`还有${res.data[0].num}户未安装,无法提交`)
640
+ throw `还有${res.data[0].num}户未安装,无法提交`
756
641
  }
757
- },
758
- // input值发生变化
759
- async 'oninput'(index) {
760
-
761
- },
762
- // 错误事件
763
- error_check(index) {
764
- // 时间格式检测
765
- if (this.show_data.fields[index].type == 'datepicker') {
766
- let dateRe = new RegExp(/(([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29)$/)
767
- let datetimeRe = new RegExp(/((([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29))\s([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/)
768
- if (datetimeRe.test(this.show_data.fields[index].value) && this.show_data.fields[index].value.trim().length == 19 && this.show_data.fields[index].fullsize) {
769
- this.show_data.fields[index].error.flag = false
770
- } else if (dateRe.test(this.show_data.fields[index].value) && this.show_data.fields[index].value.trim().length == 10) {
771
- this.show_data.fields[index].error.flag = false
772
- } else {
773
- if (this.show_data.fields[index].fullsize) {
774
- this.show_data.fields[index].error = Object.assign({}, this.show_data.fields[index].error)
775
- this.show_data.fields[index].error.msg = this.show_data.fields[index].error.msg ? this.show_data.fields[index].error.msg : '时间格式如:2019-05-02 09:23:21'
776
- this.$showAlert(this.show_data.fields[index].label + '格式错误' + this.show_data.fields[index].error.msg, 'warning', 3000)
777
- this.show_data.fields[index].error.flag = true
778
- this.show_data.fields[index].value = ''
779
- } else {
780
- this.show_data.fields[index].error = Object.assign({}, this.show_data.fields[index].error)
781
- this.show_data.fields[index].error.msg = this.show_data.fields[index].error.msg ? this.show_data.fields[index].error.msg : '时间格式如:2019-05-02'
782
- this.$showAlert(this.show_data.fields[index].label + '格式错误' + this.show_data.fields[index].error.msg, 'warning', 3000)
783
- this.show_data.fields[index].error.flag = true
784
- this.show_data.fields[index].value = ''
785
- }
642
+ }
643
+ },
644
+ async userSignBefore() {
645
+ let http = new HttpResetClass()
646
+ let data = {
647
+ tablename: 't_files',
648
+ condition: `f_blobid = '${this.selectdata.f_process_id}' and defname = '${this.selectdata.defname}' and fremarks = '报装手机签字文件'`
649
+ }
650
+ let res = await http.load(
651
+ 'POST',
652
+ `rs/sql/applySingleTable`,
653
+ {data: data},
654
+ {resolveMsg: null, rejectMsg: null}
655
+ )
656
+ if (res.data.length <= 0) {
657
+ this.$showMessage('用户未签字,无法提交!!!')
658
+ throw '用户未签字,无法提交!'
659
+ }
660
+ },
661
+ addressInitialization () {
662
+ this.$getConfig(this, 'UserAddress')
663
+
664
+ let f_address_type = this.show_data.f_address_type
786
665
 
666
+ for (const item of this.show_data.fields) {
667
+ if (f_address_type === '民用市区') {
668
+ if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
669
+ item.hidden = false
670
+ item.required = true
671
+ }
672
+ if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
673
+ item.hidden = false
674
+ item.required = false
675
+ }
676
+ if (item.label === '地址') {
677
+ item.readonly = true
787
678
  }
788
679
  }
789
- },
790
- // onetomany模态框默认监听监听事件
791
- async 'onetomanydelete'(i, j) {
792
- console.log('默认删除')
793
- let http = new HttpResetClass()
794
- let data = {
795
- table: this.show_data.onetomany[i].tables[0],
796
- row: this.show_data.onetomany[i].rows[j]
680
+ if (f_address_type === '民用乡镇') {
681
+ if (item.label === '区/县' || item.label === '街道/乡镇' || item.label === '集收单位' || item.label === '门牌号') {
682
+ item.hidden = false
683
+ item.required = true
684
+ }
685
+ if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层') {
686
+ item.hidden = false
687
+ item.required = false
688
+ }
689
+ if (item.label === '楼层') {
690
+ item.hidden = true
691
+ item.required = false
692
+ }
693
+ if (item.label === '地址') {
694
+ item.readonly = true
695
+ }
696
+ }
697
+ if (f_address_type === '特殊地址') {
698
+ if (item.label === '区/县' || item.label === '街道/乡镇') {
699
+ item.hidden = false
700
+ item.required = true
701
+ }
702
+ if (item.label === '集收单位') {
703
+ item.hidden = false
704
+ item.required = false
705
+ }
706
+ if (item.label === '楼号/组' || item.label === '单元/排' || item.label === '楼层' || item.label === '门牌号') {
707
+ item.hidden = true
708
+ item.required = false
709
+ }
710
+ if (item.label === '地址') {
711
+ item.readonly = false
712
+ }
797
713
  }
798
- let res = await http.load('POST', 'rs/logic/onetomanyDefaultDeleteEvent', {data: data}, {
799
- resolveMsg: null,
800
- rejectMsg: '删除失败'
801
- })
802
714
 
803
- if (res.data <= 0){
804
- this.$showMessage('删除失败')
805
- return
715
+ if (this.show_data.f_apply_source === '线下发起' && item.label === '预约地址') {
716
+ item.hidden = true
806
717
  }
718
+ }
719
+ },
720
+ async streetChange () {
721
+ if (isEmpty(this.show_data.f_street)) {
722
+ return
723
+ }
807
724
 
808
- this.$dispatch('breakControl', this.show_data)
809
- },
810
- async 'onetomanyadd'(index) {
725
+ let data = {
726
+ tablename: 't_area',
727
+ condition: `f_filialeid = '${this.$login.f.orgid}' and f_street = '${this.show_data.f_street}'`
728
+ }
729
+ let http = new HttpResetClass()
730
+ let res = await http.load(
731
+ 'POST',
732
+ `rs/sql/applySingleTable`,
733
+ {data: data},
734
+ {resolveMsg: null, rejectMsg: '集收单位查询失败!!!'}
735
+ )
736
+
737
+ this.setLabelOptions('集收单位', res.data.map(item => {
738
+ return {
739
+ label: item.f_residential_area,
740
+ value: item.f_residential_area
741
+ }
742
+ }))
743
+ },
744
+ async pcdChange () {
745
+ if (isEmpty(this.show_data.f_pcd)) {
746
+ return
747
+ }
748
+
749
+ let data = {
750
+ tablename: 't_street',
751
+ condition: `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
752
+ }
753
+ let f_address_type = this.getLableValue('地址类型')
754
+
755
+ if (f_address_type === '民用市区') {
756
+ data.condition = `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '市区'`
757
+ }
758
+ if (f_address_type === '民用乡镇') {
759
+ data.condition = `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}' and f_iscity = '乡镇'`
760
+ }
761
+
762
+ let http = new HttpResetClass()
763
+ let res = await http.load(
764
+ 'POST',
765
+ `rs/sql/applySingleTable`,
766
+ {data: data},
767
+ {resolveMsg: null, rejectMsg: '街道/乡镇查询失败!!!'}
768
+ )
811
769
 
770
+ this.setLabelOptions('街道/乡镇', res.data.map(item => {
771
+ return {
772
+ label: item.f_street,
773
+ value: item.f_street
774
+ }
775
+ }))
776
+ },
777
+ async getConstructionWorker(){
778
+ let data = {
779
+ source: 'this.getParentByType($organization$).getChildByName($建设单位$).getChildren()',
780
+ userid: this.$login.f.id
781
+ }
782
+
783
+ let res = await this.$resetpost(
784
+ `${this.$androidUtil.getProxyUrl()}/rs/search`,
785
+ {data: data},
786
+ {resolveMsg: null, rejectMsg: '现场负责人查询失败!!!'}
787
+ )
788
+
789
+ return res.data.map(item => {
790
+ return {
791
+ label: item.name,
792
+ value: item.id
793
+ }
794
+ })
795
+ },
796
+ //获取下发人(当前操作人所属部门下的所有人)
797
+ getSource () {
798
+ return 'this.getParentByType($organization$).getChildByName($'+ this.$login.f.f_parentname + '$).getChildren()'
799
+ },
800
+ async getUserName() {
801
+ if(this.selectdata.f_construction_unit_id){
812
802
  let data = {
813
- f_process_id : this.show_data.f_process_id
803
+ tablename: 't_user',
804
+ condition: `id='${this.selectdata.f_construction_unit_id}'`
814
805
  }
815
- this.show_data.onetomany[index].fields.forEach(item => {
816
- data[item.field] = item.value
817
- })
818
806
  let res = await this.$resetpost(
819
- `rs/entity/${this.show_data.onetomany[index].tables[0]}`,
820
- data
807
+ 'rs/sql/applySingleTable',
808
+ {data: data},
809
+ {resolveMsg: null, rejectMsg: null}
821
810
  )
822
- this.$dispatch('breakControl', this.show_data)
823
- },
824
- async 'onetomanyupdate'(i, j) {
825
- let onetomany = this.show_data.onetomany[i]
826
- let data = onetomany.rows[j]
827
-
828
- onetomany.fields.forEach(item => {
829
- data[item.field] = item.value
811
+ return res.data.map(item => {
812
+ return {
813
+ label: item.name,
814
+ value: item.id
815
+ }
830
816
  })
831
- let res = await this.$resetpost(
832
- `rs/entity/${this.show_data.onetomany[i].tables[0]}`,
833
- data
817
+ }
818
+ return
819
+ },
820
+ // 安装单位签字人
821
+ async getConstructionUnitId () {
822
+ let data = {
823
+ source: '',
824
+ userid: this.$login.f.id
825
+ }
826
+ data.source = 'this.getParentByType($organization$).getChildByName($'+ this.$login.f.f_parentname + '$).getChildren()'
827
+ let res = await this.$resetpost(
828
+ 'rs/search',
829
+ {data: data},
830
+ {resolveMsg: null, rejectMsg: '安装单位施工班组查询失败!!!'}
831
+ )
832
+
833
+ return res.data.map(item => {
834
+ return {
835
+ label: item.name,
836
+ value: item.id
837
+ }
838
+ })
839
+ },
840
+ // 安装单位负责人
841
+ async getConstructionUnit () {
842
+ let data = {
843
+ source: 'this.getParentByType($organization$).getChildByName($工程施工队$).getChildren()',
844
+ userid: this.$login.f.id
845
+ }
846
+
847
+ let res = await this.$resetpost(
848
+ 'rs/search',
849
+ {data: data},
850
+ {resolveMsg: null, rejectMsg: '安装单位负责人查询失败!!!'}
851
+ )
852
+
853
+ return res.data.map(item => {
854
+ return {
855
+ label: item.name,
856
+ value: item.id
857
+ }
858
+ })
859
+ },
860
+ // 建设单位
861
+ async getConstructOperator () {
862
+ let data = {
863
+ source: 'this.getParentByType($organization$).getChildByName($建设单位$).getChildren()',
864
+ userid: this.$login.f.id
865
+ }
866
+
867
+ let res = await this.$resetpost(
868
+ 'rs/search',
869
+ {data: data},
870
+ {resolveMsg: null, rejectMsg: '建设单位人员查询失败!!!'}
871
+ )
872
+
873
+ return res.data.map(item => {
874
+ return {
875
+ label: item.name,
876
+ value: item.id
877
+ }
878
+ })
879
+ },
880
+ // 监理单位
881
+ async getSupervisorOperator () {
882
+ let data = {
883
+ source: 'this.getParentByType($organization$).getChildByName($监理单位$).getChildren()',
884
+ userid: this.$login.f.id
885
+ }
886
+
887
+ let res = await this.$resetpost(
888
+ 'rs/search',
889
+ {data: data},
890
+ {resolveMsg: null, rejectMsg: '监理单位人员查询失败!!!'}
891
+ )
892
+ for (const item of this.selectdata.fields) {
893
+ if (item.label === '监理单位') {
894
+ item.value = res.data[0].id
895
+ this.selectdata[item.field] = res.data[0].id
896
+ }
897
+ }
898
+ return res.data.map(item => {
899
+ return {
900
+ label: item.name,
901
+ value: item.id
902
+ }
903
+ })
904
+ },
905
+ // 监理现场负责人
906
+ async getSupervisorOperatorId () {
907
+ let data = {
908
+ source: 'this.getParentByType($organization$).getChildByName($监理班组$).getChildren()',
909
+ userid: this.$login.f.id
910
+ }
911
+ let res = await this.$resetpost(
912
+ 'rs/search',
913
+ {data: data},
914
+ {resolveMsg: null, rejectMsg: '监理单位人员查询失败!!!'}
915
+ )
916
+ return res.data.map(item => {
917
+ return {
918
+ label: item.name,
919
+ value: item.id
920
+ }
921
+ })
922
+ },
923
+ // 土建单位
924
+ async getEngineeringOperator () {
925
+ let data = {
926
+ source: 'this.getParentByType($organization$).getChildByName($土建单位$).getChildren()',
927
+ userid: this.$login.f.id
928
+ }
929
+
930
+ let res = await this.$resetpost(
931
+ 'rs/search',
932
+ {data: data},
933
+ {resolveMsg: null, rejectMsg: '土建单位人员查询失败!!!'}
934
+ )
935
+ let result = res.data.map(item => {
936
+ return {
937
+ label: item.name,
938
+ value: item.id
939
+ }
940
+ })
941
+ result.push({label:'用户自理',value:'用户自理'})
942
+ result.push({label:'无',value:'无'})
943
+ return result
944
+ },
945
+ // 检测单位
946
+ async getCheckOperator () {
947
+ let data = {
948
+ source: 'this.getParentByType($organization$).getChildByName($检测单位$).getChildren()',
949
+ userid: this.$login.f.id
950
+ }
951
+
952
+ let res = await this.$resetpost(
953
+ 'rs/search',
954
+ {data: data},
955
+ {resolveMsg: null, rejectMsg: '检测单位人员查询失败!!!'}
956
+ )
957
+
958
+ let result = res.data.map(item => {
959
+ return {
960
+ label: item.name,
961
+ value: item.id
962
+ }
963
+ })
964
+ result.push({label:'无',value:'无'})
965
+ return result
966
+ },
967
+ // 获取气表品牌
968
+ async getMeterBrand () {
969
+ let data = {
970
+ }
971
+
972
+ let http = new HttpResetClass()
973
+ let res = await http.load(
974
+ 'POST',
975
+ `rs/sql/getMeterBrand`,
976
+ {data: data},
977
+ {resolveMsg: null, rejectMsg: '气表品牌查询失败!!!'}
978
+ )
979
+
980
+ return res.data
981
+ },
982
+ async stopApply () {
983
+ console.log('终止报建!!!!!')
984
+
985
+ if (this.show_data.defname === '报建受理') {
986
+ this.show_data.f_stop_reason = this.show_data.f_accept_result
987
+ }
988
+ if (this.show_data.defname === '现场勘察') {
989
+ this.show_data.f_stop_reason = this.show_data.f_prospecting_result
990
+ }
991
+
992
+ let data = {
993
+ apply: this.show_data,
994
+ user: this.$login.f
995
+ }
996
+
997
+ let res = await this.$resetpost(
998
+ `rs/logic/stopApply`,
999
+ {data: data},
1000
+ {resolveMsg: null, rejectMsg: '终止报建失败!!!'}
1001
+ )
1002
+
1003
+ this.$dispatch('loadPage')
1004
+
1005
+ throw '终止报建!!!'
1006
+ },
1007
+ // 获取小区
1008
+ async getResidentialArea () {
1009
+ let data = {
1010
+ tablename: 't_area_address',
1011
+ condition: `f_filiale = '${this.$login.f.f_fengongsi}' and f_area_status = '启用'`
1012
+ }
1013
+ let http = new HttpResetClass()
1014
+ let res = await http.load(
1015
+ 'POST',
1016
+ `rs/sql/applySingleTable`,
1017
+ {data: data},
1018
+ {resolveMsg: null, rejectMsg: '小区查询失败!!!'}
1019
+ )
1020
+ return res.data.map(item => {
1021
+ return {
1022
+ label: item.f_residential_area,
1023
+ value: item.id
1024
+ }
1025
+ })
1026
+ },
1027
+ async getContractSignatory () {
1028
+ let data = {
1029
+ condition: `asj.f_type = '内部' and asj.f_subject_type = '企业' and asj.f_state = '有效' and asj.f_auth_state = '审核通过' and asg.f_state = '有效' and asg.f_sign_state = '签章成功'`
1030
+ }
1031
+ let http = new HttpResetClass()
1032
+ let res = await http.load(
1033
+ 'POST',
1034
+ `rs/sql/getAuthSubjectList`,
1035
+ {data: data},
1036
+ {resolveMsg: null, rejectMsg: '签署人查询失败!!!'}
1037
+ )
1038
+ return res.data.map(item => {
1039
+ return {
1040
+ label: item.f_subject_name,
1041
+ value: `${item.id}`
1042
+ }
1043
+ })
1044
+ },
1045
+ async setContractSignatory () {
1046
+ let data = {
1047
+ condition: `asj.f_type = '内部' and asj.f_subject_type = '企业' and asj.f_state = '有效' and asj.f_auth_state = '审核通过' and asg.f_state = '有效' and asg.f_sign_state = '签章成功'`
1048
+ }
1049
+ let http = new HttpResetClass()
1050
+ let res = await http.load(
1051
+ 'POST',
1052
+ `rs/sql/getAuthSubjectList`,
1053
+ {data: data},
1054
+ {resolveMsg: null, rejectMsg: '签署人查询失败!!!'}
1055
+ )
1056
+ this.setLabelOptions('签署人',res.data.map(item => {
1057
+ return {
1058
+ label: item.f_subject_name,
1059
+ value: `${item.id}`
1060
+ }
1061
+ }))
1062
+ this.setLabelValue('签署人',res.data[0].id)
1063
+ },
1064
+ // 地址拼接
1065
+ addressSplicing () {
1066
+ let f_area = this.getLableValue('区/县') ? this.getLableValue('区/县') + '-' : ''
1067
+ let f_slice_area = this.getLableValue('片区') ? this.getLableValue('片区') + '-' : ''
1068
+ let f_street = this.getLableValue('街道') || ''
1069
+ let f_address_detail = this.getLableValue('详细地址') || ''
1070
+
1071
+ let f_address = f_area + f_slice_area + f_street + f_address_detail
1072
+ this.setLabelValue("地址", f_address)
1073
+ },
1074
+ // 小区地址拼接
1075
+ areaAddressSplicing () {
1076
+ let f_area = this.area.f_area || ''
1077
+ let f_slice_area = this.area.f_slice_area || ''
1078
+ let f_street = this.area.f_street || ''
1079
+ let f_residential_area = this.area.f_residential_area || ''
1080
+
1081
+ let f_address = f_area + f_slice_area + f_street + f_residential_area
1082
+ this.setLabelValue("地址", f_address)
1083
+ },
1084
+ //分户挂表生成安检单
1085
+ async getChecklist() {
1086
+ let http = new HttpResetClass()
1087
+ let data = {
1088
+ f_process_id: this.selectdata.f_process_id,
1089
+ f_userinfo_id: this.selectdata.f_userinfo_id,
1090
+ user: this.$login.f.user
1091
+ }
1092
+ let res = await http.load(
1093
+ 'POST',
1094
+ `rs/logic/getChecklist`,
1095
+ {data: data},
1096
+ {resolveMsg: null, rejectMsg: null}
1097
+ )
1098
+ },
1099
+ // 生成合同编号
1100
+ async getContractNumber() {
1101
+ const nowDate = new Date()
1102
+ let year = nowDate.getFullYear()
1103
+ let nature = ''
1104
+ if (this.show_data.f_apply_type === '民用报建') {
1105
+ nature = 'J'
1106
+ } else if (this.show_data.f_apply_type === '非民用报建') {
1107
+ nature = 'F'
1108
+ }
1109
+ let shiGong = 'S'
1110
+ let gongQi = 'G'
1111
+
1112
+ let lastyYear = year - 1
1113
+ let http = new HttpResetClass()
1114
+ let data = {
1115
+ user: this.$login.f.user,
1116
+ startDate: year + '-01-01 00:00:00',
1117
+ endDate: year + '-12-31 23:59:59'
1118
+ }
1119
+ let res = await http.load(
1120
+ 'POST',
1121
+ `rs/sql/getContractCount`,
1122
+ {data: data},
1123
+ {resolveMsg: null, rejectMsg: null}
1124
+ )
1125
+ let count = res.data[0].count + 1
1126
+
1127
+
1128
+ let shiGongContractNumber = year + nature + shiGong + '-' + count
1129
+ let gongQiContractNumber = year + nature + gongQi + '-' + count
1130
+ if (!this.getLableValue('委托合同编号')){
1131
+ this.setLabelValue('委托合同编号',shiGongContractNumber)
1132
+ this.setLabelValue('供气合同编号',gongQiContractNumber)
1133
+ }
1134
+ },
1135
+ async getPrice (index) {
1136
+ if (isEmpty(this.show_data.f_gas_nature) || isEmpty(this.show_data.f_price_type)) {
1137
+ return
1138
+ }
1139
+
1140
+ if (index) {
1141
+ this.setLabelValue('气价名称', null)
1142
+ }
1143
+
1144
+ if (this.show_data.f_price_type === '混合气价') {
1145
+ this.showLabels('比率')
1146
+ } else {
1147
+ this.setLabelValue('比率', null)
1148
+ this.hideLabels('比率')
1149
+ }
1150
+
1151
+ let data = {
1152
+ condition: `sp.f_filiale = '${this.$login.f.f_fengongsi}' and sp.f_price_type = '${this.show_data.f_price_type}' and f_gasproperties = '${this.show_data.f_gas_nature}'`
1153
+ }
1154
+
1155
+ if (this.show_data.f_apply_type === '民用报建') {
1156
+ data.condition += `and f_user_type = '民用'`
1157
+ }
1158
+ if (this.show_data.f_apply_type === '非民用报建') {
1159
+ data.condition += `and f_user_type = '非民用'`
1160
+ }
1161
+
1162
+
1163
+ let http = new HttpResetClass()
1164
+ let res = await http.load(
1165
+ 'POST',
1166
+ `rs/sql/applyGetPrice`,
1167
+ {data: data},
1168
+ {resolveMsg: null, rejectMsg: '气价查询失败!!!'}
1169
+ )
1170
+ let priceLoptions = res.data.map(item => {
1171
+ return {
1172
+ label: item.f_price_name,
1173
+ value: `${item.id}`
1174
+ }
1175
+ })
1176
+ this.setLabelOptions('气价名称', priceLoptions)
1177
+ },
1178
+ // 单价失去焦点
1179
+ async priceChange () {
1180
+ if (isEmpty(this.show_data.f_price)) {
1181
+ return
1182
+ }
1183
+ let data = {
1184
+ operator: '*',
1185
+ num1: this.show_data.f_price,
1186
+ num2: this.show_data.f_install_count
1187
+ }
1188
+ let http = new HttpResetClass()
1189
+ let res = await http.load(
1190
+ 'POST',
1191
+ `rs/logic/compute`,
1192
+ {data: data},
1193
+ {resolveMsg: null, rejectMsg: '工程材料费计算失败!!!'}
1194
+ )
1195
+
1196
+ this.setLabelValue('工程材料费', res.data)
1197
+ },
1198
+ //工商户验证表具类型是否需选择
1199
+ async meterBrandCheck() {
1200
+ let data = {
1201
+ f_process_id: this.show_data.f_process_id,
1202
+ orgid:this.$login.f.orgid
1203
+ }
1204
+ let http = new HttpResetClass()
1205
+ let res = await http.load(
1206
+ 'POST',
1207
+ `rs/sql/meterCheck`,
1208
+ {data: data},
1209
+ {resolveMsg: null, rejectMsg: null}
1210
+ )
1211
+ if (res.data[0].num > 0){
1212
+ this.$showAlert(`还有${res.data[0].num}处未选择表具,请选择后提交!`, 'warning', 3000)
1213
+ throw null
1214
+ }
1215
+ },
1216
+ // 安装户数
1217
+ async installCountCheck() {
1218
+ let data = {
1219
+ tablename: 't_userinfo',
1220
+ condition: `f_process_id = '${this.show_data.f_process_id}' and f_user_state != '销户'`,
1221
+ }
1222
+
1223
+ let http = new HttpResetClass()
1224
+ let res = await http.load(
1225
+ 'POST',
1226
+ `rs/sql/applySingleTable`,
1227
+ {data: data},
1228
+ {resolveMsg: null, rejectMsg: '用户数量查询失败'}
1229
+ )
1230
+ this.setLabelValue('安装户数',res.data.length)
1231
+ },
1232
+ // 户内出单日期
1233
+ getOutdoorsTime () {
1234
+ for (const item of this.selectdata.fields) {
1235
+ console.log('是否进入')
1236
+ if (item.label === '户内出单日期') {
1237
+ item.value = this.selectdata.f_release_date
1238
+ this.selectdata[item.field] = item.value
1239
+ console.log('当前出单时间',item.value)
1240
+ }else if(item.label === '庭院出单日期'){
1241
+ item.value = this.selectdata.f_release_date
1242
+ this.selectdata[item.field] = item.value
1243
+ }
1244
+ }
1245
+ },
1246
+ //获取缴费日期
1247
+ async getChargeDate() {
1248
+ let data = {
1249
+ tablename: 'activityins',
1250
+ condition: `processid = '${this.selectdata.f_process_id}' and defname = '报装缴费'`,
1251
+ }
1252
+
1253
+ let http = new HttpResetClass()
1254
+ let res = await http.load(
1255
+ 'POST',
1256
+ `rs/sql/applySingleTable`,
1257
+ {data: data},
1258
+ {resolveMsg: null, rejectMsg: null}
1259
+ )
1260
+ for (const item of this.selectdata.fields) {
1261
+ if (item.label === '缴费日期') {
1262
+ item.value = res.data[0].finishtime
1263
+ this.selectdata[item.field] = item.value
1264
+ }
1265
+ }
1266
+ },
1267
+ async getSingAct() {
1268
+ let data = {
1269
+ f_process_id: this.selectdata.f_process_id
1270
+ }
1271
+ let http = new HttpResetClass()
1272
+ let res = await http.load(
1273
+ 'POST',
1274
+ `rs/sql/getSingAct`,
1275
+ {data: data},
1276
+ {resolveMsg: null, rejectMsg: '签字状态查询失败!!!'}
1277
+ )
1278
+ if (res.data.length > 0) {
1279
+ for (const item of this.selectdata.fields) {
1280
+ if (item.label === '签字所在环节') {
1281
+ item.value = res.data[0].defname
1282
+ this.selectdata[item.field] = item.value
1283
+ }
1284
+ }
1285
+ }
1286
+ },
1287
+ getYiFang() {
1288
+ return [{label: '榆林榆川天然气', value: '榆林榆川天然气'},
1289
+ {label: this.selectdata.f_user_name, value: this.selectdata.f_user_name},
1290
+ {label: '无', value: '无'}]
1291
+ },
1292
+ async checkIsUser() {
1293
+ let data = {
1294
+ items: 'count(*) num' ,
1295
+ tablename: 't_userinfo',
1296
+ condition: `f_process_id = '${this.show_data.f_process_id}' and f_user_state <> '销户'`
1297
+ }
1298
+
1299
+ let http = new HttpResetClass()
1300
+ let res = await http.load(
1301
+ 'POST',
1302
+ `rs/sql/applySingleTable`,
1303
+ {data: data},
1304
+ {resolveMsg: null, rejectMsg: '是否存在用户!!!'}
1305
+ )
1306
+ if (res.data[0].num <= 0){
1307
+ this.$showAlert(`未添加设备,请添加后提交!`, 'warning', 3000)
1308
+ throw null
1309
+ }
1310
+ },
1311
+ async repair() {
1312
+ let data = {
1313
+ f_process_id: this.show_data.f_process_id
1314
+ }
1315
+ let http = new HttpResetClass()
1316
+ let res = await http.load(
1317
+ 'POST',
1318
+ `rs/logic/updateRepair`,
1319
+ {data: data},
1320
+ {resolveMsg: null, rejectMsg: '维修工单状态修改!!!'}
1321
+ )
1322
+ this.$dispatch('loadPage')
1323
+ },
1324
+ changeDispatch(value){
1325
+ if (value === '维修安检中心'){
1326
+ this.hideLabels('现场项目负责人', '安装单位', '安装单位现场负责人', '建设单位', '监理单位', '土建单位', '检测单位', '户内出单日期', '户内回单日期'
1327
+ , '户内施工备注', '庭院出单日期', '庭院回单日期', '庭院施工备注', '是否发起签字', '签字是否完成', '签字所在环节')
1328
+ this.hideButtons('签字')
1329
+ this.electiveLabels('现场项目负责人', '安装单位', '建设单位', '监理单位', '土建单位', '检测单位', '户内出单日期', '户内回单日期'
1330
+ , '户内施工备注', '庭院出单日期', '庭院回单日期', '庭院施工备注', '是否发起签字', '签字是否完成', '签字所在环节')
1331
+ }
1332
+ if (value === '施工工队'){
1333
+ this.showLabels('现场项目负责人', '安装单位', '安装单位现场负责人','建设单位', '监理单位', '土建单位', '检测单位', '户内出单日期', '户内回单日期'
1334
+ , '户内施工备注', '庭院出单日期', '庭院回单日期', '庭院施工备注', '是否发起签字', '签字是否完成', '签字所在环节')
1335
+ this.requiredLabels('现场项目负责人', '安装单位', '安装单位现场负责人','建设单位', '监理单位', '土建单位', '检测单位', '现场项目负责人', '是否发起签字', '签字是否完成', '签字所在环节')
1336
+ }
1337
+ }
1338
+ },
1339
+ events: {
1340
+ // 强制开关阀
1341
+ async 'onOffValve' () {
1342
+ let data = {
1343
+ condition: `ui.f_userinfo_id = '${this.show_data.f_userinfo_id}'`
1344
+ }
1345
+ let http = new HttpResetClass()
1346
+ let res = await http.load(
1347
+ 'POST',
1348
+ `rs/sql/getApplyUserinfo`,
1349
+ {data: data},
1350
+ {resolveMsg: null, rejectMsg: '档案获取失败!!!'}
1351
+ )
1352
+
1353
+ let userinfo = res.data[0]
1354
+
1355
+ if (this.show_data.button.button_name !== '退出强制状态') {
1356
+ data = {
1357
+ condition: `t_userfiles.f_meternumber = '${userinfo.f_meternumber}'`,
1358
+ contentData: {
1359
+ isOpen: this.show_data.button.button_name === '强制开阀' ? 1 : 0
1360
+ },
1361
+ inputtor: this.$login.f.name,
1362
+ instructTitle: this.show_data.button.button_name === '强制开阀' ? '开阀' : '关阀',
1363
+ instructType: '阀门控制',
1364
+ meterBrandName: userinfo.f_alias
1365
+ }
1366
+ res = await http.load(
1367
+ 'POST',
1368
+ `rs/logic/saveInstruct`,
1369
+ {data: data},
1370
+ {resolveMsg: null, rejectMsg: `${this.show_data.button.button_name}失败!!!`}
834
1371
  )
1372
+ }
835
1373
 
836
- this.$dispatch('breakControl', this.show_data)
837
- },
838
- // onetomany模态框监听事件
839
- async 'onchange_modal'(index, i) {
840
- },
841
- async 'oninput_modal'(index, i) {
1374
+ data = {
1375
+ f_user_id: userinfo.f_user_id,
1376
+ f_userinfo_id: userinfo.f_userinfo_id,
1377
+ record: {
1378
+ f_filiale: this.$login.f.f_fengongsi,
1379
+ f_instruct_meta_data: this.show_data.button.button_name === '退出强制状态' ? '退出强制阀控' : '进入强制阀控',
1380
+ f_instruct_title: this.show_data.button.button_name === '退出强制状态' ? '退出强制阀控' : '进入强制阀控',
1381
+ f_instruct_type: '阀门控制',
1382
+ f_meternumber: userinfo.f_meternumber,
1383
+ f_operator: this.$login.f.name,
1384
+ f_outlets: userinfo.f_outlets,
1385
+ f_reason: this.show_data.button.f_reason,
1386
+ f_user_id: userinfo.f_user_id,
1387
+ f_userinfo_id: userinfo.f_userinfo_id
1388
+ },
1389
+ state: this.show_data.button.button_name === '退出强制状态' ? 0 : 1
1390
+ }
1391
+
1392
+ res = await http.load(
1393
+ 'POST',
1394
+ `rs/logic/updateNetWorkValve`,
1395
+ {data: data},
1396
+ {resolveMsg: '执行成功!!!', rejectMsg: `执行失败!!!`}
1397
+ )
1398
+
1399
+ },
1400
+ // 修改用户档案
1401
+ async 'updateUserinfoState' () {
1402
+ let data = {
1403
+ f_userinfo_id: this.show_data.f_userinfo_id
1404
+ }
1405
+ let http = new HttpResetClass()
1406
+ let res = await http.load(
1407
+ 'POST',
1408
+ `rs/logic/updateUserinfoState`,
1409
+ {data: data},
1410
+ {resolveMsg: '该用户档案已为正常档案,可进行开关阀操作!!!', rejectMsg: '档案状态修改失败!!!'}
1411
+ )
1412
+
1413
+ this.showButtons('强制开阀','强制关阀')
1414
+ this.hideButtons('转正式档案')
1415
+ },
1416
+ // 选择用户
1417
+ async 'selectUserinfo' (row) {
1418
+ this.setLabelValue('用户编号', row.f_userinfo_id)
1419
+ this.setLabelValue('用户名称', row.f_user_name)
1420
+ this.setLabelValue('用户电话', row.f_user_phone)
1421
+ this.setLabelValue('证件类型', row.f_credentials)
1422
+ this.setLabelValue('证件号码', row.f_idnumber)
1423
+ this.setLabelValue('地址', row.f_address)
1424
+ this.setLabelValue('定位地址', row.f_location_address)
1425
+ this.setLabelValue('购货单位识别号', row.f_taxpayer_id)
1426
+ this.setLabelValue('购货单位名称', row.f_paper_name)
1427
+ this.setLabelValue('购货单位开户行及银行账号', row.f_paper_account)
1428
+ this.setLabelValue('购货单位地址电话', row.f_address_phone)
1429
+ this.setLabelValue('联系人', row.f_petitionuser)
1430
+ this.setLabelValue('区/县', row.f_area)
1431
+ this.setLabelValue('片区', row.f_slice_area)
1432
+ this.setLabelValue('街道', row.f_street)
1433
+ if (row.f_address_detail){
1434
+ this.setLabelValue('详细地址', row.f_address_detail)
1435
+ }
1436
+
1437
+ this.show_data.f_address_detail = row.f_address_detail
1438
+ this.show_data.f_residential_area = row.f_residential_area
1439
+ this.show_data.unit = row.unit
1440
+ this.show_data.f_building = row.f_building
1441
+ this.show_data.f_floor = row.f_floor
1442
+ this.show_data.f_taxpayer_id = row.f_taxpayer_id //购货单位识别号
1443
+ this.show_data.f_address_phone = row.f_address_phone //购货单位地址电话
1444
+ this.show_data.f_paper_name = row.f_paper_name //购货单位名称
1445
+ this.show_data.f_paper_account = row.f_paper_account
1446
+ this.show_data.f_userinfo_id = row.f_userinfo_id
1447
+ console.log("当前数据",this.show_data)
1448
+ },
1449
+ async 'priceReadEvent' (index) {
1450
+ await this.setContractSignatory()
1451
+ await this.getContractNumber()
1452
+ await this.getPrice(index)
1453
+ await this.priceChange()
1454
+ },
1455
+ async 'getPrice' (index) {
1456
+ if (isEmpty(this.show_data.f_gas_nature) || isEmpty(this.show_data.f_price_type)) {
1457
+ return
1458
+ }
1459
+
1460
+ if (index) {
1461
+ this.setLabelValue('气价名称', null)
1462
+ }
1463
+
1464
+ if (this.show_data.f_price_type === '混合气价') {
1465
+ this.showLabels('比率')
1466
+ } else {
1467
+ this.setLabelValue('比率', null)
1468
+ this.hideLabels('比率')
1469
+ }
1470
+
1471
+ let data = {
1472
+ condition: `sp.f_filiale = '${this.$login.f.f_fengongsi}' and sp.f_price_type = '${this.show_data.f_price_type}' and f_gasproperties = '${this.show_data.f_gas_nature}'`
1473
+ }
1474
+
1475
+ if (this.show_data.f_apply_type === '民用报建') {
1476
+ data.condition += `and f_user_type = '民用'`
1477
+ }
1478
+ if (this.show_data.f_apply_type === '非民用报建') {
1479
+ data.condition += `and f_user_type = '非民用'`
1480
+ }
1481
+
1482
+
1483
+ let http = new HttpResetClass()
1484
+ let res = await http.load(
1485
+ 'POST',
1486
+ `rs/sql/applyGetPrice`,
1487
+ {data: data},
1488
+ {resolveMsg: null, rejectMsg: '气价查询失败!!!'}
1489
+ )
1490
+
1491
+ let priceLoptions = res.data.map(item => {
1492
+ return {
1493
+ label: item.f_price_name,
1494
+ value: `${item.id}`
1495
+ }
1496
+ })
1497
+ this.setLabelOptions('气价名称',priceLoptions)
1498
+ },
1499
+ // 街道失去焦点
1500
+ async changStreet () {
1501
+ if (isEmpty(this.show_data.f_street)) {
1502
+ return
1503
+ }
1504
+ this.addressSplicing()
1505
+ },
1506
+
1507
+ 'changAddressDetail'(){
1508
+ if (isEmpty(this.show_data.f_address_detail)) {
1509
+ return
1510
+ }
1511
+ this.addressSplicing()
1512
+ },
1513
+ 'changAddress'(){
1514
+ if (isEmpty(this.show_data.f_address_detail)) {
1515
+ return
1516
+ }
1517
+ let f_address = this.show_data.f_address + this.show_data.f_address_detail
1518
+ this.setLabelValue("地址", f_address)
1519
+ },
1520
+ // 片区失去焦点
1521
+ async 'changSliceArea' () {
1522
+ if (isEmpty(this.show_data.f_area) || isEmpty(this.show_data.f_slice_area)) {
1523
+ return
842
1524
  }
1525
+
1526
+ let data = {
1527
+ items: 'f_street label,f_street value',
1528
+ tablename: 't_area_address',
1529
+ condition: `f_area = '${this.show_data.f_area}' and f_slice_area = '${this.show_data.f_slice_area}'`,
1530
+ groupitem: 'f_street'
1531
+ }
1532
+
1533
+ let http = new HttpResetClass()
1534
+ let res = await http.load(
1535
+ 'POST',
1536
+ `rs/sql/applySingleTable`,
1537
+ {data: data},
1538
+ {resolveMsg: null, rejectMsg: '签字状态查询失败!!!'}
1539
+ )
1540
+ this.setLabelOptions('街道', res.data)
1541
+
1542
+ this.addressSplicing()
1543
+ },
1544
+ // 区县失去焦点
1545
+ 'changeArea' () {
1546
+ if (isEmpty(this.show_data.f_area)) {
1547
+ return
1548
+ }
1549
+ this.setLabelValue('片区', null)
1550
+ this.setLabelValue('街道', null)
1551
+ this.setLabelOptions('片区', this.$appdata.getParam(`${this.show_data.f_area}片区`))
1552
+ this.setLabelOptions('街道', [])
1553
+
1554
+ this.addressSplicing()
1555
+ },
1556
+ // 开启签字
1557
+ async 'startSignActivity' () {
1558
+ this.hideButtons('签字')
1559
+ await this.constructionBefore()
1560
+
1561
+ let data = {
1562
+ apply: this.show_data,
1563
+ user: this.$login.f
1564
+ }
1565
+
1566
+ let res = await this.$resetpost(
1567
+ `rs/logic/startSignActivity`,
1568
+ {data: data},
1569
+ {resolveMsg: '签字流程已发起!!!', rejectMsg: '签字发起失败!!!'}
1570
+ )
1571
+
1572
+ this.$dispatch('breakControl', this.show_data)
1573
+ },
1574
+ // 工程施工初始化
1575
+ async 'buildReadyEvent' () {
1576
+ // this.changeDispatch(this.getLableValue('派工类型'))
1577
+ if(this.getLableValue('是否发起签字') === '是') {
1578
+ this.hideButtons('签字')
1579
+ }
1580
+ let http = new HttpResetClass()
1581
+ if (isEmpty(this.show_data.f_meter_brand)) {
1582
+ return
1583
+ }else {
1584
+ if (this.show_data.f_meter_brand === 'null') {
1585
+ this.setLabelOptions('气表型号', [{label: '无', value: 'null'}])
1586
+ return
1587
+ }
1588
+ let data = {
1589
+ f_gasbrand_id: this.show_data.f_meter_brand
1590
+ }
1591
+ let res = await http.load(
1592
+ 'POST',
1593
+ `rs/sql/getGasModel`,
1594
+ {data: data},
1595
+ {resolveMsg: null, rejectMsg: '气表型号查询失败!!!'}
1596
+ )
1597
+ this.setLabelOptions('气表型号', res.data)
1598
+ }
1599
+
1600
+ if (this.show_data.f_apply_type === '分户挂表') {
1601
+ let data = {
1602
+ condition: `ui.f_userinfo_id = '${this.show_data.f_userinfo_id}'`
1603
+ }
1604
+ let http = new HttpResetClass()
1605
+ let res = await http.load(
1606
+ 'POST',
1607
+ `rs/sql/getApplyUserinfo`,
1608
+ {data: data},
1609
+ {resolveMsg: null, rejectMsg: '档案状态获取失败!!!'}
1610
+ )
1611
+ console.log("f_meter_classif11y",res.data[0].f_meter_classify)
1612
+ if (!res.data[0].f_meter_brand.includes('物联网表')) {
1613
+ return
1614
+ }
1615
+ console.log("f_user_state11",res.data[0].f_user_state)
1616
+ if (res.data[0].f_user_state === '正常') {
1617
+ this.showButtons('退出强制状态','强制关阀')
1618
+ this.hideButtons('转正式档案')
1619
+ } else {
1620
+ this.showButtons('转正式档案')
1621
+ this.hideButtons('退出强制状态','强制关阀')
1622
+ }
1623
+ }
1624
+ },
1625
+ // 工程派工初始化
1626
+ async 'dispatchReadyEvent' () {
1627
+ if (isEmpty(this.show_data.f_meter_brand)) {
1628
+ return
1629
+ }
1630
+ let data = {
1631
+ f_gasbrand_id: this.show_data.f_meter_brand
1632
+ }
1633
+ let http = new HttpResetClass()
1634
+ let res = await http.load(
1635
+ 'POST',
1636
+ `rs/sql/getGasModel`,
1637
+ {data: data},
1638
+ {resolveMsg: null, rejectMsg: '气表型号查询失败!!!'}
1639
+ )
1640
+
1641
+ this.setLabelOptions('气表型号', res.data)
1642
+ },
1643
+ // 气表品牌失去焦点
1644
+ async 'meterBrandChenge' (index) {
1645
+ if (isEmpty(this.show_data.f_meter_brand)) {
1646
+ return
1647
+ }
1648
+ this.setLabelValue('气表型号', null)
1649
+ let data = {
1650
+ f_gasbrand_id: this.show_data.f_meter_brand
1651
+ }
1652
+ let http = new HttpResetClass()
1653
+ let res = await http.load(
1654
+ 'POST',
1655
+ `rs/sql/getGasModel`,
1656
+ {data: data},
1657
+ {resolveMsg: null, rejectMsg: '气表型号查询失败!!!'}
1658
+ )
1659
+
1660
+ this.setLabelOptions('气表型号', res.data)
1661
+ },
1662
+ // 单价失去焦点
1663
+ async 'priceChange' (index) {
1664
+ if (isEmpty(this.show_data.f_price)) {
1665
+ return
1666
+ }
1667
+ let data = {
1668
+ operator: '*',
1669
+ num1: this.show_data.f_price,
1670
+ num2: this.show_data.f_install_count
1671
+ }
1672
+ let http = new HttpResetClass()
1673
+ let res = await http.load(
1674
+ 'POST',
1675
+ `rs/logic/compute`,
1676
+ {data: data},
1677
+ {resolveMsg: null, rejectMsg: '工程材料费计算失败!!!'}
1678
+ )
1679
+
1680
+ this.setLabelValue('工程材料费', res.data)
843
1681
  },
844
- watch: {
1682
+ // 安装户数失去焦点
1683
+ 'installCountChange' (index) {
1684
+ if (isEmpty(this.show_data.f_install_count)) {
1685
+ return
1686
+ }
1687
+ if (Number(this.show_data.f_install_count) > Number(this.show_data.f_apply_count)) {
1688
+ this.$showAlert('安装数已超过申请数!!!', 'warning', 3000)
1689
+ // this.setLabelValue('安装户数', null)
1690
+ // this.setLabelValue('安装点数', null)
1691
+ // return
1692
+ }
1693
+
1694
+ if (Number(this.show_data.f_install_count) <= 0) {
1695
+ this.$showAlert('至少有一个用户!!!', 'warning', 3000)
1696
+ this.setLabelValue('安装户数', null)
1697
+ this.setLabelValue('安装点数', null)
1698
+ return
1699
+ }
1700
+ },
1701
+ // 报建性质失去焦点
1702
+ 'applyNatureChange' (index) {
1703
+ if (this.show_data.f_apply_nature === '散户') {
1704
+ this.hideLabels('营业执照')
1705
+ this.electiveLabels('营业执照', '购货单位识别号', '购货单位银行账号', '购货单位地址电话')
1706
+ }
1707
+ if (this.show_data.f_apply_nature === '小区') {
1708
+ this.showLabels('营业执照', '小区/巷道')
1709
+ this.requiredLabels('小区/巷道')
1710
+ }
1711
+ },
1712
+ // 报建性质失去焦点
1713
+ 'applyPaperChange' (index) {
1714
+ console.log("测试是否进入")
1715
+ if (this.show_data.f_paper_type === '专票') {
1716
+ this.requiredLabels('购货单位名称','购货单位识别号', '购货单位银行账号', '购货单位地址电话')
1717
+ }else {
1718
+ this.electiveLabels( '购货单位识别号', '购货单位银行账号', '购货单位地址电话')
1719
+ }
1720
+ },
1721
+ 'chargeAfter'(index){
1722
+ if (this.show_data.f_surplus_money !== this.show_data.f_due_money){
1723
+ this.hideButtons('退回')
1724
+ }else {
1725
+ this.showButtons('退回')
1726
+ }
1727
+ },
1728
+ //购货单位识别号失去焦点
1729
+ 'getAuthenticationMethod' (index){
1730
+ if (isEmpty(this.show_data.f_taxpayer_id)) {
1731
+ this.setLabelValue('认证类型','个人认证')
1732
+ }else {
1733
+ this.setLabelValue('认证类型','企业认证')
1734
+ }
1735
+ },
1736
+ //搜索小区
1737
+ 'selectArea' (val,index) {
1738
+ let pcdText = `and f_residential_area like '%${val}%'`
1739
+ let data = {
1740
+ tablename: 't_area_address',
1741
+ condition: `f_filiale = '${this.$login.f.f_fengongsi}' and f_area_status = '启用' ${pcdText}`
1742
+ }
1743
+ new HttpResetClass().load("POST", `rs/sql/applySingleTable`, {data:data}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
1744
+ console.log('请求发送完成!!!!!'+JSON.stringify(res))
1745
+ if(res.data.length>0){
1746
+ this.setLabelOptions('小区/巷道', res.data.map(item => {
1747
+ return {
1748
+ label: item.f_residential_area,
1749
+ value: item.id
1750
+ }
1751
+ }))
1752
+ }
1753
+ })
1754
+ },
1755
+ //身份证号码校验
1756
+ 'checkIdnumber' (index) {
1757
+ if(this.show_data.f_credentials === '身份证'){
1758
+ var verify = /^[1-9]\d{5}(18|19|20|21)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/
1759
+ if (!verify.test(this.show_data.fields[index].value)){
1760
+ this.show_data.fields[index].value = null
1761
+ this.$showAlert('身份证号码格式错误请重新输入!!!', 'warning', 3000)
1762
+ }
1763
+ }
1764
+ },
1765
+ //电话号码校验
1766
+ 'checkPhone' (index) {
1767
+ var verify = /^([1][0-9]{10})$/
1768
+ if (!verify.test(this.show_data.fields[index].value)){
1769
+ this.show_data.fields[index].value = null
1770
+ this.$showAlert('电话号码格式错误请重新输入!!!', 'warning', 3000)
1771
+ }
1772
+ },
1773
+ 'changeDispatching'(index){
1774
+ if (this.show_data.fields[index].value === '安检维修中心'){
1775
+ this.hideLabels('现场项目负责人', '安装单位', '安装单位现场负责人','建设单位', '监理单位', '土建单位', '检测单位')
1776
+ this.electiveLabels('现场项目负责人', '安装单位', '安装单位现场负责人','建设单位', '监理单位', '土建单位', '检测单位')
1777
+ }else if (this.show_data.fields[index].value === '施工工队'){
1778
+ this.showLabels('现场项目负责人', '安装单位', '安装单位现场负责人','建设单位', '监理单位', '土建单位', '检测单位')
1779
+ this.requiredLabels('现场项目负责人', '安装单位', '安装单位现场负责人','建设单位', '监理单位', '土建单位', '检测单位')
1780
+ }
1781
+ },
1782
+ 'getRefund'(index){
1783
+ if (this.show_data.fields[index].value === '否'){
1784
+ this.hideLabels('退费金额', '退款项')
1785
+ this.electiveLabels('退费金额', '退款项')
1786
+ }else if (this.show_data.fields[index].value === '是'){
1787
+ this.showLabels('退费金额', '退款项')
1788
+ this.requiredLabels('退费金额', '退款项')
1789
+ }
1790
+ },
1791
+ 'hasTrouble'(index) {
1792
+ if (this.show_data.fields[index].value === '有纠纷'){
1793
+ this.hideButtons('提交', '签字', '图纸变更')
1794
+ this.showLabels('纠纷原因')
1795
+ }else {
1796
+ this.showButtons('提交', '签字', '图纸变更')
1797
+ this.hideLabels('纠纷原因')
1798
+ }
1799
+ },
1800
+ // ===========================================
1801
+ 'initializtionView' () {
1802
+ if (this.show_data.f_apply_nature === '散户') {
1803
+ this.hideLabels('营业执照')
1804
+ this.electiveLabels('营业执照', '购货单位识别号', '购货单位银行账号', '购货单位地址电话')
1805
+ }
1806
+ if (this.show_data.f_apply_nature === '小区') {
1807
+ this.showLabels('营业执照', '小区/巷道', '小区名称')
1808
+ this.requiredLabels('小区/巷道')
1809
+ // this.hideComponents('用户花名单')
1810
+ }
1811
+ },
1812
+ // 检查重复
1813
+ 'checkRepeat' (index) {
1814
+ this.checkDuplicate(index)
1815
+ },
1816
+ async 'button'() {
1817
+ if (this.show_data.button.before) {
1818
+ await this[this.show_data.button.before]()
1819
+ }
1820
+ // 点击重置按钮就重置数据
1821
+ if (this.show_data.button.button_name === '重置') {
1822
+ this.$dispatch('breakControl', this.selectdata)
1823
+ return
1824
+ }
1825
+
1826
+ this.show_data.start_activity = this.$workflow_vue.start_activity
1827
+ this.show_data.xmlfilename = this.$workflow_vue.workflow_xmlfilename
1828
+
1829
+ let data = {
1830
+ apply: this.show_data,
1831
+ user: this.$login.f
1832
+ }
1833
+
1834
+ let res = await this.$resetpost(
1835
+ `rs/logic/ApplyProductService`,
1836
+ {data: data},
1837
+ {resolveMsg: null, rejectMsg: '数据保存失败'}
1838
+ )
1839
+
1840
+ if (this.show_data.button.after) {
1841
+ this[this.show_data.button.after]()
1842
+ }
1843
+ this.$dispatch('loadPage')
1844
+ },
1845
+ // 失去焦点出触发事件
1846
+ 'onchange' (index) {
1847
+ },
1848
+ selectSearch (val, index) {},
1849
+ 'onblur' (index) {},
1850
+ 'oninput' (index) {},
1851
+ async 'onchangeModal' (index, fieldIndex) {
1852
+ },
1853
+ async 'onblurModal' (index, fieldIndex) {
1854
+
1855
+ },
1856
+ async 'oninputModal' (index, fieldIndex) {
1857
+
1858
+ },
1859
+ async 'onetomanydelete' (index, rowIndex) {
1860
+
1861
+ let http = new HttpResetClass()
1862
+
1863
+ let res = await http.load(
1864
+ 'DELETE',
1865
+ `rs/entity/${this.show_data.onetomany[index].tables[0]}/${this.show_data.onetomany[index].rows[rowIndex].id}`,
1866
+ null,
1867
+ {resolveMsg: null, rejectMsg: '删除失败!!!'}
1868
+ )
1869
+
1870
+ res = await this.$resetpost(
1871
+ 'rs/entity/t_apply',
1872
+ this.show_data
1873
+ )
1874
+
1875
+ this.$dispatch('breakControl', this.show_data)
1876
+ },
1877
+ async 'onetomanyupdate' (index, rowIndex) {
1878
+ let data = this.show_data.onetomany[index].rows[rowIndex]
1879
+
1880
+ this.show_data.onetomany[index].fields.forEach(item => {
1881
+ data[item.field] = item.value
1882
+ })
1883
+ let res = await this.$resetpost(
1884
+ `rs/entity/${this.show_data.onetomany[index].tables[0]}`,
1885
+ data
1886
+ )
1887
+
1888
+ res = await this.$resetpost(
1889
+ 'rs/entity/t_apply',
1890
+ this.show_data
1891
+ )
1892
+
1893
+ this.$dispatch('breakControl', this.show_data)
1894
+ },
1895
+ async 'onetomanyadd' (index) {
1896
+ let data = {
1897
+ f_process_id : this.show_data.f_process_id,
1898
+ f_operator_id: this.$login.f.id,
1899
+ f_operator: this.$login.f.name,
1900
+ f_operation_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
1901
+ f_orgid: this.$login.f.orgid,
1902
+ f_orgname: this.$login.f.orgs
1903
+ }
1904
+ this.show_data.onetomany[index].fields.forEach(item => {
1905
+ data[item.field] = item.value
1906
+ })
1907
+ let res = await this.$resetpost(
1908
+ `rs/entity/${this.show_data.onetomany[index].tables[0]}`,
1909
+ data
1910
+ )
1911
+
1912
+ res = await this.$resetpost(
1913
+ 'rs/entity/t_apply',
1914
+ this.show_data
1915
+ )
1916
+
1917
+ this.$dispatch('breakControl', this.show_data)
1918
+ },
1919
+ 'complyInstallation' (index) {
1920
+ if (this.show_data.defname === '报建受理'){
1921
+ if (this.show_data.f_accept_install === '否') {
1922
+ console.log("测试")
1923
+ this.hideButtons('下发','提交')
1924
+ this.showButtons('终止')
1925
+ } else {
1926
+ this.hideButtons('终止')
1927
+ this.showButtons('下发','提交')
1928
+ }
1929
+ }
1930
+ if (this.show_data.defname === '现场勘察'){
1931
+ if (this.show_data.f_survey_opinion === '否') {
1932
+ console.log("测试")
1933
+ this.hideButtons('下发','提交')
1934
+ this.showButtons('终止')
1935
+ } else {
1936
+ this.hideButtons('终止')
1937
+ this.showButtons('下发','提交')
1938
+ }
1939
+ }
1940
+ if (this.show_data.defname === '报建受理' || this.show_data.defname === '现场勘察'){
1941
+ this.installCountCheck()
1942
+ }
1943
+ },
1944
+ async 'saveData'(index) {
1945
+ if (this.show_data.f_residential_area_id) {
1946
+ let data = {
1947
+ tablename: 't_area_address',
1948
+ condition: `id = '${this.show_data.f_residential_area_id}'`
1949
+ }
1950
+ let http = new HttpResetClass()
1951
+ let res = await http.load(
1952
+ 'POST',
1953
+ `rs/sql/applySingleTable`,
1954
+ {data: data},
1955
+ {resolveMsg: null, rejectMsg: '小区查询失败!!!'}
1956
+ )
1957
+
1958
+ this.area = res.data[0]
1959
+ }
1960
+ this.areaAddressSplicing()
1961
+ },
1962
+ async 'importEvent' (index, table, configName, filepath) {
1963
+ let data = {
1964
+ selectdata: this.show_data,
1965
+ table: table,
1966
+ filepath: filepath,
1967
+ configName: configName,
1968
+ user: this.$login.f
1969
+ }
1970
+
1971
+ let res = await this.$resetpost(
1972
+ `rs/logic/importEvent`,
1973
+ data
1974
+ )
1975
+
1976
+ this.$dispatch('breakControl', this.show_data)
1977
+ },
1978
+ 'onbutchange' (index) {
1979
+
1980
+ },
1981
+ 'onbutblur' (index) {
1982
+
1983
+ },
1984
+ 'onbutinput' (index) {
1985
+
845
1986
  }
1987
+ },
1988
+ watch: {
846
1989
  }
1990
+ }
847
1991
  </script>
848
1992
  <style scoped>
849
- /*清除model中的浮动*/
850
- .clearfix:after,.clearfix:before{
851
- display: table;
852
- }
853
- .clearfix:after{
854
- clear: both;
855
- }
1993
+ /*清除model中的浮动*/
1994
+ .clearfix:after,.clearfix:before{
1995
+ display: table;
1996
+ }
1997
+ .clearfix:after{
1998
+ clear: both;
1999
+ }
856
2000
  </style>