sale-client 3.5.97 → 3.5.99

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,170 +1,167 @@
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
- // var fuwu = 'http://121.36.106.17:8400/'
17
- // 铜川正式
18
- // var fuwu = 'http://61.134.55.234:9999/'
19
- // 铜川测试
20
- // var fuwu = 'http://61.134.55.234:9999/'
21
- // var fuwu = 'http://60.222.250.39:8300/'
22
- // 韶关
23
- // var fuwu = 'http://119.146.1.106:8300/'
24
- // 巩义测试服务
25
- // var fuwu = 'http://192.168.0.227:8400'
26
- // 燎原测试服务
27
- // var fuwu = 'http://121.41.19.238:8400 '
28
- // var fuwu = 'http://121.41.19.238:9001/'
29
-
30
- // var fuwu = 'http://139.214.92.34:8301/'
31
-
32
- var proxyTable = {
33
- '/rs/logic/saleExport': {
34
- target: fuwu
35
- },
36
- '/rs/logic/saleGetExportProgress': {
37
- target: fuwu
38
- },
39
- '/rs/logic/getWarningMsg': {
40
- target: 'http://localhost:8080/'
41
- },
42
- '/rs/file': {
43
- target: fuwu
44
- },
45
- '/files': {
46
- target: fuwu
47
- },
48
- // 查找资源服务数据
49
- '/rs/search': {
50
- target: fuwu
51
- },
52
- // 查找资源服务数据
53
- '/rs/logic/getLogin': {
54
- target: fuwu
55
- },
56
- // 查找资源服务数据
57
- '/rs/logic/getInitData': {
58
- target: fuwu
59
- },
60
- '/rs/logic/getSaleInitData': {
61
- target: fuwu
62
- },
63
- '/invoice': {
64
- target: fuwu
65
- },
66
- // 用户登录服务地址
67
- '/rs/user': {
68
- target: fuwu
69
- },
70
- '/rs/path/getParams': {
71
- target: fuwu
72
- },
73
- '/rs/data': {
74
- target: fuwu
75
- },
76
- '/rs/license': {
77
- target: fuwu
78
- },
79
- '/rs/db': {
80
- target: fuwu
81
- },
82
- '/excel': {
83
- target: fuwu
84
- },
85
- '/rs/config': {
86
- target: fuwu
87
- },
88
- '/rs/sql/getLicenseById': {
89
- target: fuwu
90
- },
91
- '/rs/sql/getGasPriceInfo': {
92
- target: 'http://127.0.0.1:8080'
93
- },
94
- '/rs/sql/manage_getarealist': {
95
- target: fuwu
96
- },
97
- '/rs/sql/manage_getstreetlist': {
98
- target: fuwu
99
- },
100
- '/rs/report': {
101
- target: 'http://121.36.106.17:8400/'
102
- },
103
- '/rs/vue': {
104
- target: fuwu
105
- },
106
- '/webmeter': {
107
- target: 'http://192.168.50.4:8450'
108
- },
109
- '/rs': {
110
- // target: 'http://192.168.30.63:8081/'
111
- // target: 'http://121.36.106.17:8400/'
112
- target: fuwu
113
- }
114
- }
115
-
116
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
117
- publicPath: config.output.publicPath,
118
- stats: {
119
- colors: true,
120
- chunks: false
121
- }
122
- })
123
-
124
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
125
- // force page reload when html-webpack-plugin template changes
126
- compiler.plugin('compilation', function (compilation) {
127
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
128
- hotMiddleware.publish({action: 'reload'})
129
- cb()
130
- })
131
- })
132
-
133
- // proxy api requests
134
- Object.keys(proxyTable).forEach(function (context) {
135
- var options = proxyTable[context]
136
- if (typeof options === 'string') {
137
- options = {target: options}
138
- }
139
- app.use(proxyMiddleware(context, options))
140
- })
141
-
142
- // handle fallback for HTML5 history API
143
- app.use(require('connect-history-api-fallback')())
144
- // app.use(function (req, res, next) {
145
- // res.header('Access-Control-Allow-Origin', '*')
146
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
147
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
148
- // res.header('X-Powered-By', '3,2,1')
149
- // res.header('Access-Control-Allow-Credentials', 'true')
150
- // res.header('Content-Type', 'application/json;charset=utf-8')
151
- // next()
152
- // })
153
-
154
- // serve webpack bundle output
155
- app.use(devMiddleware)
156
-
157
- // enable hot-reload and state-preserving
158
- // compilation error display
159
- app.use(hotMiddleware)
160
-
161
- // serve pure static assets
162
- app.use('/static', express.static('./static'))
163
-
164
- module.exports = app.listen(8089, function (err) {
165
- if (err) {
166
- console.log(err)
167
- return
168
- }
169
- console.log('Listening at http://localhost:8089')
170
- })
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
+ // var fuwu = 'http://121.36.106.17:8400/'
17
+ // 铜川正式
18
+ // var fuwu = 'http://61.134.55.234:9999/'
19
+ // 铜川测试
20
+ // var fuwu = 'http://61.134.55.234:9999/'
21
+ // var fuwu = 'http://60.222.250.39:8300/'
22
+ // 韶关
23
+ // var fuwu = 'http://119.146.1.106:8300/'
24
+ // 巩义测试服务
25
+ // var fuwu = 'http://192.168.0.227:8400'
26
+ // 燎原测试服务
27
+ // var fuwu = 'http://121.41.19.238:8400 '
28
+ // var fuwu = 'http://121.41.19.238:9001/'
29
+
30
+ // var fuwu = 'http://139.214.92.34:8301/'
31
+
32
+ var proxyTable = {
33
+ '/rs/logic/saleExport': {
34
+ target: fuwu
35
+ },
36
+ '/rs/logic/saleGetExportProgress': {
37
+ target: fuwu
38
+ },
39
+ '/rs/logic/getWarningMsg': {
40
+ target: 'http://localhost:8080/'
41
+ },
42
+ '/rs/file': {
43
+ target: fuwu
44
+ },
45
+ '/files': {
46
+ target: fuwu
47
+ },
48
+ // 查找资源服务数据
49
+ '/rs/search': {
50
+ target: fuwu
51
+ },
52
+ // 查找资源服务数据
53
+ '/rs/logic/getLogin': {
54
+ target: fuwu
55
+ },
56
+ // 查找资源服务数据
57
+ '/rs/logic/getInitData': {
58
+ target: fuwu
59
+ },
60
+ '/rs/logic/getSaleInitData': {
61
+ target: fuwu
62
+ },
63
+ '/invoice': {
64
+ target: fuwu
65
+ },
66
+ // 用户登录服务地址
67
+ '/rs/user': {
68
+ target: fuwu
69
+ },
70
+ '/rs/path/getParams': {
71
+ target: fuwu
72
+ },
73
+ '/rs/data': {
74
+ target: fuwu
75
+ },
76
+ '/rs/license': {
77
+ target: fuwu
78
+ },
79
+ '/rs/db': {
80
+ target: fuwu
81
+ },
82
+ '/excel': {
83
+ target: fuwu
84
+ },
85
+ '/rs/config': {
86
+ target: fuwu
87
+ },
88
+ '/rs/sql/getLicenseById': {
89
+ target: fuwu
90
+ },
91
+ '/rs/sql/manage_getarealist': {
92
+ target: fuwu
93
+ },
94
+ '/rs/sql/manage_getstreetlist': {
95
+ target: fuwu
96
+ },
97
+ '/rs/report': {
98
+ target: 'http://121.36.106.17:8400/'
99
+ },
100
+ '/rs/vue': {
101
+ target: fuwu
102
+ },
103
+ '/webmeter': {
104
+ target: 'http://192.168.50.4:8450'
105
+ },
106
+ '/rs': {
107
+ // target: 'http://192.168.30.63:8081/'
108
+ // target: 'http://121.36.106.17:8400/'
109
+ target: fuwu
110
+ }
111
+ }
112
+
113
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
114
+ publicPath: config.output.publicPath,
115
+ stats: {
116
+ colors: true,
117
+ chunks: false
118
+ }
119
+ })
120
+
121
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
122
+ // force page reload when html-webpack-plugin template changes
123
+ compiler.plugin('compilation', function (compilation) {
124
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
125
+ hotMiddleware.publish({action: 'reload'})
126
+ cb()
127
+ })
128
+ })
129
+
130
+ // proxy api requests
131
+ Object.keys(proxyTable).forEach(function (context) {
132
+ var options = proxyTable[context]
133
+ if (typeof options === 'string') {
134
+ options = {target: options}
135
+ }
136
+ app.use(proxyMiddleware(context, options))
137
+ })
138
+
139
+ // handle fallback for HTML5 history API
140
+ app.use(require('connect-history-api-fallback')())
141
+ // app.use(function (req, res, next) {
142
+ // res.header('Access-Control-Allow-Origin', '*')
143
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
144
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
145
+ // res.header('X-Powered-By', '3,2,1')
146
+ // res.header('Access-Control-Allow-Credentials', 'true')
147
+ // res.header('Content-Type', 'application/json;charset=utf-8')
148
+ // next()
149
+ // })
150
+
151
+ // serve webpack bundle output
152
+ app.use(devMiddleware)
153
+
154
+ // enable hot-reload and state-preserving
155
+ // compilation error display
156
+ app.use(hotMiddleware)
157
+
158
+ // serve pure static assets
159
+ app.use('/static', express.static('./static'))
160
+
161
+ module.exports = app.listen(8089, function (err) {
162
+ if (err) {
163
+ console.log(err)
164
+ return
165
+ }
166
+ console.log('Listening at http://localhost:8089')
167
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.5.97",
3
+ "version": "3.5.99",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -481,9 +481,10 @@ export default {
481
481
  row.f_garbage_fee = row.f_garbage_fee ? row.f_garbage_fee : ''
482
482
  row.f_valve_state = row.f_valve_state ? [row.f_valve_state] : ''
483
483
  row.f_usetype = row.f_usetype ? [row.f_usetype] : ''
484
- row.f_usestate = row.f_usestate ? [row.f_usestate] : ''
484
+ row.f_usestate = row.f_usestate.length > 0 ? [row.f_usestate] : ''
485
+ row.f_meter_book_num = row.f_meter_book_num.length > 0 ? [row.f_meter_book_num] : ''
485
486
  row.f_inputtor = row.f_inputtor ? [row.f_inputtor] : ''
486
- row.f_position = row.f_position ? row.f_position : ''
487
+ row.f_position = row.f_position ? [row.f_position] : ''
487
488
 
488
489
  row.f_user_type = row.f_user_type ? [row.f_user_type] : ''
489
490
  row.f_gasproperties = row.f_gasproperties ? [row.f_gasproperties] : ''
@@ -675,6 +676,9 @@ export default {
675
676
  f_user_type: row.f_user_type,
676
677
  f_gasproperties: row.f_gasproperties,
677
678
  f_position: row.f_position,
679
+ f_meter_book_num: row.f_meter_book,
680
+ f_usestate: '正常',
681
+ f_adjustable: row.f_adjustable_id,
678
682
  f_install_date: row.f_install_date,
679
683
  f_inputtor: row.f_inputtor,
680
684
  f_hand_month: row.f_hand_month,
@@ -684,6 +688,7 @@ export default {
684
688
  delete temp.f_install_date
685
689
  }
686
690
  Object.assign(this.data.meterinfo[0], this.data.meterinfo[0], temp)
691
+ this.data.baseinfo.base.f_house_type = row.f_house_type ? [row.f_house_type] : ''
687
692
  console.log('====1.=====', temp, row)
688
693
  this.checkout('area')
689
694
  }