apply-clients 4.1.71 → 4.1.74

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 (489) hide show
  1. package/package.json +1 -1
  2. package/src/apply.js +78 -72
  3. package/src/components/product/ApplyCharge/ApplyChargeList.vue +251 -251
  4. package/src/components/product/Function/InstallInfoSelect.vue +294 -281
  5. package/src/components/product/Function/functions/StopInstall.vue +112 -106
  6. package/src/components/product/Process/ExplorationSelect.vue +370 -354
  7. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +1236 -1233
  8. package/src/components/product/Process/Processes/chargeManagement.vue +540 -539
  9. package/src/components/product/Process/Processes/selectUserinfo.vue +205 -0
  10. package/src/components/product/Process/Processes/splitMaterial.vue +358 -0
  11. package/src/components/product/Process/Service/ServiceControl.vue +1210 -899
  12. package/src/components/product/ServiceView.vue +802 -797
  13. package/src/components/product/Stop/StopApply.vue +101 -0
  14. package/src/components/product/Stop/StopApplyList.vue +257 -0
  15. package/src/components/product/Supervisory/SupervisoryControl.vue +121 -119
  16. package/src/components/product/Supervisory/SupervisoryList.vue +221 -208
  17. package/src/components/product/Supervisory/SupervisoryhCart.vue +96 -96
  18. package/dist-android/static/0.8fefcf36b4f3b17f24f4.js +0 -3
  19. package/dist-android/static/0.8fefcf36b4f3b17f24f4.js.map +0 -1
  20. package/dist-android/static/1.aceeebd9882303a0077f.js +0 -2
  21. package/dist-android/static/1.aceeebd9882303a0077f.js.map +0 -1
  22. package/dist-android/static/10.1e64dd0300dfdd04f6e9.js +0 -2
  23. package/dist-android/static/10.1e64dd0300dfdd04f6e9.js.map +0 -1
  24. package/dist-android/static/100.6ed76ce8ccc8bbf4dd95.js +0 -2
  25. package/dist-android/static/100.6ed76ce8ccc8bbf4dd95.js.map +0 -1
  26. package/dist-android/static/101.6a1aaf8dc03b1c727c2c.js +0 -2
  27. package/dist-android/static/101.6a1aaf8dc03b1c727c2c.js.map +0 -1
  28. package/dist-android/static/102.84fab22025678c449dd7.js +0 -2
  29. package/dist-android/static/102.84fab22025678c449dd7.js.map +0 -1
  30. package/dist-android/static/103.55f1270c13d83ad5aefa.js +0 -2
  31. package/dist-android/static/103.55f1270c13d83ad5aefa.js.map +0 -1
  32. package/dist-android/static/104.fbbb14f56d3ced86054e.js +0 -2
  33. package/dist-android/static/104.fbbb14f56d3ced86054e.js.map +0 -1
  34. package/dist-android/static/105.eebb9b14cac9c6338e81.js +0 -2
  35. package/dist-android/static/105.eebb9b14cac9c6338e81.js.map +0 -1
  36. package/dist-android/static/106.cd9ee420f7a56b833845.js +0 -2
  37. package/dist-android/static/106.cd9ee420f7a56b833845.js.map +0 -1
  38. package/dist-android/static/107.5c63800f95fa999d004a.js +0 -2
  39. package/dist-android/static/107.5c63800f95fa999d004a.js.map +0 -1
  40. package/dist-android/static/108.9a8119fb306f67a19e68.js +0 -2
  41. package/dist-android/static/108.9a8119fb306f67a19e68.js.map +0 -1
  42. package/dist-android/static/109.cfdab0cef9d052622b4f.js +0 -2
  43. package/dist-android/static/109.cfdab0cef9d052622b4f.js.map +0 -1
  44. package/dist-android/static/11.e770641b023d24d12237.js +0 -2
  45. package/dist-android/static/11.e770641b023d24d12237.js.map +0 -1
  46. package/dist-android/static/110.4a284c14a77d02f9c2b7.js +0 -2
  47. package/dist-android/static/110.4a284c14a77d02f9c2b7.js.map +0 -1
  48. package/dist-android/static/111.f5a13edc4953c379ed58.js +0 -2
  49. package/dist-android/static/111.f5a13edc4953c379ed58.js.map +0 -1
  50. package/dist-android/static/112.d69dbda6bc99f459cd93.js +0 -2
  51. package/dist-android/static/112.d69dbda6bc99f459cd93.js.map +0 -1
  52. package/dist-android/static/113.24d5edd25014c4bf01ae.js +0 -2
  53. package/dist-android/static/113.24d5edd25014c4bf01ae.js.map +0 -1
  54. package/dist-android/static/114.275d1ff8666963ebe680.js +0 -2
  55. package/dist-android/static/114.275d1ff8666963ebe680.js.map +0 -1
  56. package/dist-android/static/115.2a54824d85c0575c3194.js +0 -2
  57. package/dist-android/static/115.2a54824d85c0575c3194.js.map +0 -1
  58. package/dist-android/static/116.f0307796e1e1860ed61a.js +0 -2
  59. package/dist-android/static/116.f0307796e1e1860ed61a.js.map +0 -1
  60. package/dist-android/static/117.8cc6db360ccbce2f1813.js +0 -2
  61. package/dist-android/static/117.8cc6db360ccbce2f1813.js.map +0 -1
  62. package/dist-android/static/118.8e13c76b53d87801709b.js +0 -2
  63. package/dist-android/static/118.8e13c76b53d87801709b.js.map +0 -1
  64. package/dist-android/static/119.01a483cd9438418d725c.js +0 -2
  65. package/dist-android/static/119.01a483cd9438418d725c.js.map +0 -1
  66. package/dist-android/static/12.ea7ce97226d268599b39.js +0 -2
  67. package/dist-android/static/12.ea7ce97226d268599b39.js.map +0 -1
  68. package/dist-android/static/120.20e156e76cff7e3dcd0e.js +0 -2
  69. package/dist-android/static/120.20e156e76cff7e3dcd0e.js.map +0 -1
  70. package/dist-android/static/121.deabd255b998e6aca42e.js +0 -2
  71. package/dist-android/static/121.deabd255b998e6aca42e.js.map +0 -1
  72. package/dist-android/static/122.d4a78a26d8a23873170a.js +0 -2
  73. package/dist-android/static/122.d4a78a26d8a23873170a.js.map +0 -1
  74. package/dist-android/static/123.02279cd943d847b66111.js +0 -2
  75. package/dist-android/static/123.02279cd943d847b66111.js.map +0 -1
  76. package/dist-android/static/124.71f71288c0552b0cfd3c.js +0 -2
  77. package/dist-android/static/124.71f71288c0552b0cfd3c.js.map +0 -1
  78. package/dist-android/static/125.56440eeea4614418e976.js +0 -2
  79. package/dist-android/static/125.56440eeea4614418e976.js.map +0 -1
  80. package/dist-android/static/126.dc4dee64f0449a655220.js +0 -2
  81. package/dist-android/static/126.dc4dee64f0449a655220.js.map +0 -1
  82. package/dist-android/static/127.38ef4996946ff2e25267.js +0 -2
  83. package/dist-android/static/127.38ef4996946ff2e25267.js.map +0 -1
  84. package/dist-android/static/128.8e83236d37184f7ae294.js +0 -2
  85. package/dist-android/static/128.8e83236d37184f7ae294.js.map +0 -1
  86. package/dist-android/static/129.cfd679422d1854daadad.js +0 -2
  87. package/dist-android/static/129.cfd679422d1854daadad.js.map +0 -1
  88. package/dist-android/static/13.a30b29bdef19dcebd8c3.js +0 -2
  89. package/dist-android/static/13.a30b29bdef19dcebd8c3.js.map +0 -1
  90. package/dist-android/static/130.51dba7e59995e65f30c6.js +0 -2
  91. package/dist-android/static/130.51dba7e59995e65f30c6.js.map +0 -1
  92. package/dist-android/static/131.684c3686dd1fce45f95f.js +0 -2
  93. package/dist-android/static/131.684c3686dd1fce45f95f.js.map +0 -1
  94. package/dist-android/static/132.b26f0ad66e2dfbbe3ee4.js +0 -2
  95. package/dist-android/static/132.b26f0ad66e2dfbbe3ee4.js.map +0 -1
  96. package/dist-android/static/133.bbd729a19e1a4a239e4a.js +0 -2
  97. package/dist-android/static/133.bbd729a19e1a4a239e4a.js.map +0 -1
  98. package/dist-android/static/134.76cddf7bbcdac6be66c7.js +0 -2
  99. package/dist-android/static/134.76cddf7bbcdac6be66c7.js.map +0 -1
  100. package/dist-android/static/135.e16704920da333cb62b3.js +0 -2
  101. package/dist-android/static/135.e16704920da333cb62b3.js.map +0 -1
  102. package/dist-android/static/136.ebbe09f24751b32d9afa.js +0 -2
  103. package/dist-android/static/136.ebbe09f24751b32d9afa.js.map +0 -1
  104. package/dist-android/static/137.9cc0f6f025ee5dde7742.js +0 -2
  105. package/dist-android/static/137.9cc0f6f025ee5dde7742.js.map +0 -1
  106. package/dist-android/static/14.8c48f0d2829f28e0ac05.js +0 -2
  107. package/dist-android/static/14.8c48f0d2829f28e0ac05.js.map +0 -1
  108. package/dist-android/static/15.ef7132bb74700a3907a6.js +0 -2
  109. package/dist-android/static/15.ef7132bb74700a3907a6.js.map +0 -1
  110. package/dist-android/static/16.3dfe04e56f1463c1d2db.js +0 -2
  111. package/dist-android/static/16.3dfe04e56f1463c1d2db.js.map +0 -1
  112. package/dist-android/static/17.5c349b314c8c5bf1b16f.js +0 -2
  113. package/dist-android/static/17.5c349b314c8c5bf1b16f.js.map +0 -1
  114. package/dist-android/static/18.d895cc41f2f161cd41da.js +0 -2
  115. package/dist-android/static/18.d895cc41f2f161cd41da.js.map +0 -1
  116. package/dist-android/static/19.8d55e4ef8ec491de697d.js +0 -2
  117. package/dist-android/static/19.8d55e4ef8ec491de697d.js.map +0 -1
  118. package/dist-android/static/2.97437f27d0cf4060445a.js +0 -2
  119. package/dist-android/static/2.97437f27d0cf4060445a.js.map +0 -1
  120. package/dist-android/static/20.d51ea255c06f63815c9d.js +0 -2
  121. package/dist-android/static/20.d51ea255c06f63815c9d.js.map +0 -1
  122. package/dist-android/static/21.3ae67c365c41dce94f05.js +0 -2
  123. package/dist-android/static/21.3ae67c365c41dce94f05.js.map +0 -1
  124. package/dist-android/static/23.011da7e98c927d3ccb96.js +0 -12
  125. package/dist-android/static/23.011da7e98c927d3ccb96.js.map +0 -1
  126. package/dist-android/static/24.1695c104c0e1072038ae.js +0 -4
  127. package/dist-android/static/24.1695c104c0e1072038ae.js.map +0 -1
  128. package/dist-android/static/25.b316cdc747f9047c8a5b.js +0 -4
  129. package/dist-android/static/25.b316cdc747f9047c8a5b.js.map +0 -1
  130. package/dist-android/static/26.73ba5dc7089ec0187806.js +0 -3
  131. package/dist-android/static/26.73ba5dc7089ec0187806.js.map +0 -1
  132. package/dist-android/static/27.b1cad200394802f64548.js +0 -2
  133. package/dist-android/static/27.b1cad200394802f64548.js.map +0 -1
  134. package/dist-android/static/28.45865d8f65947a32c7fc.js +0 -2
  135. package/dist-android/static/28.45865d8f65947a32c7fc.js.map +0 -1
  136. package/dist-android/static/29.dee8a61f7ef3766418ff.js +0 -2
  137. package/dist-android/static/29.dee8a61f7ef3766418ff.js.map +0 -1
  138. package/dist-android/static/3.eb25813c6da10b34990b.js +0 -2
  139. package/dist-android/static/3.eb25813c6da10b34990b.js.map +0 -1
  140. package/dist-android/static/30.56188f6c25bdff5d24d0.js +0 -2
  141. package/dist-android/static/30.56188f6c25bdff5d24d0.js.map +0 -1
  142. package/dist-android/static/31.540635d3eaa185206d07.js +0 -2
  143. package/dist-android/static/31.540635d3eaa185206d07.js.map +0 -1
  144. package/dist-android/static/32.e10d739f79be4f67e895.js +0 -2
  145. package/dist-android/static/32.e10d739f79be4f67e895.js.map +0 -1
  146. package/dist-android/static/33.b50c369d9168d4b347e7.js +0 -2
  147. package/dist-android/static/33.b50c369d9168d4b347e7.js.map +0 -1
  148. package/dist-android/static/34.cd5a9b0cb477402ee3f9.js +0 -2
  149. package/dist-android/static/34.cd5a9b0cb477402ee3f9.js.map +0 -1
  150. package/dist-android/static/35.5e7542a1b672d178cdf7.js +0 -2
  151. package/dist-android/static/35.5e7542a1b672d178cdf7.js.map +0 -1
  152. package/dist-android/static/36.88ece71da9fb3a0b16f6.js +0 -2
  153. package/dist-android/static/36.88ece71da9fb3a0b16f6.js.map +0 -1
  154. package/dist-android/static/37.1587f0d65cee28d847b1.js +0 -2
  155. package/dist-android/static/37.1587f0d65cee28d847b1.js.map +0 -1
  156. package/dist-android/static/38.922e4996d7709fba2592.js +0 -2
  157. package/dist-android/static/38.922e4996d7709fba2592.js.map +0 -1
  158. package/dist-android/static/39.fd8d17fbc5014dc8d5cc.js +0 -2
  159. package/dist-android/static/39.fd8d17fbc5014dc8d5cc.js.map +0 -1
  160. package/dist-android/static/4.ebb054ec4b6d594f370f.js +0 -12
  161. package/dist-android/static/4.ebb054ec4b6d594f370f.js.map +0 -1
  162. package/dist-android/static/40.8b6d6ae84c0d385199a2.js +0 -2
  163. package/dist-android/static/40.8b6d6ae84c0d385199a2.js.map +0 -1
  164. package/dist-android/static/41.2eab1a129cd454a675cd.js +0 -2
  165. package/dist-android/static/41.2eab1a129cd454a675cd.js.map +0 -1
  166. package/dist-android/static/42.639e7b10b2311c5d331e.js +0 -2
  167. package/dist-android/static/42.639e7b10b2311c5d331e.js.map +0 -1
  168. package/dist-android/static/43.a5b1959c147da8cf6998.js +0 -2
  169. package/dist-android/static/43.a5b1959c147da8cf6998.js.map +0 -1
  170. package/dist-android/static/44.e4c71d9426f61eefbf2b.js +0 -2
  171. package/dist-android/static/44.e4c71d9426f61eefbf2b.js.map +0 -1
  172. package/dist-android/static/45.00a01ea48a9c7d81b559.js +0 -2
  173. package/dist-android/static/45.00a01ea48a9c7d81b559.js.map +0 -1
  174. package/dist-android/static/46.68fd14161277f33bdb19.js +0 -2
  175. package/dist-android/static/46.68fd14161277f33bdb19.js.map +0 -1
  176. package/dist-android/static/47.149c69358179520f5572.js +0 -2
  177. package/dist-android/static/47.149c69358179520f5572.js.map +0 -1
  178. package/dist-android/static/48.65ff329a8fcff2fef3d6.js +0 -2
  179. package/dist-android/static/48.65ff329a8fcff2fef3d6.js.map +0 -1
  180. package/dist-android/static/49.6ca14d6bb01c42aa2989.js +0 -2
  181. package/dist-android/static/49.6ca14d6bb01c42aa2989.js.map +0 -1
  182. package/dist-android/static/5.552d466662fa35c868c2.js +0 -12
  183. package/dist-android/static/5.552d466662fa35c868c2.js.map +0 -1
  184. package/dist-android/static/50.99c671d5a146d9741aa8.js +0 -2
  185. package/dist-android/static/50.99c671d5a146d9741aa8.js.map +0 -1
  186. package/dist-android/static/51.83a2cbffb6901d2330e2.js +0 -2
  187. package/dist-android/static/51.83a2cbffb6901d2330e2.js.map +0 -1
  188. package/dist-android/static/52.3163bb20258ccff0604b.js +0 -2
  189. package/dist-android/static/52.3163bb20258ccff0604b.js.map +0 -1
  190. package/dist-android/static/53.a6d827e8960ae29624a3.js +0 -2
  191. package/dist-android/static/53.a6d827e8960ae29624a3.js.map +0 -1
  192. package/dist-android/static/54.1ccaf2b8a29fa7f7dba2.js +0 -2
  193. package/dist-android/static/54.1ccaf2b8a29fa7f7dba2.js.map +0 -1
  194. package/dist-android/static/55.1d72f5b350c90f7d7732.js +0 -2
  195. package/dist-android/static/55.1d72f5b350c90f7d7732.js.map +0 -1
  196. package/dist-android/static/56.d6f2f18a9961bf78d0c6.js +0 -2
  197. package/dist-android/static/56.d6f2f18a9961bf78d0c6.js.map +0 -1
  198. package/dist-android/static/57.89fb30f7294408c67f31.js +0 -2
  199. package/dist-android/static/57.89fb30f7294408c67f31.js.map +0 -1
  200. package/dist-android/static/58.e5e3b57ca17257cdcb1b.js +0 -2
  201. package/dist-android/static/58.e5e3b57ca17257cdcb1b.js.map +0 -1
  202. package/dist-android/static/59.279bde1f4db612e8208d.js +0 -2
  203. package/dist-android/static/59.279bde1f4db612e8208d.js.map +0 -1
  204. package/dist-android/static/6.476bb571c0e9e41e5bdd.js +0 -12
  205. package/dist-android/static/6.476bb571c0e9e41e5bdd.js.map +0 -1
  206. package/dist-android/static/60.c54f6dc3355fd0a68fa8.js +0 -3
  207. package/dist-android/static/60.c54f6dc3355fd0a68fa8.js.map +0 -1
  208. package/dist-android/static/61.16adcc6dba6ccdff65d3.js +0 -2
  209. package/dist-android/static/61.16adcc6dba6ccdff65d3.js.map +0 -1
  210. package/dist-android/static/62.6ca25ba22c65cb7fe3d6.js +0 -2
  211. package/dist-android/static/62.6ca25ba22c65cb7fe3d6.js.map +0 -1
  212. package/dist-android/static/63.98c8236209d00dc52554.js +0 -2
  213. package/dist-android/static/63.98c8236209d00dc52554.js.map +0 -1
  214. package/dist-android/static/64.9d85cdf20267cea8afeb.js +0 -2
  215. package/dist-android/static/64.9d85cdf20267cea8afeb.js.map +0 -1
  216. package/dist-android/static/65.d481d7d84e5f8cdb6265.js +0 -2
  217. package/dist-android/static/65.d481d7d84e5f8cdb6265.js.map +0 -1
  218. package/dist-android/static/66.2dec94f9c98d107f1298.js +0 -2
  219. package/dist-android/static/66.2dec94f9c98d107f1298.js.map +0 -1
  220. package/dist-android/static/67.d463c257ea7c14cbccd3.js +0 -2
  221. package/dist-android/static/67.d463c257ea7c14cbccd3.js.map +0 -1
  222. package/dist-android/static/68.ffb916bfe4136b430275.js +0 -2
  223. package/dist-android/static/68.ffb916bfe4136b430275.js.map +0 -1
  224. package/dist-android/static/69.af4c133e9259409a3464.js +0 -2
  225. package/dist-android/static/69.af4c133e9259409a3464.js.map +0 -1
  226. package/dist-android/static/7.cf266b1bfd31c7fd5f94.js +0 -12
  227. package/dist-android/static/7.cf266b1bfd31c7fd5f94.js.map +0 -1
  228. package/dist-android/static/70.21f57232ae9005a824e7.js +0 -2
  229. package/dist-android/static/70.21f57232ae9005a824e7.js.map +0 -1
  230. package/dist-android/static/71.c190267a5ad7fecb9bbb.js +0 -2
  231. package/dist-android/static/71.c190267a5ad7fecb9bbb.js.map +0 -1
  232. package/dist-android/static/72.5580255242641ad8f99b.js +0 -2
  233. package/dist-android/static/72.5580255242641ad8f99b.js.map +0 -1
  234. package/dist-android/static/73.503ff117f1d78df46971.js +0 -2
  235. package/dist-android/static/73.503ff117f1d78df46971.js.map +0 -1
  236. package/dist-android/static/74.fa7b4222acdf7717c42f.js +0 -2
  237. package/dist-android/static/74.fa7b4222acdf7717c42f.js.map +0 -1
  238. package/dist-android/static/75.4adbec977023e6f6f526.js +0 -2
  239. package/dist-android/static/75.4adbec977023e6f6f526.js.map +0 -1
  240. package/dist-android/static/76.c8b8fe734a043281b1a1.js +0 -2
  241. package/dist-android/static/76.c8b8fe734a043281b1a1.js.map +0 -1
  242. package/dist-android/static/77.4e7ac1e8415092da058d.js +0 -2
  243. package/dist-android/static/77.4e7ac1e8415092da058d.js.map +0 -1
  244. package/dist-android/static/78.1e49ad4c09bf6a3da5d4.js +0 -2
  245. package/dist-android/static/78.1e49ad4c09bf6a3da5d4.js.map +0 -1
  246. package/dist-android/static/79.a04a7880bdb065534815.js +0 -2
  247. package/dist-android/static/79.a04a7880bdb065534815.js.map +0 -1
  248. package/dist-android/static/8.e76ae8b6ce5fc5a5a356.js +0 -12
  249. package/dist-android/static/8.e76ae8b6ce5fc5a5a356.js.map +0 -1
  250. package/dist-android/static/80.bfdf6f87e94b4086d476.js +0 -2
  251. package/dist-android/static/80.bfdf6f87e94b4086d476.js.map +0 -1
  252. package/dist-android/static/81.bcc8681e0a3fa0784eb5.js +0 -2
  253. package/dist-android/static/81.bcc8681e0a3fa0784eb5.js.map +0 -1
  254. package/dist-android/static/82.507f3ac209ed1863a165.js +0 -2
  255. package/dist-android/static/82.507f3ac209ed1863a165.js.map +0 -1
  256. package/dist-android/static/83.08af37c5a47f13726f64.js +0 -2
  257. package/dist-android/static/83.08af37c5a47f13726f64.js.map +0 -1
  258. package/dist-android/static/84.3a95042f29c3a4d138e6.js +0 -2
  259. package/dist-android/static/84.3a95042f29c3a4d138e6.js.map +0 -1
  260. package/dist-android/static/85.51d344f30b486f119b96.js +0 -2
  261. package/dist-android/static/85.51d344f30b486f119b96.js.map +0 -1
  262. package/dist-android/static/86.b34d7e8cc11384e31f3d.js +0 -2
  263. package/dist-android/static/86.b34d7e8cc11384e31f3d.js.map +0 -1
  264. package/dist-android/static/87.188b978a6cd1b31d390f.js +0 -2
  265. package/dist-android/static/87.188b978a6cd1b31d390f.js.map +0 -1
  266. package/dist-android/static/88.7446de7020c0a673314e.js +0 -2
  267. package/dist-android/static/88.7446de7020c0a673314e.js.map +0 -1
  268. package/dist-android/static/89.6ead60a46117dbff45f5.js +0 -2
  269. package/dist-android/static/89.6ead60a46117dbff45f5.js.map +0 -1
  270. package/dist-android/static/9.7579acbda31126a086d5.js +0 -12
  271. package/dist-android/static/9.7579acbda31126a086d5.js.map +0 -1
  272. package/dist-android/static/90.91499a9b1df30d79c22a.js +0 -2
  273. package/dist-android/static/90.91499a9b1df30d79c22a.js.map +0 -1
  274. package/dist-android/static/91.7b7e3e279a042f903b1c.js +0 -2
  275. package/dist-android/static/91.7b7e3e279a042f903b1c.js.map +0 -1
  276. package/dist-android/static/92.4029b0f8ebbd8c177ca9.js +0 -2
  277. package/dist-android/static/92.4029b0f8ebbd8c177ca9.js.map +0 -1
  278. package/dist-android/static/93.3c7ca90a6f7d6b3a4480.js +0 -2
  279. package/dist-android/static/93.3c7ca90a6f7d6b3a4480.js.map +0 -1
  280. package/dist-android/static/94.26660ef68a7b32d92814.js +0 -2
  281. package/dist-android/static/94.26660ef68a7b32d92814.js.map +0 -1
  282. package/dist-android/static/95.8a5746eb5dadc16e970a.js +0 -2
  283. package/dist-android/static/95.8a5746eb5dadc16e970a.js.map +0 -1
  284. package/dist-android/static/96.a39e5648909a67a564f0.js +0 -2
  285. package/dist-android/static/96.a39e5648909a67a564f0.js.map +0 -1
  286. package/dist-android/static/97.ade90ac7225bb01e19a9.js +0 -2
  287. package/dist-android/static/97.ade90ac7225bb01e19a9.js.map +0 -1
  288. package/dist-android/static/98.9789b6c4d2905da930d1.js +0 -2
  289. package/dist-android/static/98.9789b6c4d2905da930d1.js.map +0 -1
  290. package/dist-android/static/99.a2411dd6bca22d9bd246.js +0 -2
  291. package/dist-android/static/99.a2411dd6bca22d9bd246.js.map +0 -1
  292. package/dist-android/static/Functions.js +0 -91
  293. package/dist-android/static/Jsons.js +0 -784
  294. package/dist-android/static/ManageHomePic//346/244/255/345/234/2064.png +0 -0
  295. package/dist-android/static/ManagementControl/echarts10.png +0 -0
  296. package/dist-android/static/ManagementControl/echarts11.png +0 -0
  297. package/dist-android/static/ManagementControl/echarts12.png +0 -0
  298. package/dist-android/static/ManagementControl/echarts13.png +0 -0
  299. package/dist-android/static/ManagementControl/echarts14.png +0 -0
  300. package/dist-android/static/ManagementControl/echarts15.png +0 -0
  301. package/dist-android/static/ManagementControl/echarts16.png +0 -0
  302. package/dist-android/static/ManagementControl/echarts17.png +0 -0
  303. package/dist-android/static/ManagementControl/echarts18.png +0 -0
  304. package/dist-android/static/ManagementControl/echarts4.png +0 -0
  305. package/dist-android/static/ManagementControl/echarts5.png +0 -0
  306. package/dist-android/static/ManagementControl/echarts51.png +0 -0
  307. package/dist-android/static/ManagementControl/echarts6.png +0 -0
  308. package/dist-android/static/ManagementControl/echarts7.png +0 -0
  309. package/dist-android/static/ManagementControl/echarts71.png +0 -0
  310. package/dist-android/static/ManagementControl/echarts8.png +0 -0
  311. package/dist-android/static/ManagementControl//345/233/276/345/261/20211/346/213/267/350/264/235.png +0 -0
  312. package/dist-android/static/ManagementControl//347/237/251/345/275/2425/346/213/267/350/264/2353.png +0 -0
  313. package/dist-android/static/ManagementControl//347/237/251/345/275/2425/346/213/267/350/264/2355.png +0 -0
  314. package/dist-android/static/ManagementControl//347/237/251/345/275/2425/346/213/267/350/264/2356.png +0 -0
  315. package/dist-android/static/android.css +0 -2
  316. package/dist-android/static/android.css.map +0 -1
  317. package/dist-android/static/androidcf0235e8782b35fa98bb.js +0 -133
  318. package/dist-android/static/androidcf0235e8782b35fa98bb.js.map +0 -1
  319. package/dist-android/static/class.js +0 -97
  320. package/dist-android/static/doc.jpg +0 -0
  321. package/dist-android/static/images/lefticon//345/215/241/346/234/215/345/212/241/347/256/241/347/220/206.png +0 -0
  322. package/dist-android/static/images/lefticon//345/221/274/345/217/253/347/263/273/347/273/237.png +0 -0
  323. package/dist-android/static/images/lefticon//345/224/256/346/260/224/346/224/266/350/264/271.png +0 -0
  324. package/dist-android/static/images/lefticon//345/233/276/345/261/2023/346/213/267/350/264/2354.png +0 -0
  325. package/dist-android/static/images/lefticon//345/233/276/345/261/202577.png +0 -0
  326. package/dist-android/static/images/lefticon//345/233/276/345/261/2028/346/213/267/350/264/23513.png +0 -0
  327. package/dist-android/static/images/lefticon//345/256/211/346/243/200/346/237/245/347/234/213.png +0 -0
  328. package/dist-android/static/images/lefticon//345/256/211/346/243/200/350/256/241/345/210/222.png +0 -0
  329. package/dist-android/static/images/lefticon//345/276/256/344/277/241/346/234/215/345/212/241.png +0 -0
  330. package/dist-android/static/images/lefticon//346/212/245/345/273/272/347/263/273/347/273/237.png +0 -0
  331. package/dist-android/static/images/lefticon//346/212/245/350/241/250/346/237/245/350/257/242.png +0 -0
  332. package/dist-android/static/images/lefticon//346/226/207/344/273/266/346/250/241/345/235/227.png +0 -0
  333. package/dist-android/static/images/lefticon//346/227/245/345/270/270/347/256/241/347/220/206.png +0 -0
  334. package/dist-android/static/images/lefticon//346/234/272/350/241/250/347/256/241/347/220/206.png +0 -0
  335. package/dist-android/static/images/lefticon//346/237/245/350/257/242/345/210/227/350/241/250.png +0 -0
  336. package/dist-android/static/images/lefticon//346/241/243/346/241/210/347/256/241/347/220/206.png +0 -0
  337. package/dist-android/static/images/lefticon//347/211/251/350/201/224/347/275/221/350/241/250.png +0 -0
  338. package/dist-android/static/images/lefticon//347/263/273/347/273/237/347/256/241/347/220/206.png +0 -0
  339. package/dist-android/static/images/lefticon//347/263/273/347/273/237/350/256/276/347/275/256.png +0 -0
  340. package/dist-android/static/images/lefticon//347/273/217/350/220/245/347/256/241/346/216/247.png +0 -0
  341. package/dist-android/static/images/lefticon//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
  342. package/dist-android/static/images/lefticon//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
  343. package/dist-android/static/images/lefticon//350/217/234/345/215/225/344/274/270/347/274/251.png +0 -0
  344. package/dist-android/static/images/lefticon//351/200/200/345/207/272/347/263/273/347/273/237.png +0 -0
  345. package/dist-android/static/imgerror.jpg +0 -0
  346. package/dist-android/static/init.js +0 -135
  347. package/dist-android/static/jcwx.jpg +0 -0
  348. package/dist-android/static/jsoneditor-icons.svg +0 -893
  349. package/dist-android/static/lefticon//345/215/241/346/234/215/345/212/241/347/256/241/347/220/206.png +0 -0
  350. package/dist-android/static/lefticon//345/221/274/345/217/253/347/263/273/347/273/237.png +0 -0
  351. package/dist-android/static/lefticon//345/224/256/346/260/224/346/224/266/350/264/271.png +0 -0
  352. package/dist-android/static/lefticon//345/233/276/345/261/2023/346/213/267/350/264/2354.png +0 -0
  353. package/dist-android/static/lefticon//345/233/276/345/261/202577.png +0 -0
  354. package/dist-android/static/lefticon//345/233/276/345/261/2028/346/213/267/350/264/23513.png +0 -0
  355. package/dist-android/static/lefticon//345/256/211/346/243/200/346/237/245/347/234/213.png +0 -0
  356. package/dist-android/static/lefticon//345/256/211/346/243/200/350/256/241/345/210/222.png +0 -0
  357. package/dist-android/static/lefticon//345/276/256/344/277/241/346/234/215/345/212/241.png +0 -0
  358. package/dist-android/static/lefticon//346/212/245/345/273/272/347/263/273/347/273/237.png +0 -0
  359. package/dist-android/static/lefticon//346/212/245/350/241/250/346/237/245/350/257/242.png +0 -0
  360. package/dist-android/static/lefticon//346/227/245/345/270/270/347/256/241/347/220/206.png +0 -0
  361. package/dist-android/static/lefticon//346/234/272/350/241/250/347/256/241/347/220/206.png +0 -0
  362. package/dist-android/static/lefticon//346/237/245/350/257/242/345/210/227/350/241/250.png +0 -0
  363. package/dist-android/static/lefticon//346/241/243/346/241/210/347/256/241/347/220/206.png +0 -0
  364. package/dist-android/static/lefticon//347/211/251/350/201/224/347/275/221/350/241/250.png +0 -0
  365. package/dist-android/static/lefticon//347/237/251/345/275/2421183.png +0 -0
  366. package/dist-android/static/lefticon//347/263/273/347/273/237/347/256/241/347/220/206.png +0 -0
  367. package/dist-android/static/lefticon//347/263/273/347/273/237/350/256/276/347/275/256.png +0 -0
  368. package/dist-android/static/lefticon//347/273/217/350/220/245/347/256/241/346/216/247.png +0 -0
  369. package/dist-android/static/lefticon//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
  370. package/dist-android/static/lefticon//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
  371. package/dist-android/static/lefticon//350/217/234/345/215/225/344/274/270/347/274/251.png +0 -0
  372. package/dist-android/static/lefticon//351/200/200/345/207/272/347/263/273/347/273/237.png +0 -0
  373. package/dist-android/static/loginbg.gif +0 -0
  374. package/dist-android/static/loginbg1.jpg +0 -0
  375. package/dist-android/static/loginbg1280.gif +0 -0
  376. package/dist-android/static/loginbg1366.gif +0 -0
  377. package/dist-android/static/loginbg_jincheng.jpg +0 -0
  378. package/dist-android/static/loginbgmain.jpg +0 -0
  379. package/dist-android/static/mainicon/adddevice.png +0 -0
  380. package/dist-android/static/mainicon/addmeter.png +0 -0
  381. package/dist-android/static/mainicon/bank.png +0 -0
  382. package/dist-android/static/mainicon/biaopan.png +0 -0
  383. package/dist-android/static/mainicon/cad.jpg +0 -0
  384. package/dist-android/static/mainicon/chaobiaoyuan.png +0 -0
  385. package/dist-android/static/mainicon/danganguanli.png +0 -0
  386. package/dist-android/static/mainicon/deletedevice.png +0 -0
  387. package/dist-android/static/mainicon/excel.jpg +0 -0
  388. package/dist-android/static/mainicon/huizong.png +0 -0
  389. package/dist-android/static/mainicon/jibiaoguanli.png +0 -0
  390. package/dist-android/static/mainicon/jibiaoguanli2.png +0 -0
  391. package/dist-android/static/mainicon/jiezhang.png +0 -0
  392. package/dist-android/static/mainicon/loginbg.jpg +0 -0
  393. package/dist-android/static/mainicon/shouqishoufei.png +0 -0
  394. package/dist-android/static/mainicon/treeopen.png +0 -0
  395. package/dist-android/static/mainicon/treeout.png +0 -0
  396. package/dist-android/static/mainicon/treeset.png +0 -0
  397. package/dist-android/static/mainicon/word.jpg +0 -0
  398. package/dist-android/static/mainicon/wulianwang.png +0 -0
  399. package/dist-android/static/mainicon/yingyechaxun.png +0 -0
  400. package/dist-android/static/mainicon/zongheyewu.png +0 -0
  401. package/dist-android/static/newStyle/clear.png +0 -0
  402. package/dist-android/static/newStyle/fife.png +0 -0
  403. package/dist-android/static/newStyle/hidden.png +0 -0
  404. package/dist-android/static/newStyle/label-clear.png +0 -0
  405. package/dist-android/static/newStyle/left-img.png +0 -0
  406. package/dist-android/static/newStyle/list_ok.png +0 -0
  407. package/dist-android/static/newStyle/login-check.png +0 -0
  408. package/dist-android/static/newStyle/login-con.png +0 -0
  409. package/dist-android/static/newStyle/login-do.gif +0 -0
  410. package/dist-android/static/newStyle/login-f.png +0 -0
  411. package/dist-android/static/newStyle/login-info.png +0 -0
  412. package/dist-android/static/newStyle/login-left.png +0 -0
  413. package/dist-android/static/newStyle/login-org.png +0 -0
  414. package/dist-android/static/newStyle/login-pwd.png +0 -0
  415. package/dist-android/static/newStyle/login-user.png +0 -0
  416. package/dist-android/static/newStyle/loginbg-liaoyuan.gif +0 -0
  417. package/dist-android/static/newStyle/loginbg.gif +0 -0
  418. package/dist-android/static/newStyle/loginbg1280.gif +0 -0
  419. package/dist-android/static/newStyle/loginbg1366.gif +0 -0
  420. package/dist-android/static/newStyle/loginbg_1.gif +0 -0
  421. package/dist-android/static/newStyle/searchin.png +0 -0
  422. package/dist-android/static/newStyle/searchout.png +0 -0
  423. package/dist-android/static/newStyle/setting.png +0 -0
  424. package/dist-android/static/newStyle/setting1.png +0 -0
  425. package/dist-android/static/newStyle/shirk.png +0 -0
  426. package/dist-android/static/newStyle/stretch_bottom.png +0 -0
  427. package/dist-android/static/newStyle/stretch_left.png +0 -0
  428. package/dist-android/static/newStyle/stretch_right.png +0 -0
  429. package/dist-android/static/newStyle/stretch_top.png +0 -0
  430. package/dist-android/static/newStyle/system-off.png +0 -0
  431. package/dist-android/static/newStyle//350/261/252/344/275/263/347/207/203/346/260/224.png +0 -0
  432. package/dist-android/static/newStyle.7z +0 -0
  433. package/dist-android/static/newStyle.zip +0 -0
  434. package/dist-android/static/pdf.jpg +0 -0
  435. package/dist-android/static/refresh.png +0 -0
  436. package/dist-android/static/static.zip +0 -0
  437. package/dist-android/static/tools.js +0 -246
  438. package/dist-android/static/treeclose.png +0 -0
  439. package/dist-android/static/tubiao.png +0 -0
  440. package/dist-android/static/wasm_exec.js +0 -591
  441. package/dist-android/static//344/270/213/350/275/275/350/256/241/345/210/222.png +0 -0
  442. package/dist-android/static//344/273/273/345/212/241/346/237/245/350/257/242.png +0 -0
  443. package/dist-android/static//344/277/241/346/201/257/345/205/254/345/221/212.png +0 -0
  444. package/dist-android/static//345/205/254/345/221/212/346/237/245/347/234/213.png +0 -0
  445. package/dist-android/static//345/206/214/345/206/205/351/241/272/345/272/217/344/277/256/346/224/271.png +0 -0
  446. package/dist-android/static//345/215/241/350/241/250/345/234/250/347/272/277/346/212/204/350/241/250.png +0 -0
  447. package/dist-android/static//345/234/250/347/272/277/345/256/211/346/243/200.png +0 -0
  448. package/dist-android/static//345/234/250/347/272/277/345/267/241/346/243/200.png +0 -0
  449. package/dist-android/static//345/234/250/347/272/277/346/212/204/350/241/250.png +0 -0
  450. package/dist-android/static//345/234/250/347/272/277/346/212/242/344/277/256.png +0 -0
  451. package/dist-android/static//345/234/250/347/272/277/346/212/245/350/243/205.png +0 -0
  452. package/dist-android/static//345/234/250/347/272/277/346/223/215/344/275/234.png +0 -0
  453. package/dist-android/static//345/234/250/347/272/277/347/273/264/344/277/256.png +0 -0
  454. package/dist-android/static//345/234/250/347/272/277/347/274/264/350/264/271.png +0 -0
  455. package/dist-android/static//345/256/211/346/243/200/345/267/262/345/212/236.png +0 -0
  456. package/dist-android/static//345/256/211/346/243/200/345/276/205/345/212/236.png +0 -0
  457. package/dist-android/static//345/256/211/346/243/200/346/212/275/345/215/225.png +0 -0
  458. package/dist-android/static//345/256/211/350/243/205/344/270/212/344/274/240.png +0 -0
  459. package/dist-android/static//345/256/211/350/243/205/345/267/262/345/212/236.png +0 -0
  460. package/dist-android/static//345/256/211/350/243/205/345/276/205/345/212/236.png +0 -0
  461. package/dist-android/static//345/267/241/346/243/200/344/270/212/344/274/240.png +0 -0
  462. package/dist-android/static//345/267/241/346/243/200/345/267/262/345/212/236.png +0 -0
  463. package/dist-android/static//345/274/200/345/205/263/351/230/200.png +0 -0
  464. package/dist-android/static//345/275/242/347/212/2664.png +0 -0
  465. package/dist-android/static//346/211/271/351/207/217/346/212/204/350/241/250.png +0 -0
  466. package/dist-android/static//346/212/204/350/241/250/344/270/212/344/274/240.png +0 -0
  467. package/dist-android/static//346/212/204/350/241/250/345/267/262/345/212/236.png +0 -0
  468. package/dist-android/static//346/212/204/350/241/250/345/276/205/345/212/236.png +0 -0
  469. package/dist-android/static//346/212/204/350/241/250/350/256/260/345/275/225.png +0 -0
  470. package/dist-android/static//346/212/245/345/273/272/346/234/215/345/212/241.png +0 -0
  471. package/dist-android/static//346/224/266/350/264/271/346/261/207/346/200/273/350/241/250.png +0 -0
  472. package/dist-android/static//346/224/266/350/264/271/350/256/260/345/275/225.png +0 -0
  473. package/dist-android/static//346/241/243/346/241/210/344/277/256/346/224/271.png +0 -0
  474. package/dist-android/static//346/265/201/347/250/213/344/270/232/345/212/241.png +0 -0
  475. package/dist-android/static//346/265/201/347/250/213/347/233/221/346/216/247.png +0 -0
  476. package/dist-android/static//347/247/273/345/212/250/346/212/204/350/241/250.png +0 -0
  477. package/dist-android/static//347/247/273/345/212/250/346/212/204/350/241/250/345/267/262/345/212/236.png +0 -0
  478. package/dist-android/static//347/273/237/350/256/241/346/212/245/350/241/250.png +0 -0
  479. package/dist-android/static//347/273/264/344/277/256/346/264/276/345/217/221.png +0 -0
  480. package/dist-android/static//350/220/245/344/270/232/345/233/276/350/241/250.png +0 -0
  481. package/dist-android/static//350/241/250/345/206/214/351/241/272/345/272/217.png +0 -0
  482. package/dist-android/static//350/277/233/345/272/246/345/210/227/350/241/250.png +0 -0
  483. package/dist-android/static//351/200/200/345/207/272/347/231/273/345/275/225.png +0 -0
  484. package/dist-android/static//351/200/201/346/260/224/344/270/212/344/274/240.png +0 -0
  485. package/dist-android/static//351/200/201/346/260/224/345/267/262/345/212/236.png +0 -0
  486. package/dist-android/static//351/200/201/346/260/224/345/276/205/345/212/236.png +0 -0
  487. package/dist-android/static//351/232/220/346/202/243/345/244/204/347/220/206.png +0 -0
  488. package/dist-android/static//351/233/206/344/270/255/345/256/211/346/243/200.png +0 -0
  489. package/dist-android/static//351/253/230/345/257/206/345/205/254/345/221/212.png +0 -0
