manage-client 3.2.102 → 3.2.103-03-tc

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 (161) hide show
  1. package/build/dev-server.js +176 -177
  2. package/build/webpack.base.conf.js +16 -16
  3. package/build/webpack.prod.conf.js +106 -23
  4. package/package.json +9 -4
  5. package/src/ManageHome.js +2 -6
  6. package/src/components/SellReport/ApplyFillmoney.vue +228 -0
  7. package/src/components/SellReport/ESaleMonthReport.vue +221 -0
  8. package/src/components/SellReport/GFReportWH.vue +181 -0
  9. package/src/components/SellReport/ManageBusSummary.vue +77 -64
  10. package/src/components/SellReport/ManageBusSummarynopay.vue +237 -0
  11. package/src/components/SellReport/ManageMonthGas.vue +1 -1
  12. package/src/components/SellReport/ManageSellType.vue +1 -1
  13. package/src/components/SellReport/MarketAnjianChuli.vue +228 -0
  14. package/src/components/SellReport/MarketAnjianSituation.vue +228 -0
  15. package/src/components/SellReport/MarketMonthMoney.vue +237 -0
  16. package/src/components/SellReport/MarketanjianStyle.vue +228 -0
  17. package/src/components/SellReport/PriceReportWHwu.vue +180 -0
  18. package/src/components/SellReport/ReportHistoryShow.vue +51 -0
  19. package/src/components/SellReport/ReportItems.vue +161 -92
  20. package/src/components/SellReport/ReportPool.vue +91 -19
  21. package/src/components/SellReport/SellDepReport.vue +2 -1
  22. package/src/components/SellReport/UserFillmoney.vue +420 -0
  23. package/src/components/SellReport/UserGasFillCard.vue +6 -6
  24. package/src/components/SellReport/applysFillmoney.vue +228 -0
  25. package/src/components/daping/CallCenter.vue +26 -14
  26. package/src/components/daping/DataManagement.vue +45 -39
  27. package/src/components/daping/SafeCheckRing.vue +2 -1
  28. package/src/components/daping/SafecheckBarChart.vue +17 -8
  29. package/src/components/daping/json/dataManage.json +26 -0
  30. package/src/components/sale/businessquery/BalanceTable.vue +5 -1
  31. package/src/components/sale/businessquery/BusinesQuery.vue +6 -0
  32. package/src/components/sale/businessquery/BusinessManage.vue +167 -179
  33. package/src/components/sale/businessquery/CancellationQuery.vue +6 -0
  34. package/src/components/sale/businessquery/CardHandplanQuery.vue +7 -0
  35. package/src/components/sale/businessquery/ChangeMeterQuery.vue +3 -2
  36. package/src/components/sale/businessquery/ChargeQuery.vue +12 -4
  37. package/src/components/sale/businessquery/CollectManage.vue +7 -3
  38. package/src/components/sale/businessquery/CommunityPaymen.vue +2 -2
  39. package/src/components/sale/businessquery/DisableQuery.vue +36 -4
  40. package/src/components/sale/businessquery/EnableQuery.vue +8 -1
  41. package/src/components/sale/businessquery/FMYGasQuery.vue +6 -0
  42. package/src/components/sale/businessquery/FillCardQuery.vue +47 -7
  43. package/src/components/sale/businessquery/FillGasQuery.vue +29 -1
  44. package/src/components/sale/businessquery/GasLossQuery.vue +18 -0
  45. package/src/components/sale/businessquery/GroupChargeQuery.vue +4 -8
  46. package/src/components/sale/businessquery/HandBookTwoQuery.vue +700 -0
  47. package/src/components/sale/businessquery/MonthGasQuery.vue +2 -2
  48. package/src/components/sale/businessquery/MoveMeterQuery.vue +10 -4
  49. package/src/components/sale/businessquery/OtherChargeNopayQuery.vue +689 -0
  50. package/src/components/sale/businessquery/OtherChargeQuery.vue +7 -1
  51. package/src/components/sale/businessquery/PriceChange.vue +4 -0
  52. package/src/components/sale/businessquery/PrickBillQuery.vue +7 -1
  53. package/src/components/sale/businessquery/PrivilegeQuery.vue +6 -1
  54. package/src/components/sale/businessquery/ReceiptQuery.vue +25 -14
  55. package/src/components/sale/businessquery/ReverseQuery.vue +7 -1
  56. package/src/components/sale/businessquery/SellPeopleQuery.vue +8 -13
  57. package/src/components/sale/businessquery/SendbookQuery.vue +6 -0
  58. package/src/components/sale/businessquery/SuspiciousUserQuery.vue +4 -0
  59. package/src/components/sale/businessquery/TransferQuery.vue +7 -1
  60. package/src/components/sale/businessquery/TransferRecordQuery.vue +179 -0
  61. package/src/components/sale/businessquery/overDueQuery.vue +12 -6
  62. package/src/components/sale/businessquery/priceadjustQuery.vue +6 -0
  63. package/src/components/sale/businessquery/pricechangeRecordQuery.vue +8 -2
  64. package/src/components/sale/businessquery/reportDetail.vue +256 -0
  65. package/src/components/sale/businessquery/sellingChargePrice.vue +4 -5
  66. package/src/components/sale/businessquery/yucunDetails.vue +6 -0
  67. package/src/components/sale/config/exportConfig.js +114 -38
  68. package/src/components/sale/config/tableConfig.js +54 -48
  69. package/src/components/sale/filesquery/MeterQuery.vue +9 -8
  70. package/src/components/sale/filesquery/RecordInfoQuery.vue +87 -92
  71. package/src/components/sale/report/aode/MonthByChargeType.vue +2 -1
  72. package/src/components/sale/report/aode/MonthByUserType.vue +2 -1
  73. package/src/components/sale/report/aode/YearByChargeTpye.vue +2 -1
  74. package/src/components/sale/report/aode/YearByUserType.vue +2 -1
  75. package/src/components/sale/resourcequery/LoginQuery.vue +245 -0
  76. package/src/components/sale/resourcequery/ResourceManage.vue +36 -0
  77. package/src/components/valueaddinfo/ValueAddinfoQuery.vue +420 -0
  78. package/src/components/valueaddinfo/renewalvalueAddUserQuery.vue +383 -0
  79. package/src/components/valueaddinfo/valueAddCountQuery.vue +315 -0
  80. package/src/components/valueaddinfo/valueAddUserQuery.vue +392 -0
  81. package/src/components/webmeter/DrillData/UserGasAll.vue +1 -1
  82. package/src/components/webmeter/DrillData/UserLostContactAnalysis.vue +2 -2
  83. package/src/components/webmeter/WebmeterQuery.vue +3 -0
  84. package/src/components/webmeter/gasAnalysis/WebmeterSettlementAnalysis.vue +432 -0
  85. package/src/components/webmeter/handplan/NewWebMeterHandPlan.vue +8 -1
  86. package/src/components/webmeter/instruction/NewQueryInstruct.vue +14 -1
  87. package/src/components/webmeter/meterinfo/NewMeterList.vue +10 -3
  88. package/src/components/webmeter/newwebmeter/NewException/MeterExceptionList.vue +560 -506
  89. package/src/components/webmeter/report/ReportList.vue +5 -5
  90. package/src/components/webmeter/reportdata/ReportDataQuery.vue +279 -279
  91. package/src/filiale/WEINAN/BusinessManage.vue +13 -5
  92. package/src/filiale/WEINAN/CancellationQuery.vue +422 -0
  93. package/src/filiale/WEINAN/ChargeQuery.vue +70 -76
  94. package/src/filiale/WEINAN/CollectManage.vue +148 -0
  95. package/src/filiale/WEINAN/DisableQuery.vue +523 -0
  96. package/src/filiale/WEINAN/EnableQuery.vue +456 -0
  97. package/src/filiale/WEINAN/FillGasQuery.vue +6 -2
  98. package/src/filiale/WEINAN/MeterQuery.vue +34 -7
  99. package/src/filiale/WEINAN/NewAccountQuery.vue +409 -0
  100. package/src/filiale/WEINAN/OtherChargeQuery.vue +8 -7
  101. package/src/filiale/WEINAN/RecordInfoQuery.vue +5 -2
  102. package/src/filiale/WEINAN/config/exportConfig.js +24 -33
  103. package/src/filiale/WEINAN/manage/ChangeMeterQuery.vue +20 -12
  104. package/src/filiale/WEINAN/sale.js +13 -4
  105. package/src/filiale/gaomi/MeterQuery.vue +37 -7
  106. package/src/filiale/gongyi/sale/filesquery/MeterQuery.vue +30 -7
  107. package/src/filiale/jingwei/RecordInfoQuery.vue +55 -33
  108. package/src/filiale/liaoyuan/RecordInfoQuery.vue +3 -1
  109. package/src/filiale/liaoyuan/exportConfig.js +2 -1
  110. package/src/filiale/macheng/HandplanQuery.vue +6 -0
  111. package/src/filiale/macheng/MeterQuery.vue +28 -5
  112. package/src/filiale/macheng/MonthGasQuery.vue +2 -2
  113. package/src/filiale/macheng/RecordInfoQuery.vue +2 -2
  114. package/src/filiale/macheng/WebmeterSettlementAnalysis.vue +388 -0
  115. package/src/filiale/macheng/config/exportConfig.js +2 -2
  116. package/src/filiale/macheng/webmeterManage.js +9 -0
  117. package/src/filiale/meihekou/HandplanQuery.vue +8 -2
  118. package/src/filiale/meihekou/UserQuery.vue +14 -4
  119. package/src/filiale/qianneng/ArrearsQuery.vue +25 -5
  120. package/src/filiale/qianneng/BusinessManage.vue +182 -0
  121. package/src/filiale/qianneng/ChargeQuery.vue +191 -184
  122. package/src/filiale/qianneng/GasLossQuery.vue +632 -0
  123. package/src/filiale/qianneng/HandplanQuery.vue +163 -111
  124. package/src/filiale/qianneng/MeterQuery.vue +33 -0
  125. package/src/filiale/qianneng/OtherChargeQuery.vue +33 -31
  126. package/src/filiale/qianneng/SellDepReport.vue +27 -7
  127. package/src/filiale/qianneng/UserQuery.vue +938 -0
  128. package/src/filiale/qianneng/exportConfig.js +26 -33
  129. package/src/filiale/qianneng/sale.js +5 -1
  130. package/src/filiale/qingtongxia/MeterQuery.vue +30 -7
  131. package/src/filiale/qingtongxia/MonthGasQuery.vue +480 -0
  132. package/src/filiale/qingtongxia/RecordInfoQuery.vue +12 -4
  133. package/src/filiale/qingtongxia/SellPeopleQuery.vue +8 -13
  134. package/src/filiale/qingtongxia/sale.js +2 -0
  135. package/src/filiale/rizhao/ChargeQuery.vue +1295 -0
  136. package/src/filiale/rizhao/sale.js +10 -0
  137. package/src/filiale/shaoguan/TransferQuery.vue +8 -3
  138. package/src/filiale/shaoguan/config/exportConfig.js +2 -2
  139. package/src/filiale/tongchuan/ChargeQuery.vue +3 -3
  140. package/src/filiale/tongchuan/DeviceQuery.vue +1 -1
  141. package/src/filiale/tongchuan/FillGasQuery.vue +11 -2
  142. package/src/filiale/tongchuan/MeterQuery.vue +3 -5
  143. package/src/filiale/tongchuan/PriceChangeQuery.vue +1 -1
  144. package/src/filiale/tongchuan/ReportList.vue +28 -31
  145. package/src/filiale/tongchuan/UserDeviceQuery.vue +1 -1
  146. package/src/filiale/tongchuan/config/exportConfig.js +847 -857
  147. package/src/filiale/wuhai/ChargeQuery.vue +25 -8
  148. package/src/filiale/zhongsheng/config/exportConfig.js +2 -2
  149. package/src/filiale/zhongyi/GasStatistics.vue +499 -0
  150. package/src/filiale/zhongyi/MeterExceptionList.vue +599 -0
  151. package/src/filiale/zhongyi/sale.js +13 -0
  152. package/src/main.js +1 -1
  153. package/src/newmanage.js +116 -113
  154. package/src/reportManage.js +53 -9
  155. package/src/saleManage.js +66 -31
  156. package/src/webmeterManage.js +8 -7
  157. package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
  158. package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
  159. package/.gradle/6.1/gc.properties +0 -0
  160. package/.gradle/buildOutputCleanup/built.bin +0 -0
  161. package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
