apply-clients 3.3.33 → 3.3.37

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 (331) hide show
  1. package/build/css-loaders.js +34 -0
  2. package/build/dev-android.js +101 -0
  3. package/build/dev-client.js +8 -0
  4. package/build/dev-server-app.js +76 -0
  5. package/build/dev-server.js +130 -0
  6. package/build/example-server.js +80 -0
  7. package/build/release.sh +28 -0
  8. package/build/utils.js +80 -0
  9. package/build/webpack.base.conf.js +84 -0
  10. package/build/webpack.baseandroid.conf.js +84 -0
  11. package/build/webpack.dev.conf.js +39 -0
  12. package/build/webpack.devandroid.conf.js +34 -0
  13. package/build/webpack.example.conf.js +49 -0
  14. package/build/webpack.prod.conf.js +60 -0
  15. package/build/webpack.prodandroid.conf.js +60 -0
  16. package/build/webpack.test.conf.js +31 -0
  17. package/index.html +33 -33
  18. package/package.json +1 -1
  19. package/src/AndroidApp.vue +30 -30
  20. package/src/android.js +21 -21
  21. package/src/apply.js +2 -8
  22. package/src/applyAndroid.js +1 -8
  23. package/src/components/android/AppOnetomany.vue +305 -305
  24. package/src/components/android/AppServiceView.vue +570 -570
  25. package/src/components/android/AppTakePic.vue +143 -143
  26. package/src/components/android/Function/AppFunctionServiceControl.vue +344 -344
  27. package/src/components/android/Function/AppInstallFunction.vue +1 -1
  28. package/src/components/android/Process/AppExplorationUser.vue +1 -1
  29. package/src/components/android/Process/AppServiceControl.vue +756 -756
  30. package/src/components/android/Process/Processes/AppChargeManagement.vue +468 -468
  31. package/src/components/android/Process/Processes/AppDevicesManagement.vue +508 -508
  32. package/src/components/android/Process/Processes/AppInstallationDetails.vue +471 -471
  33. package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +297 -297
  34. package/src/components/android/Supervisory/AppProcessSupervisory.vue +1 -1
  35. package/src/components/android/Supervisory/AppSupervisoryCart.vue +115 -115
  36. package/src/components/product/ApplyCharge/ApplyChargeList.vue +88 -21
  37. package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +30 -30
  38. package/src/components/product/Function/InstallFunction.vue +10 -0
  39. package/src/components/product/Function/InstallInfoSelect.vue +4 -0
  40. package/src/components/product/Function/Service/FunctionServiceControl.vue +4 -4
  41. package/src/components/product/Install/InstallProject.vue +194 -0
  42. package/src/components/product/Material/MaterialDetailed.vue +224 -213
  43. package/src/components/product/OldApply/Handle/HandleApply.vue +11 -0
  44. package/src/components/product/OldApply/Monitor/MonitorApply.vue +62 -2
  45. package/src/components/product/OldApply/OldApply.vue +2 -2
  46. package/src/components/product/OldApply/OldApplyMessage.vue +411 -411
  47. package/src/components/product/Onetomany.vue +381 -381
  48. package/src/components/product/Order/OrderApply.vue +47 -47
  49. package/src/components/product/Order/OrderApplyList.vue +263 -263
  50. package/src/components/product/Order/OrderMessage.vue +237 -237
  51. package/src/components/product/Process/ExplorationSelect.vue +4 -0
  52. package/src/components/product/Process/ExplorationUser.vue +10 -0
  53. package/src/components/product/Process/Processes/InstallationDetails.vue +578 -578
  54. package/src/components/product/Process/Processes/Print/printBuildOrder.vue +10 -32
  55. package/src/components/product/Process/Processes/Print/printCharge.vue +142 -139
  56. package/src/components/product/Process/Processes/Print/printRefund.vue +16 -13
  57. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +186 -186
  58. package/src/components/product/Process/Processes/chargeManagement.vue +1 -1
  59. package/src/components/product/Process/Processes/devicesManagement.vue +478 -478
  60. package/src/components/product/Process/Processes/selectApply.vue +250 -250
  61. package/src/components/product/Process/Processes/selectUserinfo.vue +182 -182
  62. package/src/components/product/Process/Processes/supplementalAgreement.vue +298 -298
  63. package/src/components/product/Process/Service/ServiceControl.vue +1 -1
  64. package/src/components/product/Process/ShowBackReason.vue +33 -33
  65. package/src/components/product/ServiceView.vue +637 -637
  66. package/src/components/product/Stop/StopApply.vue +101 -101
  67. package/src/components/product/Stop/StopApplyList.vue +271 -271
  68. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +804 -798
  69. package/src/components/product/Supervisory/SupervisoryControl.vue +10 -0
  70. package/src/components/product/Supervisory/SupervisoryList.vue +4 -0
  71. package/src/components/product/Supervisory/SupervisoryhCart.vue +124 -124
  72. package/src/components/product/VueUtils/ApplyUpload.vue +262 -262
  73. package/src/components/product/VueUtils/GaoPaiYi/HighMeter.vue +1090 -1090
  74. package/src/main.js +23 -23
  75. package/dist-android/index.html +0 -3
  76. package/dist-android/static/.gitkeep +0 -0
  77. package/dist-android/static/0.js +0 -2
  78. package/dist-android/static/0.js.map +0 -1
  79. package/dist-android/static/1.js +0 -2
  80. package/dist-android/static/1.js.map +0 -1
  81. package/dist-android/static/10.js +0 -2
  82. package/dist-android/static/10.js.map +0 -1
  83. package/dist-android/static/100.js +0 -2
  84. package/dist-android/static/100.js.map +0 -1
  85. package/dist-android/static/11.js +0 -2
  86. package/dist-android/static/11.js.map +0 -1
  87. package/dist-android/static/12.js +0 -2
  88. package/dist-android/static/12.js.map +0 -1
  89. package/dist-android/static/13.js +0 -2
  90. package/dist-android/static/13.js.map +0 -1
  91. package/dist-android/static/14.js +0 -2
  92. package/dist-android/static/14.js.map +0 -1
  93. package/dist-android/static/15.js +0 -2
  94. package/dist-android/static/15.js.map +0 -1
  95. package/dist-android/static/16.js +0 -2
  96. package/dist-android/static/16.js.map +0 -1
  97. package/dist-android/static/17.js +0 -2
  98. package/dist-android/static/17.js.map +0 -1
  99. package/dist-android/static/18.js +0 -2
  100. package/dist-android/static/18.js.map +0 -1
  101. package/dist-android/static/19.js +0 -2
  102. package/dist-android/static/19.js.map +0 -1
  103. package/dist-android/static/2.js +0 -2
  104. package/dist-android/static/2.js.map +0 -1
  105. package/dist-android/static/20.js +0 -2
  106. package/dist-android/static/20.js.map +0 -1
  107. package/dist-android/static/21.js +0 -2
  108. package/dist-android/static/21.js.map +0 -1
  109. package/dist-android/static/22.js +0 -2
  110. package/dist-android/static/22.js.map +0 -1
  111. package/dist-android/static/23.js +0 -2
  112. package/dist-android/static/23.js.map +0 -1
  113. package/dist-android/static/24.js +0 -2
  114. package/dist-android/static/24.js.map +0 -1
  115. package/dist-android/static/25.js +0 -2
  116. package/dist-android/static/25.js.map +0 -1
  117. package/dist-android/static/26.js +0 -2
  118. package/dist-android/static/26.js.map +0 -1
  119. package/dist-android/static/27.js +0 -2
  120. package/dist-android/static/27.js.map +0 -1
  121. package/dist-android/static/28.js +0 -2
  122. package/dist-android/static/28.js.map +0 -1
  123. package/dist-android/static/29.js +0 -2
  124. package/dist-android/static/29.js.map +0 -1
  125. package/dist-android/static/3.js +0 -2
  126. package/dist-android/static/3.js.map +0 -1
  127. package/dist-android/static/30.js +0 -2
  128. package/dist-android/static/30.js.map +0 -1
  129. package/dist-android/static/31.js +0 -2
  130. package/dist-android/static/31.js.map +0 -1
  131. package/dist-android/static/32.js +0 -2
  132. package/dist-android/static/32.js.map +0 -1
  133. package/dist-android/static/33.js +0 -2
  134. package/dist-android/static/33.js.map +0 -1
  135. package/dist-android/static/34.js +0 -2
  136. package/dist-android/static/34.js.map +0 -1
  137. package/dist-android/static/35.js +0 -2
  138. package/dist-android/static/35.js.map +0 -1
  139. package/dist-android/static/36.js +0 -2
  140. package/dist-android/static/36.js.map +0 -1
  141. package/dist-android/static/37.js +0 -2
  142. package/dist-android/static/37.js.map +0 -1
  143. package/dist-android/static/38.js +0 -2
  144. package/dist-android/static/38.js.map +0 -1
  145. package/dist-android/static/39.js +0 -2
  146. package/dist-android/static/39.js.map +0 -1
  147. package/dist-android/static/4.js +0 -2
  148. package/dist-android/static/4.js.map +0 -1
  149. package/dist-android/static/40.js +0 -2
  150. package/dist-android/static/40.js.map +0 -1
  151. package/dist-android/static/41.js +0 -2
  152. package/dist-android/static/41.js.map +0 -1
  153. package/dist-android/static/42.js +0 -2
  154. package/dist-android/static/42.js.map +0 -1
  155. package/dist-android/static/43.js +0 -2
  156. package/dist-android/static/43.js.map +0 -1
  157. package/dist-android/static/44.js +0 -2
  158. package/dist-android/static/44.js.map +0 -1
  159. package/dist-android/static/45.js +0 -2
  160. package/dist-android/static/45.js.map +0 -1
  161. package/dist-android/static/46.js +0 -2
  162. package/dist-android/static/46.js.map +0 -1
  163. package/dist-android/static/47.js +0 -2
  164. package/dist-android/static/47.js.map +0 -1
  165. package/dist-android/static/48.js +0 -2
  166. package/dist-android/static/48.js.map +0 -1
  167. package/dist-android/static/49.js +0 -2
  168. package/dist-android/static/49.js.map +0 -1
  169. package/dist-android/static/5.js +0 -2
  170. package/dist-android/static/5.js.map +0 -1
  171. package/dist-android/static/50.js +0 -2
  172. package/dist-android/static/50.js.map +0 -1
  173. package/dist-android/static/51.js +0 -2
  174. package/dist-android/static/51.js.map +0 -1
  175. package/dist-android/static/52.js +0 -2
  176. package/dist-android/static/52.js.map +0 -1
  177. package/dist-android/static/53.js +0 -2
  178. package/dist-android/static/53.js.map +0 -1
  179. package/dist-android/static/54.js +0 -2
  180. package/dist-android/static/54.js.map +0 -1
  181. package/dist-android/static/55.js +0 -2
  182. package/dist-android/static/55.js.map +0 -1
  183. package/dist-android/static/56.js +0 -2
  184. package/dist-android/static/56.js.map +0 -1
  185. package/dist-android/static/57.js +0 -2
  186. package/dist-android/static/57.js.map +0 -1
  187. package/dist-android/static/58.js +0 -2
  188. package/dist-android/static/58.js.map +0 -1
  189. package/dist-android/static/59.js +0 -2
  190. package/dist-android/static/59.js.map +0 -1
  191. package/dist-android/static/6.js +0 -2
  192. package/dist-android/static/6.js.map +0 -1
  193. package/dist-android/static/60.js +0 -2
  194. package/dist-android/static/60.js.map +0 -1
  195. package/dist-android/static/61.js +0 -2
  196. package/dist-android/static/61.js.map +0 -1
  197. package/dist-android/static/62.js +0 -2
  198. package/dist-android/static/62.js.map +0 -1
  199. package/dist-android/static/63.js +0 -2
  200. package/dist-android/static/63.js.map +0 -1
  201. package/dist-android/static/64.js +0 -2
  202. package/dist-android/static/64.js.map +0 -1
  203. package/dist-android/static/65.js +0 -2
  204. package/dist-android/static/65.js.map +0 -1
  205. package/dist-android/static/66.js +0 -2
  206. package/dist-android/static/66.js.map +0 -1
  207. package/dist-android/static/67.js +0 -2
  208. package/dist-android/static/67.js.map +0 -1
  209. package/dist-android/static/68.js +0 -2
  210. package/dist-android/static/68.js.map +0 -1
  211. package/dist-android/static/69.js +0 -2
  212. package/dist-android/static/69.js.map +0 -1
  213. package/dist-android/static/7.js +0 -6
  214. package/dist-android/static/7.js.map +0 -1
  215. package/dist-android/static/70.js +0 -2
  216. package/dist-android/static/70.js.map +0 -1
  217. package/dist-android/static/71.js +0 -2
  218. package/dist-android/static/71.js.map +0 -1
  219. package/dist-android/static/72.js +0 -2
  220. package/dist-android/static/72.js.map +0 -1
  221. package/dist-android/static/73.js +0 -2
  222. package/dist-android/static/73.js.map +0 -1
  223. package/dist-android/static/74.js +0 -2
  224. package/dist-android/static/74.js.map +0 -1
  225. package/dist-android/static/75.js +0 -2
  226. package/dist-android/static/75.js.map +0 -1
  227. package/dist-android/static/76.js +0 -2
  228. package/dist-android/static/76.js.map +0 -1
  229. package/dist-android/static/77.js +0 -2
  230. package/dist-android/static/77.js.map +0 -1
  231. package/dist-android/static/78.js +0 -2
  232. package/dist-android/static/78.js.map +0 -1
  233. package/dist-android/static/79.js +0 -2
  234. package/dist-android/static/79.js.map +0 -1
  235. package/dist-android/static/8.js +0 -2
  236. package/dist-android/static/8.js.map +0 -1
  237. package/dist-android/static/80.js +0 -2
  238. package/dist-android/static/80.js.map +0 -1
  239. package/dist-android/static/81.js +0 -2
  240. package/dist-android/static/81.js.map +0 -1
  241. package/dist-android/static/82.js +0 -2
  242. package/dist-android/static/82.js.map +0 -1
  243. package/dist-android/static/83.js +0 -2
  244. package/dist-android/static/83.js.map +0 -1
  245. package/dist-android/static/84.js +0 -2
  246. package/dist-android/static/84.js.map +0 -1
  247. package/dist-android/static/85.js +0 -2
  248. package/dist-android/static/85.js.map +0 -1
  249. package/dist-android/static/86.js +0 -2
  250. package/dist-android/static/86.js.map +0 -1
  251. package/dist-android/static/87.js +0 -2
  252. package/dist-android/static/87.js.map +0 -1
  253. package/dist-android/static/88.js +0 -2
  254. package/dist-android/static/88.js.map +0 -1
  255. package/dist-android/static/89.js +0 -2
  256. package/dist-android/static/89.js.map +0 -1
  257. package/dist-android/static/9.js +0 -3
  258. package/dist-android/static/9.js.map +0 -1
  259. package/dist-android/static/90.js +0 -2
  260. package/dist-android/static/90.js.map +0 -1
  261. package/dist-android/static/91.js +0 -2
  262. package/dist-android/static/91.js.map +0 -1
  263. package/dist-android/static/92.js +0 -2
  264. package/dist-android/static/92.js.map +0 -1
  265. package/dist-android/static/93.js +0 -2
  266. package/dist-android/static/93.js.map +0 -1
  267. package/dist-android/static/94.js +0 -2
  268. package/dist-android/static/94.js.map +0 -1
  269. package/dist-android/static/95.js +0 -2
  270. package/dist-android/static/95.js.map +0 -1
  271. package/dist-android/static/96.js +0 -2
  272. package/dist-android/static/96.js.map +0 -1
  273. package/dist-android/static/97.js +0 -2
  274. package/dist-android/static/97.js.map +0 -1
  275. package/dist-android/static/98.js +0 -2
  276. package/dist-android/static/98.js.map +0 -1
  277. package/dist-android/static/99.js +0 -2
  278. package/dist-android/static/99.js.map +0 -1
  279. package/dist-android/static/app.css +0 -2
  280. package/dist-android/static/app.css.map +0 -1
  281. package/dist-android/static/app.js +0 -80
  282. package/dist-android/static/app.js.map +0 -1
  283. package/dist-android/static/batchleft.png +0 -0
  284. package/dist-android/static/batchright.png +0 -0
  285. package/dist-android/static/bluemainbg.jpg +0 -0
  286. package/dist-android/static/config.json +0 -7
  287. package/dist-android/static/denglu.png +0 -0
  288. package/dist-android/static/glyphicons-halflings-regular.eot +0 -0
  289. package/dist-android/static/glyphicons-halflings-regular.svg +0 -288
  290. package/dist-android/static/glyphicons-halflings-regular.ttf +0 -0
  291. package/dist-android/static/glyphicons-halflings-regular.woff +0 -0
  292. package/dist-android/static/glyphicons-halflings-regular.woff2 +0 -0
  293. package/dist-android/static/huangtengbiaozhi.png +0 -0
  294. package/dist-android/static/jingyin.jpg +0 -0
  295. package/dist-android/static/login_bg.jpg +0 -0
  296. package/dist-android/static/login_title.png +0 -0
  297. package/dist-android/static/login_title1.png +0 -0
  298. package/dist-android/static/loginbg.jpg +0 -0
  299. package/dist-android/static/loginlogo.png +0 -0
  300. package/dist-android/static/main_logo.png +0 -0
  301. package/dist-android/static/mainbg.jpg +0 -0
  302. package/dist-android/static/menulogo.png +0 -0
  303. package/dist-android/static/newmainbg.jpg +0 -0
  304. package/dist-android/static/psicon.png +0 -0
  305. package/dist-android/static/singleleft.png +0 -0
  306. package/dist-android/static/singleright.png +0 -0
  307. package/dist-android/static/treeopen.png +0 -0
  308. package/dist-android/static/treeout.png +0 -0
  309. package/dist-android/static/treeset.png +0 -0
  310. package/dist-android/static/usericon.png +0 -0
  311. package/dist-android/static/workflow_apply.json +0 -766
  312. package/dist-android/static/xinxi.png +0 -0
  313. package/dist-android/static//344/277/256/346/224/271/345/257/206/347/240/201.png +0 -0
  314. package/dist-android/static//345/256/211/346/243/200/345/257/274/350/210/252/347/253/226/345/261/2173.png +0 -0
  315. package/dist-android/static//345/257/274/345/207/272/346/225/260/346/215/256.png +0 -0
  316. package/dist-android/static//346/270/205/347/251/272/346/225/260/346/215/256.png +0 -0
  317. package/src/filiale/wuan/android.js +0 -0
  318. package/src/filiale/wuan/pc.js +0 -4
  319. package/src/filiale/yuchuan/android/AppServiceView.vue +0 -599
  320. package/src/filiale/yuchuan/android/Process/AppServiceControl.vue +0 -414
  321. package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetails.vue +0 -456
  322. package/src/filiale/yuchuan/android/Reserve/ApplyReserve.vue +0 -200
  323. package/src/filiale/yuchuan/android/SiteSurvey/TaskGraph.vue +0 -137
  324. package/src/filiale/yuchuan/android.js +0 -8
  325. package/src/filiale/yuchuan/pc/Order/OrderApply.vue +0 -517
  326. package/src/filiale/yuchuan/pc/Order/OrderApplyList.vue +0 -343
  327. package/src/filiale/yuchuan/pc/Process/ExplorationSelect.vue +0 -356
  328. package/src/filiale/yuchuan/pc/Process/ExplorationUser.vue +0 -131
  329. package/src/filiale/yuchuan/pc/Process/Processes/MapCom.vue +0 -51
  330. package/src/filiale/yuchuan/pc/Process/Service/ServiceControl.vue +0 -517
  331. package/src/filiale/yuchuan/pc.js +0 -13
