apply-clients 3.3.34 → 3.3.38

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 +13 -2
  43. package/src/components/product/OldApply/Handle/HandleApply.vue +11 -0
  44. package/src/components/product/OldApply/Monitor/MonitorApply.vue +62 -1
  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 +8 -30
  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 -804
  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
@@ -0,0 +1,84 @@
1
+ //path is a built-in node.js module,
2
+ var path = require('path')
3
+ //css-loaders.js in the same directory
4
+ var cssLoaders = require('./css-loaders')
5
+ //__dirname The name of the directory that the currently executing script resides in.
6
+ var projectRoot = path.resolve(__dirname, '../')
7
+
8
+ module.exports = {
9
+ //entry point
10
+ entry: {
11
+ app: './src/android.js'
12
+ },
13
+ //output
14
+ output: {
15
+ //build output absolute directory
16
+ path: path.resolve(__dirname, '../dist-android/static'),
17
+ //public URL address of the output files when referenced in a browser
18
+ publicPath: './static/',
19
+ filename: '[name].js'
20
+ },
21
+ //resolve modules and files path
22
+ resolve: {
23
+ extensions: ['', '.js', '.vue'],
24
+ fallback: [path.join(__dirname, '../node_modules')],
25
+ alias: {
26
+ 'src': path.resolve(__dirname, '../src')
27
+ }
28
+ },
29
+ //resolve loaders path
30
+ resolveLoader: {
31
+ fallback: [path.join(__dirname, '../node_modules')]
32
+ },
33
+ module: {
34
+ loaders: [
35
+ {
36
+ test: /\.vue$/,
37
+ loader: 'vue'
38
+ },
39
+ {
40
+ test: /\.js$/,
41
+ loader: 'babel',
42
+ include: [
43
+ `${projectRoot}\\src`,
44
+ `${projectRoot}\\build`,
45
+ `${projectRoot}\\examples`,
46
+ `${projectRoot}\\test`,
47
+ `${projectRoot}\\node_modules\\vue-client\\src`,
48
+ `${projectRoot}\\node_modules\\vue-strap\\src`,
49
+ `${projectRoot}\\node_modules\\system-phone\\src`
50
+ ]
51
+ },
52
+ {
53
+ test: /\.json$/,
54
+ loader: 'json'
55
+ },
56
+ {
57
+ test: /\.html$/,
58
+ loader: 'vue-html'
59
+ },
60
+ {
61
+ test: /\.less$/,
62
+ loader: 'style!css!less'
63
+ },
64
+ {
65
+ test: /\.(png|jpg|gif|svg|woff2?|eot|ttf)(\?.*)?$/,
66
+ loader: 'url',
67
+ query: {
68
+ limit: 10000,
69
+ name: '[name].[ext]?[hash:7]'
70
+ }
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
+ }
@@ -0,0 +1,39 @@
1
+ var webpack = require('webpack')
2
+ var merge = require('webpack-merge')
3
+ var baseConfig = require('./webpack.base.conf')
4
+ var HtmlWebpackPlugin = require('html-webpack-plugin')
5
+
6
+ // add hot-reload related code to entry chunks
7
+ Object.keys(baseConfig.entry).forEach(function (name) {
8
+ baseConfig.entry[name] = ['./build/dev-client'].concat(baseConfig.entry[name])
9
+ })
10
+
11
+ module.exports = merge(baseConfig, {
12
+ // eval-source-map is faster for development
13
+ devtool: '#eval-source-map',
14
+ output: {
15
+ // necessary for the html plugin to work properly
16
+ // when serving the html from in-memory
17
+ publicPath: '/'
18
+ },
19
+ plugins: [
20
+ // https://github.com/glenjamin/webpack-hot-middleware#installation--usage
21
+ new webpack.optimize.OccurenceOrderPlugin(),
22
+ new webpack.HotModuleReplacementPlugin(),
23
+ new webpack.NoErrorsPlugin(),
24
+ // https://github.com/ampedandwired/html-webpack-plugin
25
+ new HtmlWebpackPlugin({
26
+ filename: 'index.html',
27
+ template: 'index.html',
28
+ inject: true,
29
+ chunks: ['app']
30
+ }),
31
+ // 安卓模拟页面
32
+ new HtmlWebpackPlugin({
33
+ filename: 'android.html',
34
+ template: 'android.html',
35
+ inject: true,
36
+ chunks: ['android-app']
37
+ })
38
+ ]
39
+ })
@@ -0,0 +1,34 @@
1
+ var webpack = require('webpack')
2
+ var merge = require('webpack-merge')
3
+ var baseConfig = require('./webpack.baseandroid.conf')
4
+ var HtmlWebpackPlugin = require('html-webpack-plugin')
5
+
6
+ // add hot-reload related code to entry chunks
7
+ Object.keys(baseConfig.entry).forEach(function (name) {
8
+ baseConfig.entry[name] = ['./build/dev-client'].concat(baseConfig.entry[name])
9
+ })
10
+
11
+ module.exports = merge(baseConfig, {
12
+ // eval-source-map is faster for development
13
+ devtool: 'source-map',
14
+ //devtool: '#eval-source-map',
15
+ output: {
16
+ // necessary for the html plugin to work properly
17
+ // when serving the html from in-memory
18
+ publicPath: '/'
19
+ },
20
+ plugins: [
21
+ // https://github.com/glenjamin/webpack-hot-middleware#installation--usage
22
+ new webpack.optimize.OccurenceOrderPlugin(),
23
+ new webpack.HotModuleReplacementPlugin(),
24
+ new webpack.NoErrorsPlugin(),
25
+ // https://github.com/ampedandwired/html-webpack-plugin
26
+ //plugin trick
27
+ new HtmlWebpackPlugin({
28
+ filename: 'android.html',
29
+ template: 'android.html',
30
+ inject: true,
31
+ chunks: ['android-app']
32
+ })
33
+ ]
34
+ })
@@ -0,0 +1,49 @@
1
+ var fs = require('fs')
2
+ var webpack = require('webpack')
3
+ var merge = require('webpack-merge')
4
+ var baseConfig = require('./webpack.base.conf')
5
+ var HtmlWebpackPlugin = require('html-webpack-plugin')
6
+
7
+ // add hot-reload related code to entry chunks
8
+ Object.keys(baseConfig.entry).forEach(function (name) {
9
+ baseConfig.entry[name] = ['./build/dev-client'].concat(baseConfig.entry[name])
10
+ })
11
+
12
+ // 把examples下所有index.html转换成测试例子.html
13
+ fs.readdirSync('./examples').forEach((file) => {
14
+ baseConfig.plugins.push(
15
+ // https://github.com/ampedandwired/html-webpack-plugin
16
+ new HtmlWebpackPlugin({
17
+ filename: file + '.html',
18
+ template: `examples/${file}/index.html`,
19
+ inject: false
20
+ })
21
+ )
22
+ })
23
+
24
+ // 把examples下子目录里的main.js打包成对应组件名的App.js
25
+ fs.readdirSync('./examples').forEach((file) => {
26
+ baseConfig.entry[file + 'App'] = `./examples/${file}/main.js`
27
+ })
28
+
29
+ module.exports = merge(baseConfig, {
30
+ // eval-source-map is faster for development
31
+ devtool: '#eval-source-map',
32
+ output: {
33
+ // necessary for the html plugin to work properly
34
+ // when serving the html from in-memory
35
+ publicPath: '/'
36
+ },
37
+ plugins: [
38
+ // https://github.com/glenjamin/webpack-hot-middleware#installation--usage
39
+ new webpack.optimize.OccurenceOrderPlugin(),
40
+ new webpack.HotModuleReplacementPlugin(),
41
+ new webpack.NoErrorsPlugin(),
42
+ // https://github.com/ampedandwired/html-webpack-plugin
43
+ new HtmlWebpackPlugin({
44
+ filename: 'index.html',
45
+ template: 'index.html',
46
+ inject: true
47
+ })
48
+ ]
49
+ })
@@ -0,0 +1,60 @@
1
+ var webpack = require('webpack')
2
+ var merge = require('webpack-merge')
3
+ var baseConfig = require('./webpack.base.conf')
4
+ var cssLoaders = require('./css-loaders')
5
+ var ExtractTextPlugin = require('extract-text-webpack-plugin')
6
+ var HtmlWebpackPlugin = require('html-webpack-plugin')
7
+
8
+ // whether to generate source map for production files.
9
+ // disabling this can speed up the build.
10
+ var SOURCE_MAP = true
11
+
12
+ module.exports = merge(baseConfig, {
13
+ stats: {
14
+ children: false
15
+ },
16
+ devtool: SOURCE_MAP ? '#source-map' : false,
17
+ output: {
18
+ // naming output files with hashes for better caching.
19
+ // dist/index.html will be auto-generated with correct URLs.
20
+ filename: '[name][chunkhash].js',
21
+ chunkFilename: '[id].[chunkhash].js'
22
+ },
23
+ vue: {
24
+ loaders: cssLoaders({
25
+ sourceMap: SOURCE_MAP,
26
+ extract: true
27
+ })
28
+ },
29
+ plugins: [
30
+ // http://vuejs.github.io/vue-loader/workflow/production.html
31
+ new webpack.DefinePlugin({
32
+ 'process.env': {
33
+ NODE_ENV: '"production"'
34
+ }
35
+ }),
36
+ new webpack.optimize.UglifyJsPlugin({
37
+ compress: {
38
+ warnings: false
39
+ }
40
+ }),
41
+ new webpack.optimize.OccurenceOrderPlugin(),
42
+ // extract css into its own file
43
+ new ExtractTextPlugin('[name].css'),
44
+ // generate dist index.html with correct asset hash for caching.
45
+ // you can customize output by editing /index.html
46
+ // see https://github.com/ampedandwired/html-webpack-plugin
47
+ new HtmlWebpackPlugin({
48
+ filename: '../index.html',
49
+ template: 'index.html',
50
+ inject: true,
51
+ minify: {
52
+ removeComments: true,
53
+ collapseWhitespace: true,
54
+ removeAttributeQuotes: true
55
+ // more options:
56
+ // https://github.com/kangax/html-minifier#options-quick-reference
57
+ }
58
+ })
59
+ ]
60
+ })
@@ -0,0 +1,60 @@
1
+ var webpack = require('webpack')
2
+ var merge = require('webpack-merge')
3
+ var baseConfig = require('./webpack.baseandroid.conf')
4
+ var cssLoaders = require('./css-loaders')
5
+ var ExtractTextPlugin = require('extract-text-webpack-plugin')
6
+ var HtmlWebpackPlugin = require('html-webpack-plugin')
7
+
8
+ // whether to generate source map for production files.
9
+ // disabling this can speed up the build.
10
+ var SOURCE_MAP = true
11
+
12
+ module.exports = merge(baseConfig, {
13
+ stats: {
14
+ children: false
15
+ },
16
+ devtool: SOURCE_MAP ? '#source-map' : false,
17
+ output: {
18
+ // naming output files with hashes for better caching.
19
+ // dist/index.html will be auto-generated with correct URLs.
20
+ filename: '[name].js',
21
+ chunkFilename: '[id].js'
22
+ },
23
+ vue: {
24
+ loaders: cssLoaders({
25
+ sourceMap: SOURCE_MAP,
26
+ extract: true
27
+ })
28
+ },
29
+ plugins: [
30
+ // http://vuejs.github.io/vue-loader/workflow/production.html
31
+ new webpack.DefinePlugin({
32
+ 'process.env': {
33
+ NODE_ENV: '"production"'
34
+ }
35
+ }),
36
+ new webpack.optimize.UglifyJsPlugin({
37
+ compress: {
38
+ warnings: false
39
+ }
40
+ }),
41
+ new webpack.optimize.OccurenceOrderPlugin(),
42
+ // extract css into its own file
43
+ new ExtractTextPlugin('[name].css'),
44
+ // generate dist index.html with correct asset hash for caching.
45
+ // you can customize output by editing /index.html
46
+ // see https://github.com/ampedandwired/html-webpack-plugin
47
+ new HtmlWebpackPlugin({
48
+ filename: '../index.html',
49
+ template: 'android.html',
50
+ inject: true,
51
+ minify: {
52
+ removeComments: true,
53
+ collapseWhitespace: true,
54
+ removeAttributeQuotes: true
55
+ // more options:
56
+ // https://github.com/kangax/html-minifier#options-quick-reference
57
+ }
58
+ })
59
+ ]
60
+ })
@@ -0,0 +1,31 @@
1
+ // This is the webpack config used for unit tests.
2
+
3
+ var utils = require('./utils')
4
+ var webpack = require('webpack')
5
+ var merge = require('webpack-merge')
6
+ var baseConfig = require('./webpack.base.conf')
7
+
8
+ var webpackConfig = merge(baseConfig, {
9
+ module: {
10
+ rules: utils.styleLoaders()
11
+ },
12
+ // use inline sourcemap for karma-sourcemap-loader
13
+ devtool: '#inline-source-map',
14
+ resolveLoader: {
15
+ alias: {
16
+ // necessary to to make lang="scss" work in test when using vue-loader's ?inject option
17
+ // see discussion at https://github.com/vuejs/vue-loader/issues/724
18
+ 'scss-loader': 'sass-loader'
19
+ }
20
+ },
21
+ plugins: [
22
+ new webpack.DefinePlugin({
23
+ 'process.env': require('../config/test.env')
24
+ })
25
+ ]
26
+ })
27
+
28
+ // no need for app entry during tests
29
+ delete webpackConfig.entry
30
+
31
+ module.exports = webpackConfig
package/index.html CHANGED
@@ -1,33 +1,33 @@
1
- <!DOCTYPE html>
2
- <html lang="zh-CN">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
6
- <META HTTP-EQUIV="pragma" CONTENT="no-cache">
7
- <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
8
- <META HTTP-EQUIV="expires" CONTENT="0">
9
- <title>周口燃气</title>
10
- <script src="https://webapi.amap.com/maps?v=1.4.2&key=4889f1e58df01cb40415536c8907bf64"></script>
11
- <!--引入UI组件库(1.1版本) -->
12
- <script src="https://webapi.amap.com/ui/1.1/main.js?v=1.1.1"></script>
13
- <style media="screen">
14
- /*url(./static/newmainbg.jpg)*/
15
-
16
- body {
17
- font-size:16px !important;
18
- width: 100%;
19
- background: #7f8eaf no-repeat center bottom;
20
- background-size: cover;
21
- }
22
-
23
- body .loginbg {
24
- width: 100%;
25
- height: 100%;
26
- background: url(./static/loginbg.jpg) no-repeat center top;
27
- }
28
- </style>
29
- </head>
30
- <body id="bodymain" class="themeOne">
31
- <app></app>
32
- </body>
33
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
6
+ <META HTTP-EQUIV="pragma" CONTENT="no-cache">
7
+ <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
8
+ <META HTTP-EQUIV="expires" CONTENT="0">
9
+ <title>周口燃气</title>
10
+ <script src="https://webapi.amap.com/maps?v=1.4.2&key=4889f1e58df01cb40415536c8907bf64"></script>
11
+ <!--引入UI组件库(1.1版本) -->
12
+ <script src="https://webapi.amap.com/ui/1.1/main.js?v=1.1.1"></script>
13
+ <style media="screen">
14
+ /*url(./static/newmainbg.jpg)*/
15
+
16
+ body {
17
+ font-size:16px !important;
18
+ width: 100%;
19
+ background: #7f8eaf no-repeat center bottom;
20
+ background-size: cover;
21
+ }
22
+
23
+ body .loginbg {
24
+ width: 100%;
25
+ height: 100%;
26
+ background: url(./static/loginbg.jpg) no-repeat center top;
27
+ }
28
+ </style>
29
+ </head>
30
+ <body id="bodymain" class="themeOne">
31
+ <app></app>
32
+ </body>
33
+ </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.3.34",
3
+ "version": "3.3.38",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -1,30 +1,30 @@
1
- <template>
2
- <!-- <app-base> -->
3
- <div id="android-app">
4
- <article>
5
- <route :comp="{name: 'app-exploration-user'}" name="root"></route>
6
- <!-- <route :comp="{name: 'app-process-supervisory'}" name="root"></route>-->
7
- <!-- <route :comp="{name: 'apply-reserve'}" name="root"></route>-->
8
- <!-- <route :comp="{name: 'task-graph'}" name="root"></route>-->
9
- <!-- <route :comp="{name: 'app-istall-function'}" name="root"></route>-->
10
- </article>
11
- <time-out></time-out>
12
- <message-box></message-box>
13
- <alert-box></alert-box>
14
- <alert-box-batch></alert-box-batch>
15
- </div>
16
- </template>
17
-
18
- <script>
19
-
20
- export default {
21
- ready () {
22
- if(!window.onerror) {
23
- window.onerror = function (message, file, line, col, error) {
24
- // HostApp.alert("Error occured: " + error.message)
25
- return false
26
- }
27
- }
28
- }
29
- }
30
- </script>
1
+ <template>
2
+ <!-- <app-base> -->
3
+ <div id="android-app">
4
+ <article>
5
+ <route :comp="{name: 'app-exploration-user'}" name="root"></route>
6
+ <!-- <route :comp="{name: 'app-process-supervisory'}" name="root"></route>-->
7
+ <!-- <route :comp="{name: 'apply-reserve'}" name="root"></route>-->
8
+ <!-- <route :comp="{name: 'task-graph'}" name="root"></route>-->
9
+ <!-- <route :comp="{name: 'app-istall-function'}" name="root"></route>-->
10
+ </article>
11
+ <time-out></time-out>
12
+ <message-box></message-box>
13
+ <alert-box></alert-box>
14
+ <alert-box-batch></alert-box-batch>
15
+ </div>
16
+ </template>
17
+
18
+ <script>
19
+
20
+ export default {
21
+ ready () {
22
+ if(!window.onerror) {
23
+ window.onerror = function (message, file, line, col, error) {
24
+ // HostApp.alert("Error occured: " + error.message)
25
+ return false
26
+ }
27
+ }
28
+ }
29
+ }
30
+ </script>
package/src/android.js CHANGED
@@ -1,21 +1,21 @@
1
- import Vue from 'vue'
2
- import AndroidApp from './AndroidApp'
3
- import { all } from 'vue-client'
4
- import apply from './apply'
5
- import {systemphonegrid} from 'system-phone'
6
- import applyAndroid from './applyAndroid'
7
-
8
- all()
9
- apply()
10
- applyAndroid()
11
- systemphonegrid()
12
-
13
- require('./android-bootstrap/less/bootstrap.less')
14
- require('./expandcssAndroid.less')
15
-
16
- Vue.android = true
17
- /* eslint-disable no-new */
18
- new Vue({
19
- el: 'body',
20
- components: { AndroidApp }
21
- })
1
+ import Vue from 'vue'
2
+ import AndroidApp from './AndroidApp'
3
+ import { all } from 'vue-client'
4
+ import apply from './apply'
5
+ import {systemphonegrid} from 'system-phone'
6
+ import applyAndroid from './applyAndroid'
7
+
8
+ all()
9
+ apply()
10
+ applyAndroid()
11
+ systemphonegrid()
12
+
13
+ require('./android-bootstrap/less/bootstrap.less')
14
+ require('./expandcssAndroid.less')
15
+
16
+ Vue.android = true
17
+ /* eslint-disable no-new */
18
+ new Vue({
19
+ el: 'body',
20
+ components: { AndroidApp }
21
+ })
package/src/apply.js CHANGED
@@ -4,7 +4,7 @@ import ApplyGetSaleParam from './stores/ApplyGetSaleParams'
4
4
  import ApplyLoadParams from './stores/ApplyLoadParams'
5
5
  /** ****************服务插件*********************/
6
6
 
7
- export default function (filiale) {
7
+ export default function () {
8
8
  Vue.use(ApplyGetSaleParam)
9
9
  Vue.use(ApplyLoadParams)
10
10
  /** ***************************报建模块*********************************/
@@ -85,11 +85,5 @@ export default function (filiale) {
85
85
  Vue.component('old-apply-message', (resolve) => { require(['./components/product/OldApply/OldApplyMessage'], resolve) })
86
86
 
87
87
  Vue.component('apply-material-detailed', (resolve) => { require(['./components/product/Material/MaterialDetailed'], resolve) })
88
-
89
- if (filiale) {
90
- let filialeComp = require(`./filiale/${filiale}/pc`).specialComp
91
- for (let key in filialeComp) {
92
- Vue.component(key, filialeComp[key])
93
- }
94
- }
88
+ Vue.component('apply-install-project', (resolve) => { require(['./components/product/Install/InstallProject'], resolve) })
95
89
  }
@@ -5,7 +5,7 @@ import ApplyGetSaleParam from './stores/ApplyGetSaleParams'
5
5
  import ApplyLoadParams from './stores/ApplyLoadParams'
6
6
  /** ****************服务插件*********************/
7
7
 
8
- export default function (filiale) {
8
+ export default function () {
9
9
  Vue.use(ApplyGetSaleParam)
10
10
  Vue.use(ApplyLoadParams)
11
11
  /** ***************************报建模块*********************************/
@@ -25,11 +25,4 @@ export default function (filiale) {
25
25
  Vue.component('app-apply-devices-management', (resolve) => { require(['./components/android/Process/Processes/AppDevicesManagement'], resolve) })
26
26
  Vue.component('app-charge-management', (resolve) => { require(['./components/android/Process/Processes/AppChargeManagement'], resolve) })
27
27
  Vue.component('app-supplemental-agreement', (resolve) => { require(['./components/android/Process/Processes/AppSupplementalAgreement'], resolve) })
28
-
29
- if (filiale) {
30
- let filialeComp = require(`./filiale/${filiale}/android`).specialComp
31
- for (let key in filialeComp) {
32
- Vue.component(key, filialeComp[key])
33
- }
34
- }
35
28
  }