@@ -1,177 +1,176 @@
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
-
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 bendi = 'http://127.0.0.1:8082'
14
- // fuwu = 'http://36.103.224.217:6300/'
15
- var shaoguan='http://119.146.1.106:8300/'
16
- var qtx='http://36.103.222.144:6300/'
17
- // var bendi = 'http://localhost:8082'
18
- // var bendi = 'http://172.168.1.11:9001'
19
- var fuwu = 'http://124.70.12.19:8400'
20
- // var fuwu = 'http://172.168.1.11:9001'
21
- var system = 'http://192.168.50.4:8400'
22
- //192.168.
23
- // var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
24
- // var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
25
- var proxyTable = {
26
- '/rs/logic/exportfile': {
27
- target: fuwu
28
- },
29
- '/files': {
30
- target: fuwu
31
- },
32
- // 查找资源服务数据
33
- '/rs/search': {
34
- target: fuwu
35
- },
36
- // 查找资源服务数据
37
- '/rs/logic/getLogin': {
38
- target: fuwu
39
- },
40
- // 查找资源服务数据
41
- '/rs/logic/getInitData': {
42
- target: fuwu
43
- },
44
- '/rs/logic/getSaleInitData':{
45
- target: fuwu
46
- },
47
- // 用户登录服务地址
48
- '/rs/user': {
49
- target: fuwu
50
- },
51
- '/rs/path/getParams': {
52
- target: fuwu
53
- },
54
- '/rs/data': {
55
- target: fuwu
56
- },
57
- '/rs/license': {
58
- target: fuwu
59
- },
60
- '/rs/db': {
61
- target: fuwu
62
- },
63
- '/excel': {
64
- target: fuwu
65
- },
66
- '/rs/config': {
67
- target: fuwu
68
- },
69
- '/rs/sql/getLicenseById': {
70
- target: fuwu
71
- },
72
- '/rs/report': {
73
- target: bendi
74
- },
75
- '/rs/vue': {
76
- target: fuwu
77
- },
78
- '/rs/file': {
79
- target: bendi
80
- },
81
- '/rs/logic/SumSettleFileImport': {
82
- target: 'http://127.0.0.1:8080'
83
- },
84
- '/rs': {
85
- target: fuwu
86
- }
87
- }
88
-
89
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
90
- publicPath: config.output.publicPath,
91
- stats: {
92
- colors: true,
93
- chunks: false
94
- }
95
- })
96
-
97
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
98
- // force page reload when html-webpack-plugin template changes
99
- compiler.plugin('compilation', function (compilation) {
100
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
101
- hotMiddleware.publish({action: 'reload'})
102
- cb()
103
- })
104
- })
105
-
106
- // proxy api requests
107
- Object.keys(proxyTable).forEach(function (context) {
108
- var options = proxyTable[context]
109
- if (typeof options === 'string') {
110
- options = {target: options}
111
- }
112
- app.use(proxyMiddleware(context, options))
113
- })
114
-
115
- // handle fallback for HTML5 history API
116
- app.use(require('connect-history-api-fallback')())
117
- // app.use(function (req, res, next) {
118
- // res.header('Access-Control-Allow-Origin', '*')
119
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
120
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
121
- // res.header('X-Powered-By', '3,2,1')
122
- // res.header('Access-Control-Allow-Credentials', 'true')
123
- // res.header('Content-Type', 'application/json;charset=utf-8')
124
- // next()
125
- // })
126
-
127
- // serve webpack bundle output
128
- app.use(devMiddleware)
129
-
130
- // enable hot-reload and state-preserving
131
- // compilation error display
132
- app.use(hotMiddleware)
133
-
134
- // serve pure static assets
135
- app.use('/static', express.static('./static'))
136
-
137
- // app.all('/rs/*', function (req, res) {
138
- // proxy.web(req, res, {
139
- // target: 'http://127.0.0.1:8081/reports'
140
- // })
141
- // })
142
-
143
- // app.all('/rs/*', function (req, res) {
144
- // proxy.web(req, res, {
145
- // target: 'http://127.0.0.1:8081/ldap'
146
- // })
147
- // })
148
- // app.all('/excel/*', function (req, res) {
149
- // proxy.web(req, res, {
150
- // target: 'http://127.0.0.1:8081/charge'
151
- // })
152
- // })
153
-
154
- // app.all('/rs/*', function (req, res) {
155
- // proxy.web(req, res, {
156
- // target: 'http://127.0.0.1:82/charge'
157
- // })
158
- // })
159
-
160
- // app.all('/*', function (req, res) {
161
- // proxy.web(req, res, {
162
- // target: 'http://127.0.0.1:82'
163
- // })
164
- // })
165
- // app.all('/rs/user', function (req, res) {
166
- // proxy.web(req, res, {
167
- // target: 'http://127.0.0.1:82'
168
- // })
169
- // })
170
-
171
- module.exports = app.listen(8085, function (err) {
172
- if (err) {
173
- console.log(err)
174
- return
175
- }
176
- console.log('Listening at http://localhost:8085')
177
- })
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
+
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 bendi = 'http://127.0.0.1:8089/manage', fuwu = 'http://36.103.224.217:6300/'
14
+ var shaoguan='http://119.146.1.106:8300/'
15
+ var qtx='http://36.103.222.144:6300/'
16
+ var bendi = 'http://192.168.50.4:8400'
17
+ // var bendi = 'http://172.168.1.11:9001'
18
+ var fuwu = 'http://192.168.50.4:8400'
19
+ // var fuwu = 'http://203.57.101.233:9001'
20
+ var system = 'http://192.168.50.4:8400'
21
+ //192.168.
22
+ // var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
23
+ // var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
24
+ var proxyTable = {
25
+ '/rs/logic/exportfile': {
26
+ target: fuwu
27
+ },
28
+ '/files': {
29
+ target: fuwu
30
+ },
31
+ // 查找资源服务数据
32
+ '/rs/search': {
33
+ target: fuwu
34
+ },
35
+ // 查找资源服务数据
36
+ '/rs/logic/getLogin': {
37
+ target: fuwu
38
+ },
39
+ // 查找资源服务数据
40
+ '/rs/logic/getInitData': {
41
+ target: fuwu
42
+ },
43
+ '/rs/logic/getSaleInitData':{
44
+ target: fuwu
45
+ },
46
+ // 用户登录服务地址
47
+ '/rs/user': {
48
+ target: fuwu
49
+ },
50
+ '/rs/path/getParams': {
51
+ target: fuwu
52
+ },
53
+ '/rs/data': {
54
+ target: fuwu
55
+ },
56
+ '/rs/license': {
57
+ target: fuwu
58
+ },
59
+ '/rs/db': {
60
+ target: fuwu
61
+ },
62
+ '/excel': {
63
+ target: fuwu
64
+ },
65
+ '/rs/config': {
66
+ target: fuwu
67
+ },
68
+ '/rs/sql/getLicenseById': {
69
+ target: fuwu
70
+ },
71
+ '/rs/report': {
72
+ target: bendi
73
+ },
74
+ '/rs/vue': {
75
+ target: fuwu
76
+ },
77
+ '/rs/file': {
78
+ target: bendi
79
+ },
80
+ '/rs/logic/SumSettleFileImport': {
81
+ target: 'http://127.0.0.1:8080'
82
+ },
83
+ '/rs': {
84
+ target: fuwu
85
+ }
86
+ }
87
+
88
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
89
+ publicPath: config.output.publicPath,
90
+ stats: {
91
+ colors: true,
92
+ chunks: false
93
+ }
94
+ })
95
+
96
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
97
+ // force page reload when html-webpack-plugin template changes
98
+ compiler.plugin('compilation', function (compilation) {
99
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
100
+ hotMiddleware.publish({action: 'reload'})
101
+ cb()
102
+ })
103
+ })
104
+
105
+ // proxy api requests
106
+ Object.keys(proxyTable).forEach(function (context) {
107
+ var options = proxyTable[context]
108
+ if (typeof options === 'string') {
109
+ options = {target: options}
110
+ }
111
+ app.use(proxyMiddleware(context, options))
112
+ })
113
+
114
+ // handle fallback for HTML5 history API
115
+ app.use(require('connect-history-api-fallback')())
116
+ // app.use(function (req, res, next) {
117
+ // res.header('Access-Control-Allow-Origin', '*')
118
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
119
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
120
+ // res.header('X-Powered-By', '3,2,1')
121
+ // res.header('Access-Control-Allow-Credentials', 'true')
122
+ // res.header('Content-Type', 'application/json;charset=utf-8')
123
+ // next()
124
+ // })
125
+
126
+ // serve webpack bundle output
127
+ app.use(devMiddleware)
128
+
129
+ // enable hot-reload and state-preserving
130
+ // compilation error display
131
+ app.use(hotMiddleware)
132
+
133
+ // serve pure static assets
134
+ app.use('/static', express.static('./static'))
135
+
136
+ // app.all('/rs/*', function (req, res) {
137
+ // proxy.web(req, res, {
138
+ // target: 'http://127.0.0.1:8081/reports'
139
+ // })
140
+ // })
141
+
142
+ // app.all('/rs/*', function (req, res) {
143
+ // proxy.web(req, res, {
144
+ // target: 'http://127.0.0.1:8081/ldap'
145
+ // })
146
+ // })
147
+ // app.all('/excel/*', function (req, res) {
148
+ // proxy.web(req, res, {
149
+ // target: 'http://127.0.0.1:8081/charge'
150
+ // })
151
+ // })
152
+
153
+ // app.all('/rs/*', function (req, res) {
154
+ // proxy.web(req, res, {
155
+ // target: 'http://127.0.0.1:82/charge'
156
+ // })
157
+ // })
158
+
159
+ // app.all('/*', function (req, res) {
160
+ // proxy.web(req, res, {
161
+ // target: 'http://127.0.0.1:82'
162
+ // })
163
+ // })
164
+ // app.all('/rs/user', function (req, res) {
165
+ // proxy.web(req, res, {
166
+ // target: 'http://127.0.0.1:82'
167
+ // })
168
+ // })
169
+
170
+ module.exports = app.listen(8085, function (err) {
171
+ if (err) {
172
+ console.log(err)
173
+ return
174
+ }
175
+ console.log('Listening at http://localhost:8085')
176
+ })
@@ -1,13 +1,13 @@
1
1
  var path = require('path')
2
2
  var cssLoaders = require('./css-loaders')
3
- var projectRoot = path.resolve(__dirname, '../')
3
+
4
4
  module.exports = {
5
5
  entry: {
6
6
  app: './src/main.js'
7
7
  },
8
8
  output: {
9
- path: path.resolve(__dirname, '../dist/static'),
10
- publicPath: 'static/',
9
+ path: path.resolve(__dirname, '../dist/mergeUser'),
10
+ publicPath: 'mergeUser/',
11
11
  filename: '[name].js'
12
12
  },
13
13
  resolve: {
@@ -15,8 +15,7 @@ module.exports = {
15
15
  fallback: [path.join(__dirname, '../node_modules')],
16
16
  alias: {
17
17
  'src': path.resolve(__dirname, '../src'),
18
- 'test': path.resolve(__dirname, '../test'),
19
- '@src': path.resolve('src')
18
+ 'test': path.resolve(__dirname, '../test')
20
19
  }
21
20
  },
22
21
  resolveLoader: {
@@ -26,22 +25,23 @@ module.exports = {
26
25
  loaders: [
27
26
  {
28
27
  test: /\.vue$/,
29
- loader: 'vue-loader'
28
+ loader: 'vue'
30
29
  },
31
30
  {
32
31
  test: /\.js$/,
33
32
  loader: 'babel',
34
33
  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\\system-clients\\src`,
42
- `${projectRoot}\\node_modules\\sale-client\\src`,
43
- `${projectRoot}\\node_modules\\ldap-clients\\src`,
44
- ]
34
+ /src/,
35
+ /build/,
36
+ /examples/,
37
+ /singlepage/,
38
+ /test/,
39
+ /node_modules\/vue-client\/src/,
40
+ /node_modules\/vue-strap\/src/
41
+ ],
42
+ options: {
43
+ presets: ['es2015']
44
+ }
45
45
  },
46
46
  {
47
47
  test: /\.json$/,
@@ -1,24 +1,83 @@
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')
1
+ const webpack = require('webpack')
2
+ const merge = require('webpack-merge')
3
+ const baseConfig = require('./webpack.base.conf')
4
+ const cssLoaders = require('./css-loaders')
5
+ const ExtractTextPlugin = require('extract-text-webpack-plugin')
6
+ // const HtmlWebpackPlugin = require('html-webpack-plugin')
7
+ const FileManagerPlugin = require('filemanager-webpack-plugin')
8
+ const ParallelUglifyPlugin = require('webpack-parallel-uglify-plugin')
9
+ const path = require('path')
10
+
11
+ // 将日期时间进行格式化
12
+ function formatDate (date, format) {
13
+ // name="date" type="Date" 要格式化的日期时间
14
+ // name="format" type="String" 格式类型,形如 yyyy-MM-dd hh:mm:ss
15
+ var o = {
16
+ 'M+': date.getMonth() + 1,
17
+ // 月份
18
+ 'd+': date.getDate(),
19
+ // 日
20
+ 'h+': date.getHours(),
21
+ // 小时
22
+ 'm+': date.getMinutes(),
23
+ // 分
24
+ 's+': date.getSeconds() // 秒
25
+ }
26
+ if (/(y+)/.test(format)) format = format.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length))
27
+ for (var k in o) if (new RegExp('(' + k + ')').test(format)) format = format.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
28
+ return format
29
+ }
30
+ const timeStamp = formatDate(new Date(), 'yyyy-MM-dd-hh-mm-ss')
31
+ console.log('开始打包:', timeStamp)
32
+ console.log('入口:', process.env.VUE_APP_ENTRY)
33
+ // 单个入口打包压缩配置
34
+ let onEndParam = {
35
+ copy: [
36
+ {source: './package.json', destination: './lib/package_' + timeStamp + '.json'}
37
+ ],
38
+ archive: [
39
+ { source: './lib', destination: './' + process.env.VUE_APP_ENTRY + '_lib' + timeStamp + '.zip' }
40
+ ]
41
+ }
42
+ if (process.env.VUE_APP_SINGLE !== 'true') {
43
+ onEndParam = {}
44
+ // 多个一起打包, 最后一个在压缩
45
+ if (process.env.VUE_APP_BUILDEND === 'true') {
46
+ onEndParam = {
47
+ copy: [
48
+ {source: './package.json', destination: './lib/package_' + timeStamp + '.json'}
49
+ ],
50
+ archive: [
51
+ { source: './lib', destination: './manage_lib' + timeStamp + '.zip' }
52
+ ]
53
+ }
54
+ }
55
+ }
7
56
 
8
57
  // whether to generate source map for production files.
9
58
  // disabling this can speed up the build.
10
- var SOURCE_MAP = true
59
+ const SOURCE_MAP = false
11
60
 
12
61
  module.exports = merge(baseConfig, {
62
+ externals: {
63
+ 'vue-client': 'vue-client',
64
+ 'system-clients': 'system-clients',
65
+ 'vue': 'vue'
66
+ },
13
67
  stats: {
14
68
  children: false
15
69
  },
16
70
  devtool: SOURCE_MAP ? '#source-map' : false,
71
+ entry: {
72
+ app: './src/' + process.env.VUE_APP_ENTRY + '.js'
73
+ },
17
74
  output: {
18
75
  // naming output files with hashes for better caching.
19
76
  // dist/index.html will be auto-generated with correct URLs.
20
- filename: '[name][chunkhash].js',
21
- chunkFilename: '[id].[chunkhash].js'
77
+ publicPath: 'library/manage/' + process.env.VUE_APP_ENTRY + '/lib/',
78
+ path: path.resolve(__dirname, '../lib/' + process.env.VUE_APP_ENTRY + '/lib'),
79
+ filename: 'lib.js',
80
+ libraryTarget: 'umd' // 不管在commonJS环境还是在AMD环境,能让任何形式引入都可以引入
22
81
  },
23
82
  vue: {
24
83
  loaders: cssLoaders({
@@ -33,28 +92,52 @@ module.exports = merge(baseConfig, {
33
92
  NODE_ENV: '"production"'
34
93
  }
35
94
  }),
36
- new webpack.optimize.UglifyJsPlugin({
37
- compress: {
38
- warnings: false
95
+ new ParallelUglifyPlugin({
96
+ // 用作缓存的可选绝对路径。如果未提供,则不使用缓存。
97
+ // cacheDir: '.cache/',
98
+ uglifyJS: {
99
+ output: {
100
+ // 是否保留代码中的注释,默认为保留
101
+ comments: false
102
+ },
103
+ // 是否在UglifyJS删除没有用到的代码时输出警告信息,默认为false
104
+ warnings: false,
105
+ compress: {
106
+ // 是否删除代码中所有的console语句,默认为false
107
+ drop_console: true,
108
+ // 是否内嵌虽然已经定义了,但是只用到一次的变量, 默认值false
109
+ collapse_vars: true,
110
+ // 是否提取出现了多次但是没有定义成变量去引用的静态值,默认为false
111
+ reduce_vars: true
112
+ }
39
113
  }
40
114
  }),
115
+ // new webpack.optimize.UglifyJsPlugin({
116
+ // compress: {
117
+ // warnings: false
118
+ // }
119
+ // }),
41
120
  new webpack.optimize.OccurenceOrderPlugin(),
42
121
  // extract css into its own file
43
122
  new ExtractTextPlugin('[name].css'),
44
123
  // generate dist index.html with correct asset hash for caching.
45
124
  // you can customize output by editing /index.html
46
125
  // 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
- }
126
+ // new HtmlWebpackPlugin({
127
+ // filename: '../index.html',
128
+ // template: 'index.html',
129
+ // inject: true,
130
+ // minify: {
131
+ // removeComments: true,
132
+ // collapseWhitespace: true,
133
+ // removeAttributeQuotes: true
134
+ // // more options:
135
+ // // https://github.com/kangax/html-minifier#options-quick-reference
136
+ // }
137
+ // }),
138
+ // 打包文件压缩
139
+ new FileManagerPlugin({
140
+ onEnd: onEndParam
58
141
  })
59
142
  ]
60
143
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "3.2.102",
3
+ "version": "3.2.103-03-tc",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -32,6 +32,7 @@
32
32
  "eventsource-polyfill": "^0.9.6",
33
33
  "express": "^4.13.3",
34
34
  "extract-text-webpack-plugin": "^1.0.1",
35
+ "filemanager-webpack-plugin": "^2.0.5",
35
36
  "file-loader": "^0.8.4",
36
37
  "function-bind": "^1.0.2",
37
38
  "html-webpack-plugin": "^2.8.1",
@@ -66,7 +67,7 @@
66
67
  "system-clients": "3.1.89-20",
67
68
  "url-loader": "^0.5.7",
68
69
  "vue-amap": "0.5.10",
69
- "vue-client": "1.24.33",
70
+ "vue-client": "1.24.51",
70
71
  "vue-hot-reload-api": "^1.2.0",
71
72
  "vue-html-loader": "^1.0.0",
72
73
  "vue-loader": "8.2.1",
@@ -78,14 +79,18 @@
78
79
  "webpack": "1.12.2",
79
80
  "webpack-dev-middleware": "^1.4.0",
80
81
  "webpack-hot-middleware": "^2.6.0",
81
- "webpack-merge": "^0.8.3"
82
+ "webpack-merge": "^0.8.3",
83
+ "webpack-parallel-uglify-plugin": "^1.0.0"
82
84
  },
83
85
  "scripts": {
84
86
  "unit": "karma start test/unit/karma.conf.js --single-run",
85
87
  "example": "node build/example-server.js",
86
88
  "dev": "node build/dev-server.js",
87
89
  "lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
88
- "build": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
90
+ "build": "rimraf lib && mkdirp lib && cross-env VUE_APP_ENTRY=saleManage webpack --progress --hide-modules --config build/webpack.prod.conf.js && cross-env VUE_APP_ENTRY=reportManage webpack --progress --hide-modules --config build/webpack.prod.conf.js && cross-env VUE_APP_BUILDEND=true VUE_APP_ENTRY=webmeterManage webpack --progress --hide-modules --config build/webpack.prod.conf.js",
91
+ "buildSaleManage": "rimraf lib && mkdirp lib && cross-env VUE_APP_ENTRY=saleManage VUE_APP_SINGLE=true webpack --progress --hide-modules --config build/webpack.prod.conf.js",
92
+ "buildReportManage": "rimraf lib && mkdirp lib && cross-env VUE_APP_ENTRY=reportManage VUE_APP_SINGLE=true webpack --progress --hide-modules --config build/webpack.prod.conf.js",
93
+ "buildWebmeterManage": "rimraf lib && mkdirp lib && cross-env VUE_APP_ENTRY=webmeterManage VUE_APP_SINGLE=true webpack --progress --hide-modules --config build/webpack.prod.conf.js",
89
94
  "e2e": "node test/e2e/runner.js",
90
95
  "release": "bash build/release.sh"
91
96
  },
package/src/ManageHome.js CHANGED
@@ -1,10 +1,9 @@
1
1
  import Vue from 'vue'
2
-
3
2
  import echarts from 'echarts'
4
3
 
5
4
  /** **************************收费组件注册******************************/
6
5
 
7
- export default function () {
6
+ export default function (filiale) {
8
7
  Vue.prototype.$echarts = echarts
9
8
 
10
9
  Vue.component('safehidden-analy', (resolve) => {
@@ -12,7 +11,7 @@ export default function () {
12
11
  })
13
12
 
14
13
  /** **************************安全服务******************************/
15
- //安全服务首页
14
+ // 安全服务首页
16
15
  // Vue.component('security-servicehome', (resolve) => {
17
16
  // require(['./components/SecurityService/SecurityServiceHome'], resolve)
18
17
  // })
@@ -263,7 +262,4 @@ export default function () {
263
262
  // Vue.component('supply-gas', (resolve) => {
264
263
  // require(['./components/ManageHome/NetWork/SupplyGas'], resolve)
265
264
  // })
266
-
267
265
  }
268
-
269
-