@@ -1,517 +0,0 @@
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 {isEmpty} from '../../../../../components/Util'
14
-
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
- }
42
- },
43
- ready () {
44
- this.refurbish()
45
- },
46
- methods: {
47
- // 组件初始化操作
48
- async refurbish() {
49
- this.json_datas = this.$workflow_vue
50
- let sum = 0
51
- let jsonData = {}
52
- if (!this.json_datas || !this.json_datas.activitys || this.json_datas.activitys.length === 0) {
53
- this.$showMessage("网络故障,请刷新页面")
54
- return
55
- }
56
- this.json_datas.activitys.forEach(item => {
57
- if (this.selectdata.defname === item.title) {
58
- jsonData = item // 拿到当前节点的json配置信息
59
- sum++ // 节点名一样的个数
60
- }
61
- return this.selectdata.defname === item.title // 拿到当前节点的json配置信息
62
- })
63
-
64
- if (sum === 0) {
65
- this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
66
- return
67
- }
68
- if (sum > 1) {
69
- this.$showMessage(`在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置:${sum}个`)
70
- return
71
- }
72
-
73
- this.selectdata = Object.assign({}, this.selectdata, jsonData)
74
-
75
- // fields 字段填充值
76
- for (const item of this.selectdata.fields) {
77
- if (!item.value) {
78
- item.value = null
79
- }
80
-
81
- if (item.default || item.default === 0) {
82
- item.value = item.default
83
- }
84
-
85
- if (this.selectdata[item.field]) {
86
- // 将json字符串格式化赋值给value
87
- if (String(this.selectdata[item.field]).startsWith("{")) {
88
- item.value = JSON.parse(this.selectdata[item.field])
89
- this.selectdata[item.field] = JSON.parse(this.selectdata[item.field])
90
- } else {
91
- item.value = this.selectdata[item.field]
92
- }
93
- }
94
- if (this.selectdata[item.field] === 0) {
95
- item.value = 0
96
- }
97
-
98
- // datepicker
99
- if (item.type === 'datepicker' && !item.value && item.default) {
100
- item.value = new Date().Format(`${item.format ? item.format : 'yyyy-MM-dd HH:mm:ss'}`)
101
- }
102
-
103
- // 如果配置类型为select,优先从参数列表获取options
104
- if (item.type === 'select') {
105
-
106
- let temp = this.$appdata.getParam(item.label)
107
-
108
- if (temp && temp.length > 0) {
109
- item.options = temp
110
- }
111
-
112
- if (item.paramLabel) {
113
- temp = this.$appdata.getParam(item.paramLabel)
114
- if (temp && temp.length > 0) {
115
- item.options = temp
116
- }
117
- }
118
-
119
- if (item.ready) {
120
- item.options = await this[item.ready]()
121
- }
122
- }
123
- }
124
-
125
- // 控制组件
126
- if (this.selectdata.components) {
127
- this.selectdata.components.forEach(item => {
128
- item.mark = 0
129
- })
130
- }
131
-
132
- // 初始化onetomany
133
- if (this.selectdata.onetomany) {
134
- for (const item of this.selectdata.onetomany) {
135
- let res = null
136
- if (item.queryEvent) {
137
- res = this[item.queryEvent]()
138
- } else {
139
- let data = {
140
- tablename: item.tables[0],
141
- condition: `f_process_id='${this.selectdata.f_process_id}'`
142
- }
143
- res = await this.$resetpost(
144
- 'rs/sql/singleTable',
145
- {data: data},
146
- {resolveMsg: null, rejectMsg: 'onetomany查询失败'}
147
- )
148
- }
149
-
150
- item.rows = res.data
151
-
152
- // 初始化onetomany中的fields
153
- for (const field of item.fields) {
154
- if (!field.value) {
155
- if (field.value !== 0) {
156
- field.value = null
157
- }
158
- }
159
-
160
- if (field.default || field.default === 0) {
161
- field.value = field.default
162
- }
163
-
164
- // datepicker
165
- if (field.type === 'datepicker' && !field.value && field.default) {
166
- field.value = new Date().Format(`${field.format ? field.format : 'yyyy-MM-dd HH:mm:ss'}`)
167
- }
168
-
169
- if (field.type === 'select') {
170
- let temp = this.$appdata.getParam(field.label)
171
-
172
- if (temp && temp.length > 0) {
173
- field.options = temp
174
- }
175
-
176
- if (field.paramLabel) {
177
- temp = this.$appdata.getParam(field.paramLabel)
178
- if (temp && temp.length > 0) {
179
- item.options = temp
180
- }
181
- }
182
- }
183
- }
184
- }
185
- }
186
-
187
- // 初始化 buttons_fields
188
- for (const item of this.selectdata.buttons) {
189
- if (item.button_name === '下发') {
190
- if (!item.source) {
191
- this.$showMessage("请配置获取人员表达式")
192
- return
193
- }
194
- let data = {
195
- source: item.source,
196
- userid: this.$login.f.id
197
- }
198
- let res = await this.$resetpost(
199
- 'rs/search',
200
- {data: data},
201
- {resolveMsg: null, rejectMsg: '下发人员查询失败!!!'}
202
- )
203
-
204
- let options = res.data.map(source => {
205
- return {
206
- "label": source.name,
207
- "value": source.id
208
- }
209
- })
210
-
211
- item.options = options
212
-
213
- }
214
- if (item.button_fields) {
215
- item.button_fields.forEach(x => {
216
- // 如果配置类型为select,优先从参数列表获取options
217
- if (x.type === 'select') {
218
- let temp = this.$appdata.getParam(x.label)
219
-
220
- if (temp && temp.length > 0) {
221
- x.options = temp
222
- }
223
-
224
- if (x.paramLabel) {
225
- temp = this.$appdata.getParam(x.paramLabel)
226
- if (temp && temp.length > 0) {
227
- x.options = temp
228
- }
229
- }
230
- }
231
- })
232
- }
233
- }
234
-
235
- // 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
236
- let temp = JSON.parse(JSON.stringify(this.selectdata))
237
-
238
- this.show_data = temp
239
- this.$nextTick(() => {
240
- this.showview = true
241
- })
242
- },
243
- // 金额转大写
244
- smalltoBIG(n) {
245
- let fraction = ['角', '分'];
246
- let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
247
- let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
248
- let head = n < 0 ? '欠' : '';
249
- n = Math.abs(n);
250
-
251
- let s = '';
252
-
253
- for (var i = 0; i < fraction.length; i++) {
254
- s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
255
- }
256
- s = s || '整';
257
- n = Math.floor(n);
258
-
259
- for (var i = 0; i < unit[0].length && n > 0; i++) {
260
- let p = '';
261
- for (var j = 0; j < unit[1].length && n > 0; j++) {
262
- p = digit[n % 10] + unit[1][j] + p;
263
- n = Math.floor(n / 10);
264
- }
265
- s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
266
- }
267
- return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
268
- },
269
- getLableValue(label) {
270
- for (const item of this.show_data.fields) {
271
- if (item.label === label && item.type !== 'number') {
272
- return item.value || ''
273
- }
274
- if (item.label === label && item.type === 'number') {
275
- return item.value || 0
276
- }
277
- }
278
- },
279
- setLabelValue(label, value) {
280
- for (const item of this.show_data.fields) {
281
- if (item.label === label) {
282
- item.value = value
283
- }
284
- }
285
- },
286
- setLabelOptions(label, options) {
287
- for (const item of this.show_data.fields) {
288
- if (item.label === label) {
289
- item.options = options
290
- }
291
- }
292
- },
293
- // 获取片区
294
- async getSliceArea () {
295
- let data = {
296
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
297
- userid: this.$login.f.id
298
- }
299
-
300
- let res = await this.$resetpost(
301
- `rs/search`,
302
- {data: data},
303
- {resolveMsg: null, rejectMsg: '片区查询失败!!!'}
304
- )
305
-
306
- return res.data.map(item => {
307
- return {
308
- label: item.name,
309
- value: item.name
310
- }
311
- })
312
- },
313
- // 获取省市区
314
- async getPcd () {
315
- let data = {
316
- tablename: 't_pcd',
317
- condition: `f_filialeid = '${this.$login.f.orgid}'`
318
- }
319
- let res = await this.$resetpost(
320
- `rs/sql/singleTable`,
321
- {data: data},
322
- {resolveMsg: null, rejectMsg: '省市区查询失败!!!'}
323
- )
324
- return res.data.map(item => {
325
- return {
326
- label: item.f_pcd,
327
- value: {
328
- id: item.id,
329
- f_pcd: item.f_pcd
330
- }
331
- }
332
- })
333
- },
334
- },
335
- events: {
336
- // 小区失去焦点
337
- async 'areaChange' (index) {
338
- if (isEmpty(this.show_data.f_residential_area)) {
339
- return
340
- }
341
- let area = this.show_data.f_residential_area
342
-
343
- this.show_data.f_residential_area = area.f_residential_area
344
- this.show_data.f_residential_area_id = area.id
345
- },
346
- // 街道失去焦点
347
- async 'streetChange' (index) {
348
- if (isEmpty(this.show_data.f_street)) {
349
- return
350
- }
351
- let street = this.show_data.f_street
352
-
353
- this.show_data.f_street = street.f_street
354
- this.show_data.f_street_id = street.id
355
-
356
- let data = {
357
- tablename: 't_area',
358
- condition: `f_filialeid = '${this.$login.f.orgid}' and f_street_id = ${this.show_data.f_street_id}`
359
- }
360
- let res = await this.$resetpost(
361
- `rs/sql/singleTable`,
362
- {data: data},
363
- {resolveMsg: null, rejectMsg: '小区查询失败!!!'}
364
- )
365
-
366
- this.setLabelOptions('小区', res.data.map(item => {
367
- return {
368
- label: item.f_residential_area,
369
- value: {
370
- id: item.id,
371
- f_residential_area: item.f_residential_area
372
- }
373
- }
374
- }))
375
- },
376
- // 省市区失去焦点
377
- async 'pcdChange' (index) {
378
- if (isEmpty(this.show_data.f_pcd)) {
379
- return
380
- }
381
- let pcd = this.show_data.f_pcd
382
-
383
- this.show_data.f_pcd = pcd.f_pcd
384
- this.show_data.f_pcd_id = pcd.id
385
-
386
- let data = {
387
- tablename: 't_street',
388
- condition: `f_filialeid = '${this.$login.f.orgid}' and f_pcd_id = ${this.show_data.f_pcd_id}`
389
- }
390
- let res = await this.$resetpost(
391
- `rs/sql/singleTable`,
392
- {data: data},
393
- {resolveMsg: null, rejectMsg: '街道查询失败!!!'}
394
- )
395
-
396
- this.setLabelOptions('街道', res.data.map(item => {
397
- return {
398
- label: item.f_street,
399
- value: {
400
- id: item.id,
401
- f_street: item.f_street
402
- }
403
- }
404
- }))
405
- },
406
- async 'button'() {
407
- // 点击重置按钮就重置数据
408
- if (this.show_data.button.button_name === '重置') {
409
- this.$dispatch('breakControl', this.selectdata)
410
- return
411
- }
412
-
413
- this.show_data.user = this.$login.f
414
- this.show_data.start_activity = this.$workflow_vue.start_activity
415
- this.show_data.xmlfilename = this.$workflow_vue.workflow_xmlfilename
416
-
417
- let res = await this.$resetpost(
418
- `rs/logic/ApplyProductService`,
419
- {data: this.show_data},
420
- {resolveMsg: null, rejectMsg: '数据保存失败'}
421
- )
422
-
423
- this.$dispatch('search')
424
- },
425
- // 失去焦点出触发事件
426
- 'onchange' (index) {
427
- if (
428
- this.show_data.fields[index].label === '街道' ||
429
- this.show_data.fields[index].label === '小区' ||
430
- this.show_data.fields[index].label === '楼号' ||
431
- this.show_data.fields[index].label === '单元' ||
432
- this.show_data.fields[index].label === '楼层' ||
433
- this.show_data.fields[index].label === '门牌号'
434
- ) {
435
- let f_address = this.show_data.f_street + this.show_data.f_residential_area +
436
- (isEmpty(this.show_data.f_building) ? '' : this.show_data.f_building + '号楼') +
437
- (isEmpty(this.show_data.f_unit) ? '' : this.show_data.f_unit + '单元') +
438
- (isEmpty(this.show_data.f_floor) ? '' : this.show_data.f_floor + '层') +
439
- (isEmpty(this.show_data.f_room) ? '' : this.show_data.f_room + '室')
440
- this.setLabelValue('地址', f_address)
441
- this.show_data.f_address = f_address
442
- }
443
- },
444
- 'onblur' (index) {},
445
- 'oninput' (index) {},
446
- 'initializtionView' () {},
447
- async 'onchangeModal' (index, fieldIndex) {
448
- console.log('----Model----onchange----')
449
- },
450
- async 'onblurModal' (index, fieldIndex) {
451
-
452
- },
453
- async 'oninputModal' (index, fieldIndex) {
454
-
455
- },
456
- async 'onetomanydelete' (index, rowIndex) {
457
-
458
- let http = new HttpResetClass()
459
-
460
- let res = await http.load(
461
- 'DELETE',
462
- `rs/entity/${this.show_data.onetomany[index].tables[0]}/${this.show_data.onetomany[index].rows[rowIndex].id}`,
463
- null,
464
- {resolveMsg: null, rejectMsg: '删除失败!!!'}
465
- )
466
-
467
- this.$dispatch('breakControl', this.show_data)
468
- },
469
- async 'onetomanyupdate' (index, rowIndex) {
470
- let data = this.show_data.onetomany[index].rows[rowIndex]
471
-
472
- this.show_data.onetomany[index].fields.forEach(item => {
473
- data[item.field] = item.value
474
- })
475
- let res = await this.$resetpost(
476
- `rs/entity/${this.show_data.onetomany[index].tables[0]}`,
477
- data
478
- )
479
-
480
- this.$dispatch('breakControl', this.show_data)
481
- },
482
- async 'onetomanyadd' (index) {
483
- let data = {
484
- f_process_id : this.show_data.f_process_id
485
- }
486
- this.show_data.onetomany[index].fields.forEach(item => {
487
- data[item.field] = item.value
488
- })
489
- let res = await this.$resetpost(
490
- `rs/entity/${this.show_data.onetomany[index].tables[0]}`,
491
- data
492
- )
493
- this.$dispatch('breakControl', this.show_data)
494
- },
495
- 'onbutchange' (index) {
496
-
497
- },
498
- 'onbutblur' (index) {
499
-
500
- },
501
- 'onbutinput' (index) {
502
-
503
- }
504
- },
505
- watch: {
506
- }
507
- }
508
- </script>
509
- <style scoped>
510
- /*清除model中的浮动*/
511
- .clearfix:after,.clearfix:before{
512
- display: table;
513
- }
514
- .clearfix:after{
515
- clear: both;
516
- }
517
- </style>
@@ -1,13 +0,0 @@
1
- import Vue from 'vue'
2
-
3
- let specialComp = {
4
- 'exploration-user': (resolve) => { require(['./pc/Process/ExplorationUser'], resolve) },
5
- 'exploration-select': (resolve) => { require(['./pc/Process/ExplorationSelect'], resolve) },
6
- 'service-control': (resolve) => { require(['./pc/Process/Service/ServiceControl'], resolve) },
7
- 'apply-map-com': (resolve) => { require(['./pc/Process/Processes/MapCom'], resolve) },
8
-
9
- // 报建功能业务总入口
10
- 'order-apply': (resolve) => { require(['./pc/Order/OrderApply'], resolve) },
11
- 'order-apply-list': (resolve) => { require(['./pc/Order/OrderApplyList'], resolve) },
12
- }
13
- exports.specialComp = specialComp