apply-clients 3.3.1 → 3.3.2-10-zk

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 (381) 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 +87 -0
  5. package/build/dev-server.js +158 -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 +38 -33
  18. package/package.json +4 -3
  19. package/src/AndroidApp.vue +35 -28
  20. package/src/App.vue +21 -20
  21. package/src/android.js +21 -21
  22. package/src/apply.js +118 -84
  23. package/src/applyAndroid.js +48 -31
  24. package/src/components/android/AppOnetomany.vue +343 -285
  25. package/src/components/android/AppServiceView.vue +745 -478
  26. package/src/components/android/AppSign.vue +154 -0
  27. package/src/components/android/AppTakePic.vue +9 -2
  28. package/src/components/android/AreaSelect/AppQrcodeReader.vue +73 -0
  29. package/src/components/android/AreaSelect/AppResAreaMapGroup.vue +148 -0
  30. package/src/components/android/AreaSelect/AppResAreaSelect.vue +108 -0
  31. package/src/components/android/AreaSelect/AppResAreaSelectGroup.vue +142 -0
  32. package/src/components/android/Function/AppFunctionServiceControl.vue +344 -0
  33. package/src/components/android/Function/AppInstallFunction.vue +366 -0
  34. package/src/components/android/Process/AppExplorationReceivingorders.vue +414 -0
  35. package/src/components/android/Process/AppExplorationUser.vue +338 -108
  36. package/src/components/android/Process/AppServiceControl.vue +1722 -502
  37. package/src/components/android/Process/Processes/AppAddMaterialScience.vue +477 -0
  38. package/src/components/android/Process/Processes/AppBuildSign.vue +46 -0
  39. package/src/components/android/Process/Processes/AppChargeManagement.vue +637 -0
  40. package/src/components/android/Process/Processes/AppDevicesManagement.vue +519 -385
  41. package/src/components/android/Process/Processes/AppInstallationDetails.vue +482 -422
  42. package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +298 -0
  43. package/src/components/android/Process/Processes/selectApply.vue +250 -0
  44. package/src/components/android/Process/Processes/selectUserinfo.vue +182 -0
  45. package/src/components/android/Supervisory/AppProcessSupervisory.vue +327 -300
  46. package/src/components/android/Supervisory/AppSupervisoryCart.vue +69 -34
  47. package/src/components/common/TabButton.vue +149 -0
  48. package/src/components/common/Tabs.vue +67 -0
  49. package/src/components/image/dwg.jpg +0 -0
  50. package/src/components/image/txt.jpg +0 -0
  51. package/src/components/image//345/221/250/345/217/243/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  52. package/src/components/image//350/245/277/345/215/216/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  53. package/src/components/image//351/203/270/345/237/216/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  54. package/src/components/image//351/241/271/345/237/216/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  55. package/src/components/image//351/271/277/351/202/221/346/224/266/346/254/276/344/270/223/347/224/250/347/253/240.png +0 -0
  56. package/src/components/product/ApplyCharge/ApplyChargeList.vue +470 -246
  57. package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +3 -3
  58. package/src/components/product/AreaSelect/MyAreaSelect.vue +423 -0
  59. package/src/components/product/AreaSelect/ResAreaSelect.vue +106 -0
  60. package/src/components/product/AreaSelect/ResAreaSelectGroup.vue +150 -0
  61. package/src/components/product/AreaSelect/utils/EventListener.js +29 -0
  62. package/src/components/product/AreaSelect/utils/coerceBoolean.js +7 -0
  63. package/src/components/product/Business/BusinessApply.vue +269 -0
  64. package/src/components/product/Business/CivilApply.vue +269 -0
  65. package/src/components/product/Function/InstallFunction.vue +132 -122
  66. package/src/components/product/Function/InstallInfoSelect.vue +320 -291
  67. package/src/components/product/Function/Service/FunctionServiceControl.vue +445 -237
  68. package/src/components/product/GaoDeMapComponents/GaoDeMap.vue +231 -0
  69. package/src/components/product/GroupByApply/ApplyGroupByList.vue +253 -0
  70. package/src/components/product/GroupByApply/ApplyGroupByMain.vue +53 -0
  71. package/src/components/product/GroupByApply/ApplyGroupByPaper.vue +376 -0
  72. package/src/components/product/Install/InstallProject.vue +194 -0
  73. package/src/components/product/Material/MaterialDetailed.vue +307 -0
  74. package/src/components/product/OldApply/Handle/HandleApply.vue +337 -0
  75. package/src/components/product/OldApply/Monitor/MonitorApply.vue +360 -0
  76. package/src/components/product/OldApply/OldApply.vue +209 -0
  77. package/src/components/product/OldApply/OldApplyMessage.vue +420 -0
  78. package/src/components/product/Onetomany.vue +406 -296
  79. package/src/components/product/Print/BuildOrder/buildOrderList.vue +353 -0
  80. package/src/components/product/Print/BuildOrder/buildZbfOrderList.vue +376 -0
  81. package/src/components/product/Print/BuildOrder/printBuildOrder.vue +157 -0
  82. package/src/components/product/Print/BuildOrder/printZbfBuildOrder.vue +151 -0
  83. package/src/components/product/Print/IgnitionBill/IgnitionBill.vue +259 -0
  84. package/src/components/product/Print/IgnitionBill/printIgnitionBill.vue +168 -0
  85. package/src/components/product/Process/ExplorationSelect.vue +538 -374
  86. package/src/components/product/Process/ExplorationUser.vue +66 -3
  87. package/src/components/product/Process/Processes/InstallationDetails.vue +685 -484
  88. package/src/components/product/Process/Processes/Print/img/10101.png +0 -0
  89. package/src/components/product/Process/Processes/Print/img/1010109.png +0 -0
  90. package/src/components/product/Process/Processes/Print/img/1010110.png +0 -0
  91. package/src/components/product/Process/Processes/Print/img/1010111.png +0 -0
  92. package/src/components/product/Process/Processes/Print/img/1010112.png +0 -0
  93. package/src/components/product/Process/Processes/Print/printCharge.vue +166 -0
  94. package/src/components/product/Process/Processes/Print/printChargepc.vue +142 -0
  95. package/src/components/product/Process/Processes/Print/printRefund.vue +196 -0
  96. package/src/components/product/Process/Processes/addMaterialScience.vue +462 -0
  97. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +277 -178
  98. package/src/components/product/Process/Processes/chargeManagement.vue +657 -582
  99. package/src/components/product/Process/Processes/devicesManagement.vue +494 -393
  100. package/src/components/product/Process/Processes/selectApply.vue +250 -246
  101. package/src/components/product/Process/Processes/selectUserinfo.vue +182 -188
  102. package/src/components/product/Process/Processes/supplementalAgreement.vue +298 -262
  103. package/src/components/product/Process/Service/ServiceControl.vue +1962 -665
  104. package/src/components/product/Process/ShowBackReason.vue +5 -1
  105. package/src/components/product/ServiceView.vue +981 -606
  106. package/src/components/product/SinglePage/DepartmentDataManagement.vue +43 -0
  107. package/src/components/product/SinglePage/GasCompany.vue +449 -0
  108. package/src/components/product/SinglePage/MarketingDepartment.vue +459 -0
  109. package/src/components/product/Stop/StopApply.vue +1 -3
  110. package/src/components/product/Stop/StopApplyList.vue +271 -264
  111. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +894 -188
  112. package/src/components/product/Supervisory/SupervisoryControl.vue +38 -1
  113. package/src/components/product/Supervisory/SupervisoryList.vue +230 -28
  114. package/src/components/product/Supervisory/SupervisoryhCart.vue +51 -28
  115. package/src/components/product/VueUtils/ApplyUpload.vue +21 -7
  116. package/src/components/product/VueUtils/GaoPaiYi/HighMeter.vue +1090 -0
  117. package/src/components/product/VueUtils/HighMeter.vue +208 -0
  118. package/src/components/report/Baojianwancheng.vue +389 -0
  119. package/src/components/report/Baojinfazhang.vue +345 -0
  120. package/src/main.js +9 -4
  121. package/dist-android/index.html +0 -3
  122. package/dist-android/static/.gitkeep +0 -0
  123. package/dist-android/static/0.js +0 -2
  124. package/dist-android/static/0.js.map +0 -1
  125. package/dist-android/static/1.js +0 -2
  126. package/dist-android/static/1.js.map +0 -1
  127. package/dist-android/static/10.js +0 -2
  128. package/dist-android/static/10.js.map +0 -1
  129. package/dist-android/static/100.js +0 -2
  130. package/dist-android/static/100.js.map +0 -1
  131. package/dist-android/static/11.js +0 -2
  132. package/dist-android/static/11.js.map +0 -1
  133. package/dist-android/static/12.js +0 -2
  134. package/dist-android/static/12.js.map +0 -1
  135. package/dist-android/static/13.js +0 -2
  136. package/dist-android/static/13.js.map +0 -1
  137. package/dist-android/static/14.js +0 -2
  138. package/dist-android/static/14.js.map +0 -1
  139. package/dist-android/static/15.js +0 -2
  140. package/dist-android/static/15.js.map +0 -1
  141. package/dist-android/static/16.js +0 -2
  142. package/dist-android/static/16.js.map +0 -1
  143. package/dist-android/static/17.js +0 -2
  144. package/dist-android/static/17.js.map +0 -1
  145. package/dist-android/static/18.js +0 -2
  146. package/dist-android/static/18.js.map +0 -1
  147. package/dist-android/static/19.js +0 -2
  148. package/dist-android/static/19.js.map +0 -1
  149. package/dist-android/static/2.js +0 -2
  150. package/dist-android/static/2.js.map +0 -1
  151. package/dist-android/static/20.js +0 -2
  152. package/dist-android/static/20.js.map +0 -1
  153. package/dist-android/static/21.js +0 -2
  154. package/dist-android/static/21.js.map +0 -1
  155. package/dist-android/static/22.js +0 -2
  156. package/dist-android/static/22.js.map +0 -1
  157. package/dist-android/static/23.js +0 -2
  158. package/dist-android/static/23.js.map +0 -1
  159. package/dist-android/static/24.js +0 -2
  160. package/dist-android/static/24.js.map +0 -1
  161. package/dist-android/static/25.js +0 -2
  162. package/dist-android/static/25.js.map +0 -1
  163. package/dist-android/static/26.js +0 -2
  164. package/dist-android/static/26.js.map +0 -1
  165. package/dist-android/static/27.js +0 -2
  166. package/dist-android/static/27.js.map +0 -1
  167. package/dist-android/static/28.js +0 -2
  168. package/dist-android/static/28.js.map +0 -1
  169. package/dist-android/static/29.js +0 -2
  170. package/dist-android/static/29.js.map +0 -1
  171. package/dist-android/static/3.js +0 -2
  172. package/dist-android/static/3.js.map +0 -1
  173. package/dist-android/static/30.js +0 -2
  174. package/dist-android/static/30.js.map +0 -1
  175. package/dist-android/static/31.js +0 -2
  176. package/dist-android/static/31.js.map +0 -1
  177. package/dist-android/static/32.js +0 -2
  178. package/dist-android/static/32.js.map +0 -1
  179. package/dist-android/static/33.js +0 -2
  180. package/dist-android/static/33.js.map +0 -1
  181. package/dist-android/static/34.js +0 -2
  182. package/dist-android/static/34.js.map +0 -1
  183. package/dist-android/static/35.js +0 -2
  184. package/dist-android/static/35.js.map +0 -1
  185. package/dist-android/static/36.js +0 -2
  186. package/dist-android/static/36.js.map +0 -1
  187. package/dist-android/static/37.js +0 -2
  188. package/dist-android/static/37.js.map +0 -1
  189. package/dist-android/static/38.js +0 -2
  190. package/dist-android/static/38.js.map +0 -1
  191. package/dist-android/static/39.js +0 -2
  192. package/dist-android/static/39.js.map +0 -1
  193. package/dist-android/static/4.js +0 -2
  194. package/dist-android/static/4.js.map +0 -1
  195. package/dist-android/static/40.js +0 -2
  196. package/dist-android/static/40.js.map +0 -1
  197. package/dist-android/static/41.js +0 -2
  198. package/dist-android/static/41.js.map +0 -1
  199. package/dist-android/static/42.js +0 -2
  200. package/dist-android/static/42.js.map +0 -1
  201. package/dist-android/static/43.js +0 -2
  202. package/dist-android/static/43.js.map +0 -1
  203. package/dist-android/static/44.js +0 -2
  204. package/dist-android/static/44.js.map +0 -1
  205. package/dist-android/static/45.js +0 -2
  206. package/dist-android/static/45.js.map +0 -1
  207. package/dist-android/static/46.js +0 -2
  208. package/dist-android/static/46.js.map +0 -1
  209. package/dist-android/static/47.js +0 -2
  210. package/dist-android/static/47.js.map +0 -1
  211. package/dist-android/static/48.js +0 -2
  212. package/dist-android/static/48.js.map +0 -1
  213. package/dist-android/static/49.js +0 -2
  214. package/dist-android/static/49.js.map +0 -1
  215. package/dist-android/static/5.js +0 -2
  216. package/dist-android/static/5.js.map +0 -1
  217. package/dist-android/static/50.js +0 -2
  218. package/dist-android/static/50.js.map +0 -1
  219. package/dist-android/static/51.js +0 -2
  220. package/dist-android/static/51.js.map +0 -1
  221. package/dist-android/static/52.js +0 -2
  222. package/dist-android/static/52.js.map +0 -1
  223. package/dist-android/static/53.js +0 -2
  224. package/dist-android/static/53.js.map +0 -1
  225. package/dist-android/static/54.js +0 -2
  226. package/dist-android/static/54.js.map +0 -1
  227. package/dist-android/static/55.js +0 -2
  228. package/dist-android/static/55.js.map +0 -1
  229. package/dist-android/static/56.js +0 -2
  230. package/dist-android/static/56.js.map +0 -1
  231. package/dist-android/static/57.js +0 -2
  232. package/dist-android/static/57.js.map +0 -1
  233. package/dist-android/static/58.js +0 -2
  234. package/dist-android/static/58.js.map +0 -1
  235. package/dist-android/static/59.js +0 -2
  236. package/dist-android/static/59.js.map +0 -1
  237. package/dist-android/static/6.js +0 -2
  238. package/dist-android/static/6.js.map +0 -1
  239. package/dist-android/static/60.js +0 -2
  240. package/dist-android/static/60.js.map +0 -1
  241. package/dist-android/static/61.js +0 -2
  242. package/dist-android/static/61.js.map +0 -1
  243. package/dist-android/static/62.js +0 -2
  244. package/dist-android/static/62.js.map +0 -1
  245. package/dist-android/static/63.js +0 -2
  246. package/dist-android/static/63.js.map +0 -1
  247. package/dist-android/static/64.js +0 -2
  248. package/dist-android/static/64.js.map +0 -1
  249. package/dist-android/static/65.js +0 -2
  250. package/dist-android/static/65.js.map +0 -1
  251. package/dist-android/static/66.js +0 -2
  252. package/dist-android/static/66.js.map +0 -1
  253. package/dist-android/static/67.js +0 -2
  254. package/dist-android/static/67.js.map +0 -1
  255. package/dist-android/static/68.js +0 -2
  256. package/dist-android/static/68.js.map +0 -1
  257. package/dist-android/static/69.js +0 -2
  258. package/dist-android/static/69.js.map +0 -1
  259. package/dist-android/static/7.js +0 -6
  260. package/dist-android/static/7.js.map +0 -1
  261. package/dist-android/static/70.js +0 -2
  262. package/dist-android/static/70.js.map +0 -1
  263. package/dist-android/static/71.js +0 -2
  264. package/dist-android/static/71.js.map +0 -1
  265. package/dist-android/static/72.js +0 -2
  266. package/dist-android/static/72.js.map +0 -1
  267. package/dist-android/static/73.js +0 -2
  268. package/dist-android/static/73.js.map +0 -1
  269. package/dist-android/static/74.js +0 -2
  270. package/dist-android/static/74.js.map +0 -1
  271. package/dist-android/static/75.js +0 -2
  272. package/dist-android/static/75.js.map +0 -1
  273. package/dist-android/static/76.js +0 -2
  274. package/dist-android/static/76.js.map +0 -1
  275. package/dist-android/static/77.js +0 -2
  276. package/dist-android/static/77.js.map +0 -1
  277. package/dist-android/static/78.js +0 -2
  278. package/dist-android/static/78.js.map +0 -1
  279. package/dist-android/static/79.js +0 -2
  280. package/dist-android/static/79.js.map +0 -1
  281. package/dist-android/static/8.js +0 -2
  282. package/dist-android/static/8.js.map +0 -1
  283. package/dist-android/static/80.js +0 -2
  284. package/dist-android/static/80.js.map +0 -1
  285. package/dist-android/static/81.js +0 -2
  286. package/dist-android/static/81.js.map +0 -1
  287. package/dist-android/static/82.js +0 -2
  288. package/dist-android/static/82.js.map +0 -1
  289. package/dist-android/static/83.js +0 -2
  290. package/dist-android/static/83.js.map +0 -1
  291. package/dist-android/static/84.js +0 -2
  292. package/dist-android/static/84.js.map +0 -1
  293. package/dist-android/static/85.js +0 -2
  294. package/dist-android/static/85.js.map +0 -1
  295. package/dist-android/static/86.js +0 -2
  296. package/dist-android/static/86.js.map +0 -1
  297. package/dist-android/static/87.js +0 -2
  298. package/dist-android/static/87.js.map +0 -1
  299. package/dist-android/static/88.js +0 -2
  300. package/dist-android/static/88.js.map +0 -1
  301. package/dist-android/static/89.js +0 -2
  302. package/dist-android/static/89.js.map +0 -1
  303. package/dist-android/static/9.js +0 -3
  304. package/dist-android/static/9.js.map +0 -1
  305. package/dist-android/static/90.js +0 -2
  306. package/dist-android/static/90.js.map +0 -1
  307. package/dist-android/static/91.js +0 -2
  308. package/dist-android/static/91.js.map +0 -1
  309. package/dist-android/static/92.js +0 -2
  310. package/dist-android/static/92.js.map +0 -1
  311. package/dist-android/static/93.js +0 -2
  312. package/dist-android/static/93.js.map +0 -1
  313. package/dist-android/static/94.js +0 -2
  314. package/dist-android/static/94.js.map +0 -1
  315. package/dist-android/static/95.js +0 -2
  316. package/dist-android/static/95.js.map +0 -1
  317. package/dist-android/static/96.js +0 -2
  318. package/dist-android/static/96.js.map +0 -1
  319. package/dist-android/static/97.js +0 -2
  320. package/dist-android/static/97.js.map +0 -1
  321. package/dist-android/static/98.js +0 -2
  322. package/dist-android/static/98.js.map +0 -1
  323. package/dist-android/static/99.js +0 -2
  324. package/dist-android/static/99.js.map +0 -1
  325. package/dist-android/static/app.css +0 -2
  326. package/dist-android/static/app.css.map +0 -1
  327. package/dist-android/static/app.js +0 -80
  328. package/dist-android/static/app.js.map +0 -1
  329. package/dist-android/static/batchleft.png +0 -0
  330. package/dist-android/static/batchright.png +0 -0
  331. package/dist-android/static/bluemainbg.jpg +0 -0
  332. package/dist-android/static/config.json +0 -7
  333. package/dist-android/static/denglu.png +0 -0
  334. package/dist-android/static/glyphicons-halflings-regular.eot +0 -0
  335. package/dist-android/static/glyphicons-halflings-regular.svg +0 -288
  336. package/dist-android/static/glyphicons-halflings-regular.ttf +0 -0
  337. package/dist-android/static/glyphicons-halflings-regular.woff +0 -0
  338. package/dist-android/static/glyphicons-halflings-regular.woff2 +0 -0
  339. package/dist-android/static/huangtengbiaozhi.png +0 -0
  340. package/dist-android/static/jingyin.jpg +0 -0
  341. package/dist-android/static/login_bg.jpg +0 -0
  342. package/dist-android/static/login_title.png +0 -0
  343. package/dist-android/static/login_title1.png +0 -0
  344. package/dist-android/static/loginbg.jpg +0 -0
  345. package/dist-android/static/loginlogo.png +0 -0
  346. package/dist-android/static/main_logo.png +0 -0
  347. package/dist-android/static/mainbg.jpg +0 -0
  348. package/dist-android/static/menulogo.png +0 -0
  349. package/dist-android/static/newmainbg.jpg +0 -0
  350. package/dist-android/static/psicon.png +0 -0
  351. package/dist-android/static/singleleft.png +0 -0
  352. package/dist-android/static/singleright.png +0 -0
  353. package/dist-android/static/treeopen.png +0 -0
  354. package/dist-android/static/treeout.png +0 -0
  355. package/dist-android/static/treeset.png +0 -0
  356. package/dist-android/static/usericon.png +0 -0
  357. package/dist-android/static/workflow_apply.json +0 -766
  358. package/dist-android/static/xinxi.png +0 -0
  359. package/dist-android/static//344/277/256/346/224/271/345/257/206/347/240/201.png +0 -0
  360. 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
  361. package/dist-android/static//345/257/274/345/207/272/346/225/260/346/215/256.png +0 -0
  362. package/dist-android/static//346/270/205/347/251/272/346/225/260/346/215/256.png +0 -0
  363. package/src/components/product/Order/OrderApply.vue +0 -47
  364. package/src/components/product/Order/OrderApplyList.vue +0 -252
  365. package/src/components/product/Order/OrderMessage.vue +0 -226
  366. package/src/components/product/Process/Processes/printCharge.vue +0 -126
  367. package/src/filiale/wuan/android.js +0 -0
  368. package/src/filiale/wuan/pc.js +0 -4
  369. package/src/filiale/yuchuan/android/AppServiceView.vue +0 -599
  370. package/src/filiale/yuchuan/android/Process/AppServiceControl.vue +0 -414
  371. package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetails.vue +0 -456
  372. package/src/filiale/yuchuan/android/Reserve/ApplyReserve.vue +0 -200
  373. package/src/filiale/yuchuan/android/SiteSurvey/TaskGraph.vue +0 -137
  374. package/src/filiale/yuchuan/android.js +0 -8
  375. package/src/filiale/yuchuan/pc/Order/OrderApply.vue +0 -517
  376. package/src/filiale/yuchuan/pc/Order/OrderApplyList.vue +0 -343
  377. package/src/filiale/yuchuan/pc/Process/ExplorationSelect.vue +0 -356
  378. package/src/filiale/yuchuan/pc/Process/ExplorationUser.vue +0 -131
  379. package/src/filiale/yuchuan/pc/Process/Processes/MapCom.vue +0 -51
  380. package/src/filiale/yuchuan/pc/Process/Service/ServiceControl.vue +0 -517
  381. package/src/filiale/yuchuan/pc.js +0 -13
