sale-client 3.5.171 → 3.5.173
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/README.md +7 -34
- package/build/dev-server.js +67 -201
- package/package.json +3 -3
- package/src/components/charge/ChargeOper.vue +217 -205
- package/src/components/charge/business/CardMeterCenter.vue +2 -0
- package/src/components/charge/business/NoCardMeterCenter.vue +2 -0
- package/src/components/newBill/CardList.vue +536 -0
- package/src/components/newBill/CardMeterCenter.vue +902 -0
- package/src/components/newBill/IOTMeterCenter.vue +797 -0
- package/src/components/newBill/NoCardMeterCenter.vue +466 -0
- package/src/components/newBill/PrintBill.vue +146 -0
- package/src/components/newBill/ReissueBill.vue +329 -0
- package/src/components/revenue/changeInsurance/InsuranceChargesDetails.vue +31 -17
- package/src/filiale/chengtou/components/FilesManage/FileUserFiles.vue +3 -2
- package/src/filiale/qianneng/ChangeMeter.vue +6 -2
- package/src/filiale/qianneng/revenue/ChargeManage.vue +2 -2
- package/src/filiale/qianneng/revenue/ChargeOper.vue +257 -0
- package/src/filiale/rongchuang/CardMeterCenter.vue +36 -7
- package/src/filiale/shanxian/TransferManage.vue +403 -0
- package/src/filiale/shanxian/UserDeviceInfoTest.vue +6 -6
- package/src/filiale/shanxian/sale.js +2 -1
- package/src/filiale/tongchuan/plugins/{getTimeService.js → GetTimeService.js} +0 -0
- package/src/main.js +22 -22
- package/src/plugins/CommonService.js +2 -3
- package/src/plugins/{getTimeService.js → GetTimeService.js} +2 -14
- package/src/sale.js +6 -0
package/README.md
CHANGED
|
@@ -1,39 +1,12 @@
|
|
|
1
1
|
# sale-client
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
{**以下是码云平台说明,您可以替换为您的项目简介**
|
|
5
|
-
码云是开源中国推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
|
|
6
|
-
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
|
|
3
|
+
## 主要功能
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
软件架构说明
|
|
5
|
+
## 如何构建
|
|
10
6
|
|
|
7
|
+
node 14+
|
|
11
8
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
3. xxxx
|
|
17
|
-
|
|
18
|
-
#### 使用说明
|
|
19
|
-
|
|
20
|
-
1. xxxx
|
|
21
|
-
2. xxxx
|
|
22
|
-
3. xxxx
|
|
23
|
-
|
|
24
|
-
#### 参与贡献
|
|
25
|
-
|
|
26
|
-
1. Fork 本项目
|
|
27
|
-
2. 新建 Feat_xxx 分支
|
|
28
|
-
3. 提交代码
|
|
29
|
-
4. 新建 Pull Request
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
#### 码云特技
|
|
33
|
-
|
|
34
|
-
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
|
35
|
-
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
|
36
|
-
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
|
37
|
-
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
|
38
|
-
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
|
39
|
-
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
9
|
+
```shell
|
|
10
|
+
npm install
|
|
11
|
+
npm run dev
|
|
12
|
+
```
|
package/build/dev-server.js
CHANGED
|
@@ -1,201 +1,67 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
-
})
|
|
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 app = express()
|
|
6
|
+
const compiler = webpack(config)
|
|
7
|
+
|
|
8
|
+
// 自己改了这里不要提交 来回覆盖挺麻烦的
|
|
9
|
+
const [local, server] = ['http://127.0.0.1:8080', 'http://192.168.50.4:8400']
|
|
10
|
+
const port = 8089
|
|
11
|
+
|
|
12
|
+
const proxyTable = {
|
|
13
|
+
'/text': {
|
|
14
|
+
target: local
|
|
15
|
+
},
|
|
16
|
+
'/files': {
|
|
17
|
+
target: server
|
|
18
|
+
},
|
|
19
|
+
'/excel': {
|
|
20
|
+
target: server
|
|
21
|
+
},
|
|
22
|
+
'/webmeter': {
|
|
23
|
+
target: server
|
|
24
|
+
},
|
|
25
|
+
'/rs/logic': {
|
|
26
|
+
target: server
|
|
27
|
+
},
|
|
28
|
+
'/rs': {
|
|
29
|
+
target: server
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
34
|
+
publicPath: config.output.publicPath,
|
|
35
|
+
stats: {
|
|
36
|
+
colors: true,
|
|
37
|
+
chunks: false
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
const hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
42
|
+
compiler.plugin('compilation', function (compilation) {
|
|
43
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
44
|
+
hotMiddleware.publish({action: 'reload'})
|
|
45
|
+
cb()
|
|
46
|
+
})
|
|
47
|
+
})
|
|
48
|
+
|
|
49
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
50
|
+
let options = proxyTable[context]
|
|
51
|
+
if (typeof options === 'string') {
|
|
52
|
+
options = {target: options}
|
|
53
|
+
}
|
|
54
|
+
app.use(proxyMiddleware(context, options))
|
|
55
|
+
})
|
|
56
|
+
app.use(require('connect-history-api-fallback')())
|
|
57
|
+
app.use(devMiddleware)
|
|
58
|
+
app.use(hotMiddleware)
|
|
59
|
+
app.use('/static', express.static('./static'))
|
|
60
|
+
|
|
61
|
+
module.exports = app.listen(port, function (err) {
|
|
62
|
+
if (err) {
|
|
63
|
+
console.log(err)
|
|
64
|
+
return
|
|
65
|
+
}
|
|
66
|
+
console.log('Listening at http://localhost:' + port)
|
|
67
|
+
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sale-client",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.173",
|
|
4
4
|
"description": "收费模块前台组件",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"karma-sourcemap-loader": "^0.3.7",
|
|
72
72
|
"karma-spec-reporter": "0.0.31",
|
|
73
73
|
"karma-webpack": "^2.0.2",
|
|
74
|
-
"ldap-clients": "3.0.
|
|
74
|
+
"ldap-clients": "3.0.55-test-1",
|
|
75
75
|
"less": "^2.7.3",
|
|
76
76
|
"manage-client": "3.1.8-88",
|
|
77
77
|
"mkdirp": "^0.5.1",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"sinon-chai": "^2.8.0",
|
|
87
87
|
"style": "0.0.3",
|
|
88
88
|
"style-loader": "^0.20.3",
|
|
89
|
-
"system-clients": "3.2.
|
|
89
|
+
"system-clients": "3.2.54-test-1",
|
|
90
90
|
"url-loader": "^0.5.7",
|
|
91
91
|
"vue-client": "1.24.76",
|
|
92
92
|
"vue-clipboard2": "0.3.1",
|