sale-client 3.4.171 → 3.4.172

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