@@ -1,899 +1,1210 @@
1
- <template>
2
-
3
- <div class="auto clearfix">
4
- <show-back-reason :selectdata="show_data"></show-back-reason>
5
- </div>
6
-
7
- <service-view v-ref:serviceview :data="show_data" v-if="showview"></service-view>
8
-
9
- </template>
10
- <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
- }
30
-
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
- },
43
- created () {
44
- this.refurbish()
45
- },
46
- ready(){
47
- },
48
- methods: {
49
- // 组件初始化操作
50
- refurbish() {
51
- this.json_datas = this.$workflow_vue
52
- let sum = 0
53
- let jsonData = {}
54
- if (!this.json_datas || !this.json_datas.activitys || this.json_datas.activitys.length == 0) {
55
- this.$showMessage("网络故障,请刷新页面")
56
- return
57
- }
58
- for (let i = 0; i < this.json_datas.activitys.length; i++) {
59
- if (this.selectdata.defname == this.json_datas.activitys[i].title) {
60
- jsonData = this.json_datas.activitys[i] // 拿到当前节点的json配置信息
61
- sum++ // 节点名一样的个数
62
- }
63
- }
64
- if (sum == 1) {
65
- this.data = null
66
- this.data = jsonData
67
- // selectdata 填充 data
68
- this.data = Object.assign({}, this.data, this.selectdata)
69
- this.initializeJSON()
70
- } else if (sum == 0) {
71
- this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
72
- } else {
73
- this.$showMessage(`在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置:${sum}个`)
74
- }
75
- },
76
- // json配置数据处理
77
- async initializeJSON() {
78
- // 有默认值,value就给默认值,没有就是null
79
- this.data.fields.forEach(item => {
80
- if (!item.value) {
81
- if (item.value === 0) {
82
- item.value = 0
83
- } else {
84
- item.value = null
85
- }
86
- }
87
- if (item.default || item.default == 0) {
88
- item.value = item.default
89
- }
90
- if (this.selectdata[item.field]) {
91
- // 将json字符串格式化赋值给value
92
- if (String(this.selectdata[item.field]).startsWith("{")) {
93
- item.value = JSON.parse(this.selectdata[item.field])
94
- this.selectdata[item.field] = JSON.parse(this.selectdata[item.field])
95
- } else {
96
- item.value = this.selectdata[item.field]
97
- }
98
- } else {
99
- if (this.selectdata[item.field] === 0) {
100
- item.value = 0
101
- }
102
- }
103
-
104
- // datepicker 没有值给当时值
105
- if (item.type === 'datepicker' && !item.value && item.default) {
106
- item.value = new Date().Format('yyyy-MM-dd HH:mm:ss')
107
- }
108
-
109
- // 如果配置类型为select,优先从参数列表获取options
110
- if (item.type === 'select') {
111
- let temp = null
112
-
113
- temp = this.$appdata.getParam(item.label)
114
-
115
- if (temp && temp.length > 0 && item.label) {
116
- item.options = temp
117
- } else {
118
- if (item.paramLabel) {
119
- temp = this.$appdata.getParam(item.paramLabel)
120
- if (temp && temp.length > 0) {
121
- item.options = temp
122
- }
123
- }
124
- }
125
- }
126
- })
127
-
128
- // 控制组件
129
- if (this.data.components) {
130
- this.data.components.forEach(item => {
131
- item.mark = 0
132
- })
133
- }
134
-
135
- // 初始化 fields 可对数据进行特殊处理
136
- this.initializeFields()
137
-
138
- // 初始化 buttons_fields
139
- for (let i = 0; i < this.data.buttons.length; i++) {
140
- // 下发按钮相关配置
141
- if (this.data.buttons[i].button_name === '下发') {
142
- if (this.data.buttons[i].button_fields && this.data.buttons[i].button_fields.length === 1) {
143
- if (this.data.buttons[i].source){
144
- let http = new HttpResetClass()
145
- let res = await http.load('POST', 'rs/search', {
146
- source: this.data.buttons[i].source,
147
- userid: this.$login.f.id
148
- }, {resolveMsg: null, rejectMsg: null})
149
-
150
- let options = []
151
- for (let i = 0; i < res.data.length; i++) {
152
- options.push(
153
- {
154
- "label": res.data[i].name,
155
- "value": res.data[i].id
156
- }
157
- )
158
- }
159
- this.data.buttons[i].button_fields[0]['options'] = options
160
- } else {
161
- this.$showMessage("请配置获取人员表达式")
162
- }
163
- } else {
164
- this.$showMessage("下发按钮必须满足 当且仅当一个字段")
165
- }
166
- }
167
- if (this.data.buttons[i].button_fields) {
168
- this.data.buttons[i].button_fields.forEach(x => {
169
- // 如果配置类型为select,优先从参数列表获取options
170
- if (x.type === 'select' && this.$appdata.getParam(x.label)) {
171
- x.options = this.$appdata.getParam(x.label).trim()
172
- }
173
- })
174
- }
175
- }
176
-
177
- // onetomany 数据获取
178
- if (this.data.onetomany) {
179
- for (let index = 0; index < this.data.onetomany.length; index++) {
180
- let res = null
181
- if (!this.data.onetomany[index].queryEvent || this.data.onetomany[index].queryEvent === 'default'){
182
- let http = new HttpResetClass()
183
- let data = {
184
- tablename: this.data.onetomany[index].tables[0],
185
- condition: `f_process_id='${this.selectdata.f_process_id}'`
186
- }
187
- res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
188
- resolveMsg: null,
189
- rejectMsg: 'onetomany查询失败'
190
- })
191
- } else {
192
- res = this[this.data.onetomany[index].queryEvent]()
193
- }
194
-
195
- // 初始化 onetomany
196
- this.data.onetomany[index].rows = res.data
197
-
198
- // 初始化onetomany中的fields
199
- for (let j = 0; j < this.data.onetomany[index].fields.length; j++) {
200
- if (!this.data.onetomany[index].fields[j].value) {
201
- if (this.data.onetomany[index].fields[j].value === 0) {
202
- this.data.onetomany[index].fields[j].value = 0
203
- } else {
204
- this.data.onetomany[index].fields[j].value = null
205
- }
206
- }
207
- if (this.data.onetomany[index].fields[j].default || this.data.onetomany[index].fields[j].default == 0) {
208
- this.data.onetomany[index].fields[j].value = this.data.onetomany[index].fields[j].default
209
- }
210
- // 如果配置类型为select,优先从参数列表获取options
211
- if (this.data.onetomany[index].fields[j].type === 'select') {
212
- let temp = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
213
- if (temp && temp.length > 0) {
214
- this.data.onetomany[index].fields[j].options = temp
215
- }
216
- }
217
- }
218
- }
219
- }
220
-
221
- // 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
222
- let temp = JSON.parse(JSON.stringify(this.data))
223
-
224
- this.show_data = temp
225
- this.$nextTick(() => {
226
- this.showview = true
227
- })
228
- // 初始化加载
229
- // ========================= 中盛 =================================
230
-
231
- if (this.selectdata.defname === '报建登记') {
232
- let http = new HttpResetClass()
233
- let condition = "f_filialeid = " + this.$login.f.orgid
234
- let res = await http.load('POST','rs/sql/apply_singleTable',{data:{tablename:'t_area',condition:condition}}, {resolveMsg: null, rejectMsg: null})
235
- for (let i = 0; i < this.show_data.fields.length; i++) {
236
-
237
- if (this.show_data.fields[i].label == '街道') {
238
- let data = []
239
- let array = []
240
- data = res.data.map(item => {
241
- return item.f_street;
242
- })
243
- for (let q = 0; q < data.length; q++) {
244
- let arraydata = {
245
- 'label': data[q],
246
- 'value': data[q]
247
- }
248
- if (array.length != 0) {
249
- for (let w = 0; w < array.length; w++) {
250
- if (array[w].label == data[q]) {
251
- break
252
- }
253
- while (w == array.length - 1) {
254
- array.push(arraydata)
255
- break
256
- }
257
- }
258
- } else {
259
- array.push(arraydata)
260
- }
261
- }
262
- this.show_data.fields[i].options = array
263
- console.log("街道选择框数据:" + JSON.stringify(this.show_data.fields[i].options))
264
- }
265
- if (this.show_data.fields[i].label == '小区') {
266
- let data = []
267
- let array = []
268
- data = res.data.map(item => {
269
- return item.f_residential_area;
270
- })
271
- for (let q = 0; q < data.length; q++) {
272
- let arraydata = {
273
- 'label': data[q],
274
- 'value': data[q]
275
- }
276
- if (array.length != 0) {
277
- for (let w = 0; w < array.length; w++) {
278
- if (array[w].label == data[q]) {
279
- break
280
- }
281
- while (w == array.length - 1) {
282
- array.push(arraydata)
283
- break
284
- }
285
- }
286
- } else {
287
- array.push(arraydata)
288
- }
289
- }
290
- this.show_data.fields[i].options = array
291
- console.log("小区选择框数据:" + JSON.stringify(this.show_data.fields[i].options))
292
- }
293
- }
294
- }
295
- if (this.selectdata.defname === '施工') {
296
- // for (let i = 0; i < this.show_data.fields.length; i++) {
297
- // if (this.show_data.fields[i].label == '工程状态') {
298
- // this.show_data.fields[i].value = ''
299
- // }
300
- // }
301
- for (const item of this.show_data.fields) {
302
- if (item.label === '工程状态') {
303
- return item.value = '未开工'
304
- }
305
- }
306
- }
307
-
308
- },
309
- // 初始化fields值
310
- initializeFields() {
311
-
312
- },
313
- // 金额转大写
314
- smalltoBIG(n) {
315
- let fraction = ['角', '分'];
316
- let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
317
- let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
318
- let head = n < 0 ? '欠' : '';
319
- n = Math.abs(n);
320
-
321
- let s = '';
322
-
323
- for (var i = 0; i < fraction.length; i++) {
324
- s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
325
- }
326
- s = s || '整';
327
- n = Math.floor(n);
328
-
329
- for (var i = 0; i < unit[0].length && n > 0; i++) {
330
- let p = '';
331
- for (var j = 0; j < unit[1].length && n > 0; j++) {
332
- p = digit[n % 10] + unit[1][j] + p;
333
- n = Math.floor(n / 10);
334
- }
335
- s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
336
- }
337
- return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
338
- },
339
- getLableValue(label) {
340
- for (const item of this.show_data.fields) {
341
- if (item.label === label && item.type !== 'number') {
342
- return item.value || ''
343
- }
344
- if (item.label === label && item.type === 'number') {
345
- return item.value || 0
346
- }
347
- }
348
- },
349
- setLabelValue(label, value) {
350
- for (const item of this.show_data.fields) {
351
- if (item.label === label) {
352
- item.value = value
353
- }
354
- }
355
- },
356
-
357
- async buttonBefore(model) {
358
- if (
359
- model.button.button_name === '提交' &&
360
- model.defname === '收费' &&
361
- (
362
- model.f_apply_type === '散户报建' ||
363
- model.f_apply_type === '工商户报建'
364
- ) &&
365
- model.f_surplus_money > 0
366
- ) {
367
- throw '未结金额大于0,无法提交!!!'
368
- }
369
- if (model.defname === '验收是否合格' && model.button.button_name === '提交') {
370
- let http = new HttpResetClass()
371
- let data = {
372
- f_process_id: model.f_process_id
373
- }
374
- let res = await http.load('POST', 'rs/sql/notInstalled', {data: data}, {resolveMsg: null, rejectMsg: null})
375
- if (res.data[0].num > 0) {
376
- throw `还有${res.data[0].num}户未安装,无法提交`
377
- }
378
- }
379
- return model
380
- },
381
- // ========================= 武安 =================================
382
- // 地址类型变化
383
- addressType() {
384
- for (const item of this.show_data.fields) {
385
- if (item.label === '小区' && this.show_data.f_address_type === '民用地址') {
386
- item.required = true
387
- }
388
- if (item.label === '小区' && this.show_data.f_address_type === '特殊地址') {
389
- item.required = false
390
- }
391
- if (
392
- (
393
- item.label === '楼号' ||
394
- item.label === '单元' ||
395
- item.label === '楼层' ||
396
- item.label === '门牌号'
397
- ) && this.show_data.f_address_type === '民用地址'
398
- ) {
399
- item.required = true
400
- item.hidden = false
401
- item.value = null
402
- }
403
- if (
404
- (
405
- item.label === '楼号' ||
406
- item.label === '单元' ||
407
- item.label === '楼层' ||
408
- item.label === '门牌号'
409
- ) && this.show_data.f_address_type === '特殊地址'
410
- ) {
411
- item.required = false
412
- item.hidden = true
413
- item.value = null
414
- }
415
- }
416
- }
417
- // ========================= 武安 =================================
418
- },
419
- events: {
420
- // ========================= 武安 =================================
421
- // ========================= 武安 =================================
422
- 'openAddModel'(index) {
423
- // ========================= 武安 =================================
424
- // ========================= 武安 =================================
425
- },
426
- // 获取view层button事件/
427
- async 'button'(model) {
428
- // 修改提交数据
429
- model = Object.assign({}, this.selectdata, model)
430
- // 点击重置按钮就重置数据
431
- if (model.button.button_name === '重置') {
432
- this.$dispatch('breakControl', this.data)
433
- return
434
- }
435
- // 提交前置
436
- try {
437
- model = await this.buttonBefore(model)
438
- } catch (e) {
439
- this.$showAlert(e, 'warning', 3000)
440
- return
441
- }
442
- let http = new HttpResetClass()
443
- let requestData = {
444
- tables: this.data.tables,
445
- start_activity: this.$workflow_vue.start_activity,
446
- model: model,
447
- loginUser: this.$login.f,
448
- workflow_gxmlfilename: this.$workflow_vue.workflow_xmlfilename
449
- }
450
- console.log("gwfwe",this.selectdata)
451
- // 下发,提交,保存,退回通用业务后台处理logic
452
- let url = 'rs/logic/ApplyProductService'
453
- let res = await http.load('POST', url, {data: requestData}, {resolveMsg: null, rejectMsg: '数据保存失败'})
454
- if (res.data.code === 200) {
455
- this.$dispatch('search')
456
- } else {
457
- if (res.data.msg) {
458
- this.$showMessage(res.data.msg)
459
- }
460
- }
461
- },
462
- async 'initializtionView'() {
463
- // ========================= 武安 =================================
464
- this.addressType()
465
- // ========================= 武安 =================================
466
- },
467
- // 失去焦点出触发事件
468
- async 'onchange'(index) {
469
- console.log('失去焦点')
470
- // ========================= 武安 =================================
471
- if (this.show_data.defname === '报建登记'){
472
- if (this.show_data.fields[index].label === '是否具备安装条件') {
473
- for (const button of this.show_data.buttons) {
474
- if (this.show_data.fields[index].value === '否'&& button.button_name === '退回') {
475
- button.hidden = false
476
- }else {
477
- button.hidden = true
478
- }
479
- }
480
- }
481
- if (this.show_data.fields[index].label === '地址类型'){
482
- this.addressType()
483
- }
484
- // if (this.show_data.fields[index].label === '街道'){
485
- // console.log('-----------添加街道-----------')
486
- // if (this.show_data.fields[index].value === null || this.show_data.fields[index].value === '') {
487
- // this.show_data.fields[index].value = null
488
- // this.$showAlert('街道地址不能为空!!!', 'warning', 3000)
489
- // return
490
- // }
491
- // let http = new HttpResetClass()
492
- // let data = {
493
- // f_adjustable_id: '', // 调压箱编号
494
- // f_orgid: this.$login.f.orgid, // 组织id
495
- // f_orgname: this.$login.f.orgs, // 组织名
496
- // f_pcd: '河北省邯郸市武安市', // 省市区
497
- // f_pcd_id: 8, // 省市区id
498
- // // f_pcd_id: 124, // 50.4测试
499
- // f_slice_area: '', // 片区
500
- // f_operatorid: this.$login.f.id, // 操作人id
501
- // f_operator: this.$login.f.name, // 操作人
502
- // f_filialeid: this.$login.f.orgid, // 创建地址所属分公司(默认当前操作人)
503
- // f_street: this.show_data.fields[index].value.trim(), // 地址
504
- // f_comments: '报建系统自动创建' // 备注
505
- // }
506
- // try {
507
- // let res = await http.load('POST', 'rs/logic/address_updatestreet', {data: data}, {
508
- // resolveMsg: null,
509
- // rejectMsg: null
510
- // })
511
- // } catch (e) {
512
- // if (e.status === 635) {
513
- // this.$showAlert('此街道已存在!!!', 'warning', 3000)
514
- // } else {
515
- // this.$showAlert('自动添加街道失败,请手动添加!!!', 'danger', 3000)
516
- // }
517
- // }
518
- // }
519
- // if (this.show_data.fields[index].label === '小区') {
520
- // if (this.show_data.fields[index].value === null || this.show_data.fields[index].value === '') {
521
- // this.show_data.fields[index].value = null
522
- // this.$showAlert('小区名称不能为空!!!', 'warning', 3000)
523
- // return
524
- // }
525
- // // 先查询街道
526
- // let street = null
527
- // for (const item of this.show_data.fields) {
528
- // if (item.label === '街道') {
529
- // if (item.value.trim() === null || item.value.trim() === '') {
530
- // this.show_data.fields[index].value = null
531
- // this.$showAlert('请先录入街道信息,才能录入小区信息!!!', 'warning', 3000)
532
- // return
533
- // }
534
- // let http = new HttpResetClass()
535
- // let data = {
536
- // 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()}'`
537
- // }
538
- // let res = await http.load('POST', 'rs/sql/address_getstreetlist', {data: data}, {
539
- // resolveMsg: null,
540
- // rejectMsg: null
541
- // })
542
- // if (res.data.length > 0) {
543
- // street = res.data[0]
544
- // } else {
545
- // this.show_data.fields[index].value = null
546
- // this.$showAlert(`【${item.value}】街道不存在,请手动添加或重新输入街道信息,在录入小区信息!!!`, 'warning', 3000)
547
- // }
548
- // }
549
- // }
550
- // console.log('-----------添加小区-----------')
551
- // let data = {
552
- // f_linkname: '', // 联系人
553
- // f_linkphone: '', // 联系电话
554
- // f_adjustable_id: '', // 调压箱编号
555
- // f_user_type: '', // 用户类型
556
- // f_gasproperties: '', // 用气性质
557
- // f_meter_brand: '', // 气表品牌
558
- // f_price_name: '', // 气价名称
559
- // f_price_type: '', // 气价类型
560
- // f_meter_style: '', // 气表型号
561
- // f_position: '', // 表安装位置
562
- // f_meter_type: '', // 气表类型
563
- // f_area_id: '', // 小区编号 (自动生成)
564
- // f_filialeid: this.$login.f.orgid, // 创建地址所属分公司(默认当前操作人)
565
- // f_operatorid: this.$login.f.id, // 操作人id
566
- // f_operator: this.$login.f.name, // 操作人
567
- // f_orgid: this.$login.f.orgid, // 组织id
568
- // f_orgname: this.$login.f.orgs, // 组织名
569
- // f_pcd_id: 8, // 省市区id
570
- // // f_pcd_id: 124, // 50.4测试
571
- // f_pcd: '河北省邯郸市武安市', // 省市区
572
- // f_street_id: street.id, // 街道id
573
- // f_street: street.f_street,// 街道
574
- // f_area_code: '01', // 片区编码
575
- // f_slice_area: '武安片区', // 片区
576
- // // f_area_code: '66556', // 50.4测试
577
- // // f_slice_area: '武安明星', // 50.4测试
578
- // slice_area: [
579
- // {
580
- // name: '武安片区',
581
- // code: '01'
582
- // }
583
- // ],
584
- // // slice_area: [ // 50.4测试
585
- // // {
586
- // // name: '武安明星',
587
- // // code: '66556'
588
- // // }
589
- // // ],
590
- // f_residential_area: this.show_data.fields[index].value.trim(), // 小区名称
591
- // f_area_address: `河北省邯郸市武安市${street.f_street}`, // 详细地址(省市区+街道)
592
- // f_comments: '报建系统自动创建'
593
- // }
594
- // try {
595
- // let http = new HttpResetClass()
596
- // let res = await http.load('POST', 'rs/logic/address_updatearea', {data: data}, {
597
- // resolveMsg: null,
598
- // rejectMsg: null
599
- // })
600
- // } catch (e) {
601
- // if (e.status === 635) {
602
- // this.$showAlert('此小区已存在!!!', 'warning', 3000)
603
- // } else {
604
- // this.$showAlert('自动添加小区失败,请手动添加!!!', 'warning', 3000)
605
- // }
606
- // }
607
- // }
608
- // 地址拼接
609
- if (
610
- this.show_data.fields[index].label === '街道' ||
611
- this.show_data.fields[index].label === '小区' ||
612
- this.show_data.fields[index].label === '楼号' ||
613
- this.show_data.fields[index].label === '单元' ||
614
- this.show_data.fields[index].label === '楼层' ||
615
- this.show_data.fields[index].label === '门牌号'
616
- ) {
617
- let f_address = null
618
- if (this.show_data.f_address_type !== '民用地址') {
619
- f_address = this.getLableValue('街道') + this.getLableValue('小区')
620
- } else {
621
- f_address = this.getLableValue('街道') +
622
- this.getLableValue('小区') +
623
- this.getLableValue('楼号') +
624
- (isEmpty(this.getLableValue('楼号')) ? '' : '号楼') +
625
- this.getLableValue('单元') +
626
- (isEmpty(this.getLableValue('单元')) ? '' : '单元') +
627
- this.getLableValue('楼层') +
628
- (isEmpty(this.getLableValue('楼层')) ? '' : '层') +
629
- this.getLableValue('门牌号') +
630
- (isEmpty(this.getLableValue('门牌号')) ? '' : '室')
631
- }
632
- this.setLabelValue('地址', f_address)
633
- }
634
- }
635
-
636
- if (this.show_data.defname === '竣工验收') {
637
- if (this.show_data.fields[index].label === '验收是否合格'){
638
- for (const button of this.show_data.buttons) {
639
- if (this.show_data.fields[index].value === '否' && button.button_name === '退回') {
640
- button.hidden = false
641
- } else {
642
- button.hidden = true
643
- }
644
- }
645
- }
646
- }
647
- if (this.show_data.defname === '报建登记'&&this.show_data.f_apply_type==='工商户报建') {
648
-
649
- console.log("13f", this.selectdata.onetomany)
650
- for (const button of this.show_data.buttons) {
651
- if (this.selectdata.onetomany&& button.button_name === '提交') {
652
- console.log("1f")
653
- button.disable = true
654
- }
655
- else {
656
- button.disable = false
657
- console.log("2f")
658
- }
659
- }
660
- }
661
- // if (this.show_data.defname === '营业厅建档'){
662
- // let http = new HttpResetClass()
663
- // let data = {
664
- // tablename: 't_userinfo',
665
- // condition: `f_process_id='${this.selectdata.f_process_id}'`
666
- //
667
- // }
668
- // let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: null})
669
- //
670
- // if (this.show_data.fields[index].label === '是否已建档') {
671
- // if (res.data[0].f_user_state === '预备') {
672
- // this.show_data.fields[index].value = '否'
673
- // button.hidden = false
674
- // }else{
675
- // this.show_data.fields[index].value = '是'
676
- // button.hidden = true
677
- // }
678
- // }
679
- // }
680
- if(this.show_data.defname === '现场勘察') {
681
- console.log("this.shdata",this.show_data)
682
- if (this.show_data.fields[index].label === '是否具备安装条件') {
683
- for (const button of this.show_data.buttons) {
684
- if (this.show_data.fields[index].value === '否'&& button.button_name === '退回') {
685
- button.hidden = false
686
- }else {
687
- button.hidden = true
688
- }
689
- }
690
- }
691
- }
692
- // if (this.show_data.defname === '通气点火'){
693
- // let http = new HttpResetClass()
694
- // let data = {
695
- // tablename: 't_firemessage',
696
- // condition: `f_process_id='${this.selectdata.f_process_id}'`
697
- //
698
- // }
699
- // let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: null})
700
- // console.log("res")
701
- // console.log(res.data)
702
- // if (this.show_data.fields[index].label === '是否已通气') {
703
- // if (res.data.length==0) {
704
- // this.show_data.fields[index].value = ''
705
- // button.hidden = false
706
- // }else{
707
- // this.show_data.fields[index].value = '是'
708
- // button.hidden = true
709
- // }
710
- // }
711
- // }
712
- if (this.show_data.defname === '合同签订') {
713
- if (this.show_data.fields[index].label === '合同编号') {
714
- if (!isEmpty(this.show_data.fields[index].value)) {
715
- let http = new HttpResetClass()
716
- let data = {
717
- tablename: 't_apply',
718
- condition: `f_contract_number='${this.show_data.fields[index].value}'`
719
- }
720
- let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
721
- resolveMsg: null,
722
- rejectMsg: '合同编号查重失败'
723
- })
724
- if (res.data.length > 0) {
725
- this.show_data.fields[index].value = null
726
- this.$showAlert('合同编号已存在!!!', 'warning', 3000)
727
- }
728
- //拼写合同编号
729
- if (this.selectdata.f_apply_type == '工商户报建') {
730
- this.show_data.fields[index].value = "ZS-S-" + this.show_data.fields[index].value
731
- // this.show_data.fields[index].value = "ZS-S-" + this.show_data.fields[index].value + "-" + new Date().Format('yyyy-MM-dd')
732
- }else {
733
- this.show_data.fields[index].value = "ZS-M-" + this.show_data.fields[index].value
734
- // this.show_data.fields[index].value = "ZS-M-" + this.show_data.fields[index].value + "-" + new Date().Format('yyyy-MM-dd')
735
- }
736
- }
737
- }
738
- if (this.show_data.fields[index].label === '单价(户)') {
739
- let http = new HttpResetClass()
740
- let data = {
741
- num1: this.getLableValue(this.show_data.fields[index].label),
742
- num2: this.getLableValue('户数'),
743
- operator: '*'
744
- }
745
- try {
746
- let res = await http.load('POST', 'rs/logic/compute', {data: data}, {
747
- resolveMsg: null,
748
- rejectMsg: null
749
- })
750
- data = {
751
- num1: res.data,
752
- num2: this.getLableValue('其他费用'),
753
- operator: '+'
754
- }
755
- res = await http.load('POST', 'rs/logic/compute', {data: data}, {
756
- resolveMsg: null,
757
- rejectMsg: null
758
- })
759
- this.setLabelValue('合同金额',res.data)
760
- } catch (e) {
761
- this.$showAlert(e.data.msg, 'warning', 3000)
762
- }
763
- }
764
- if (this.show_data.fields[index].label === '其他费用') {
765
- let http = new HttpResetClass()
766
- let data = {
767
- num1: this.getLableValue(this.show_data.fields[index].label),
768
- num2: this.getLableValue('合同金额'),
769
- operator: '+'
770
- }
771
- try {
772
- let res = await http.load('POST', 'rs/logic/compute', {data: data}, {
773
- resolveMsg: null,
774
- rejectMsg: null
775
- })
776
- this.setLabelValue('合同金额',res.data)
777
- } catch (e) {
778
- this.$showAlert(e.data.msg, 'warning', 3000)
779
- }
780
- }
781
- }
782
- // ========================= 武安 =================================
783
- // 号码检测
784
- if (this.show_data.fields[index].label === '电话号码') {
785
- let phone = this.show_data.fields[index].value
786
- // 电话号码效验
787
- if (!(/^1[3456789]\d{9}$/.test(phone))) {
788
- this.show_data.fields[index].value = ""
789
- this.$showAlert('电话号码格式不正确,请重新输入。', 'info', 2000)
790
- }
791
- }
792
- //时间提醒
793
- if (this.show_data.fields[index].label.includes("时间") || this.show_data.fields[index].type === 'datepicker') {
794
- let setTime = this.show_data.fields[index].value
795
- let nowTime = new Date().Format("yyyy-MM-dd HH:mm:ss")
796
- if (nowTime >= setTime) {
797
- this.$showMessage("请注意,当前节点时间/工期已过期!")
798
- }
799
- }
800
- },
801
- // input值发生变化
802
- async 'oninput'(index) {
803
-
804
- },
805
- // 错误事件
806
- error_check(index) {
807
- // 时间格式检测
808
- if (this.show_data.fields[index].type == 'datepicker') {
809
- 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)$/)
810
- 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])$/)
811
- if (datetimeRe.test(this.show_data.fields[index].value) && this.show_data.fields[index].value.trim().length == 19 && this.show_data.fields[index].fullsize) {
812
- this.show_data.fields[index].error.flag = false
813
- } else if (dateRe.test(this.show_data.fields[index].value) && this.show_data.fields[index].value.trim().length == 10) {
814
- this.show_data.fields[index].error.flag = false
815
- } else {
816
- if (this.show_data.fields[index].fullsize) {
817
- this.show_data.fields[index].error = Object.assign({}, this.show_data.fields[index].error)
818
- 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'
819
- this.$showAlert(this.show_data.fields[index].label + '格式错误' + this.show_data.fields[index].error.msg, 'warning', 3000)
820
- this.show_data.fields[index].error.flag = true
821
- this.show_data.fields[index].value = ''
822
- } else {
823
- this.show_data.fields[index].error = Object.assign({}, this.show_data.fields[index].error)
824
- this.show_data.fields[index].error.msg = this.show_data.fields[index].error.msg ? this.show_data.fields[index].error.msg : '时间格式如:2019-05-02'
825
- this.$showAlert(this.show_data.fields[index].label + '格式错误' + this.show_data.fields[index].error.msg, 'warning', 3000)
826
- this.show_data.fields[index].error.flag = true
827
- this.show_data.fields[index].value = ''
828
- }
829
-
830
- }
831
- }
832
- },
833
- // onetomany模态框默认监听监听事件
834
- async 'onetomanydelete'(i, j) {
835
- console.log('默认删除')
836
- let http = new HttpResetClass()
837
- let data = {
838
- table: this.show_data.onetomany[i].tables[0],
839
- row: this.show_data.onetomany[i].rows[j]
840
- }
841
- let res = await http.load('POST', 'rs/logic/onetomanyDefaultDeleteEvent', {data: data}, {
842
- resolveMsg: null,
843
- rejectMsg: '删除失败'
844
- })
845
-
846
- if (res.data <= 0){
847
- this.$showMessage('删除失败')
848
- return
849
- }
850
-
851
- this.$dispatch('breakControl', this.show_data)
852
- },
853
- async 'onetomanyadd'(index) {
854
-
855
- let data = {
856
- f_process_id : this.show_data.f_process_id
857
- }
858
- this.show_data.onetomany[index].fields.forEach(item => {
859
- data[item.field] = item.value
860
- })
861
- let res = await this.$resetpost(
862
- `rs/entity/${this.show_data.onetomany[index].tables[0]}`,
863
- data
864
- )
865
- this.$dispatch('breakControl', this.show_data)
866
- },
867
- async 'onetomanyupdate'(i, j) {
868
- let onetomany = this.show_data.onetomany[i]
869
- let data = onetomany.rows[j]
870
-
871
- onetomany.fields.forEach(item => {
872
- data[item.field] = item.value
873
- })
874
- let res = await this.$resetpost(
875
- `rs/entity/${this.show_data.onetomany[i].tables[0]}`,
876
- data
877
- )
878
-
879
- this.$dispatch('breakControl', this.show_data)
880
- },
881
- // onetomany模态框监听事件
882
- async 'onchange_modal'(index, i) {
883
- },
884
- async 'oninput_modal'(index, i) {
885
- }
886
- },
887
- watch: {
888
- }
889
- }
890
- </script>
891
- <style scoped>
892
- /*清除model中的浮动*/
893
- .clearfix:after,.clearfix:before{
894
- display: table;
895
- }
896
- .clearfix:after{
897
- clear: both;
898
- }
899
- </style>
1
+ <template>
2
+
3
+ <div class="auto clearfix">
4
+ <show-back-reason :selectdata="show_data"></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
+ item.value = item.default
91
+ }
92
+ if (this.selectdata[item.field]) {
93
+ // 将json字符串格式化赋值给value
94
+ if (String(this.selectdata[item.field]).startsWith("{")) {
95
+ item.value = JSON.parse(this.selectdata[item.field])
96
+ this.selectdata[item.field] = JSON.parse(this.selectdata[item.field])
97
+ } else {
98
+ item.value = this.selectdata[item.field]
99
+ }
100
+ } else {
101
+ if (this.selectdata[item.field] === 0) {
102
+ item.value = 0
103
+ }
104
+ }
105
+
106
+ // datepicker 没有值给当时值
107
+ if (item.type === 'datepicker' && !item.value && item.default) {
108
+ item.value = new Date().Format('yyyy-MM-dd HH:mm:ss')
109
+ }
110
+
111
+ // 如果配置类型为select,优先从参数列表获取options
112
+ if (item.type === 'select') {
113
+ let temp = null
114
+
115
+ temp = this.$appdata.getParam(item.label)
116
+
117
+ if (temp && temp.length > 0 && item.label) {
118
+ item.options = temp
119
+ } else {
120
+ if (item.paramLabel) {
121
+ temp = this.$appdata.getParam(item.paramLabel)
122
+ if (temp && temp.length > 0) {
123
+ item.options = temp
124
+ }
125
+ }
126
+ }
127
+ }
128
+ })
129
+
130
+ // 控制组件
131
+ if (this.data.components) {
132
+ this.data.components.forEach(item => {
133
+ if (!item.mark) {
134
+ item.mark = 0
135
+ }
136
+ })
137
+ }
138
+
139
+ // 初始化 fields 可对数据进行特殊处理
140
+ this.initializeFields()
141
+
142
+ // 初始化 buttons_fields
143
+ for (let i = 0; i < this.data.buttons.length; i++) {
144
+ // 下发按钮相关配置
145
+ if (this.data.buttons[i].button_name === '下发') {
146
+ if (this.data.buttons[i].button_fields && this.data.buttons[i].button_fields.length === 1) {
147
+ if (this.data.buttons[i].source){
148
+ let http = new HttpResetClass()
149
+ let res = await http.load('POST', 'rs/search', {
150
+ source: this.data.buttons[i].source,
151
+ userid: this.$login.f.id
152
+ }, {resolveMsg: null, rejectMsg: null})
153
+
154
+ let options = []
155
+ for (let i = 0; i < res.data.length; i++) {
156
+ options.push(
157
+ {
158
+ "label": res.data[i].name,
159
+ "value": res.data[i].id
160
+ }
161
+ )
162
+ }
163
+ this.data.buttons[i].button_fields[0]['options'] = options
164
+ } else {
165
+ this.$showMessage("请配置获取人员表达式")
166
+ }
167
+ } else {
168
+ this.$showMessage("下发按钮必须满足 当且仅当一个字段")
169
+ }
170
+ }
171
+ if (this.data.buttons[i].button_fields) {
172
+ this.data.buttons[i].button_fields.forEach(x => {
173
+ // 如果配置类型为select,优先从参数列表获取options
174
+ if (x.type === 'select' && this.$appdata.getParam(x.label)) {
175
+ x.options = this.$appdata.getParam(x.label).trim()
176
+ }
177
+ })
178
+ }
179
+ }
180
+
181
+ // onetomany 数据获取
182
+ if (this.data.onetomany) {
183
+ for (let index = 0; index < this.data.onetomany.length; index++) {
184
+ let res = null
185
+ if (!this.data.onetomany[index].queryEvent || this.data.onetomany[index].queryEvent === 'default'){
186
+ let http = new HttpResetClass()
187
+ let data = {
188
+ tablename: this.data.onetomany[index].tables[0],
189
+ condition: `f_process_id='${this.selectdata.f_process_id}'`
190
+ }
191
+ res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
192
+ resolveMsg: null,
193
+ rejectMsg: 'onetomany查询失败'
194
+ })
195
+ } else {
196
+ res = this[this.data.onetomany[index].queryEvent]()
197
+ }
198
+
199
+ // 初始化 onetomany
200
+ this.data.onetomany[index].rows = res.data
201
+
202
+ // 初始化onetomany中的fields
203
+ for (let j = 0; j < this.data.onetomany[index].fields.length; j++) {
204
+ if (!this.data.onetomany[index].fields[j].value) {
205
+ if (this.data.onetomany[index].fields[j].value === 0) {
206
+ this.data.onetomany[index].fields[j].value = 0
207
+ } else {
208
+ this.data.onetomany[index].fields[j].value = null
209
+ }
210
+ }
211
+ if (this.data.onetomany[index].fields[j].default || this.data.onetomany[index].fields[j].default == 0) {
212
+ this.data.onetomany[index].fields[j].value = this.data.onetomany[index].fields[j].default
213
+ }
214
+ // 如果配置类型为select,优先从参数列表获取options
215
+ if (this.data.onetomany[index].fields[j].type === 'select') {
216
+ let temp = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
217
+ if (temp && temp.length > 0) {
218
+ this.data.onetomany[index].fields[j].options = temp
219
+ }
220
+ }
221
+ }
222
+ }
223
+ }
224
+
225
+ // 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
226
+ let temp = JSON.parse(JSON.stringify(this.data))
227
+
228
+ this.show_data = temp
229
+ this.$nextTick(() => {
230
+ this.showview = true
231
+ })
232
+ // 初始化加载
233
+ // ========================= 中盛 =================================
234
+
235
+ if (this.selectdata.defname === '报建登记') {
236
+ let http = new HttpResetClass()
237
+ let condition = "f_filialeid = " + this.$login.f.orgid
238
+ let res = await http.load('POST','rs/sql/apply_singleTable',{data:{tablename:'t_area',condition:condition}}, {resolveMsg: null, rejectMsg: null})
239
+ for (let i = 0; i < this.show_data.fields.length; i++) {
240
+
241
+ if (this.show_data.fields[i].label == '街道') {
242
+ let data = []
243
+ let array = []
244
+ data = res.data.map(item => {
245
+ return item.f_street;
246
+ })
247
+ for (let q = 0; q < data.length; q++) {
248
+ let arraydata = {
249
+ 'label': data[q],
250
+ 'value': data[q]
251
+ }
252
+ if (array.length != 0) {
253
+ for (let w = 0; w < array.length; w++) {
254
+ if (array[w].label == data[q]) {
255
+ break
256
+ }
257
+ while (w == array.length - 1) {
258
+ array.push(arraydata)
259
+ break
260
+ }
261
+ }
262
+ } else {
263
+ array.push(arraydata)
264
+ }
265
+ }
266
+ this.show_data.fields[i].options = array
267
+ console.log("街道选择框数据:" + JSON.stringify(this.show_data.fields[i].options))
268
+ }
269
+ if (this.show_data.fields[i].label == '小区') {
270
+ let data = []
271
+ let array = []
272
+ data = res.data.map(item => {
273
+ return item.f_residential_area;
274
+ })
275
+ for (let q = 0; q < data.length; q++) {
276
+ let arraydata = {
277
+ 'label': data[q],
278
+ 'value': data[q]
279
+ }
280
+ if (array.length != 0) {
281
+ for (let w = 0; w < array.length; w++) {
282
+ if (array[w].label == data[q]) {
283
+ break
284
+ }
285
+ while (w == array.length - 1) {
286
+ array.push(arraydata)
287
+ break
288
+ }
289
+ }
290
+ } else {
291
+ array.push(arraydata)
292
+ }
293
+ }
294
+ this.show_data.fields[i].options = array
295
+ console.log("小区选择框数据:" + JSON.stringify(this.show_data.fields[i].options))
296
+ }
297
+ }
298
+ }
299
+ if (this.selectdata.defname === '施工') {
300
+ // for (let i = 0; i < this.show_data.fields.length; i++) {
301
+ // if (this.show_data.fields[i].label == '工程状态') {
302
+ // this.show_data.fields[i].value = ''
303
+ // }
304
+ // }
305
+ for (const item of this.show_data.fields) {
306
+ if (item.label === '工程状态') {
307
+ return item.value = '未开工'
308
+ }
309
+ }
310
+ }
311
+
312
+ },
313
+ // 初始化fields值
314
+ initializeFields() {
315
+
316
+ },
317
+ // 金额转大写
318
+ smalltoBIG(n) {
319
+ let fraction = ['角', '分'];
320
+ let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
321
+ let unit = [['', '万', '亿'], ['', '拾', '佰', '仟']];
322
+ let head = n < 0 ? '欠' : '';
323
+ n = Math.abs(n);
324
+
325
+ let s = '';
326
+
327
+ for (var i = 0; i < fraction.length; i++) {
328
+ s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
329
+ }
330
+ s = s || '';
331
+ n = Math.floor(n);
332
+
333
+ for (var i = 0; i < unit[0].length && n > 0; i++) {
334
+ let p = '';
335
+ for (var j = 0; j < unit[1].length && n > 0; j++) {
336
+ p = digit[n % 10] + unit[1][j] + p;
337
+ n = Math.floor(n / 10);
338
+ }
339
+ s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
340
+ }
341
+ return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
342
+ },
343
+ getLableValue(label) {
344
+ for (const item of this.show_data.fields) {
345
+ if (item.label === label && item.type !== 'number') {
346
+ return item.value || ''
347
+ }
348
+ if (item.label === label && item.type === 'number') {
349
+ return item.value || 0
350
+ }
351
+ }
352
+ },
353
+ setLabelValue(label, value) {
354
+ for (const item of this.show_data.fields) {
355
+ if (item.label === label) {
356
+ item.value = value
357
+ }
358
+ }
359
+ },
360
+ setLabelOptions(label, options) {
361
+ for (const item of this.show_data.fields) {
362
+ if (item.label === label) {
363
+ item.options = options
364
+ }
365
+ }
366
+ },
367
+ showLabels(...labels) {
368
+ for (const item of this.show_data.fields) {
369
+ if (labels.includes(item.label)) {
370
+ item.hidden = false
371
+ }
372
+ }
373
+ },
374
+ hideLabels(...labels) {
375
+ for (const item of this.show_data.fields) {
376
+ if (labels.includes(item.label)) {
377
+ item.hidden = true
378
+ }
379
+ }
380
+ },
381
+ requiredLabels(...labels) {
382
+ for (const item of this.show_data.fields) {
383
+ if (labels.includes(item.label)) {
384
+ item.required = true
385
+ }
386
+ }
387
+ },
388
+ electiveLabels(...labels) {
389
+ for (const item of this.show_data.fields) {
390
+ if (labels.includes(item.label)) {
391
+ item.required = false
392
+ }
393
+ }
394
+ },
395
+ readonlyLabels(...labels) {
396
+ for (const item of this.show_data.fields) {
397
+ if (labels.includes(item.label)) {
398
+ item.readonly = true
399
+ item.disabled = true
400
+ }
401
+ }
402
+ },
403
+ readwriteLabels(...labels) {
404
+ for (const item of this.show_data.fields) {
405
+ if (labels.includes(item.label)) {
406
+ item.readonly = false
407
+ item.disabled = false
408
+ }
409
+ }
410
+ },
411
+ showButtons(...buttons) {
412
+ for (const item of this.show_data.buttons) {
413
+ if (buttons.includes(item.button_name)) {
414
+ item.hidden = false
415
+ }
416
+ }
417
+ },
418
+ hideButtons(...buttons) {
419
+ for (const item of this.show_data.buttons) {
420
+ if (buttons.includes(item.button_name)) {
421
+ item.hidden = true
422
+ }
423
+ }
424
+ },
425
+ // 获取区县
426
+ async getPcd() {
427
+ let data = {
428
+ tablename: 't_pcd',
429
+ condition: `f_filialeid = '${this.$login.f.orgid}'`
430
+ }
431
+ let http = new HttpResetClass()
432
+ let res = await http.load(
433
+ 'POST',
434
+ `rs/sql/singleTable`,
435
+ {data: data},
436
+ {resolveMsg: null, rejectMsg: '区县查询失败!!!'}
437
+ )
438
+
439
+ let pcd = res.data.map(item => {
440
+ return {
441
+ label: item.f_pcd,
442
+ value: item.f_pcd
443
+ }
444
+ })
445
+ this.setLabelOptions('区域',pcd)
446
+ },
447
+ // 地址关联
448
+ addressInitialization() {
449
+ this.$getConfig(this, 'UserAddress')
450
+
451
+ let f_address_type = this.show_data.f_address_type
452
+
453
+ for (const item of this.show_data.fields) {
454
+ if (f_address_type === '民用地址') {
455
+ if (item.label === '区域' || item.label === '街道' || item.label === '小区' || item.label === '门牌号') {
456
+ item.hidden = false
457
+ item.required = true
458
+ }
459
+ if (item.label === '楼号' || item.label === '单元' || item.label === '楼层') {
460
+ item.hidden = false
461
+ item.required = false
462
+ }
463
+ if (item.label === '地址') {
464
+ item.readonly = true
465
+ }
466
+ }
467
+ if (f_address_type === '特殊地址') {
468
+ if (item.label === '区域' || item.label === '街道') {
469
+ item.hidden = false
470
+ item.required = true
471
+ }
472
+ if (item.label === '小区') {
473
+ item.hidden = true
474
+ item.required = false
475
+ }
476
+ if (item.label === '楼号' || item.label === '单元' || item.label === '楼层' || item.label === '门牌号') {
477
+ item.hidden = true
478
+ item.required = false
479
+ }
480
+ if (item.label === '地址') {
481
+ item.readonly = false
482
+ }
483
+ }
484
+
485
+ if (this.show_data.f_apply_source === '线下发起' && item.label === '预约地址') {
486
+ item.hidden = true
487
+ }
488
+ }
489
+ },
490
+ async streetChange() {
491
+ if (isEmpty(this.show_data.f_street)) {
492
+ return
493
+ }
494
+
495
+ let data = {
496
+ tablename: 't_area',
497
+ condition: `f_filialeid = '${this.$login.f.orgid}' and f_street = '${this.show_data.f_street}'`
498
+ }
499
+ let http = new HttpResetClass()
500
+ let res = await http.load(
501
+ 'POST',
502
+ `rs/sql/singleTable`,
503
+ {data: data},
504
+ {resolveMsg: null, rejectMsg: '小区查询失败!!!'}
505
+ )
506
+
507
+ this.setLabelOptions('小区', res.data.map(item => {
508
+ return {
509
+ label: item.f_residential_area,
510
+ value: item.f_residential_area
511
+ }
512
+ }))
513
+ },
514
+ async pcdChange() {
515
+ if (isEmpty(this.show_data.f_pcd)) {
516
+ return
517
+ }
518
+
519
+ let data = {
520
+ tablename: 't_street',
521
+ condition: `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
522
+ }
523
+ let f_address_type = this.getLableValue('地址类型')
524
+
525
+ if (f_address_type === '民用地址') {
526
+ data.condition = `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
527
+ }
528
+
529
+ let http = new HttpResetClass()
530
+ let res = await http.load(
531
+ 'POST',
532
+ `rs/sql/singleTable`,
533
+ {data: data},
534
+ {resolveMsg: null, rejectMsg: '街道查询失败!!!'}
535
+ )
536
+
537
+ this.setLabelOptions('街道', res.data.map(item => {
538
+ return {
539
+ label: item.f_street,
540
+ value: item.f_street
541
+ }
542
+ }))
543
+ },
544
+ async buttonBefore(model) {
545
+ if (
546
+ model.button.button_name === '提交' &&
547
+ model.defname === '收费' &&
548
+ (
549
+ model.f_apply_type === '散户报建' ||
550
+ model.f_apply_type === '工商户报建'
551
+ ) &&
552
+ model.f_surplus_money > 0
553
+ ) {
554
+ throw '未结金额大于0,无法提交!!!'
555
+ }
556
+ if (model.defname === '验收是否合格' && model.button.button_name === '提交') {
557
+ let http = new HttpResetClass()
558
+ let data = {
559
+ f_process_id: model.f_process_id
560
+ }
561
+ let res = await http.load('POST', 'rs/sql/notInstalled', {data: data}, {resolveMsg: null, rejectMsg: null})
562
+ if (res.data[0].num > 0) {
563
+ throw `还有${res.data[0].num}户未安装,无法提交`
564
+ }
565
+ }
566
+ return model
567
+ },
568
+ // ========================= 武安 =================================
569
+ // 地址类型变化
570
+ addressType() {
571
+ for (const item of this.show_data.fields) {
572
+ if (item.label === '小区' && this.show_data.f_address_type === '民用地址') {
573
+ item.hidden = false
574
+ item.required = true
575
+ }
576
+ if (item.label === '小区' && this.show_data.f_address_type === '特殊地址') {
577
+ item.required = false
578
+ }
579
+ if (
580
+ (
581
+ item.label === '门牌号'
582
+ ) && this.show_data.f_address_type === '民用地址'
583
+ ) {
584
+ item.required = true
585
+ item.hidden = false
586
+ item.value = null
587
+ }
588
+ if (
589
+ (
590
+ item.label === '楼号' ||
591
+ item.label === '单元' ||
592
+ item.label === '楼层'
593
+ ) && this.show_data.f_address_type === '民用地址'
594
+ ) {
595
+ item.required = false
596
+ item.hidden = false
597
+ item.value = null
598
+ }
599
+ if (
600
+ (
601
+ item.label === '楼号' ||
602
+ item.label === '单元' ||
603
+ item.label === '楼层' ||
604
+ item.label === '门牌号'
605
+ ) && this.show_data.f_address_type === '特殊地址'
606
+ ) {
607
+ item.required = false
608
+ item.hidden = true
609
+ item.value = null
610
+ }
611
+ }
612
+ this.getPcd()
613
+ }
614
+ // ========================= 武安 =================================
615
+ },
616
+ events: {
617
+ // ========================= 武安 =================================
618
+ // ========================= 武安 =================================
619
+ 'openAddModel'(index) {
620
+ // ========================= 武安 =================================
621
+ // ========================= 武安 =================================
622
+ },
623
+ // 获取view层button事件/
624
+ async 'button'(model) {
625
+ // 修改提交数据
626
+ model = Object.assign({}, this.selectdata, model)
627
+ // 点击重置按钮就重置数据
628
+ if (model.button.button_name === '重置') {
629
+ this.$dispatch('breakControl', this.data)
630
+ return
631
+ }
632
+ // 提交前置
633
+ try {
634
+ model = await this.buttonBefore(model)
635
+ } catch (e) {
636
+ this.$showAlert(e, 'warning', 3000)
637
+ return
638
+ }
639
+ let http = new HttpResetClass()
640
+ let requestData = {
641
+ tables: this.data.tables,
642
+ start_activity: this.$workflow_vue.start_activity,
643
+ model: model,
644
+ loginUser: this.$login.f,
645
+ workflow_gxmlfilename: this.$workflow_vue.workflow_xmlfilename
646
+ }
647
+ console.log("gwfwe",this.selectdata)
648
+ // 下发,提交,保存,退回通用业务后台处理logic
649
+ let url = 'rs/logic/ApplyProductService'
650
+ let res = await http.load('POST', url, {data: requestData}, {resolveMsg: null, rejectMsg: '数据保存失败'})
651
+ if (res.data.code === 200) {
652
+ this.$dispatch('search')
653
+ } else {
654
+ if (res.data.msg) {
655
+ this.$showMessage(res.data.msg)
656
+ }
657
+ }
658
+ },
659
+ async 'initializtionView'() {
660
+ // ========================= 武安 =================================
661
+ this.addressType()
662
+ // ========================= 武安 =================================
663
+ },
664
+ // 失去焦点出触发事件
665
+ async 'onchange'(index) {
666
+ console.log('失去焦点')
667
+ // ========================= 武安 =================================
668
+ if (this.show_data.defname === '报建登记' || this.show_data.defname === '业务申请'){
669
+ if (this.show_data.fields[index].label === '是否具备安装条件') {
670
+ for (const button of this.show_data.buttons) {
671
+ if (this.show_data.fields[index].value === ''&& button.button_name === '退回') {
672
+ button.hidden = false
673
+ }else {
674
+ button.hidden = true
675
+ }
676
+ }
677
+ }
678
+ if (this.show_data.fields[index].label === '地址类型'){
679
+ this.addressType()
680
+ }
681
+ // if (this.show_data.fields[index].label === '街道'){
682
+ // console.log('-----------添加街道-----------')
683
+ // if (this.show_data.fields[index].value === null || this.show_data.fields[index].value === '') {
684
+ // this.show_data.fields[index].value = null
685
+ // this.$showAlert('街道地址不能为空!!!', 'warning', 3000)
686
+ // return
687
+ // }
688
+ // let http = new HttpResetClass()
689
+ // let data = {
690
+ // f_adjustable_id: '', // 调压箱编号
691
+ // f_orgid: this.$login.f.orgid, // 组织id
692
+ // f_orgname: this.$login.f.orgs, // 组织名
693
+ // f_pcd: '河北省邯郸市武安市', // 省市区
694
+ // f_pcd_id: 8, // 省市区id
695
+ // // f_pcd_id: 124, // 50.4测试
696
+ // f_slice_area: '', // 片区
697
+ // f_operatorid: this.$login.f.id, // 操作人id
698
+ // f_operator: this.$login.f.name, // 操作人
699
+ // f_filialeid: this.$login.f.orgid, // 创建地址所属分公司(默认当前操作人)
700
+ // f_street: this.show_data.fields[index].value.trim(), // 地址
701
+ // f_comments: '报建系统自动创建' // 备注
702
+ // }
703
+ // try {
704
+ // let res = await http.load('POST', 'rs/logic/address_updatestreet', {data: data}, {
705
+ // resolveMsg: null,
706
+ // rejectMsg: null
707
+ // })
708
+ // } catch (e) {
709
+ // if (e.status === 635) {
710
+ // this.$showAlert('此街道已存在!!!', 'warning', 3000)
711
+ // } else {
712
+ // this.$showAlert('自动添加街道失败,请手动添加!!!', 'danger', 3000)
713
+ // }
714
+ // }
715
+ // }
716
+ // if (this.show_data.fields[index].label === '小区') {
717
+ // if (this.show_data.fields[index].value === null || this.show_data.fields[index].value === '') {
718
+ // this.show_data.fields[index].value = null
719
+ // this.$showAlert('小区名称不能为空!!!', 'warning', 3000)
720
+ // return
721
+ // }
722
+ // // 先查询街道
723
+ // let street = null
724
+ // for (const item of this.show_data.fields) {
725
+ // if (item.label === '街道') {
726
+ // if (item.value.trim() === null || item.value.trim() === '') {
727
+ // this.show_data.fields[index].value = null
728
+ // this.$showAlert('请先录入街道信息,才能录入小区信息!!!', 'warning', 3000)
729
+ // return
730
+ // }
731
+ // let http = new HttpResetClass()
732
+ // let data = {
733
+ // 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()}'`
734
+ // }
735
+ // let res = await http.load('POST', 'rs/sql/address_getstreetlist', {data: data}, {
736
+ // resolveMsg: null,
737
+ // rejectMsg: null
738
+ // })
739
+ // if (res.data.length > 0) {
740
+ // street = res.data[0]
741
+ // } else {
742
+ // this.show_data.fields[index].value = null
743
+ // this.$showAlert(`【${item.value}】街道不存在,请手动添加或重新输入街道信息,在录入小区信息!!!`, 'warning', 3000)
744
+ // }
745
+ // }
746
+ // }
747
+ // console.log('-----------添加小区-----------')
748
+ // let data = {
749
+ // f_linkname: '', // 联系人
750
+ // f_linkphone: '', // 联系电话
751
+ // f_adjustable_id: '', // 调压箱编号
752
+ // f_user_type: '', // 用户类型
753
+ // f_gasproperties: '', // 用气性质
754
+ // f_meter_brand: '', // 气表品牌
755
+ // f_price_name: '', // 气价名称
756
+ // f_price_type: '', // 气价类型
757
+ // f_meter_style: '', // 气表型号
758
+ // f_position: '', // 表安装位置
759
+ // f_meter_type: '', // 气表类型
760
+ // f_area_id: '', // 小区编号 (自动生成)
761
+ // f_filialeid: this.$login.f.orgid, // 创建地址所属分公司(默认当前操作人)
762
+ // f_operatorid: this.$login.f.id, // 操作人id
763
+ // f_operator: this.$login.f.name, // 操作人
764
+ // f_orgid: this.$login.f.orgid, // 组织id
765
+ // f_orgname: this.$login.f.orgs, // 组织名
766
+ // f_pcd_id: 8, // 省市区id
767
+ // // f_pcd_id: 124, // 50.4测试
768
+ // f_pcd: '河北省邯郸市武安市', // 省市区
769
+ // f_street_id: street.id, // 街道id
770
+ // f_street: street.f_street,// 街道
771
+ // f_area_code: '01', // 片区编码
772
+ // f_slice_area: '武安片区', // 片区
773
+ // // f_area_code: '66556', // 50.4测试
774
+ // // f_slice_area: '武安明星', // 50.4测试
775
+ // slice_area: [
776
+ // {
777
+ // name: '武安片区',
778
+ // code: '01'
779
+ // }
780
+ // ],
781
+ // // slice_area: [ // 50.4测试
782
+ // // {
783
+ // // name: '武安明星',
784
+ // // code: '66556'
785
+ // // }
786
+ // // ],
787
+ // f_residential_area: this.show_data.fields[index].value.trim(), // 小区名称
788
+ // f_area_address: `河北省邯郸市武安市${street.f_street}`, // 详细地址(省市区+街道)
789
+ // f_comments: '报建系统自动创建'
790
+ // }
791
+ // try {
792
+ // let http = new HttpResetClass()
793
+ // let res = await http.load('POST', 'rs/logic/address_updatearea', {data: data}, {
794
+ // resolveMsg: null,
795
+ // rejectMsg: null
796
+ // })
797
+ // } catch (e) {
798
+ // if (e.status === 635) {
799
+ // this.$showAlert('此小区已存在!!!', 'warning', 3000)
800
+ // } else {
801
+ // this.$showAlert('自动添加小区失败,请手动添加!!!', 'warning', 3000)
802
+ // }
803
+ // }
804
+ // }
805
+ // 地址拼接
806
+ if (
807
+ this.show_data.fields[index].label === '区域' ||
808
+ this.show_data.fields[index].label === '街道' ||
809
+ this.show_data.fields[index].label === '小区' ||
810
+ this.show_data.fields[index].label === '楼号' ||
811
+ this.show_data.fields[index].label === '单元' ||
812
+ this.show_data.fields[index].label === '楼层' ||
813
+ this.show_data.fields[index].label === '门牌号'
814
+ ) {
815
+ let f_address = null
816
+ if (this.show_data.f_address_type !== '民用地址') {
817
+ f_address = this.getLableValue('区域') + this.getLableValue('街道') + this.getLableValue('小区')
818
+ } else {
819
+ f_address = this.getLableValue('区域') + this.getLableValue('街道') +
820
+ this.getLableValue('小区') +
821
+ this.getLableValue('楼号') +
822
+ (isEmpty(this.getLableValue('楼号')) ? '' : '号楼') +
823
+ this.getLableValue('单元') +
824
+ (isEmpty(this.getLableValue('单元')) ? '' : '单元') +
825
+ this.getLableValue('楼层') +
826
+ (isEmpty(this.getLableValue('楼层')) ? '' : '层') +
827
+ this.getLableValue('门牌号') +
828
+ (isEmpty(this.getLableValue('门牌号')) ? '' : '室')
829
+ }
830
+ this.setLabelValue('地址', f_address)
831
+ }
832
+ }
833
+
834
+ if (this.show_data.defname === '竣工验收') {
835
+ if (this.show_data.fields[index].label === '验收是否合格'){
836
+ for (const button of this.show_data.buttons) {
837
+ if (this.show_data.fields[index].value === '否' && button.button_name === '退回') {
838
+ button.hidden = false
839
+ } else {
840
+ button.hidden = true
841
+ }
842
+ }
843
+ }
844
+ }
845
+ if (this.show_data.defname === '报建登记'&&this.show_data.f_apply_type==='工商户报建') {
846
+
847
+ console.log("13f", this.selectdata.onetomany)
848
+ for (const button of this.show_data.buttons) {
849
+ if (this.selectdata.onetomany&& button.button_name === '提交') {
850
+ console.log("1f")
851
+ button.disable = true
852
+ }
853
+ else {
854
+ button.disable = false
855
+ console.log("2f")
856
+ }
857
+ }
858
+ }
859
+ // if (this.show_data.defname === '营业厅建档'){
860
+ // let http = new HttpResetClass()
861
+ // let data = {
862
+ // tablename: 't_userinfo',
863
+ // condition: `f_process_id='${this.selectdata.f_process_id}'`
864
+ //
865
+ // }
866
+ // let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: null})
867
+ //
868
+ // if (this.show_data.fields[index].label === '是否已建档') {
869
+ // if (res.data[0].f_user_state === '预备') {
870
+ // this.show_data.fields[index].value = '否'
871
+ // button.hidden = false
872
+ // }else{
873
+ // this.show_data.fields[index].value = '是'
874
+ // button.hidden = true
875
+ // }
876
+ // }
877
+ // }
878
+ if(this.show_data.defname === '现场勘察') {
879
+ console.log("this.shdata",this.show_data)
880
+ if (this.show_data.fields[index].label === '是否具备安装条件') {
881
+ for (const button of this.show_data.buttons) {
882
+ if (this.show_data.fields[index].value === '否'&& button.button_name === '退回') {
883
+ button.hidden = false
884
+ }else {
885
+ button.hidden = true
886
+ }
887
+ }
888
+ }
889
+ }
890
+ // if (this.show_data.defname === '通气点火'){
891
+ // let http = new HttpResetClass()
892
+ // let data = {
893
+ // tablename: 't_firemessage',
894
+ // condition: `f_process_id='${this.selectdata.f_process_id}'`
895
+ //
896
+ // }
897
+ // let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: null})
898
+ // console.log("res")
899
+ // console.log(res.data)
900
+ // if (this.show_data.fields[index].label === '是否已通气') {
901
+ // if (res.data.length==0) {
902
+ // this.show_data.fields[index].value = '否'
903
+ // button.hidden = false
904
+ // }else{
905
+ // this.show_data.fields[index].value = '是'
906
+ // button.hidden = true
907
+ // }
908
+ // }
909
+ // }
910
+ if (this.show_data.defname === '合同签订') {
911
+ if (this.show_data.fields[index].label === '合同编号') {
912
+ if (!isEmpty(this.show_data.fields[index].value)) {
913
+ let http = new HttpResetClass()
914
+ let data = {
915
+ tablename: 't_apply',
916
+ condition: `f_contract_number='${this.show_data.fields[index].value}'`
917
+ }
918
+ let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
919
+ resolveMsg: null,
920
+ rejectMsg: '合同编号查重失败'
921
+ })
922
+ if (res.data.length > 0) {
923
+ this.show_data.fields[index].value = null
924
+ this.$showAlert('合同编号已存在!!!', 'warning', 3000)
925
+ }
926
+ //拼写合同编号
927
+ // if (this.selectdata.f_apply_type == '工商户报建') {
928
+ // this.show_data.fields[index].value = "ZS-S-" + this.show_data.fields[index].value
929
+ // // this.show_data.fields[index].value = "ZS-S-" + this.show_data.fields[index].value + "-" + new Date().Format('yyyy-MM-dd')
930
+ // }else {
931
+ // this.show_data.fields[index].value = "ZS-M-" + this.show_data.fields[index].value
932
+ // // this.show_data.fields[index].value = "ZS-M-" + this.show_data.fields[index].value + "-" + new Date().Format('yyyy-MM-dd')
933
+ // }
934
+ }
935
+ }
936
+ if (this.show_data.fields[index].label === '单价(户)') {
937
+ let http = new HttpResetClass()
938
+ let data = {
939
+ num1: this.getLableValue(this.show_data.fields[index].label),
940
+ num2: this.getLableValue('户数'),
941
+ operator: '*'
942
+ }
943
+ try {
944
+ let res = await http.load('POST', 'rs/logic/compute', {data: data}, {
945
+ resolveMsg: null,
946
+ rejectMsg: null
947
+ })
948
+ data = {
949
+ num1: res.data,
950
+ num2: this.getLableValue('其他费用'),
951
+ operator: '+'
952
+ }
953
+ res = await http.load('POST', 'rs/logic/compute', {data: data}, {
954
+ resolveMsg: null,
955
+ rejectMsg: null
956
+ })
957
+ this.setLabelValue('合同金额',res.data)
958
+ } catch (e) {
959
+ this.$showAlert(e.data.msg, 'warning', 3000)
960
+ }
961
+ }
962
+ if (this.show_data.fields[index].label === '其他费用') {
963
+ let http = new HttpResetClass()
964
+ let data = {
965
+ num1: this.getLableValue(this.show_data.fields[index].label),
966
+ num2: this.getLableValue('合同金额'),
967
+ operator: '+'
968
+ }
969
+ try {
970
+ let res = await http.load('POST', 'rs/logic/compute', {data: data}, {
971
+ resolveMsg: null,
972
+ rejectMsg: null
973
+ })
974
+ this.setLabelValue('合同金额',res.data)
975
+ } catch (e) {
976
+ this.$showAlert(e.data.msg, 'warning', 3000)
977
+ }
978
+ }
979
+ }
980
+ // ========================= 武安 =================================
981
+ // 号码检测
982
+ if (this.show_data.fields[index].label === '电话号码') {
983
+ let phone = this.show_data.fields[index].value
984
+ // 电话号码效验
985
+ if (!(/^1[3456789]\d{9}$/.test(phone))) {
986
+ this.show_data.fields[index].value = ""
987
+ this.$showAlert('电话号码格式不正确,请重新输入。', 'info', 2000)
988
+ }
989
+ }
990
+ //时间提醒
991
+ if (this.show_data.fields[index].label.includes("时间") || this.show_data.fields[index].type === 'datepicker') {
992
+ let setTime = this.show_data.fields[index].value
993
+ let nowTime = new Date().Format("yyyy-MM-dd HH:mm:ss")
994
+ if (nowTime >= setTime) {
995
+ this.$showMessage("请注意,当前节点时间/工期已过期!")
996
+ }
997
+ }
998
+ },
999
+ // input值发生变化
1000
+ async 'oninput'(index) {
1001
+
1002
+ },
1003
+ // 错误事件
1004
+ error_check(index) {
1005
+ // 时间格式检测
1006
+ if (this.show_data.fields[index].type == 'datepicker') {
1007
+ 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)$/)
1008
+ 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])$/)
1009
+ if (datetimeRe.test(this.show_data.fields[index].value) && this.show_data.fields[index].value.trim().length == 19 && this.show_data.fields[index].fullsize) {
1010
+ this.show_data.fields[index].error.flag = false
1011
+ } else if (dateRe.test(this.show_data.fields[index].value) && this.show_data.fields[index].value.trim().length == 10) {
1012
+ this.show_data.fields[index].error.flag = false
1013
+ } else {
1014
+ if (this.show_data.fields[index].fullsize) {
1015
+ this.show_data.fields[index].error = Object.assign({}, this.show_data.fields[index].error)
1016
+ 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'
1017
+ this.$showAlert(this.show_data.fields[index].label + '格式错误' + this.show_data.fields[index].error.msg, 'warning', 3000)
1018
+ this.show_data.fields[index].error.flag = true
1019
+ this.show_data.fields[index].value = ''
1020
+ } else {
1021
+ this.show_data.fields[index].error = Object.assign({}, this.show_data.fields[index].error)
1022
+ this.show_data.fields[index].error.msg = this.show_data.fields[index].error.msg ? this.show_data.fields[index].error.msg : '时间格式如:2019-05-02'
1023
+ this.$showAlert(this.show_data.fields[index].label + '格式错误' + this.show_data.fields[index].error.msg, 'warning', 3000)
1024
+ this.show_data.fields[index].error.flag = true
1025
+ this.show_data.fields[index].value = ''
1026
+ }
1027
+
1028
+ }
1029
+ }
1030
+ },
1031
+ // onetomany模态框默认监听监听事件
1032
+ async 'onetomanydelete'(i, j) {
1033
+ console.log('默认删除')
1034
+ let http = new HttpResetClass()
1035
+ let data = {
1036
+ table: this.show_data.onetomany[i].tables[0],
1037
+ row: this.show_data.onetomany[i].rows[j]
1038
+ }
1039
+ let res = await http.load('POST', 'rs/logic/onetomanyDefaultDeleteEvent', {data: data}, {
1040
+ resolveMsg: null,
1041
+ rejectMsg: '删除失败'
1042
+ })
1043
+
1044
+ if (res.data <= 0){
1045
+ this.$showMessage('删除失败')
1046
+ return
1047
+ }
1048
+
1049
+ this.$dispatch('breakControl', this.show_data)
1050
+ },
1051
+ async 'onetomanyadd'(index) {
1052
+
1053
+ let data = {
1054
+ f_process_id : this.show_data.f_process_id
1055
+ }
1056
+ this.show_data.onetomany[index].fields.forEach(item => {
1057
+ data[item.field] = item.value
1058
+ })
1059
+ let res = await this.$resetpost(
1060
+ `rs/entity/${this.show_data.onetomany[index].tables[0]}`,
1061
+ data
1062
+ )
1063
+ this.$dispatch('breakControl', this.show_data)
1064
+ },
1065
+ async 'onetomanyupdate'(i, j) {
1066
+ let onetomany = this.show_data.onetomany[i]
1067
+ let data = onetomany.rows[j]
1068
+
1069
+ onetomany.fields.forEach(item => {
1070
+ data[item.field] = item.value
1071
+ })
1072
+ let res = await this.$resetpost(
1073
+ `rs/entity/${this.show_data.onetomany[i].tables[0]}`,
1074
+ data
1075
+ )
1076
+
1077
+ this.$dispatch('breakControl', this.show_data)
1078
+ },
1079
+ // 选择用户档案信息
1080
+ 'selectUserinfo'(row) {
1081
+ console.log("当前选择数据",row)
1082
+ if (this.selectdata.f_apply_type === '拆改装报建'){
1083
+ this.showLabels('用户编号')
1084
+ this.hideLabels('地址类型','区域','街道','小区','楼号','单元','楼层','门牌号')
1085
+ this.electiveLabels('地址类型','区域','街道','小区','楼号','单元','楼层','门牌号')
1086
+ this.show_data.f_address_type = '民用地址'
1087
+ this.show_data.f_pcd = row.f_pcd
1088
+ this.show_data.f_street = row.f_street
1089
+ this.show_data.f_residential_area = row.f_residential_area
1090
+ this.show_data.f_building = row.f_building
1091
+ this.show_data.f_unit = row.f_unit
1092
+ this.show_data.f_floor = row.f_floor
1093
+ this.show_data.f_room = row.f_room
1094
+ this.selectdata.flag = '旧用户'
1095
+ }
1096
+ this.setLabelValue('用户编号', row.f_userinfo_code)
1097
+ this.setLabelValue('用户名称', row.f_user_name)
1098
+ this.setLabelValue('用户电话', row.f_user_phone)
1099
+ this.setLabelValue('证件类型', row.f_credentials)
1100
+ this.setLabelValue('证件号码', row.f_idnumber)
1101
+ this.setLabelValue('地址', row.f_address)
1102
+
1103
+ this.selectdata.f_userinfo_id = row.f_userinfo_id
1104
+ this.selectdata.f_userinfo_code = row.f_userinfo_code
1105
+ console.log("当前选择数据",this.show_data)
1106
+ },
1107
+ async 'streetChange'(index) {
1108
+ if (isEmpty(this.show_data.f_street)) {
1109
+ return
1110
+ }
1111
+
1112
+ this.setLabelValue('小区', null)
1113
+
1114
+ let data = {
1115
+ tablename: 't_area',
1116
+ condition: `f_filialeid = '${this.$login.f.orgid}' and f_street = '${this.show_data.f_street}'`
1117
+ }
1118
+ let http = new HttpResetClass()
1119
+ let res = await http.load(
1120
+ 'POST',
1121
+ `rs/sql/singleTable`,
1122
+ {data: data},
1123
+ {resolveMsg: null, rejectMsg: '小区!!!'}
1124
+ )
1125
+
1126
+ this.setLabelOptions('小区', res.data.map(item => {
1127
+ return {
1128
+ label: item.f_residential_area,
1129
+ value: item.f_residential_area
1130
+ }
1131
+ }))
1132
+ },
1133
+ // 区县失去焦点
1134
+ async 'pcdChange'(index) {
1135
+ if (isEmpty(this.show_data.f_pcd)) {
1136
+ return
1137
+ }
1138
+
1139
+ this.setLabelValue('街道', null)
1140
+ this.setLabelValue('小区', null)
1141
+
1142
+
1143
+ let data = {
1144
+ tablename: 't_street',
1145
+ condition: `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
1146
+ }
1147
+ let f_address_type = this.getLableValue('地址类型')
1148
+
1149
+ if (f_address_type === '民用地址') {
1150
+ data.condition = `f_filialeid = '${this.$login.f.orgid}' and f_pcd = '${this.show_data.f_pcd}'`
1151
+ }
1152
+
1153
+ let http = new HttpResetClass()
1154
+ let res = await http.load(
1155
+ 'POST',
1156
+ `rs/sql/singleTable`,
1157
+ {data: data},
1158
+ {resolveMsg: null, rejectMsg: '街道查询失败!!!'}
1159
+ )
1160
+
1161
+ this.setLabelOptions('街道', res.data.map(item => {
1162
+ return {
1163
+ label: item.f_street,
1164
+ value: item.f_street
1165
+ }
1166
+ }))
1167
+ },
1168
+ 'buttonChange' (index) {
1169
+ if (this.show_data.fields[index].value === '否') {
1170
+ console.log("测试")
1171
+ this.hideButtons('下发','提交')
1172
+ this.showButtons('退回','终止')
1173
+ } else {
1174
+ this.hideButtons('退回','终止')
1175
+ this.showButtons('下发','提交')
1176
+ }
1177
+ },
1178
+ async 'stopApply'() {
1179
+ this.stope_view = true
1180
+ this.showview = false
1181
+ },
1182
+ async 'signUserInfo' (index) {
1183
+ if (this.show_data.fields[index].value === '是') {
1184
+ console.log("测试")
1185
+ this.showLabels("用户名称", "用户电话", "证件类型", "证件号码", '地址类型', '区域', '街道', '小区', '楼号', '单元', '楼层', '门牌号', '地址')
1186
+ this.requiredLabels("用户名称", "用户电话", "证件类型", "证件号码", '地址类型', '区域', '街道', '小区', '门牌号', '地址')
1187
+ } else {
1188
+ this.hideLabels("用户名称", "用户电话", "证件类型", "证件号码", '地址类型', '区域', '街道', '小区', '楼号', '单元', '楼层', '门牌号', '地址')
1189
+ this.electiveLabels("用户名称", "用户电话", "证件类型", "证件号码", '地址类型', '区域', '街道', '小区', '楼号', '单元', '楼层', '门牌号', '地址')
1190
+ }
1191
+ },
1192
+ // onetomany模态框监听事件
1193
+ async 'onchange_modal'(index, i) {
1194
+ },
1195
+ async 'oninput_modal'(index, i) {
1196
+ }
1197
+ },
1198
+ watch: {
1199
+ }
1200
+ }
1201
+ </script>
1202
+ <style scoped>
1203
+ /*清除model中的浮动*/
1204
+ .clearfix:after,.clearfix:before{
1205
+ display: table;
1206
+ }
1207
+ .clearfix:after{
1208
+ clear: both;
1209
+ }
1210
+ </style>