apply-clients 4.0.67 → 4.1.0-weinan

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 (459) hide show
  1. package/dist-android/index.html +3 -0
  2. package/dist-android/static/.gitkeep +0 -0
  3. package/dist-android/static/0.js +2 -0
  4. package/dist-android/static/0.js.map +1 -0
  5. package/dist-android/static/1.js +2 -0
  6. package/dist-android/static/1.js.map +1 -0
  7. package/dist-android/static/10.js +2 -0
  8. package/dist-android/static/10.js.map +1 -0
  9. package/dist-android/static/100.js +2 -0
  10. package/dist-android/static/100.js.map +1 -0
  11. package/dist-android/static/11.js +2 -0
  12. package/dist-android/static/11.js.map +1 -0
  13. package/dist-android/static/12.js +2 -0
  14. package/dist-android/static/12.js.map +1 -0
  15. package/dist-android/static/13.js +2 -0
  16. package/dist-android/static/13.js.map +1 -0
  17. package/dist-android/static/14.js +2 -0
  18. package/dist-android/static/14.js.map +1 -0
  19. package/dist-android/static/15.js +2 -0
  20. package/dist-android/static/15.js.map +1 -0
  21. package/dist-android/static/16.js +2 -0
  22. package/dist-android/static/16.js.map +1 -0
  23. package/dist-android/static/17.js +2 -0
  24. package/dist-android/static/17.js.map +1 -0
  25. package/dist-android/static/18.js +2 -0
  26. package/dist-android/static/18.js.map +1 -0
  27. package/dist-android/static/19.js +2 -0
  28. package/dist-android/static/19.js.map +1 -0
  29. package/dist-android/static/2.js +2 -0
  30. package/dist-android/static/2.js.map +1 -0
  31. package/dist-android/static/20.js +2 -0
  32. package/dist-android/static/20.js.map +1 -0
  33. package/dist-android/static/21.js +2 -0
  34. package/dist-android/static/21.js.map +1 -0
  35. package/dist-android/static/22.js +2 -0
  36. package/dist-android/static/22.js.map +1 -0
  37. package/dist-android/static/23.js +2 -0
  38. package/dist-android/static/23.js.map +1 -0
  39. package/dist-android/static/24.js +2 -0
  40. package/dist-android/static/24.js.map +1 -0
  41. package/dist-android/static/25.js +2 -0
  42. package/dist-android/static/25.js.map +1 -0
  43. package/dist-android/static/26.js +2 -0
  44. package/dist-android/static/26.js.map +1 -0
  45. package/dist-android/static/27.js +2 -0
  46. package/dist-android/static/27.js.map +1 -0
  47. package/dist-android/static/28.js +2 -0
  48. package/dist-android/static/28.js.map +1 -0
  49. package/dist-android/static/29.js +2 -0
  50. package/dist-android/static/29.js.map +1 -0
  51. package/dist-android/static/3.js +2 -0
  52. package/dist-android/static/3.js.map +1 -0
  53. package/dist-android/static/30.js +2 -0
  54. package/dist-android/static/30.js.map +1 -0
  55. package/dist-android/static/31.js +2 -0
  56. package/dist-android/static/31.js.map +1 -0
  57. package/dist-android/static/32.js +2 -0
  58. package/dist-android/static/32.js.map +1 -0
  59. package/dist-android/static/33.js +2 -0
  60. package/dist-android/static/33.js.map +1 -0
  61. package/dist-android/static/34.js +2 -0
  62. package/dist-android/static/34.js.map +1 -0
  63. package/dist-android/static/35.js +2 -0
  64. package/dist-android/static/35.js.map +1 -0
  65. package/dist-android/static/36.js +2 -0
  66. package/dist-android/static/36.js.map +1 -0
  67. package/dist-android/static/37.js +2 -0
  68. package/dist-android/static/37.js.map +1 -0
  69. package/dist-android/static/38.js +2 -0
  70. package/dist-android/static/38.js.map +1 -0
  71. package/dist-android/static/39.js +2 -0
  72. package/dist-android/static/39.js.map +1 -0
  73. package/dist-android/static/4.js +2 -0
  74. package/dist-android/static/4.js.map +1 -0
  75. package/dist-android/static/40.js +2 -0
  76. package/dist-android/static/40.js.map +1 -0
  77. package/dist-android/static/41.js +2 -0
  78. package/dist-android/static/41.js.map +1 -0
  79. package/dist-android/static/42.js +2 -0
  80. package/dist-android/static/42.js.map +1 -0
  81. package/dist-android/static/43.js +2 -0
  82. package/dist-android/static/43.js.map +1 -0
  83. package/dist-android/static/44.js +2 -0
  84. package/dist-android/static/44.js.map +1 -0
  85. package/dist-android/static/45.js +2 -0
  86. package/dist-android/static/45.js.map +1 -0
  87. package/dist-android/static/46.js +2 -0
  88. package/dist-android/static/46.js.map +1 -0
  89. package/dist-android/static/47.js +2 -0
  90. package/dist-android/static/47.js.map +1 -0
  91. package/dist-android/static/48.js +2 -0
  92. package/dist-android/static/48.js.map +1 -0
  93. package/dist-android/static/49.js +2 -0
  94. package/dist-android/static/49.js.map +1 -0
  95. package/dist-android/static/5.js +2 -0
  96. package/dist-android/static/5.js.map +1 -0
  97. package/dist-android/static/50.js +2 -0
  98. package/dist-android/static/50.js.map +1 -0
  99. package/dist-android/static/51.js +2 -0
  100. package/dist-android/static/51.js.map +1 -0
  101. package/dist-android/static/52.js +2 -0
  102. package/dist-android/static/52.js.map +1 -0
  103. package/dist-android/static/53.js +2 -0
  104. package/dist-android/static/53.js.map +1 -0
  105. package/dist-android/static/54.js +2 -0
  106. package/dist-android/static/54.js.map +1 -0
  107. package/dist-android/static/55.js +2 -0
  108. package/dist-android/static/55.js.map +1 -0
  109. package/dist-android/static/56.js +2 -0
  110. package/dist-android/static/56.js.map +1 -0
  111. package/dist-android/static/57.js +2 -0
  112. package/dist-android/static/57.js.map +1 -0
  113. package/dist-android/static/58.js +2 -0
  114. package/dist-android/static/58.js.map +1 -0
  115. package/dist-android/static/59.js +2 -0
  116. package/dist-android/static/59.js.map +1 -0
  117. package/dist-android/static/6.js +2 -0
  118. package/dist-android/static/6.js.map +1 -0
  119. package/dist-android/static/60.js +2 -0
  120. package/dist-android/static/60.js.map +1 -0
  121. package/dist-android/static/61.js +2 -0
  122. package/dist-android/static/61.js.map +1 -0
  123. package/dist-android/static/62.js +2 -0
  124. package/dist-android/static/62.js.map +1 -0
  125. package/dist-android/static/63.js +2 -0
  126. package/dist-android/static/63.js.map +1 -0
  127. package/dist-android/static/64.js +2 -0
  128. package/dist-android/static/64.js.map +1 -0
  129. package/dist-android/static/65.js +2 -0
  130. package/dist-android/static/65.js.map +1 -0
  131. package/dist-android/static/66.js +2 -0
  132. package/dist-android/static/66.js.map +1 -0
  133. package/dist-android/static/67.js +2 -0
  134. package/dist-android/static/67.js.map +1 -0
  135. package/dist-android/static/68.js +2 -0
  136. package/dist-android/static/68.js.map +1 -0
  137. package/dist-android/static/69.js +2 -0
  138. package/dist-android/static/69.js.map +1 -0
  139. package/dist-android/static/7.js +6 -0
  140. package/dist-android/static/7.js.map +1 -0
  141. package/dist-android/static/70.js +2 -0
  142. package/dist-android/static/70.js.map +1 -0
  143. package/dist-android/static/71.js +2 -0
  144. package/dist-android/static/71.js.map +1 -0
  145. package/dist-android/static/72.js +2 -0
  146. package/dist-android/static/72.js.map +1 -0
  147. package/dist-android/static/73.js +2 -0
  148. package/dist-android/static/73.js.map +1 -0
  149. package/dist-android/static/74.js +2 -0
  150. package/dist-android/static/74.js.map +1 -0
  151. package/dist-android/static/75.js +2 -0
  152. package/dist-android/static/75.js.map +1 -0
  153. package/dist-android/static/76.js +2 -0
  154. package/dist-android/static/76.js.map +1 -0
  155. package/dist-android/static/77.js +2 -0
  156. package/dist-android/static/77.js.map +1 -0
  157. package/dist-android/static/78.js +2 -0
  158. package/dist-android/static/78.js.map +1 -0
  159. package/dist-android/static/79.js +2 -0
  160. package/dist-android/static/79.js.map +1 -0
  161. package/dist-android/static/8.js +2 -0
  162. package/dist-android/static/8.js.map +1 -0
  163. package/dist-android/static/80.js +2 -0
  164. package/dist-android/static/80.js.map +1 -0
  165. package/dist-android/static/81.js +2 -0
  166. package/dist-android/static/81.js.map +1 -0
  167. package/dist-android/static/82.js +2 -0
  168. package/dist-android/static/82.js.map +1 -0
  169. package/dist-android/static/83.js +2 -0
  170. package/dist-android/static/83.js.map +1 -0
  171. package/dist-android/static/84.js +2 -0
  172. package/dist-android/static/84.js.map +1 -0
  173. package/dist-android/static/85.js +2 -0
  174. package/dist-android/static/85.js.map +1 -0
  175. package/dist-android/static/86.js +2 -0
  176. package/dist-android/static/86.js.map +1 -0
  177. package/dist-android/static/87.js +2 -0
  178. package/dist-android/static/87.js.map +1 -0
  179. package/dist-android/static/88.js +2 -0
  180. package/dist-android/static/88.js.map +1 -0
  181. package/dist-android/static/89.js +2 -0
  182. package/dist-android/static/89.js.map +1 -0
  183. package/dist-android/static/9.js +3 -0
  184. package/dist-android/static/9.js.map +1 -0
  185. package/dist-android/static/90.js +2 -0
  186. package/dist-android/static/90.js.map +1 -0
  187. package/dist-android/static/91.js +2 -0
  188. package/dist-android/static/91.js.map +1 -0
  189. package/dist-android/static/92.js +2 -0
  190. package/dist-android/static/92.js.map +1 -0
  191. package/dist-android/static/93.js +2 -0
  192. package/dist-android/static/93.js.map +1 -0
  193. package/dist-android/static/94.js +2 -0
  194. package/dist-android/static/94.js.map +1 -0
  195. package/dist-android/static/95.js +2 -0
  196. package/dist-android/static/95.js.map +1 -0
  197. package/dist-android/static/96.js +2 -0
  198. package/dist-android/static/96.js.map +1 -0
  199. package/dist-android/static/97.js +2 -0
  200. package/dist-android/static/97.js.map +1 -0
  201. package/dist-android/static/98.js +2 -0
  202. package/dist-android/static/98.js.map +1 -0
  203. package/dist-android/static/99.js +2 -0
  204. package/dist-android/static/99.js.map +1 -0
  205. package/dist-android/static/app.css +2 -0
  206. package/dist-android/static/app.css.map +1 -0
  207. package/dist-android/static/app.js +80 -0
  208. package/dist-android/static/app.js.map +1 -0
  209. package/dist-android/static/batchleft.png +0 -0
  210. package/dist-android/static/batchright.png +0 -0
  211. package/dist-android/static/bluemainbg.jpg +0 -0
  212. package/dist-android/static/config.json +7 -0
  213. package/dist-android/static/denglu.png +0 -0
  214. package/dist-android/static/glyphicons-halflings-regular.eot +0 -0
  215. package/dist-android/static/glyphicons-halflings-regular.svg +288 -0
  216. package/dist-android/static/glyphicons-halflings-regular.ttf +0 -0
  217. package/dist-android/static/glyphicons-halflings-regular.woff +0 -0
  218. package/dist-android/static/glyphicons-halflings-regular.woff2 +0 -0
  219. package/dist-android/static/huangtengbiaozhi.png +0 -0
  220. package/dist-android/static/jingyin.jpg +0 -0
  221. package/dist-android/static/login_bg.jpg +0 -0
  222. package/dist-android/static/login_title.png +0 -0
  223. package/dist-android/static/login_title1.png +0 -0
  224. package/dist-android/static/loginbg.jpg +0 -0
  225. package/dist-android/static/loginlogo.png +0 -0
  226. package/dist-android/static/main_logo.png +0 -0
  227. package/dist-android/static/mainbg.jpg +0 -0
  228. package/dist-android/static/menulogo.png +0 -0
  229. package/dist-android/static/newmainbg.jpg +0 -0
  230. package/dist-android/static/psicon.png +0 -0
  231. package/dist-android/static/singleleft.png +0 -0
  232. package/dist-android/static/singleright.png +0 -0
  233. package/dist-android/static/treeopen.png +0 -0
  234. package/dist-android/static/treeout.png +0 -0
  235. package/dist-android/static/treeset.png +0 -0
  236. package/dist-android/static/usericon.png +0 -0
  237. package/dist-android/static/workflow_apply.json +766 -0
  238. package/dist-android/static/xinxi.png +0 -0
  239. package/dist-android/static//344/277/256/346/224/271/345/257/206/347/240/201.png +0 -0
  240. 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
  241. package/dist-android/static//345/257/274/345/207/272/346/225/260/346/215/256.png +0 -0
  242. package/dist-android/static//346/270/205/347/251/272/346/225/260/346/215/256.png +0 -0
  243. package/index.html +26 -17
  244. package/package.json +13 -7
  245. package/src/App.vue +11 -114
  246. package/src/apply.js +49 -157
  247. package/src/applyAndroid.js +41 -49
  248. package/src/bootstrap/fonts//346/261/211/344/273/252/350/217/261/345/277/203/344/275/223/347/256/200.ttf +0 -0
  249. package/src/bootstrap/guandao1.png +0 -0
  250. package/src/bootstrap/less/aofeng/animate.min.css +11 -0
  251. package/src/bootstrap/less/aofeng/standard.less +2121 -0
  252. package/src/bootstrap/less/aofeng/themeOne/BinaryTemplate.less +686 -0
  253. package/src/bootstrap/less/aofeng/themeOne/loginStyle.less +1586 -0
  254. package/src/bootstrap/less/aofeng/themeOne/systemStyle.less +2650 -0
  255. package/src/bootstrap/less/aofeng/themeOne.less +14 -0
  256. package/src/bootstrap/less/aofeng/themeTwo/newStyle1.less +415 -0
  257. package/src/bootstrap/less/aofeng/themeTwo.less +3 -0
  258. package/src/bootstrap/less/bootstrap.less +9 -0
  259. package/src/bootstrap/less/forms.less +2 -2
  260. package/src/bootstrap/less/glyphicons.less +2 -2
  261. package/src/bootstrap/less/less.7z +0 -0
  262. package/src/bootstrap/less/manageStyle/manageChile.less +180 -0
  263. package/src/bootstrap/less/manageStyle/manageStyle.less +1102 -0
  264. package/src/bootstrap/less/manageStyle/qinhuaStyle.less +116 -0
  265. package/src/bootstrap/less/manageStyle/safeStyle.less +498 -0
  266. package/src/bootstrap/less/manageStyle/telephoneanaly.less +92 -0
  267. package/src/bootstrap/less/navs.less +2 -3
  268. package/src/bootstrap/less/stand.less +207 -0
  269. package/src/bootstrap/less/standard.less +503 -0
  270. package/src/bootstrap/less/systemStyle.less +860 -0
  271. package/src/bootstrap/less/themeOne.less +36 -0
  272. package/src/bootstrap/less/themeTwo.less +29 -0
  273. package/src/bootstrap/less/variables.less +2 -1
  274. package/src/components/Util.js +4 -0
  275. package/src/components/app_apply/AppChargeManagement.vue +637 -0
  276. package/src/components/app_apply/ApplyApp.vue +5 -65
  277. package/src/components/app_apply/ApplyDownList.vue +2 -2
  278. package/src/components/app_apply/ApplyInfo.vue +1 -1
  279. package/src/components/app_apply/ApplyToDoList.vue +6 -42
  280. package/src/components/app_apply/ApplyUserInfo.vue +1 -1
  281. package/src/components/app_apply/FieldExploration.vue +2 -2
  282. package/src/components/app_apply/PlaceControler.vue +3 -7
  283. package/src/components/app_apply/ServiceControl.vue +11 -755
  284. package/src/components/app_apply/ServiceView.vue +16 -363
  285. package/src/components/app_apply/Ventilation.vue +2 -2
  286. package/src/components/image/doc.jpg +0 -0
  287. package/src/components/image/excel.jpg +0 -0
  288. package/src/components/image/pdf.jpg +0 -0
  289. package/src/components/image//345/233/276/345/261/20212.png +0 -0
  290. package/src/components/image//345/233/276/345/261/20213.png +0 -0
  291. package/src/components/image//345/233/276/345/261/20216.png +0 -0
  292. package/src/components/image//345/244/232/350/276/271/345/275/2422.png +0 -0
  293. package/src/components/image//345/244/232/350/276/271/345/275/2422/346/213/267/350/264/235.png +0 -0
  294. package/src/components/image//346/244/255/345/234/2062.png +0 -0
  295. package/src/components/image//346/244/255/345/234/2065.png +0 -0
  296. package/src/components/image//346/244/255/345/234/2065/346/213/267/350/264/235.png +0 -0
  297. package/src/components/image//346/244/255/345/234/2065/346/213/267/350/264/2352.png +0 -0
  298. package/src/components/image//346/244/255/345/234/2065/346/213/267/350/264/2353.png +0 -0
  299. package/src/components/image//347/273/2044.png +0 -0
  300. package/src/components/image//347/273/2045.png +0 -0
  301. package/src/components/image//347/273/2046.png +0 -0
  302. package/src/components/image//350/257/235/345/212/241/347/273/237/350/256/241/346/225/260/346/215/256/345/261/225/347/244/272.png +0 -0
  303. package/src/components/product/ApplyCharge/ApplyChargeList.vue +251 -0
  304. package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +30 -0
  305. package/src/components/product/Function/InstallFunction.vue +120 -101
  306. package/src/components/product/Function/InstallInfoSelect.vue +267 -212
  307. package/src/components/product/Function/Service/FunctionServiceControl.vue +206 -579
  308. package/src/components/product/Function/StopApplyCrrdList.vue +176 -0
  309. package/src/components/product/Function/functions/ApplyRecordCancel.vue +81 -114
  310. package/src/components/product/Function/functions/StopInstall.vue +76 -92
  311. package/src/components/product/Process/ExplorationSelect.vue +377 -463
  312. package/src/components/product/Process/ExplorationUser.vue +101 -110
  313. package/src/components/product/Process/Processes/InstallationDetails.vue +513 -0
  314. package/src/components/product/Process/Processes/UserFireInfo.vue +409 -0
  315. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +1555 -0
  316. package/src/components/product/Process/Processes/addressAndUserinfoManagementPro.vue +1221 -0
  317. package/src/components/product/Process/Processes/chargeManagement.vue +540 -0
  318. package/src/components/product/Process/Processes/devicesDetails.vue +834 -0
  319. package/src/components/product/Process/Processes/printCharge.vue +130 -0
  320. package/src/components/product/Process/Processes/recordcancel.vue +50 -0
  321. package/src/components/product/Process/Processes/selectUserinfo.vue +199 -0
  322. package/src/components/product/Process/Processes/splitMaterial.vue +358 -0
  323. package/src/components/product/Process/Processes/supplementalAgreement.vue +297 -0
  324. package/src/components/product/Process/Service/ServiceControl.vue +1222 -0
  325. package/src/components/product/Process/ShowBackReason.vue +21 -6
  326. package/src/components/product/ServiceView.vue +584 -605
  327. package/src/components/product/Stop/StopApply.vue +101 -0
  328. package/src/components/product/Stop/StopApplyList.vue +257 -0
  329. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +140 -153
  330. package/src/components/product/Supervisory/SupervisoryControl.vue +103 -139
  331. package/src/components/product/Supervisory/SupervisoryList.vue +145 -374
  332. package/src/components/product/Supervisory/SupervisoryhCart.vue +76 -75
  333. package/src/components/product/Test.vue +40 -0
  334. package/src/components/product/VueUtils/ApplyUpload.vue +261 -0
  335. package/src/components/product/VueUtils/Tree.vue +330 -0
  336. package/src/expandcss.less +571 -0
  337. package/src/main.js +8 -15
  338. package/src/stores/ApplyLoadParams.js +1 -2
  339. package/src/stores/PagedListLogic.js +173 -0
  340. package/static/images/lefticon//345/215/241/346/234/215/345/212/241/347/256/241/347/220/206.png +0 -0
  341. package/static/images/lefticon//345/221/274/345/217/253/347/263/273/347/273/237.png +0 -0
  342. package/static/images/lefticon//345/224/256/346/260/224/346/224/266/350/264/271.png +0 -0
  343. package/static/images/lefticon//345/233/276/345/261/2023/346/213/267/350/264/2354.png +0 -0
  344. package/static/images/lefticon//345/233/276/345/261/202577.png +0 -0
  345. package/static/images/lefticon//345/233/276/345/261/2028/346/213/267/350/264/23513.png +0 -0
  346. package/static/images/lefticon//345/256/211/346/243/200/346/237/245/347/234/213.png +0 -0
  347. package/static/images/lefticon//345/256/211/346/243/200/350/256/241/345/210/222.png +0 -0
  348. package/static/images/lefticon//345/276/256/344/277/241/346/234/215/345/212/241.png +0 -0
  349. package/static/images/lefticon//346/212/245/345/273/272/347/263/273/347/273/237.png +0 -0
  350. package/static/images/lefticon//346/212/245/350/241/250/346/237/245/350/257/242.png +0 -0
  351. package/static/images/lefticon//346/227/245/345/270/270/347/256/241/347/220/206.png +0 -0
  352. package/static/images/lefticon//346/234/272/350/241/250/347/256/241/347/220/206.png +0 -0
  353. package/static/images/lefticon//346/237/245/350/257/242/345/210/227/350/241/250.png +0 -0
  354. package/static/images/lefticon//346/241/243/346/241/210/347/256/241/347/220/206.png +0 -0
  355. package/static/images/lefticon//347/211/251/350/201/224/347/275/221/350/241/250.png +0 -0
  356. package/static/images/lefticon//347/237/251/345/275/2421183.png +0 -0
  357. package/static/images/lefticon//347/263/273/347/273/237/347/256/241/347/220/206.png +0 -0
  358. package/static/images/lefticon//347/263/273/347/273/237/350/256/276/347/275/256.png +0 -0
  359. package/static/images/lefticon//347/273/217/350/220/245/347/256/241/346/216/247.png +0 -0
  360. package/static/images/lefticon//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
  361. package/static/images/lefticon//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
  362. package/static/images/lefticon//350/217/234/345/215/225/344/274/270/347/274/251.png +0 -0
  363. package/static/images/lefticon//351/200/200/345/207/272/347/263/273/347/273/237.png +0 -0
  364. package/static/imgerror.jpg +0 -0
  365. package/static/newStyle/clear.png +0 -0
  366. package/static/newStyle/fife.png +0 -0
  367. package/static/newStyle/hidden.png +0 -0
  368. package/static/newStyle/label-clear.png +0 -0
  369. package/static/newStyle/left-img.png +0 -0
  370. package/static/newStyle/list_ok.png +0 -0
  371. package/static/newStyle/login-check.png +0 -0
  372. package/static/newStyle/login-con.png +0 -0
  373. package/static/newStyle/login-do.gif +0 -0
  374. package/static/newStyle/login-f.png +0 -0
  375. package/static/newStyle/login-info.png +0 -0
  376. package/static/newStyle/login-left.png +0 -0
  377. package/static/newStyle/login-org.png +0 -0
  378. package/static/newStyle/login-pwd.png +0 -0
  379. package/static/newStyle/login-user.png +0 -0
  380. package/static/newStyle/loginbg.gif +0 -0
  381. package/static/newStyle/loginbg1280.gif +0 -0
  382. package/static/newStyle/loginbg1366.gif +0 -0
  383. package/static/newStyle/setting.png +0 -0
  384. package/static/newStyle/setting1.png +0 -0
  385. package/static/newStyle/shirk.png +0 -0
  386. package/static/newStyle/stretch_bottom.png +0 -0
  387. package/static/newStyle/stretch_left.png +0 -0
  388. package/static/newStyle/stretch_right.png +0 -0
  389. package/static/newStyle/stretch_top.png +0 -0
  390. package/static/newStyle/system-off.png +0 -0
  391. package/ApplyClient.iml +0 -9
  392. package/src/assets//345/210/240/351/231/244.png +0 -0
  393. package/src/assets//346/212/245/350/243/205/344/270/232/345/212/241/347/253/226/345/261/2173.png +0 -0
  394. package/src/components/Utils.js +0 -301
  395. package/src/components/app_apply/AppBatchItem.vue +0 -501
  396. package/src/components/app_apply/AppImageUpload.vue +0 -402
  397. package/src/components/app_apply/PaperFeePic.vue +0 -867
  398. package/src/components/product/AllRecord.vue +0 -189
  399. package/src/components/product/Bill/BillGZK.vue +0 -78
  400. package/src/components/product/Bill/BillGZKMakeInfo.vue +0 -58
  401. package/src/components/product/Bill/BillGZKRecordInfo.vue +0 -199
  402. package/src/components/product/Bill/BillJLB.vue +0 -57
  403. package/src/components/product/Bill/BillJLBMakeInfo.vue +0 -37
  404. package/src/components/product/Bill/BillJLBRecordInfo.vue +0 -187
  405. package/src/components/product/Bill/BillKTK.vue +0 -57
  406. package/src/components/product/Bill/BillKTKMakeInfo.vue +0 -39
  407. package/src/components/product/Bill/BillKTKRecordInfo.vue +0 -193
  408. package/src/components/product/Bill/BillQRK.vue +0 -63
  409. package/src/components/product/Bill/BillQRKMakeInfo.vue +0 -79
  410. package/src/components/product/Bill/BillQRKRecordInfo.vue +0 -199
  411. package/src/components/product/Bill/BillSelect.vue +0 -66
  412. package/src/components/product/Bill/BillXSD.vue +0 -77
  413. package/src/components/product/Bill/BillXSDMakeInfo.vue +0 -206
  414. package/src/components/product/Bill/BillXSDRecordInfo.vue +0 -199
  415. package/src/components/product/Function/InstallInfoDown.vue +0 -78
  416. package/src/components/product/Function/functions/AddContract.vue +0 -256
  417. package/src/components/product/Function/functions/AllSelect.vue +0 -59
  418. package/src/components/product/Function/functions/InstallFee.vue +0 -661
  419. package/src/components/product/Function/functions/InstallFeeInfo.vue +0 -97
  420. package/src/components/product/Function/functions/PreparationFee.vue +0 -223
  421. package/src/components/product/Function/functions/PrestoreFee.vue +0 -630
  422. package/src/components/product/Function/functions/ReduceFee.vue +0 -143
  423. package/src/components/product/Function/functions/UpdateFee.vue +0 -229
  424. package/src/components/product/Function/functions/material_recording.vue +0 -237
  425. package/src/components/product/ImageUpload.vue +0 -575
  426. package/src/components/product/ImageUpload1.vue +0 -623
  427. package/src/components/product/Process/FireSelect.vue +0 -424
  428. package/src/components/product/Process/FireShunt.vue +0 -142
  429. package/src/components/product/Process/InstallationHouse.vue +0 -142
  430. package/src/components/product/Process/InstallationSelect.vue +0 -437
  431. package/src/components/product/Process/ModifyUserFiles.vue +0 -460
  432. package/src/components/product/Process/ProcessInfo/history_control.vue +0 -111
  433. package/src/components/product/Process/Processes/BatchItem.vue +0 -507
  434. package/src/components/product/Process/Processes/CustomerBuildingMessage.vue +0 -251
  435. package/src/components/product/Process/Processes/CustomerEquipmentMessage.vue +0 -172
  436. package/src/components/product/Process/Processes/CustomerMaterialMessage.vue +0 -773
  437. package/src/components/product/Process/Processes/CustomerRecordMessage.vue +0 -711
  438. package/src/components/product/Process/Processes/ProjectSettlement.vue +0 -298
  439. package/src/components/product/Process/Processes/ReceiveBatch.vue +0 -850
  440. package/src/components/product/Process/Processes/SendOrder.vue +0 -47
  441. package/src/components/product/Process/Processes/Service/GasStop.vue +0 -96
  442. package/src/components/product/Process/Processes/Service/ServiceControl.vue +0 -2112
  443. package/src/components/product/Process/applymaterialManage.vue +0 -369
  444. package/src/components/product/Statistics/ApplyPaySearch/ApplyCheckBill.vue +0 -420
  445. package/src/components/product/Statistics/ApplyPaySearch/ApplyFinishSearch.vue +0 -365
  446. package/src/components/product/Statistics/ApplyPaySearch/ApplyPayBill4.vue +0 -582
  447. package/src/components/product/Statistics/ApplyPaySearch/ApplyPaySearch.vue +0 -363
  448. package/src/components/product/Statistics/ApplyPaySearch/MaterialSummary.vue +0 -373
  449. package/src/components/product/Statistics/ApplyStatisticsROOT.vue +0 -51
  450. package/src/components/product/Supervisory/SupervisoryBaseInfo.vue +0 -126
  451. package/src/components/product/VueUtils/ApplyAvatarUpload.vue +0 -125
  452. package/src/components/product/VueUtils/TabButton.vue +0 -149
  453. package/src/components/product/VueUtils/Tabs.vue +0 -67
  454. package/src/components/product/VueUtils/rightview/InstallCardList2.vue +0 -258
  455. package/src/components/product/VueUtils/rightview/carddetail/BuildFeeDetail2.vue +0 -77
  456. package/src/components/product/VueUtils/rightview/carddetail/ChangeFeeDetail2.vue +0 -116
  457. package/src/components/product/VueUtils/rightview/carddetail/ReduceFeeDetail2.vue +0 -77
  458. package/src/components/product/VueUtils/rightview/carddetail/StopApplyDetail2.vue +0 -70
  459. package/src/components/product/material.vue +0 -32
