sale-client 3.5.158 → 3.5.159-2

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.
@@ -1,195 +1,201 @@
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://121.36.106.17:8400', bendi1 = 'http://121.36.106.17:8400/'
14
- // 公司测试服务
15
- // var fuwu = 'http://192.168.50.4:8400'
16
- // var fuwu = 'http://39.99.85.14:8400'
17
- var fuwu = 'http://39.108.82.124:8400'
18
- // var fuwu = 'http://47.93.217.125:8400'
19
- // var fuwu = 'http://121.36.106.17:8400/'
20
- // 铜川正式
21
- // var fuwu = 'http://61.134.55.234:9999/'
22
- // 铜川测试
23
- // var fuwu = 'http://61.134.55.234:9999/'
24
- // var fuwu = 'http://60.222.250.39:8300/'
25
- // 韶关
26
- // var fuwu = 'http://119.146.1.106:8300/'
27
- // 巩义测试服务
28
- // var fuwu = 'http://192.168.0.227:8400'
29
- // 燎原测试服务
30
- // var fuwu = 'http://121.41.19.238:8400 '
31
- // var fuwu = 'http://121.41.19.238:9001/'
32
-
33
- // var fuwu = 'http://139.214.92.34:8301/'
34
-
35
- var proxyTable = {
36
- // '/'
37
- // '/rs/logic/stopBasicLivingNew':{
38
- // target:'http://127.0.0.1:8080'
39
- // },
40
- // '/rs/logic/getBatchOperaPro':{
41
- // target:'http://127.0.0.1:8080'
42
- // },
43
- // '/rs/sql/sale_getUser':{
44
- // target:'http://127.0.0.1:8080'
45
- // },
46
- // '/rs/logic/getOperBtns':{
47
- // target:'http://127.0.0.1:8080'
48
- // },
49
- // '/rs/file/uploadFile':{
50
- // target:'http://127.0.0.1:8080'
51
- // },
52
- // '/rs/business/batchRunExcelDefault/filemanage_fileSave/newSettleFileImport':{
53
- // target:'http://127.0.0.1:8080'
54
- // },
55
- // '/rs/business/batchRunNew/BatchmachineDownHand/machineDownHand':{
56
- // target:'http:127.0.0.1:8080'
57
- // },
58
- // '/rs/sql/getDownPlan':{
59
- // target:'http:127.0.0.1:8080'
60
- // },
61
- // '/rs/logic/saleExport': {
62
- // target: fuwu
63
- // },
64
- // '/rs/logic/saleGetExportProgress': {
65
- // target: fuwu
66
- // },
67
- // '/rs/logic/getWarningMsg': {
68
- // target: 'http://localhost:8080/'
69
- // },
70
- '/rs/file': {
71
- target: fuwu
72
- },
73
- '/files': {
74
- target: fuwu
75
- },
76
- // 查找资源服务数据
77
- '/rs/search': {
78
- target: fuwu
79
- },
80
- // 查找资源服务数据
81
- '/rs/logic/getLogin': {
82
- target: fuwu
83
- },
84
- // 查找资源服务数据
85
- '/rs/logic/getInitData': {
86
- target: fuwu
87
- },
88
- '/rs/logic/getSaleInitData': {
89
- target: fuwu
90
- },
91
- '/invoice': {
92
- target: fuwu
93
- },
94
- // 用户登录服务地址
95
- '/rs/user': {
96
- target: fuwu
97
- },
98
- '/rs/path/getParams': {
99
- target: fuwu
100
- },
101
- '/rs/data': {
102
- target: fuwu
103
- },
104
- '/rs/license': {
105
- target: fuwu
106
- },
107
- '/rs/db': {
108
- target: fuwu
109
- },
110
- '/excel': {
111
- target: fuwu
112
- },
113
- '/rs/config': {
114
- target: fuwu
115
- },
116
- '/rs/sql/getLicenseById': {
117
- target: fuwu
118
- },
119
- '/rs/sql/manage_getarealist': {
120
- target: fuwu
121
- },
122
- '/rs/sql/manage_getstreetlist': {
123
- target: fuwu
124
- },
125
- '/rs/report': {
126
- target: 'http://121.36.106.17:8400/'
127
- },
128
- '/rs/vue': {
129
- target: fuwu
130
- },
131
- '/webmeter': {
132
- target: 'http://192.168.50.4:8450'
133
- },
134
- '/rs': {
135
- // target: 'http://192.168.30.63:8081/'
136
- // target: 'http://121.36.106.17:8400/'
137
- target: fuwu
138
- }
139
- }
140
-
141
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
142
- publicPath: config.output.publicPath,
143
- stats: {
144
- colors: true,
145
- chunks: false
146
- }
147
- })
148
-
149
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
150
- // force page reload when html-webpack-plugin template changes
151
- compiler.plugin('compilation', function (compilation) {
152
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
153
- hotMiddleware.publish({action: 'reload'})
154
- cb()
155
- })
156
- })
157
-
158
- // proxy api requests
159
- Object.keys(proxyTable).forEach(function (context) {
160
- var options = proxyTable[context]
161
- if (typeof options === 'string') {
162
- options = {target: options}
163
- }
164
- app.use(proxyMiddleware(context, options))
165
- })
166
-
167
- // handle fallback for HTML5 history API
168
- app.use(require('connect-history-api-fallback')())
169
- // app.use(function (req, res, next) {
170
- // res.header('Access-Control-Allow-Origin', '*')
171
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
172
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
173
- // res.header('X-Powered-By', '3,2,1')
174
- // res.header('Access-Control-Allow-Credentials', 'true')
175
- // res.header('Content-Type', 'application/json;charset=utf-8')
176
- // next()
177
- // })
178
-
179
- // serve webpack bundle output
180
- app.use(devMiddleware)
181
-
182
- // enable hot-reload and state-preserving
183
- // compilation error display
184
- app.use(hotMiddleware)
185
-
186
- // serve pure static assets
187
- app.use('/static', express.static('./static'))
188
-
189
- module.exports = app.listen(8089, function (err) {
190
- if (err) {
191
- console.log(err)
192
- return
193
- }
194
- console.log('Listening at http://localhost:8089')
195
- })
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://121.36.106.17:8400', bendi1 = 'http://121.36.106.17:8400'
14
+ // 公司测试服务
15
+ // var fuwu = 'http://192.168.50.4:8450'
16
+ // 梅河口
17
+ // var fuwu = 'http://139.214.92.34:8301'
18
+ // 单县
19
+ var fuwu = 'http://119.187.112.234:8400'
20
+ // 中盛
21
+ // var fuwu = 'http://39.99.85.14:8400'
22
+ // 葛华
23
+ // var fuwu = 'http://219.138.226.181:8401'
24
+ // 乌海
25
+ // var fuwu = 'http://203.57.101.233:8400'
26
+ // 铜川正式
27
+ // var fuwu = 'http://61.134.55.234:9999/'
28
+ // 铜川测试
29
+ // var fuwu = 'http://61.134.55.234:9999/'
30
+ // var fuwu = 'http://60.222.250.39:8300/'
31
+ // 韶关
32
+ // var fuwu = 'http://119.146.1.106:8300/'
33
+ // 巩义测试服务
34
+ // var fuwu = 'http://192.168.0.227:8400'
35
+ // 燎原测试服务
36
+ // var fuwu = 'http://121.41.19.238:8400 '
37
+ // var fuwu = 'http://121.41.19.238:9001/'
38
+
39
+ // var fuwu = 'http://139.214.92.34:8301/'
40
+
41
+ var proxyTable = {
42
+ // '/'
43
+ // '/rs/logic/stopBasicLivingNew':{
44
+ // target:'http://127.0.0.1:8080'
45
+ // },
46
+ // '/rs/logic/getBatchOperaPro':{
47
+ // target:'http://127.0.0.1:8080'
48
+ // },
49
+ // '/rs/sql/sale_getUser':{
50
+ // target:'http://127.0.0.1:8080'
51
+ // },
52
+ // '/rs/logic/getOperBtns':{
53
+ // target:'http://127.0.0.1:8080'
54
+ // },
55
+ // '/rs/file/uploadFile':{
56
+ // target:'http://127.0.0.1:8080'
57
+ // },
58
+ // '/rs/business/batchRunExcelDefault/filemanage_fileSave/newSettleFileImport':{
59
+ // target:'http://127.0.0.1:8080'
60
+ // },
61
+ // '/rs/business/batchRunNew/BatchmachineDownHand/machineDownHand':{
62
+ // target:'http:127.0.0.1:8080'
63
+ // },
64
+ // '/rs/sql/getDownPlan':{
65
+ // target:'http:127.0.0.1:8080'
66
+ // },
67
+ // '/rs/logic/saleExport': {
68
+ // target: fuwu
69
+ // },
70
+ // '/rs/logic/saleGetExportProgress': {
71
+ // target: fuwu
72
+ // },
73
+ // '/rs/logic/getWarningMsg': {
74
+ // target: 'http://localhost:8080/'
75
+ // },
76
+ '/rs/file': {
77
+ target: fuwu
78
+ },
79
+ '/files': {
80
+ target: fuwu
81
+ },
82
+ // 查找资源服务数据
83
+ '/rs/search': {
84
+ target: fuwu
85
+ },
86
+ // 查找资源服务数据
87
+ '/rs/logic/getLogin': {
88
+ target: fuwu
89
+ },
90
+ // 查找资源服务数据
91
+ '/rs/logic/getInitData': {
92
+ target: fuwu
93
+ },
94
+ '/rs/logic/getSaleInitData': {
95
+ target: fuwu
96
+ },
97
+ '/invoice': {
98
+ target: fuwu
99
+ },
100
+ // 用户登录服务地址
101
+ '/rs/user': {
102
+ target: fuwu
103
+ },
104
+ '/rs/path/getParams': {
105
+ target: fuwu
106
+ },
107
+ '/rs/data': {
108
+ target: fuwu
109
+ },
110
+ '/rs/license': {
111
+ target: fuwu
112
+ },
113
+ '/rs/db': {
114
+ target: fuwu
115
+ },
116
+ '/excel': {
117
+ target: fuwu
118
+ },
119
+ '/rs/config': {
120
+ target: fuwu
121
+ },
122
+ '/rs/sql/getLicenseById': {
123
+ target: fuwu
124
+ },
125
+ '/rs/sql/manage_getarealist': {
126
+ target: fuwu
127
+ },
128
+ '/rs/sql/manage_getstreetlist': {
129
+ target: fuwu
130
+ },
131
+ '/rs/report': {
132
+ target: 'http://121.36.106.17:8400/'
133
+ },
134
+ '/rs/vue': {
135
+ target: fuwu
136
+ },
137
+ '/webmeter': {
138
+ target: 'http://192.168.50.4:8450'
139
+ },
140
+ '/rs': {
141
+ // target: 'http://192.168.30.63:8081/'
142
+ // target: 'http://121.36.106.17:8400/'
143
+ target: fuwu
144
+ }
145
+ }
146
+
147
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
148
+ publicPath: config.output.publicPath,
149
+ stats: {
150
+ colors: true,
151
+ chunks: false
152
+ }
153
+ })
154
+
155
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
156
+ // force page reload when html-webpack-plugin template changes
157
+ compiler.plugin('compilation', function (compilation) {
158
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
159
+ hotMiddleware.publish({action: 'reload'})
160
+ cb()
161
+ })
162
+ })
163
+
164
+ // proxy api requests
165
+ Object.keys(proxyTable).forEach(function (context) {
166
+ var options = proxyTable[context]
167
+ if (typeof options === 'string') {
168
+ options = {target: options}
169
+ }
170
+ app.use(proxyMiddleware(context, options))
171
+ })
172
+
173
+ // handle fallback for HTML5 history API
174
+ app.use(require('connect-history-api-fallback')())
175
+ // app.use(function (req, res, next) {
176
+ // res.header('Access-Control-Allow-Origin', '*')
177
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
178
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
179
+ // res.header('X-Powered-By', '3,2,1')
180
+ // res.header('Access-Control-Allow-Credentials', 'true')
181
+ // res.header('Content-Type', 'application/json;charset=utf-8')
182
+ // next()
183
+ // })
184
+
185
+ // serve webpack bundle output
186
+ app.use(devMiddleware)
187
+
188
+ // enable hot-reload and state-preserving
189
+ // compilation error display
190
+ app.use(hotMiddleware)
191
+
192
+ // serve pure static assets
193
+ app.use('/static', express.static('./static'))
194
+
195
+ module.exports = app.listen(8089, function (err) {
196
+ if (err) {
197
+ console.log(err)
198
+ return
199
+ }
200
+ console.log('Listening at http://localhost:8089')
201
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.5.158",
3
+ "version": "3.5.159-2",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {