manage-client-xy 3.2.13 → 3.2.14
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/build/dev-server.js +21 -18
- package/package.json +1 -1
- package/src/components/sale/config/exportConfig.js +26 -3
- package/src/main.js +4 -4
package/build/dev-server.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
//
|
|
1
|
+
const express = require('express')
|
|
2
|
+
const webpack = require('webpack')
|
|
3
|
+
const config = require('./webpack.dev.conf')
|
|
4
|
+
const proxyMiddleware = require('http-proxy-middleware')
|
|
5
|
+
// const httpProxy = require('http-proxy')
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
//
|
|
7
|
+
const app = express()
|
|
8
|
+
const compiler = webpack(config)
|
|
9
|
+
// const proxy = httpProxy.createProxyServer()
|
|
10
10
|
|
|
11
11
|
// Define HTTP proxies to your custom API backend
|
|
12
12
|
// https://github.com/chimurai/http-proxy-middleware
|
|
13
|
-
//
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
// const bendi = 'http://127.0.0.1:8089/manage', fuwu = 'http://36.103.224.217:6300/'
|
|
14
|
+
const bendi = 'http://127.0.0.1:8888/'
|
|
15
|
+
const fuwu = 'http://192.168.153.129:8300'
|
|
16
16
|
// ,fuwu = 'http://172.16.16.163:8300/'
|
|
17
|
-
|
|
17
|
+
const proxyTable = {
|
|
18
18
|
'/resource': {
|
|
19
19
|
target: 'http://192.168.13.135:31577/'
|
|
20
20
|
},
|
|
21
21
|
|
|
22
22
|
'/rs/logic/exportfile': {
|
|
23
|
-
target:
|
|
23
|
+
target: fuwu
|
|
24
24
|
},
|
|
25
25
|
'/rs/logic/saleExport': {
|
|
26
26
|
target: fuwu
|
|
@@ -31,8 +31,11 @@ var proxyTable = {
|
|
|
31
31
|
'/files': {
|
|
32
32
|
target: fuwu
|
|
33
33
|
},
|
|
34
|
+
'/webapps': {
|
|
35
|
+
target: fuwu
|
|
36
|
+
},
|
|
34
37
|
'/rs/sql': {
|
|
35
|
-
target:
|
|
38
|
+
target: fuwu
|
|
36
39
|
},
|
|
37
40
|
// 查找资源服务数据
|
|
38
41
|
'/rs/search': {
|
|
@@ -75,7 +78,7 @@ var proxyTable = {
|
|
|
75
78
|
target: fuwu
|
|
76
79
|
},
|
|
77
80
|
'/rs/report': {
|
|
78
|
-
target:
|
|
81
|
+
target: fuwu
|
|
79
82
|
},
|
|
80
83
|
'/rs/vue': {
|
|
81
84
|
target: fuwu
|
|
@@ -91,7 +94,7 @@ var proxyTable = {
|
|
|
91
94
|
}
|
|
92
95
|
}
|
|
93
96
|
|
|
94
|
-
|
|
97
|
+
const devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
95
98
|
publicPath: config.output.publicPath,
|
|
96
99
|
stats: {
|
|
97
100
|
colors: true,
|
|
@@ -99,7 +102,7 @@ var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
|
99
102
|
}
|
|
100
103
|
})
|
|
101
104
|
|
|
102
|
-
|
|
105
|
+
const hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
103
106
|
// force page reload when html-webpack-plugin template changes
|
|
104
107
|
compiler.plugin('compilation', function (compilation) {
|
|
105
108
|
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
@@ -110,7 +113,7 @@ compiler.plugin('compilation', function (compilation) {
|
|
|
110
113
|
|
|
111
114
|
// proxy api requests
|
|
112
115
|
Object.keys(proxyTable).forEach(function (context) {
|
|
113
|
-
|
|
116
|
+
let options = proxyTable[context]
|
|
114
117
|
if (typeof options === 'string') {
|
|
115
118
|
options = {target: options}
|
|
116
119
|
}
|
package/package.json
CHANGED
|
@@ -117,9 +117,32 @@ export default {
|
|
|
117
117
|
},
|
|
118
118
|
|
|
119
119
|
changemeterConfig: {
|
|
120
|
-
'f_userinfo_code': '客户编号',
|
|
121
|
-
'
|
|
122
|
-
'
|
|
120
|
+
'f_userinfo_code': '客户编号',
|
|
121
|
+
'f_user_name': '客户名称',
|
|
122
|
+
'f_address': '客户地址',
|
|
123
|
+
'f_meternumber': '表号',
|
|
124
|
+
'f_type': '换表类型',
|
|
125
|
+
'f_changemeter_fee': '换表费',
|
|
126
|
+
'f_using_base_old': '旧表底数',
|
|
127
|
+
'f_remanent_gas': '补气量',
|
|
128
|
+
'f_state': '状态',
|
|
129
|
+
'f_comments': '备注',
|
|
130
|
+
'f_operator': '操作员',
|
|
131
|
+
'f_depname': '部门',
|
|
132
|
+
'f_orgname': '公司',
|
|
133
|
+
'f_operate_date': '换表日期',
|
|
134
|
+
'f_meternumber_old': '旧表号',
|
|
135
|
+
'f_meter_brand_old': '旧气表品牌',
|
|
136
|
+
'f_meter_brand': '新气表品牌',
|
|
137
|
+
'f_imei': '新表识别码',
|
|
138
|
+
'f_old_imei': '旧表识别码',
|
|
139
|
+
'f_initial_base_new': '新表初始底数',
|
|
140
|
+
'f_oldodd_gas': '余气',
|
|
141
|
+
'f_remanent_money': '补气金额',
|
|
142
|
+
'f_voucher_number': '票号',
|
|
143
|
+
'f_change_operator': '换表人',
|
|
144
|
+
'f_approve_operator': '审批人',
|
|
145
|
+
'f_outlets': '网点'
|
|
123
146
|
},
|
|
124
147
|
|
|
125
148
|
otherchargeConfig: {
|
package/src/main.js
CHANGED
|
@@ -3,9 +3,9 @@ import App from './App'
|
|
|
3
3
|
import { all } from 'vue-client'
|
|
4
4
|
import { system } from 'system-clients'
|
|
5
5
|
// import { sale } from 'sale-client'
|
|
6
|
-
|
|
6
|
+
import saleManage from './saleManage'
|
|
7
7
|
// import webmeterManage from './webmeterManage'
|
|
8
|
-
import reportManage from './reportManage'
|
|
8
|
+
// import reportManage from './reportManage'
|
|
9
9
|
// import newmanage from './newmanage'
|
|
10
10
|
// import ManageHome from './ManageHome'
|
|
11
11
|
import echarts from 'echarts'
|
|
@@ -40,11 +40,11 @@ Vue.prototype.$echarts = echarts
|
|
|
40
40
|
all()
|
|
41
41
|
// sale()
|
|
42
42
|
system(false)
|
|
43
|
-
|
|
43
|
+
saleManage()
|
|
44
44
|
// webmeterManage()
|
|
45
45
|
// ManageHome()
|
|
46
46
|
// newmanage()
|
|
47
|
-
reportManage()
|
|
47
|
+
// reportManage()
|
|
48
48
|
require('./bootstrap/less/bootstrap.less')
|
|
49
49
|
require('./bootstrap/less/manageStyle/manageStyle.less')
|
|
50
50
|
require('./bootstrap/less/manageStyle/manageChile.less')
|