@@ -0,0 +1,1222 @@
1
+ <template>
2
+
3
+ <div class="auto clearfix">
4
+ <show-back-reason :selectdata="selectdata"></show-back-reason>
5
+ <stop-install :data="show_data" v-if="stope_view"></stop-install>
6
+ </div>
7
+
8
+ <service-view v-ref:serviceview :data="show_data" v-if="showview"></service-view>
9
+
10
+ </template>
11
+ <script>
12
+ import Vue from 'vue'
13
+ import {HttpResetClass} from 'vue-client'
14
+ import {getNowDate,isEmpty} from '../../../Util'
15
+ // Date格式化
16
+ Date.prototype.Format = function (fmt) {
17
+ var o = {
18
+ "M+": this.getMonth() + 1, //月份
19
+ "d+": this.getDate(), //日
20
+ "H+": this.getHours(), //小时
21
+ "m+": this.getMinutes(), //分
22
+ "s+": this.getSeconds(), //秒
23
+ "q+": Math.floor((this.getMonth() + 3) / 3), //季度
24
+ "S": this.getMilliseconds() //毫秒
25
+ };
26
+ if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
27
+ for (var k in o)
28
+ if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
29
+ return fmt;
30
+ }
31
+
32
+ export default {
33
+ title: '报建流程业务控制层',
34
+ props: ['selectdata'],
35
+ data() {
36
+ return {
37
+ data: null, // 数据库数据,json配置文件数据的数据集合
38
+ json_datas: null, // Json配置文件集合
39
+ showview: false, // 控制显示service-view组件
40
+ show_data: null, // 给view层显示的数据
41
+ stope_view: false
42
+ }
43
+
44
+ },
45
+ created () {
46
+ this.refurbish()
47
+ },
48
+ ready(){
49
+ },
50
+ methods: {
51
+ // 组件初始化操作
52
+ refurbish() {
53
+ this.json_datas = this.$workflow_vue
54
+ let sum = 0
55
+ let jsonData = {}
56
+ if (!this.json_datas || !this.json_datas.activitys || this.json_datas.activitys.length == 0) {
57
+ this.$showMessage("网络故障,请刷新页面")
58
+ return
59
+ }
60
+ for (let i = 0; i < this.json_datas.activitys.length; i++) {
61
+ if (this.selectdata.defname == this.json_datas.activitys[i].title) {
62
+ jsonData = this.json_datas.activitys[i] // 拿到当前节点的json配置信息
63
+ sum++ // 节点名一样的个数
64
+ }
65
+ }
66
+ if (sum == 1) {
67
+ this.data = null
68
+ this.data = jsonData
69
+ // selectdata 填充 data
70
+ this.data = Object.assign({}, this.data, this.selectdata)
71
+ this.initializeJSON()
72
+ } else if (sum == 0) {
73
+ this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
74
+ } else {
75
+ this.$showMessage(`在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置:${sum}个`)
76
+ }
77
+ },
78
+ // json配置数据处理
79
+ async initializeJSON() {
80
+ // 有默认值,value就给默认值,没有就是null
81
+ this.data.fields.forEach(item => {
82
+ if (!item.value) {
83
+ if (item.value === 0) {
84
+ item.value = 0
85
+ } else {
86
+ item.value = null
87
+ }
88
+ }
89
+ if (item.default || item.default == 0) {
90
+ if(item.type === 'datepicker'){
91
+ item.value = ''
92
+ }else {
93
+ item.value = item.default
94
+ }
95
+ }
96
+ if (this.selectdata[item.field]) {
97
+ // 将json字符串格式化赋值给value
98
+ if (String(this.selectdata[item.field]).startsWith("{")) {
99
+ item.value = JSON.parse(this.selectdata[item.field])
100
+ this.selectdata[item.field] = JSON.parse(this.selectdata[item.field])
101
+ } else {
102
+ item.value = this.selectdata[item.field]
103
+ }
104
+ } else {
105
+ if (this.selectdata[item.field] === 0) {
106
+ item.value = 0
107
+ }
108
+ }
109
+
110
+ // datepicker 没有值给当时值
111
+ if (item.type === 'datepicker' && !item.value && item.default) {
112
+ item.value = new Date().Format('yyyy-MM-dd HH:mm:ss')
113
+ }
114
+
115
+ // 如果配置类型为select,优先从参数列表获取options
116
+ if (item.type === 'select') {
117
+ let temp = null
118
+
119
+ temp = this.$appdata.getParam(item.label)
120
+
121
+ if (temp && temp.length > 0 && item.label) {
122
+ item.options = temp
123
+ } else {
124
+ if (item.paramLabel) {
125
+ temp = this.$appdata.getParam(item.paramLabel)
126
+ if (temp && temp.length > 0) {
127
+ item.options = temp
128
+ }
129
+ }
130
+ }
131
+ }
132
+ })
133
+
134
+ // 控制组件
135
+ if (this.data.components) {
136
+ this.data.components.forEach(item => {
137
+ if (!item.mark) {
138
+ item.mark = 0
139
+ }
140
+ })
141
+ }
142
+
143
+ // 初始化 fields 可对数据进行特殊处理
144
+ this.initializeFields()
145
+
146
+ // 初始化 buttons_fields
147
+ for (let i = 0; i < this.data.buttons.length; i++) {
148
+ // 下发按钮相关配置
149
+ if (this.data.buttons[i].button_name === '下发') {
150
+ if (this.data.buttons[i].button_fields && this.data.buttons[i].button_fields.length === 1) {
151
+ if (this.data.buttons[i].source){
152
+ let http = new HttpResetClass()
153
+ let res = await http.load('POST', 'rs/search', {
154
+ source: this.data.buttons[i].source,
155
+ userid: this.$login.f.id
156
+ }, {resolveMsg: null, rejectMsg: null})
157
+
158
+ let options = []
159
+ for (let i = 0; i < res.data.length; i++) {
160
+ options.push(
161
+ {
162
+ "label": res.data[i].name,
163
+ "value": res.data[i].id
164
+ }
165
+ )
166
+ }
167
+ this.data.buttons[i].button_fields[0]['options'] = options
168
+ } else {
169
+ this.$showMessage("请配置获取人员表达式")
170
+ }
171
+ } else {
172
+ this.$showMessage("下发按钮必须满足 当且仅当一个字段")
173
+ }
174
+ }
175
+ if (this.data.buttons[i].button_fields) {
176
+ this.data.buttons[i].button_fields.forEach(x => {
177
+ // 如果配置类型为select,优先从参数列表获取options
178
+ if (x.type === 'select' && this.$appdata.getParam(x.label)) {
179
+ x.options = this.$appdata.getParam(x.label).trim()
180
+ }
181
+ })
182
+ }
183
+ }
184
+
185
+ // onetomany 数据获取
186
+ if (this.data.onetomany) {
187
+ for (let index = 0; index < this.data.onetomany.length; index++) {
188
+ let res = null
189
+ if (!this.data.onetomany[index].queryEvent || this.data.onetomany[index].queryEvent === 'default'){
190
+ let http = new HttpResetClass()
191
+ let data = {
192
+ tablename: this.data.onetomany[index].tables[0],
193
+ condition: `f_process_id='${this.selectdata.f_process_id}'`
194
+ }
195
+ res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
196
+ resolveMsg: null,
197
+ rejectMsg: 'onetomany查询失败'
198
+ })
199
+ } else {
200
+ res = this[this.data.onetomany[index].queryEvent]()
201
+ }
202
+
203
+ // 初始化 onetomany
204
+ this.data.onetomany[index].rows = res.data
205
+
206
+ // 初始化onetomany中的fields
207
+ for (let j = 0; j < this.data.onetomany[index].fields.length; j++) {
208
+ if (!this.data.onetomany[index].fields[j].value) {
209
+ if (this.data.onetomany[index].fields[j].value === 0) {
210
+ this.data.onetomany[index].fields[j].value = 0
211
+ } else {
212
+ this.data.onetomany[index].fields[j].value = null
213
+ }
214
+ }
215
+ if (this.data.onetomany[index].fields[j].default || this.data.onetomany[index].fields[j].default == 0) {
216
+ this.data.onetomany[index].fields[j].value = this.data.onetomany[index].fields[j].default
217
+ }
218
+ // 如果配置类型为select,优先从参数列表获取options
219
+ if (this.data.onetomany[index].fields[j].type === 'select') {
220
+ let temp = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
221
+ if (temp && temp.length > 0) {
222
+ this.data.onetomany[index].fields[j].options = temp
223
+ }
224
+ }
225
+ }
226
+ }
227
+ }
228
+
229
+ // 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
230
+ let temp = JSON.parse(JSON.stringify(this.data))
231
+
232
+ this.show_data = temp
233
+ this.$nextTick(() => {
234
+ this.showview = true
235
+ })
236
+ // 初始化加载
237
+ // ========================= 中盛 =================================
238
+
239
+ if (this.selectdata.defname === '报建登记') {
240
+ let http = new HttpResetClass()
241
+ let condition = "f_filialeid = " + this.$login.f.orgid
242
+ let res = await http.load('POST','rs/sql/apply_singleTable',{data:{tablename:'t_area',condition:condition}}, {resolveMsg: null, rejectMsg: null})
243
+ for (let i = 0; i < this.show_data.fields.length; i++) {
244
+
245
+ if (this.show_data.fields[i].label == '街道') {
246
+ let data = []
247
+ let array = []
248
+ data = res.data.map(item => {
249
+ return item.f_street;
250
+ })
251
+ for (let q = 0; q < data.length; q++) {
252
+ let arraydata = {
253
+ 'label': data[q],
254
+ 'value': data[q]
255
+ }
256
+ if (array.length != 0) {
257
+ for (let w = 0; w < array.length; w++) {
258
+ if (array[w].label == data[q]) {
259
+ break
260
+ }
261
+ while (w == array.length - 1) {
262
+ array.push(arraydata)
263
+ break
264
+ }
265
+ }
266
+ } else {
267
+ array.push(arraydata)
268
+ }
269
+ }
270
+ this.show_data.fields[i].options = array
271
+ console.log("街道选择框数据:" + JSON.stringify(this.show_data.fields[i].options))
272
+ }
273
+ if (this.show_data.fields[i].label == '小区') {
274
+ let data = []
275
+ let array = []
276
+ data = res.data.map(item => {
277
+ return item.f_residential_area;
278
+ })
279
+ for (let q = 0; q < data.length; q++) {
280
+ let arraydata = {
281
+ 'label': data[q],
282
+ 'value': data[q]
283
+ }
284
+ if (array.length != 0) {
285
+ for (let w = 0; w < array.length; w++) {
286
+ if (array[w].label == data[q]) {
287
+ break
288
+ }
289
+ while (w == array.length - 1) {
290
+ array.push(arraydata)
291
+ break
292
+ }
293
+ }
294
+ } else {
295
+ array.push(arraydata)
296
+ }
297
+ }
298
+ this.show_data.fields[i].options = array
299
+ console.log("小区选择框数据:" + JSON.stringify(this.show_data.fields[i].options))
300
+ }
301
+ }
302
+ }
303
+ if (this.selectdata.defname === '施工') {
304
+ // for (let i = 0; i < this.show_data.fields.length; i++) {
305
+ // if (this.show_data.fields[i].label == '工程状态') {
306
+ // this.show_data.fields[i].value = ''
307
+ // }
308
+ // }
309
+ for (const item of this.show_data.fields) {
310
+ if (item.label === '工程状态' && !item.value) {
311
+ return item.value = '未开工'
312
+ }
313
+ }
314
+ }
315
+
316
+ },
317
+ // 初始化fields值
318
+ initializeFields() {
319
+
320
+ },
321
+ // 金额转大写
322
+ smalltoBIG(n) {
323
+ let fraction = ['角', '分'];
324
+ let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
325
+ let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
326
+ let head = n < 0 ? '欠' : '';
327
+ n = Math.abs(n);
328
+
329
+ let s = '';
330
+
331
+ for (var i = 0; i < fraction.length; i++) {
332
+ s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
333
+ }
334
+ s = s || '整';
335
+ n = Math.floor(n);
336
+
337
+ for (var i = 0; i < unit[0].length && n > 0; i++) {
338
+ let p = '';
339
+ for (var j = 0; j < unit[1].length && n > 0; j++) {
340
+ p = digit[n % 10] + unit[1][j] + p;
341
+ n = Math.floor(n / 10);
342
+ }
343
+ s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
344
+ }
345
+ return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
346
+ },
347
+ getLableValue(label) {
348
+ for (const item of this.show_data.fields) {
349
+ if (item.label === label && item.type !== 'number') {
350
+ return item.value || ''
351
+ }
352
+ if (item.label === label && item.type === 'number') {
353
+ return item.value || 0
354
+ }
355
+ }
356
+ },
357
+ setLabelValue(label, value) {
358
+ for (const item of this.show_data.fields) {
359
+ if (item.label === label) {
360
+ item.value = value
361
+ }
362
+ }
363
+ },
364
+ setLabelOptions(label, options) {
365
+ for (const item of this.show_data.fields) {
366
+ if (item.label === label) {
367
+ item.options = options
368
+ }
369
+ }
370
+ },
371
+ showLabels(...labels) {
372
+ for (const item of this.show_data.fields) {
373
+ if (labels.includes(item.label)) {
374
+ item.hidden = false
375
+ }
376
+ }
377
+ },
378
+ hideLabels(...labels) {
379
+ for (const item of this.show_data.fields) {
380
+ if (labels.includes(item.label)) {
381
+ item.hidden = true
382
+ }
383
+ }
384
+ },
385
+ requiredLabels(...labels) {
386
+ for (const item of this.show_data.fields) {
387
+ if (labels.includes(item.label)) {
388
+ item.required = true
389
+ }
390
+ }
391
+ },
392
+ electiveLabels(...labels) {
393
+ for (const item of this.show_data.fields) {
394
+ if (labels.includes(item.label)) {
395
+ item.required = false
396
+ }
397
+ }
398
+ },
399
+ readonlyLabels(...labels) {
400
+ for (const item of this.show_data.fields) {
401
+ if (labels.includes(item.label)) {
402
+ item.readonly = true
403
+ item.disabled = true
404
+ }
405
+ }
406
+ },
407
+ readwriteLabels(...labels) {
408
+ for (const item of this.show_data.fields) {
409
+ if (labels.includes(item.label)) {
410
+ item.readonly = false
411
+ item.disabled = false
412
+ }
413
+ }
414
+ },
415
+ showButtons(...buttons) {
416
+ for (const item of this.show_data.buttons) {
417
+ if (buttons.includes(item.button_name)) {
418
+ item.hidden = false
419
+ }
420
+ }
421
+ },
422
+ hideButtons(...buttons) {
423
+ for (const item of this.show_data.buttons) {
424
+ if (buttons.includes(item.button_name)) {
425
+ item.hidden = true
426
+ }
427
+ }
428
+ },
429
+ // 获取区县
430
+ async getPcd() {
431
+ let data = {
432
+ tablename: 't_pcd',
433
+ condition: `f_filialeid = '${this.$login.f.orgid}'`
434
+ }
435
+ let http = new HttpResetClass()
436
+ let res = await http.load(
437
+ 'POST',
438
+ `rs/sql/singleTable`,
439
+ {data: data},
440
+ {resolveMsg: null, rejectMsg: '区县查询失败!!!'}
441
+ )
442
+
443
+ let pcd = res.data.map(item => {
444
+ return {
445
+ label: item.f_pcd,
446
+ value: item.f_pcd
447
+ }
448
+ })
449
+ this.setLabelOptions('区域',pcd)
450
+ },
451
+ // 地址关联
452
+ addressInitialization() {
453
+ this.$getConfig(this, 'UserAddress')
454
+
455
+ let f_address_type = this.show_data.f_address_type
456
+
457
+ for (const item of this.show_data.fields) {
458
+ if (f_address_type === '民用地址') {
459
+ if (item.label === '区域' || item.label === '街道' || item.label === '小区' || item.label === '门牌号') {
460
+ item.hidden = false
461
+ item.required = true
462
+ }
463
+ if (item.label === '楼号' || item.label === '单元' || item.label === '楼层') {
464
+ item.hidden = false
465
+ item.required = false
466
+ }
467
+ if (item.label === '地址') {
468
+ item.readonly = true
469
+ }
470
+ }
471
+ if (f_address_type === '特殊地址') {
472
+ if (item.label === '区域' || item.label === '街道') {
473
+ item.hidden = false
474
+ item.required = true
475
+ }
476
+ if (item.label === '小区') {
477
+ item.hidden = true
478
+ item.required = false
479
+ }
480
+ if (item.label === '楼号' || item.label === '单元' || item.label === '楼层' || item.label === '门牌号') {
481
+ item.hidden = true
482
+ item.required = false
483
+ }
484
+ if (item.label === '地址') {
485
+ item.readonly = false
486
+ }
487
+ }
488
+
489
+ if (this.show_data.f_apply_source === '线下发起' && item.label === '预约地址') {
490
+ item.hidden = true
491
+ }
492
+ }
493
+ },
494
+ async streetChange() {
495
+ if (isEmpty(this.show_data.f_street)) {
496
+ return
497
+ }
498
+
499
+ let data = {
500
+ tablename: 't_area',
501
+ condition: `f_filialeid = '${this.$login.f.orgid}' and f_street = '${this.show_data.f_street}'`
502
+ }
503
+ let http = new HttpResetClass()
504
+ let res = await http.load(
505
+ 'POST',
506
+ `rs/sql/singleTable`,
507
+ {data: data},
508
+ {resolveMsg: null, rejectMsg: '小区查询失败!!!'}
509
+ )
510
+
511
+ this.setLabelOptions('小区', res.data.map(item => {
512
+ return {
513
+ label: item.f_residential_area,
514
+ value: item.f_residential_area
515
+ }
516
+ }))
517
+ },
518
+ async pcdChange() {
519
+ if (isEmpty(this.show_data.f_pcd)) {
520
+ return
521
+ }
522
+
523
+ let data = {
524
+ tablename: 't_street',
525
+ condition: `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
526
+ }
527
+ let f_address_type = this.getLableValue('地址类型')
528
+
529
+ if (f_address_type === '民用地址') {
530
+ data.condition = `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
531
+ }
532
+
533
+ let http = new HttpResetClass()
534
+ let res = await http.load(
535
+ 'POST',
536
+ `rs/sql/singleTable`,
537
+ {data: data},
538
+ {resolveMsg: null, rejectMsg: '街道查询失败!!!'}
539
+ )
540
+
541
+ this.setLabelOptions('街道', res.data.map(item => {
542
+ return {
543
+ label: item.f_street,
544
+ value: item.f_street
545
+ }
546
+ }))
547
+ },
548
+ async buttonBefore(model) {
549
+ if (model.defname === '报建登记' && model.button.button_name === '提交') {
550
+
551
+ if (model.f_is_user === '是') {
552
+ if (isEmpty(model.f_user_name) || isEmpty(model.f_phone) || isEmpty(model.f_address)) {
553
+ throw '用户信息未填写完整,无法提交!!!'
554
+ }
555
+ }
556
+ }
557
+ if (
558
+ model.button.button_name === '提交' &&
559
+ model.defname === '通气点火' &&
560
+ (
561
+ model.f_apply_type === '散户报建' ||
562
+ model.f_apply_type === '工商户报建'
563
+ ) &&
564
+ model.f_surplus_money > 0
565
+ ) {
566
+ throw '未结金额大于0,无法提交!!!'
567
+ }
568
+ if (model.defname === '验收是否合格' && model.button.button_name === '提交') {
569
+ let http = new HttpResetClass()
570
+ let data = {
571
+ f_process_id: model.f_process_id
572
+ }
573
+ let res = await http.load('POST', 'rs/sql/notInstalled', {data: data}, {resolveMsg: null, rejectMsg: null})
574
+ if (res.data[0].num > 0) {
575
+ throw `还有${res.data[0].num}户未安装,无法提交`
576
+ }
577
+ }
578
+ return model
579
+ },
580
+ // ========================= 武安 =================================
581
+ // 地址类型变化
582
+ addressType() {
583
+ for (const item of this.show_data.fields) {
584
+ if (item.label === '小区' && this.show_data.f_address_type === '民用地址') {
585
+ item.hidden = false
586
+ item.required = true
587
+ }
588
+ if (item.label === '小区' && this.show_data.f_address_type === '特殊地址') {
589
+ item.required = false
590
+ }
591
+ if (
592
+ (
593
+ item.label === '门牌号'
594
+ ) && this.show_data.f_address_type === '民用地址'
595
+ ) {
596
+ item.required = true
597
+ item.hidden = false
598
+ item.value = null
599
+ }
600
+ if (
601
+ (
602
+ item.label === '楼号' ||
603
+ item.label === '单元' ||
604
+ item.label === '楼层'
605
+ ) && this.show_data.f_address_type === '民用地址'
606
+ ) {
607
+ item.required = false
608
+ item.hidden = false
609
+ item.value = null
610
+ }
611
+ if (
612
+ (
613
+ item.label === '楼号' ||
614
+ item.label === '单元' ||
615
+ item.label === '楼层' ||
616
+ item.label === '门牌号'
617
+ ) && this.show_data.f_address_type === '特殊地址'
618
+ ) {
619
+ item.required = false
620
+ item.hidden = true
621
+ item.value = null
622
+ }
623
+ }
624
+ this.getPcd()
625
+ }
626
+ // ========================= 武安 =================================
627
+ },
628
+ events: {
629
+ // ========================= 武安 =================================
630
+ // ========================= 武安 =================================
631
+ 'openAddModel'(index) {
632
+ // ========================= 武安 =================================
633
+ // ========================= 武安 =================================
634
+ },
635
+ // 获取view层button事件/
636
+ async 'button'(model) {
637
+ // 修改提交数据
638
+ model = Object.assign({}, this.selectdata, model)
639
+ // 点击重置按钮就重置数据
640
+ if (model.button.button_name === '重置') {
641
+ this.$dispatch('breakControl', this.data)
642
+ return
643
+ }
644
+ // 提交前置
645
+ try {
646
+ model = await this.buttonBefore(model)
647
+ } catch (e) {
648
+ this.$showAlert(e, 'warning', 3000)
649
+ return
650
+ }
651
+ let http = new HttpResetClass()
652
+ let requestData = {
653
+ tables: this.data.tables,
654
+ start_activity: this.$workflow_vue.start_activity,
655
+ model: model,
656
+ loginUser: this.$login.f,
657
+ workflow_gxmlfilename: this.$workflow_vue.workflow_xmlfilename
658
+ }
659
+ console.log("gwfwe",this.selectdata)
660
+ // 下发,提交,保存,退回通用业务后台处理logic
661
+ let url = 'rs/logic/ApplyProductService'
662
+ let res = await http.load('POST', url, {data: requestData}, {resolveMsg: null, rejectMsg: '数据保存失败'})
663
+ if (res.data.code === 200) {
664
+ this.$dispatch('search')
665
+ } else {
666
+ if (res.data.msg) {
667
+ this.$showMessage(res.data.msg)
668
+ }
669
+ }
670
+ },
671
+ async 'initializtionView'() {
672
+ // ========================= 武安 =================================
673
+ this.addressType()
674
+ // ========================= 武安 =================================
675
+ },
676
+ // 失去焦点出触发事件
677
+ async 'onchange'(index) {
678
+ console.log('失去焦点')
679
+ // ========================= 武安 =================================
680
+ if (this.show_data.defname === '报建登记' || this.show_data.defname === '业务申请'){
681
+ if (this.show_data.fields[index].label === '是否具备安装条件') {
682
+ for (const button of this.show_data.buttons) {
683
+ if (this.show_data.fields[index].value === '否'&& button.button_name === '退回') {
684
+ button.hidden = false
685
+ }else {
686
+ button.hidden = true
687
+ }
688
+ }
689
+ }
690
+ if (this.show_data.fields[index].label === '地址类型'){
691
+ this.addressType()
692
+ }
693
+ // if (this.show_data.fields[index].label === '街道'){
694
+ // console.log('-----------添加街道-----------')
695
+ // if (this.show_data.fields[index].value === null || this.show_data.fields[index].value === '') {
696
+ // this.show_data.fields[index].value = null
697
+ // this.$showAlert('街道地址不能为空!!!', 'warning', 3000)
698
+ // return
699
+ // }
700
+ // let http = new HttpResetClass()
701
+ // let data = {
702
+ // f_adjustable_id: '', // 调压箱编号
703
+ // f_orgid: this.$login.f.orgid, // 组织id
704
+ // f_orgname: this.$login.f.orgs, // 组织名
705
+ // f_pcd: '河北省邯郸市武安市', // 省市区
706
+ // f_pcd_id: 8, // 省市区id
707
+ // // f_pcd_id: 124, // 50.4测试
708
+ // f_slice_area: '', // 片区
709
+ // f_operatorid: this.$login.f.id, // 操作人id
710
+ // f_operator: this.$login.f.name, // 操作人
711
+ // f_filialeid: this.$login.f.orgid, // 创建地址所属分公司(默认当前操作人)
712
+ // f_street: this.show_data.fields[index].value.trim(), // 地址
713
+ // f_comments: '报建系统自动创建' // 备注
714
+ // }
715
+ // try {
716
+ // let res = await http.load('POST', 'rs/logic/address_updatestreet', {data: data}, {
717
+ // resolveMsg: null,
718
+ // rejectMsg: null
719
+ // })
720
+ // } catch (e) {
721
+ // if (e.status === 635) {
722
+ // this.$showAlert('此街道已存在!!!', 'warning', 3000)
723
+ // } else {
724
+ // this.$showAlert('自动添加街道失败,请手动添加!!!', 'danger', 3000)
725
+ // }
726
+ // }
727
+ // }
728
+ // if (this.show_data.fields[index].label === '小区') {
729
+ // if (this.show_data.fields[index].value === null || this.show_data.fields[index].value === '') {
730
+ // this.show_data.fields[index].value = null
731
+ // this.$showAlert('小区名称不能为空!!!', 'warning', 3000)
732
+ // return
733
+ // }
734
+ // // 先查询街道
735
+ // let street = null
736
+ // for (const item of this.show_data.fields) {
737
+ // if (item.label === '街道') {
738
+ // if (item.value.trim() === null || item.value.trim() === '') {
739
+ // this.show_data.fields[index].value = null
740
+ // this.$showAlert('请先录入街道信息,才能录入小区信息!!!', 'warning', 3000)
741
+ // return
742
+ // }
743
+ // let http = new HttpResetClass()
744
+ // let data = {
745
+ // 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()}'`
746
+ // }
747
+ // let res = await http.load('POST', 'rs/sql/address_getstreetlist', {data: data}, {
748
+ // resolveMsg: null,
749
+ // rejectMsg: null
750
+ // })
751
+ // if (res.data.length > 0) {
752
+ // street = res.data[0]
753
+ // } else {
754
+ // this.show_data.fields[index].value = null
755
+ // this.$showAlert(`【${item.value}】街道不存在,请手动添加或重新输入街道信息,在录入小区信息!!!`, 'warning', 3000)
756
+ // }
757
+ // }
758
+ // }
759
+ // console.log('-----------添加小区-----------')
760
+ // let data = {
761
+ // f_linkname: '', // 联系人
762
+ // f_linkphone: '', // 联系电话
763
+ // f_adjustable_id: '', // 调压箱编号
764
+ // f_user_type: '', // 用户类型
765
+ // f_gasproperties: '', // 用气性质
766
+ // f_meter_brand: '', // 气表品牌
767
+ // f_price_name: '', // 气价名称
768
+ // f_price_type: '', // 气价类型
769
+ // f_meter_style: '', // 气表型号
770
+ // f_position: '', // 表安装位置
771
+ // f_meter_type: '', // 气表类型
772
+ // f_area_id: '', // 小区编号 (自动生成)
773
+ // f_filialeid: this.$login.f.orgid, // 创建地址所属分公司(默认当前操作人)
774
+ // f_operatorid: this.$login.f.id, // 操作人id
775
+ // f_operator: this.$login.f.name, // 操作人
776
+ // f_orgid: this.$login.f.orgid, // 组织id
777
+ // f_orgname: this.$login.f.orgs, // 组织名
778
+ // f_pcd_id: 8, // 省市区id
779
+ // // f_pcd_id: 124, // 50.4测试
780
+ // f_pcd: '河北省邯郸市武安市', // 省市区
781
+ // f_street_id: street.id, // 街道id
782
+ // f_street: street.f_street,// 街道
783
+ // f_area_code: '01', // 片区编码
784
+ // f_slice_area: '武安片区', // 片区
785
+ // // f_area_code: '66556', // 50.4测试
786
+ // // f_slice_area: '武安明星', // 50.4测试
787
+ // slice_area: [
788
+ // {
789
+ // name: '武安片区',
790
+ // code: '01'
791
+ // }
792
+ // ],
793
+ // // slice_area: [ // 50.4测试
794
+ // // {
795
+ // // name: '武安明星',
796
+ // // code: '66556'
797
+ // // }
798
+ // // ],
799
+ // f_residential_area: this.show_data.fields[index].value.trim(), // 小区名称
800
+ // f_area_address: `河北省邯郸市武安市${street.f_street}`, // 详细地址(省市区+街道)
801
+ // f_comments: '报建系统自动创建'
802
+ // }
803
+ // try {
804
+ // let http = new HttpResetClass()
805
+ // let res = await http.load('POST', 'rs/logic/address_updatearea', {data: data}, {
806
+ // resolveMsg: null,
807
+ // rejectMsg: null
808
+ // })
809
+ // } catch (e) {
810
+ // if (e.status === 635) {
811
+ // this.$showAlert('此小区已存在!!!', 'warning', 3000)
812
+ // } else {
813
+ // this.$showAlert('自动添加小区失败,请手动添加!!!', 'warning', 3000)
814
+ // }
815
+ // }
816
+ // }
817
+ // 地址拼接
818
+ if (
819
+ this.show_data.fields[index].label === '区域' ||
820
+ this.show_data.fields[index].label === '街道' ||
821
+ this.show_data.fields[index].label === '小区' ||
822
+ this.show_data.fields[index].label === '楼号' ||
823
+ this.show_data.fields[index].label === '单元' ||
824
+ this.show_data.fields[index].label === '楼层' ||
825
+ this.show_data.fields[index].label === '门牌号'
826
+ ) {
827
+ let f_address = null
828
+ if (this.show_data.f_address_type !== '民用地址') {
829
+ f_address = this.getLableValue('街道') + this.getLableValue('小区')
830
+ } else {
831
+ f_address = this.getLableValue('街道') +
832
+ this.getLableValue('小区') +
833
+ this.getLableValue('楼号') +
834
+ (isEmpty(this.getLableValue('楼号')) ? '' : '号楼') +
835
+ this.getLableValue('单元') +
836
+ (isEmpty(this.getLableValue('单元')) ? '' : '单元') +
837
+ this.getLableValue('楼层') +
838
+ (isEmpty(this.getLableValue('楼层')) ? '' : '层') +
839
+ this.getLableValue('门牌号') +
840
+ (isEmpty(this.getLableValue('门牌号')) ? '' : '室')
841
+ }
842
+ this.setLabelValue('地址', f_address)
843
+ }
844
+ }
845
+
846
+ if (this.show_data.defname === '竣工验收') {
847
+ if (this.show_data.fields[index].label === '验收是否合格'){
848
+ for (const button of this.show_data.buttons) {
849
+ if (this.show_data.fields[index].value === '否' && button.button_name === '退回') {
850
+ button.hidden = false
851
+ } else {
852
+ button.hidden = true
853
+ }
854
+ }
855
+ }
856
+ }
857
+ if (this.show_data.defname === '报建登记'&&this.show_data.f_apply_type==='工商户报建') {
858
+
859
+ console.log("13f", this.selectdata.onetomany)
860
+ for (const button of this.show_data.buttons) {
861
+ if (this.selectdata.onetomany&& button.button_name === '提交') {
862
+ console.log("1f")
863
+ button.disable = true
864
+ }
865
+ else {
866
+ button.disable = false
867
+ console.log("2f")
868
+ }
869
+ }
870
+ }
871
+ // if (this.show_data.defname === '营业厅建档'){
872
+ // let http = new HttpResetClass()
873
+ // let data = {
874
+ // tablename: 't_userinfo',
875
+ // condition: `f_process_id='${this.selectdata.f_process_id}'`
876
+ //
877
+ // }
878
+ // let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: null})
879
+ //
880
+ // if (this.show_data.fields[index].label === '是否已建档') {
881
+ // if (res.data[0].f_user_state === '预备') {
882
+ // this.show_data.fields[index].value = '否'
883
+ // button.hidden = false
884
+ // }else{
885
+ // this.show_data.fields[index].value = '是'
886
+ // button.hidden = true
887
+ // }
888
+ // }
889
+ // }
890
+ if(this.show_data.defname === '现场勘察') {
891
+ console.log("this.shdata",this.show_data)
892
+ if (this.show_data.fields[index].label === '是否具备安装条件') {
893
+ for (const button of this.show_data.buttons) {
894
+ if (this.show_data.fields[index].value === '否'&& button.button_name === '退回') {
895
+ button.hidden = false
896
+ }else {
897
+ button.hidden = true
898
+ }
899
+ }
900
+ }
901
+ }
902
+ // if (this.show_data.defname === '通气点火'){
903
+ // let http = new HttpResetClass()
904
+ // let data = {
905
+ // tablename: 't_firemessage',
906
+ // condition: `f_process_id='${this.selectdata.f_process_id}'`
907
+ //
908
+ // }
909
+ // let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: null})
910
+ // console.log("res")
911
+ // console.log(res.data)
912
+ // if (this.show_data.fields[index].label === '是否已通气') {
913
+ // if (res.data.length==0) {
914
+ // this.show_data.fields[index].value = '否'
915
+ // button.hidden = false
916
+ // }else{
917
+ // this.show_data.fields[index].value = '是'
918
+ // button.hidden = true
919
+ // }
920
+ // }
921
+ // }
922
+ if (this.show_data.defname === '合同签订') {
923
+ if (this.show_data.fields[index].label === '合同编号') {
924
+ if (!isEmpty(this.show_data.fields[index].value)) {
925
+ let http = new HttpResetClass()
926
+ let data = {
927
+ tablename: 't_apply',
928
+ condition: `f_contract_number='${this.show_data.fields[index].value}'`
929
+ }
930
+ let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
931
+ resolveMsg: null,
932
+ rejectMsg: '合同编号查重失败'
933
+ })
934
+ if (res.data.length > 0) {
935
+ this.show_data.fields[index].value = null
936
+ this.$showAlert('合同编号已存在!!!', 'warning', 3000)
937
+ }
938
+ //拼写合同编号
939
+ // if (this.selectdata.f_apply_type == '工商户报建') {
940
+ // this.show_data.fields[index].value = "ZS-S-" + this.show_data.fields[index].value
941
+ // // this.show_data.fields[index].value = "ZS-S-" + this.show_data.fields[index].value + "-" + new Date().Format('yyyy-MM-dd')
942
+ // }else {
943
+ // this.show_data.fields[index].value = "ZS-M-" + this.show_data.fields[index].value
944
+ // // this.show_data.fields[index].value = "ZS-M-" + this.show_data.fields[index].value + "-" + new Date().Format('yyyy-MM-dd')
945
+ // }
946
+ }
947
+ }
948
+ if (this.show_data.fields[index].label === '单价(户)') {
949
+ let http = new HttpResetClass()
950
+ let data = {
951
+ num1: this.getLableValue(this.show_data.fields[index].label),
952
+ num2: this.getLableValue('户数'),
953
+ operator: '*'
954
+ }
955
+ try {
956
+ let res = await http.load('POST', 'rs/logic/compute', {data: data}, {
957
+ resolveMsg: null,
958
+ rejectMsg: null
959
+ })
960
+ data = {
961
+ num1: res.data,
962
+ num2: this.getLableValue('其他费用'),
963
+ operator: '+'
964
+ }
965
+ res = await http.load('POST', 'rs/logic/compute', {data: data}, {
966
+ resolveMsg: null,
967
+ rejectMsg: null
968
+ })
969
+ this.setLabelValue('合同金额',res.data)
970
+ } catch (e) {
971
+ this.$showAlert(e.data.msg, 'warning', 3000)
972
+ }
973
+ }
974
+ if (this.show_data.fields[index].label === '其他费用') {
975
+ let http = new HttpResetClass()
976
+ let data = {
977
+ num1: this.getLableValue(this.show_data.fields[index].label),
978
+ num2: this.getLableValue('合同金额'),
979
+ operator: '+'
980
+ }
981
+ try {
982
+ let res = await http.load('POST', 'rs/logic/compute', {data: data}, {
983
+ resolveMsg: null,
984
+ rejectMsg: null
985
+ })
986
+ this.setLabelValue('合同金额',res.data)
987
+ } catch (e) {
988
+ this.$showAlert(e.data.msg, 'warning', 3000)
989
+ }
990
+ }
991
+ }
992
+ // ========================= 武安 =================================
993
+ // 号码检测
994
+ if (this.show_data.fields[index].label === '电话号码') {
995
+ let phone = this.show_data.fields[index].value
996
+ // 电话号码效验
997
+ if (!(/^1[3456789]\d{9}$/.test(phone))) {
998
+ this.show_data.fields[index].value = ""
999
+ this.$showAlert('电话号码格式不正确,请重新输入。', 'info', 2000)
1000
+ }
1001
+ }
1002
+ //时间提醒
1003
+ if (this.show_data.fields[index].label.includes("时间") || this.show_data.fields[index].type === 'datepicker') {
1004
+ let setTime = this.show_data.fields[index].value
1005
+ let nowTime = new Date().Format("yyyy-MM-dd HH:mm:ss")
1006
+ if (nowTime >= setTime) {
1007
+ this.$showMessage("请注意,当前节点时间/工期已过期!")
1008
+ }
1009
+ }
1010
+ },
1011
+ // input值发生变化
1012
+ async 'oninput'(index) {
1013
+
1014
+ },
1015
+ // 错误事件
1016
+ error_check(index) {
1017
+ // 时间格式检测
1018
+ if (this.show_data.fields[index].type == 'datepicker') {
1019
+ 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)$/)
1020
+ 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])$/)
1021
+ if (datetimeRe.test(this.show_data.fields[index].value) && this.show_data.fields[index].value.trim().length == 19 && this.show_data.fields[index].fullsize) {
1022
+ this.show_data.fields[index].error.flag = false
1023
+ } else if (dateRe.test(this.show_data.fields[index].value) && this.show_data.fields[index].value.trim().length == 10) {
1024
+ this.show_data.fields[index].error.flag = false
1025
+ } else {
1026
+ if (this.show_data.fields[index].fullsize) {
1027
+ this.show_data.fields[index].error = Object.assign({}, this.show_data.fields[index].error)
1028
+ 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'
1029
+ this.$showAlert(this.show_data.fields[index].label + '格式错误' + this.show_data.fields[index].error.msg, 'warning', 3000)
1030
+ this.show_data.fields[index].error.flag = true
1031
+ this.show_data.fields[index].value = ''
1032
+ } else {
1033
+ this.show_data.fields[index].error = Object.assign({}, this.show_data.fields[index].error)
1034
+ this.show_data.fields[index].error.msg = this.show_data.fields[index].error.msg ? this.show_data.fields[index].error.msg : '时间格式如:2019-05-02'
1035
+ this.$showAlert(this.show_data.fields[index].label + '格式错误' + this.show_data.fields[index].error.msg, 'warning', 3000)
1036
+ this.show_data.fields[index].error.flag = true
1037
+ this.show_data.fields[index].value = ''
1038
+ }
1039
+
1040
+ }
1041
+ }
1042
+ },
1043
+ // onetomany模态框默认监听监听事件
1044
+ async 'onetomanydelete'(i, j) {
1045
+ console.log('默认删除')
1046
+ let http = new HttpResetClass()
1047
+ let data = {
1048
+ table: this.show_data.onetomany[i].tables[0],
1049
+ row: this.show_data.onetomany[i].rows[j]
1050
+ }
1051
+ let res = await http.load('POST', 'rs/logic/onetomanyDefaultDeleteEvent', {data: data}, {
1052
+ resolveMsg: null,
1053
+ rejectMsg: '删除失败'
1054
+ })
1055
+
1056
+ if (res.data <= 0){
1057
+ this.$showMessage('删除失败')
1058
+ return
1059
+ }
1060
+
1061
+ this.$dispatch('breakControl', this.show_data)
1062
+ },
1063
+ async 'onetomanyadd'(index) {
1064
+
1065
+ let data = {
1066
+ f_process_id : this.show_data.f_process_id
1067
+ }
1068
+ this.show_data.onetomany[index].fields.forEach(item => {
1069
+ data[item.field] = item.value
1070
+ })
1071
+ let res = await this.$resetpost(
1072
+ `rs/entity/${this.show_data.onetomany[index].tables[0]}`,
1073
+ data
1074
+ )
1075
+ this.$dispatch('breakControl', this.show_data)
1076
+ },
1077
+ async 'onetomanyupdate'(i, j) {
1078
+ let onetomany = this.show_data.onetomany[i]
1079
+ let data = onetomany.rows[j]
1080
+
1081
+ onetomany.fields.forEach(item => {
1082
+ data[item.field] = item.value
1083
+ })
1084
+ let res = await this.$resetpost(
1085
+ `rs/entity/${this.show_data.onetomany[i].tables[0]}`,
1086
+ data
1087
+ )
1088
+
1089
+ this.$dispatch('breakControl', this.show_data)
1090
+ },
1091
+ // 选择用户档案信息
1092
+ 'selectUserinfo'(row) {
1093
+ console.log("当前选择数据",row)
1094
+ if (this.selectdata.f_apply_type === '拆改装报建'){
1095
+ this.showLabels('用户编号')
1096
+ this.hideLabels('地址类型','区域','街道','小区','楼号','单元','楼层','门牌号')
1097
+ this.electiveLabels('地址类型','区域','街道','小区','楼号','单元','楼层','门牌号')
1098
+ this.show_data.f_address_type = '民用地址'
1099
+ this.show_data.f_pcd = row.f_pcd
1100
+ this.show_data.f_street = row.f_street
1101
+ this.show_data.f_residential_area = row.f_residential_area
1102
+ this.show_data.f_building = row.f_building
1103
+ this.show_data.f_unit = row.f_unit
1104
+ this.show_data.f_floor = row.f_floor
1105
+ this.show_data.f_room = row.f_room
1106
+ this.selectdata.flag = '旧用户'
1107
+ }
1108
+ this.setLabelValue('用户编号', row.f_userinfo_code)
1109
+ this.setLabelValue('用户名称', row.f_user_name)
1110
+ this.setLabelValue('用户电话', row.f_user_phone)
1111
+ this.setLabelValue('证件类型', row.f_credentials)
1112
+ this.setLabelValue('证件号码', row.f_idnumber)
1113
+ this.setLabelValue('地址', row.f_address)
1114
+
1115
+ this.selectdata.f_userinfo_id = row.f_userinfo_id
1116
+ this.selectdata.f_userinfo_code = row.f_userinfo_code
1117
+ console.log("当前选择数据",this.show_data)
1118
+ },
1119
+ async 'streetChange'(index) {
1120
+ if (isEmpty(this.show_data.f_street)) {
1121
+ return
1122
+ }
1123
+
1124
+ this.setLabelValue('小区', null)
1125
+
1126
+ let data = {
1127
+ tablename: 't_area',
1128
+ condition: `f_filialeid = '${this.$login.f.orgid}' and f_street = '${this.show_data.f_street}'`
1129
+ }
1130
+ let http = new HttpResetClass()
1131
+ let res = await http.load(
1132
+ 'POST',
1133
+ `rs/sql/singleTable`,
1134
+ {data: data},
1135
+ {resolveMsg: null, rejectMsg: '小区!!!'}
1136
+ )
1137
+
1138
+ this.setLabelOptions('小区', res.data.map(item => {
1139
+ return {
1140
+ label: item.f_residential_area,
1141
+ value: item.f_residential_area
1142
+ }
1143
+ }))
1144
+ },
1145
+ // 区县失去焦点
1146
+ async 'pcdChange'(index) {
1147
+ if (isEmpty(this.show_data.f_pcd)) {
1148
+ return
1149
+ }
1150
+
1151
+ this.setLabelValue('街道', null)
1152
+ this.setLabelValue('小区', null)
1153
+
1154
+
1155
+ let data = {
1156
+ tablename: 't_street',
1157
+ condition: `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
1158
+ }
1159
+ let f_address_type = this.getLableValue('地址类型')
1160
+
1161
+ if (f_address_type === '民用地址') {
1162
+ data.condition = `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
1163
+ }
1164
+
1165
+ let http = new HttpResetClass()
1166
+ let res = await http.load(
1167
+ 'POST',
1168
+ `rs/sql/singleTable`,
1169
+ {data: data},
1170
+ {resolveMsg: null, rejectMsg: '街道查询失败!!!'}
1171
+ )
1172
+
1173
+ this.setLabelOptions('街道', res.data.map(item => {
1174
+ return {
1175
+ label: item.f_street,
1176
+ value: item.f_street
1177
+ }
1178
+ }))
1179
+ },
1180
+ 'buttonChange' (index) {
1181
+ if (this.show_data.fields[index].value === '否') {
1182
+ console.log("测试")
1183
+ this.hideButtons('下发','提交')
1184
+ this.showButtons('退回','终止')
1185
+ } else {
1186
+ this.hideButtons('退回','终止')
1187
+ this.showButtons('下发','提交')
1188
+ }
1189
+ },
1190
+ async 'stopApply'() {
1191
+ this.stope_view = true
1192
+ this.showview = false
1193
+ },
1194
+ async 'signUserInfo' (index) {
1195
+ if (this.show_data.fields[index].value === '是') {
1196
+ console.log("测试")
1197
+ this.showLabels("用户名称", "用户电话", "证件类型", "证件号码", '地址类型', '区域', '街道', '小区', '楼号', '单元', '楼层', '门牌号', '地址')
1198
+ this.requiredLabels("用户名称", "用户电话", "证件类型", "证件号码", '地址类型', '区域', '街道', '小区', '门牌号', '地址')
1199
+ } else {
1200
+ this.hideLabels("用户名称", "用户电话", "证件类型", "证件号码", '地址类型', '区域', '街道', '小区', '楼号', '单元', '楼层', '门牌号', '地址')
1201
+ this.electiveLabels("用户名称", "用户电话", "证件类型", "证件号码", '地址类型', '区域', '街道', '小区', '楼号', '单元', '楼层', '门牌号', '地址')
1202
+ }
1203
+ },
1204
+ // onetomany模态框监听事件
1205
+ async 'onchange_modal'(index, i) {
1206
+ },
1207
+ async 'oninput_modal'(index, i) {
1208
+ }
1209
+ },
1210
+ watch: {
1211
+ }
1212
+ }
1213
+ </script>
1214
+ <style scoped>
1215
+ /*清除model中的浮动*/
1216
+ .clearfix:after,.clearfix:before{
1217
+ display: table;
1218
+ }
1219
+ .clearfix:after{
1220
+ clear: both;
1221
+ }
1222
+ </style>