@@ -0,0 +1,34 @@
1
+ var ExtractTextPlugin = require('extract-text-webpack-plugin')
2
+
3
+ module.exports = function (options) {
4
+ // generate loader string to be used with extract text plugin
5
+ function generateLoaders (loaders) {
6
+ var sourceLoader = loaders.map(function (loader) {
7
+ var extraParamChar
8
+ if (/\?/.test (loader)) {
9
+ loader = loader.replace(/\?/, '-loader?')
10
+ extraParamChar = '&'
11
+ } else {
12
+ loader = loader + '-loader'
13
+ extraParamChar = '?'
14
+ }
15
+ return loader + (options.sourceMap ? extraParamChar + 'sourceMap' : '')
16
+ }).join('!')
17
+
18
+ if (options.extract) {
19
+ return ExtractTextPlugin.extract('vue-style-loader', sourceLoader)
20
+ } else {
21
+ return ['vue-style-loader', sourceLoader].join('!')
22
+ }
23
+ }
24
+
25
+ // http://vuejs.github.io/vue-loader/configurations/extract-css.html
26
+ return {
27
+ css: generateLoaders(['css']),
28
+ less: generateLoaders(['css', 'less']),
29
+ sass: generateLoaders(['css', 'sass?indentedSyntax']),
30
+ scss: generateLoaders(['css', 'sass']),
31
+ stylus: generateLoaders(['css', 'stylus']),
32
+ styl: generateLoaders(['css', 'stylus'])
33
+ }
34
+ }
@@ -0,0 +1,101 @@
1
+ var express = require('express')
2
+ var webpack = require('webpack')
3
+ var config = require('./webpack.devandroid.conf')
4
+ var proxyMiddleware = require('http-proxy-middleware')
5
+ var http = require('http')
6
+ // var httpProxy = require('http-proxy')
7
+
8
+ var app = express()
9
+ var compiler = webpack(config)
10
+ // var proxy = httpProxy.createProxyServer()
11
+
12
+ // Define HTTP proxies to your custom API backend
13
+ // https://github.com/chimurai/http-proxy-middleware
14
+ var proxyTable = {
15
+ // '/materials': {
16
+ // target: 'http://192.168.50.202:8081'
17
+ // },
18
+ // '/images': {
19
+ // // target: 'http://192.168.50.202:8081'
20
+ // target: 'http://192.168.50.202:8081'
21
+ // },
22
+ // '/rs/user': {
23
+ // target: 'http://192.168.50.202:8081'
24
+ // // target: 'http://127.0.0.1:82'
25
+ // },
26
+ // '/SaleRest/rs': {
27
+ // // target: 'http://127.0.0.1:8082'
28
+ // target: 'http://127.0.0.1:8081/'
29
+ // },
30
+ // '/rs/db': {
31
+ // // target: 'http://192.168.50.202:8081'
32
+ // target: 'http://192.168.50.202:8081'
33
+ // },
34
+ // '/excel': {
35
+ // // target: 'http://127.0.0.1:8082'
36
+ // target: 'http://127.0.0.1:8081/'
37
+ // },
38
+ '/rs': {
39
+ // target: 'http://127.0.0.1:8082'
40
+ target: 'http://127.0.0.1:8077'
41
+ },
42
+ '/AndroidRest/rs': {
43
+ // // target: 'http://127.0.0.1:8082'
44
+ target: 'http://127.0.0.1:8077'
45
+ }
46
+ }
47
+
48
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
49
+ publicPath: config.output.publicPath,
50
+ stats: {
51
+ colors: true,
52
+ chunks: false
53
+ }
54
+ })
55
+
56
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
57
+ // force page reload when html-webpack-plugin template changes
58
+ compiler.plugin('compilation', function (compilation) {
59
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
60
+ hotMiddleware.publish({ action: 'reload' })
61
+ cb()
62
+ })
63
+ })
64
+
65
+ // handle fallback for HTML5 history API
66
+ app.use(require('connect-history-api-fallback')())
67
+
68
+ // serve webpack bundle output
69
+ app.use(devMiddleware)
70
+
71
+ // enable hot-reload and state-preserving
72
+ // compilation error display
73
+ app.use(hotMiddleware)
74
+
75
+ // serve pure static assets
76
+ app.use('/static', express.static('./static'))
77
+
78
+ // proxy api requests
79
+ Object.keys(proxyTable).forEach(function (context) {
80
+ var options = proxyTable[context]
81
+ if (typeof options === 'string') {
82
+ options = { target: options }
83
+ }
84
+ // 改变源实现跨域
85
+ //options.changeOrigin = true
86
+ Object.assign(options, {
87
+ onProxyRes(proxyRes, req, res) {
88
+ // res.header('Access-Control-Allow-Origin', '*')
89
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
90
+ }
91
+ })
92
+ app.use(proxyMiddleware(context, options))
93
+ })
94
+
95
+ app.listen(8082, function (err) {
96
+ if (err) {
97
+ console.log(err)
98
+ return
99
+ }
100
+ console.log('Listening at http://localhost:8082')
101
+ })
@@ -0,0 +1,8 @@
1
+ require('eventsource-polyfill')
2
+ var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true')
3
+
4
+ hotClient.subscribe(function (event) {
5
+ if (event.action === 'reload') {
6
+ window.location.reload()
7
+ }
8
+ })
@@ -0,0 +1,87 @@
1
+ var express = require('express')
2
+ var webpack = require('webpack')
3
+ var config = require('./webpack.dev.conf')
4
+ var proxyMiddleware = require('http-proxy-middleware')
5
+ // var httpProxy = require('http-proxy')
6
+ var app = express()
7
+ var compiler = webpack(config)
8
+ // var proxy = httpProxy.createProxyServer()
9
+
10
+ // Define HTTP proxies to your custom API backend
11
+ // https://github.com/chimurai/http-proxy-middleware
12
+ var proxyTable = {
13
+ '/rs/logic/bjqcheck': {
14
+ target: 'http://127.0.0.1:8099'
15
+ },
16
+ '/rs/logic/bjqadduser': {
17
+ target: 'http://127.0.0.1:8099'
18
+ },
19
+ '/rs/sql/supervisory': {
20
+ target: 'http://192.168.20.28:8400'
21
+ },
22
+ '/rs': {
23
+ // target: 'http://192.168.30.86:8077'
24
+ // target: 'http://192.168.20.27:8555'
25
+ target: 'http://192.168.30.94:8555'
26
+ },
27
+ '/AndroidRest/rs': {
28
+ // target: 'http://192.168.20.27:8555'
29
+ target: 'http://192.168.30.94:8555'
30
+ }
31
+ }
32
+
33
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
34
+ publicPath: config.output.publicPath,
35
+ stats: {
36
+ colors: true,
37
+ chunks: false
38
+ }
39
+ })
40
+
41
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
42
+ // force page reload when html-webpack-plugin template changes
43
+ compiler.plugin('compilation', function (compilation) {
44
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
45
+ hotMiddleware.publish({action: 'reload'})
46
+ cb()
47
+ })
48
+ })
49
+
50
+ // proxy api requests
51
+ Object.keys(proxyTable).forEach(function (context) {
52
+ var options = proxyTable[context]
53
+ if (typeof options === 'string') {
54
+ options = {target: options}
55
+ }
56
+ app.use(proxyMiddleware(context, options))
57
+ })
58
+
59
+ // handle fallback for HTML5 history API
60
+ app.use(require('connect-history-api-fallback')())
61
+ // app.use(function (req, res, next) {
62
+ // res.header('Access-Control-Allow-Origin', '*')
63
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
64
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
65
+ // res.header('X-Powered-By', '3,2,1')
66
+ // res.header('Access-Control-Allow-Credentials', 'true')
67
+ // res.header('Content-Type', 'application/json;charset=utf-8')
68
+ // next()
69
+ // })
70
+
71
+ // serve webpack bundle output
72
+ app.use(devMiddleware)
73
+
74
+ // enable hot-reload and state-preserving
75
+ // compilation error display
76
+ app.use(hotMiddleware)
77
+
78
+ // serve pure static assets
79
+ app.use('/static', express.static('./static'))
80
+
81
+ module.exports = app.listen(8089, function (err) {
82
+ if (err) {
83
+ console.log(err)
84
+ return
85
+ }
86
+ console.log('Listening at http://localhost:8089')
87
+ })
@@ -0,0 +1,158 @@
1
+ var express = require('express')
2
+ var webpack = require('webpack')
3
+ var config = require('./webpack.dev.conf')
4
+ var proxyMiddleware = require('http-proxy-middleware')
5
+ // var httpProxy = require('http-proxy')
6
+ var app = express()
7
+ var compiler = webpack(config)
8
+ // var proxy = httpProxy.createProxyServer()
9
+ // var ldap = 'http://121.36.79.201:8400'
10
+ // var applyinstall = 'http://121.36.79.201:8400'
11
+ // var ldap = 'http://192.168.20.27:8555'
12
+ // var applyinstall = 'http://192.168.20.27:8555'
13
+ // var ldap = 'http://192.168.20.28:8400' //PC端
14
+ var ldap = 'http://192.168.20.28:8556'
15
+ // var applyinstall = 'http://127.0.0.1:8080'
16
+ var applyinstall = 'http://192.168.20.28:8400'
17
+ // 对接工程系统模拟数据
18
+ var outSystemUrl = 'http://127.0.0.1:8086'
19
+ var proxyTable = {
20
+ '/rs/sql/supervisory': {
21
+ target: applyinstall
22
+ },
23
+ '/systemgc/getgc': {
24
+ target: outSystemUrl
25
+ },
26
+ '/systemgc/getgcinfo': {
27
+ target: outSystemUrl
28
+ },
29
+ '/wx': {
30
+ target: ldap
31
+ },
32
+ '/rs/logic/bjqcheck': {
33
+ target: 'http://127.0.0.1:8099'
34
+ },
35
+ '/rs/logic/gdMapTransBMap': {
36
+ target: 'http://127.0.0.1:8099'
37
+ },
38
+ '/rs/logic/bjqadduser': {
39
+ target: 'http://127.0.0.1:8099'
40
+ },
41
+ // '/rs/entity/t_apply': {
42
+ // target: 'http://192.168.20.28:8400'
43
+ // },
44
+ '/rs/sql/filemanage_getUserfies/n': {
45
+ target: ldap
46
+ },
47
+ '/rs/sql/filemanage_getUserfies': {
48
+ target: ldap
49
+ },
50
+ '/rs/logic/saveInsInfo': {
51
+ target: ldap
52
+ },
53
+ '/rs/logic/exportfile': {
54
+ target: ldap
55
+ },
56
+ '/rs/logic/getBatchOperaPro': {
57
+ target: ldap
58
+ },
59
+ '/rs/logic/updateApplyOrder': {
60
+ target: ldap
61
+ },
62
+ '/rs/logic/getSaleInitData': {
63
+ target: ldap
64
+ },
65
+ '/rs/workflow': {
66
+ target: applyinstall
67
+ },
68
+ '/rs/vue': {
69
+ target: ldap
70
+ },
71
+ // 查找资源服务数据
72
+ '/rs/search': {
73
+ target: ldap
74
+ },
75
+ // 用户登录服务地址
76
+ '/rs/user': {
77
+ target: ldap
78
+ },
79
+ '/rs/logic/getInitData': {
80
+ target: ldap?ldap:applyinstall
81
+ // target: ldap
82
+ },
83
+ '/rs/logic/getLogin': {
84
+ target: ldap
85
+ },
86
+ '/rs/file': { // 文件上传
87
+ target: applyinstall
88
+ },
89
+ '/project': { // 文件回显
90
+ target: applyinstall
91
+ },
92
+ '/rs': {
93
+ target: applyinstall
94
+ },
95
+ // '/rs/sql/getStockMaterial': {
96
+ // target: 'http://192.168.20.28:8400'
97
+ // },
98
+ '/ws': {
99
+ target: applyinstall,
100
+ ws: true // 代理webSocket
101
+ }
102
+ }
103
+
104
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
105
+ publicPath: config.output.publicPath,
106
+ stats: {
107
+ colors: true,
108
+ chunks: false
109
+ }
110
+ })
111
+
112
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
113
+ // force page reload when html-webpack-plugin template changes
114
+ compiler.plugin('compilation', function (compilation) {
115
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
116
+ hotMiddleware.publish({action: 'reload'})
117
+ cb()
118
+ })
119
+ })
120
+
121
+ // proxy api requests
122
+ Object.keys(proxyTable).forEach(function (context) {
123
+ var options = proxyTable[context]
124
+ if (typeof options === 'string') {
125
+ options = {target: options}
126
+ }
127
+ app.use(proxyMiddleware(context, options))
128
+ })
129
+
130
+ // handle fallback for HTML5 history API
131
+ app.use(require('connect-history-api-fallback')())
132
+ // app.use(function (req, res, next) {
133
+ // res.header('Access-Control-Allow-Origin', '*')
134
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
135
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
136
+ // res.header('X-Powered-By', '3,2,1')
137
+ // res.header('Access-Control-Allow-Credentials', 'true')
138
+ // res.header('Content-Type', 'application/json;charset=utf-8')
139
+ // next()
140
+ // })
141
+
142
+ // serve webpack bundle output
143
+ app.use(devMiddleware)
144
+
145
+ // enable hot-reload and state-preserving
146
+ // compilation error display
147
+ app.use(hotMiddleware)
148
+
149
+ // serve pure static assets
150
+ app.use('/static', express.static('./static'))
151
+
152
+ module.exports = app.listen(8300, function (err) {
153
+ if (err) {
154
+ console.log(err)
155
+ return
156
+ }
157
+ console.log('Listening at http://localhost:8300')
158
+ })
@@ -0,0 +1,80 @@
1
+ var express = require('express')
2
+ var webpack = require('webpack')
3
+ var config = require('./webpack.example.conf')
4
+ var proxyMiddleware = require('http-proxy-middleware')
5
+ var httpProxy = require('http-proxy')
6
+
7
+ var app = express()
8
+ var compiler = webpack(config)
9
+ var proxy = httpProxy.createProxyServer()
10
+
11
+ // Define HTTP proxies to your custom API backend
12
+ // https://github.com/chimurai/http-proxy-middleware
13
+ var proxyTable = {
14
+ // '/api': {
15
+ // target: 'http://jsonplaceholder.typicode.com',
16
+ // changeOrigin: true,
17
+ // pathRewrite: {
18
+ // '^/api': ''
19
+ // }
20
+ // }
21
+ }
22
+
23
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
24
+ publicPath: config.output.publicPath,
25
+ stats: {
26
+ colors: true,
27
+ chunks: false
28
+ }
29
+ })
30
+
31
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
32
+ // force page reload when html-webpack-plugin template changes
33
+ compiler.plugin('compilation', function (compilation) {
34
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
35
+ hotMiddleware.publish({ action: 'reload' })
36
+ cb()
37
+ })
38
+ })
39
+
40
+ // proxy api requests
41
+ Object.keys(proxyTable).forEach(function (context) {
42
+ var options = proxyTable[context]
43
+ if (typeof options === 'string') {
44
+ options = { target: options }
45
+ }
46
+ app.use(proxyMiddleware(context, options))
47
+ })
48
+
49
+ // handle fallback for HTML5 history API
50
+ app.use(require('connect-history-api-fallback')())
51
+
52
+ // serve webpack bundle output
53
+ app.use(devMiddleware)
54
+
55
+ // enable hot-reload and state-preserving
56
+ // compilation error display
57
+ app.use(hotMiddleware)
58
+
59
+ // serve pure static assets
60
+ app.use('/static', express.static('./static'))
61
+
62
+ // app.all('/images/*', function (req, res) {
63
+ // proxy.web(req, res, {
64
+ // target: 'http://127.0.0.1:82'
65
+ // })
66
+ // })
67
+ //
68
+ // app.all('/*', function (req, res) {
69
+ // proxy.web(req, res, {
70
+ // target: 'http://127.0.0.1:8082'
71
+ // })
72
+ // })
73
+
74
+ module.exports = app.listen(8081, function (err) {
75
+ if (err) {
76
+ console.log(err)
77
+ return
78
+ }
79
+ console.log('Listening at http://localhost:8081')
80
+ })
@@ -0,0 +1,28 @@
1
+ set -e
2
+ echo "Enter release version: "
3
+ read VERSION
4
+
5
+ read -p "Releasing $VERSION - are you sure? (y/n)" -n 1 -r
6
+ echo # (optional) move to a new line
7
+ if [[ $REPLY =~ ^[Yy]$ ]]
8
+ then
9
+ echo "Releasing $VERSION ..."
10
+
11
+ # lint
12
+ npm run lint 2>/dev/null
13
+
14
+ # e2e
15
+ npm run e2e 2>/dev/null
16
+
17
+ #build
18
+ npm run build
19
+
20
+ # commit
21
+ git add -A
22
+ git commit -m "[build] $VERSION"
23
+ npm version $VERSION --message "[release] $VERSION"
24
+
25
+ # publish
26
+ git push origin refs/tags/v$VERSION
27
+ git push
28
+ fi
package/build/utils.js ADDED
@@ -0,0 +1,80 @@
1
+ var path = require('path')
2
+ var config = require('../config')
3
+ var ExtractTextPlugin = require('extract-text-webpack-plugin')
4
+
5
+ exports.assetsPath = function (_path) {
6
+ var assetsSubDirectory = process.env.NODE_ENV === 'production'
7
+ ? config.build.assetsSubDirectory
8
+ : config.dev.assetsSubDirectory
9
+ return path.posix.join(assetsSubDirectory, _path)
10
+ }
11
+
12
+ exports.cssLoaders = function (options) {
13
+ options = options || {}
14
+
15
+ var cssLoader = {
16
+ loader: 'css-loader',
17
+ options: {
18
+ minimize: process.env.NODE_ENV === 'production',
19
+ sourceMap: options.sourceMap
20
+ }
21
+ }
22
+
23
+
24
+ /* const px2remLoader = {
25
+ loader: 'px2rem-loader',
26
+ options: {
27
+ remUnit: 37.5
28
+ }
29
+ }
30
+ */
31
+ // generate loader string to be used with extract text plugin
32
+ function generateLoaders (loader, loaderOptions) {
33
+ // const loaders = [cssLoader, px2remLoader]
34
+ var loaders = [cssLoader]
35
+ if (loader) {
36
+ loaders.push({
37
+ loader: loader + '-loader',
38
+ options: Object.assign({}, loaderOptions, {
39
+ sourceMap: options.sourceMap
40
+ })
41
+ })
42
+ }
43
+
44
+ // Extract CSS when that option is specified
45
+ // (which is the case during production build)
46
+ if (options.extract) {
47
+ return ExtractTextPlugin.extract({
48
+ use: loaders,
49
+ fallback: 'vue-style-loader'
50
+ })
51
+ } else {
52
+ return ['vue-style-loader'].concat(loaders)
53
+ }
54
+ }
55
+
56
+ // https://vue-loader.vuejs.org/en/configurations/extract-css.html
57
+ return {
58
+ css: generateLoaders(),
59
+ postcss: generateLoaders(),
60
+ less: generateLoaders('less'),
61
+ sass: generateLoaders('sass', { indentedSyntax: true }),
62
+ scss: generateLoaders('sass'),
63
+ stylus: generateLoaders('stylus'),
64
+ styl: generateLoaders('stylus')
65
+ }
66
+ }
67
+
68
+ // Generate loaders for standalone style files (outside of .vue)
69
+ exports.styleLoaders = function (options) {
70
+ var output = []
71
+ var loaders = exports.cssLoaders(options)
72
+ for (var extension in loaders) {
73
+ var loader = loaders[extension]
74
+ output.push({
75
+ test: new RegExp('\\.' + extension + '$'),
76
+ use: loader
77
+ })
78
+ }
79
+ return output
80
+ }
@@ -0,0 +1,84 @@
1
+ var path = require('path')
2
+ var cssLoaders = require('./css-loaders')
3
+ var projectRoot = path.resolve(__dirname, '../')
4
+
5
+ module.exports = {
6
+ entry: {
7
+ app: './src/main.js',
8
+ 'android-app': './src/android.js'
9
+ },
10
+ output: {
11
+ path: path.resolve(__dirname, '../dist/static'),
12
+ publicPath: 'static/',
13
+ filename: '[name].js'
14
+ },
15
+ resolve: {
16
+ extensions: ['', '.js', '.vue'],
17
+ fallback: [path.join(__dirname, '../node_modules')],
18
+ alias: {
19
+ 'src': path.resolve(__dirname, '../src')
20
+ }
21
+ },
22
+ resolveLoader: {
23
+ fallback: [path.join(__dirname, '../node_modules')]
24
+ },
25
+ module: {
26
+ loaders: [
27
+ {
28
+ test: /\.vue$/,
29
+ loader: 'vue'
30
+ },
31
+ {
32
+ test: /\.js$/,
33
+ loader: 'babel',
34
+ include: [
35
+ `${projectRoot}\\src`,
36
+ `${projectRoot}\\build`,
37
+ `${projectRoot}\\examples`,
38
+ `${projectRoot}\\test`,
39
+ `${projectRoot}\\node_modules\\vue-client\\src`,
40
+ `${projectRoot}\\node_modules\\vue-strap\\src`,
41
+ `${projectRoot}\\node_modules\\sale-client\\src`,
42
+ `${projectRoot}\\node_modules\\ldap-clients\\src`,
43
+ `${projectRoot}\\node_modules\\system-clients\\src`,
44
+ `${projectRoot}\\node_modules\\system-phone\\src`,
45
+ `${projectRoot}\\node_modules\\material-client\\src`
46
+ ]
47
+ },
48
+ {
49
+ test: /\.json$/,
50
+ loader: 'json'
51
+ },
52
+ {
53
+ test: /\.html$/,
54
+ loader: 'vue-html'
55
+ },
56
+ {
57
+ test: /\.less$/,
58
+ loader: 'style!css!less'
59
+ },
60
+ {
61
+ test: /\.(png|jpg|gif|svg|woff2?|eot|ttf)(\?.*)?$/,
62
+ loader: 'url',
63
+ query: {
64
+ limit: 10000,
65
+ name: '[name].[ext]?[hash:7]'
66
+ }
67
+ },
68
+ {
69
+ test: /\.css/,
70
+ loader: 'style!css'
71
+ }
72
+ ]
73
+ },
74
+ vue: {
75
+ loaders: cssLoaders({
76
+ sourceMap: false,
77
+ extract: false
78
+ })
79
+ },
80
+ plugins: [],
81
+ eslint: {
82
+ formatter: require('eslint-friendly-formatter')
83
+ }
84
+ }