sale-client 3.5.91 → 3.5.93
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 +167 -167
- package/package.json +1 -1
- package/src/components/chargeBatch/BatchCharge.vue +47 -20
- package/src/components/revenue/comprehen/StairPrice/GasPriceList.vue +1 -1
- package/src/filiale/gehua/IOTMeterCenter.vue +1 -1
- package/src/filiale/tongchuan/TransferRecords.vue +236 -0
- package/src/filiale/tongchuan/common/userinfo_detail/UserInfoDetailManageNew.vue +1 -1
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/ChargeQueryUser.vue +1 -1
- package/src/filiale/tongchuan/sale.js +3 -1
- package/src/plugins/CardService.js +2 -2
package/build/dev-server.js
CHANGED
|
@@ -1,167 +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
|
-
|
|
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
|
-
})
|
|
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
|
@@ -95,6 +95,8 @@
|
|
|
95
95
|
</template>
|
|
96
96
|
|
|
97
97
|
<script>
|
|
98
|
+
import {HttpResetClass} from "vue-client";
|
|
99
|
+
|
|
98
100
|
let asyncMachineMeterCenter = async function (self) {
|
|
99
101
|
await self.$getConfig(self, 'BatchCharge')
|
|
100
102
|
self.data.f_print = self.config.printType instanceof Array ? self.config.printType : [self.config.printType]
|
|
@@ -108,6 +110,9 @@ export default {
|
|
|
108
110
|
title: '团体缴费',
|
|
109
111
|
data () {
|
|
110
112
|
return {
|
|
113
|
+
// 请求对象(批量导入,查询进度使用)
|
|
114
|
+
HttpReset: new HttpResetClass(),
|
|
115
|
+
timer: null,
|
|
111
116
|
config: {
|
|
112
117
|
showupload: true, // 显示上传
|
|
113
118
|
hasPrint: true, // 默认打票
|
|
@@ -131,6 +136,10 @@ export default {
|
|
|
131
136
|
}
|
|
132
137
|
},
|
|
133
138
|
props: ['data', 'owe', 'civill'],
|
|
139
|
+
beforeDestroy () {
|
|
140
|
+
// 销毁定时器
|
|
141
|
+
if (this.timer) clearInterval(this.timer)
|
|
142
|
+
},
|
|
134
143
|
ready () {
|
|
135
144
|
this.paycodefocus()
|
|
136
145
|
if (!this.$login.r.includes('免交充值付款')) {
|
|
@@ -218,7 +227,9 @@ export default {
|
|
|
218
227
|
})
|
|
219
228
|
},
|
|
220
229
|
async machineChargeGen () {
|
|
230
|
+
let uuid = this.$login.guid()
|
|
221
231
|
let param = {
|
|
232
|
+
uuid: uuid,
|
|
222
233
|
chargeUser: [],
|
|
223
234
|
f_serial_id: this.$refs.paymentcode.paymentCodeReturnData.f_out_trade_no,
|
|
224
235
|
f_balance: this.data.f_balance,
|
|
@@ -248,29 +259,45 @@ export default {
|
|
|
248
259
|
if (this.civill) {
|
|
249
260
|
param = Object.assign(this.civill, param)
|
|
250
261
|
}
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
262
|
+
try {
|
|
263
|
+
await this.$resetpost('rs/logic/batchPayment', {data: param}, {resolveMsg: null, rejectMsg: null}, 1000)
|
|
264
|
+
} catch (e) {}
|
|
265
|
+
this.$showMessage(`正在批量处理中, 请耐心等待...`, [])
|
|
266
|
+
// 启动定时器定时查询处理结果
|
|
267
|
+
this.timer = setInterval(async () => {
|
|
268
|
+
let res = await this.HttpReset.load('POST', 'rs/logic/getBatchOperaPro', {data: {uuid: uuid}}, {resolveMsg: null, rejectMsg: null})
|
|
269
|
+
if (res.data.msg || res.data.error) {
|
|
270
|
+
clearInterval(this.timer)
|
|
271
|
+
this.$closeMessage()
|
|
272
|
+
if (res.data.error) {
|
|
273
|
+
this.$showAlert(`${res.data.error}`, 'danger')
|
|
274
|
+
return
|
|
275
|
+
}
|
|
276
|
+
await this.$showMessage(res.data.msg)
|
|
277
|
+
if (this.config.hasPrint) {
|
|
278
|
+
if (this.data.f_print.indexOf('电子发票') == -1) {
|
|
279
|
+
console.log('this.config.hasBillManage', this.config.hasBillManage)
|
|
280
|
+
if (this.config.hasBillManage) {
|
|
281
|
+
// 启用发票管理,获取票据管理中的票号并存储记录
|
|
282
|
+
this.row.id = res.data.id
|
|
283
|
+
this.row.f_bill_type = '物联网收费'
|
|
284
|
+
this.row.f_bill_style = this.model.f_print[0]
|
|
285
|
+
this.print = true
|
|
286
|
+
} else {
|
|
287
|
+
this.data.id = res.data.id
|
|
288
|
+
this.print = true
|
|
289
|
+
}
|
|
290
|
+
} else if (this.config.printType === '国税发票') {
|
|
291
|
+
// TODO
|
|
292
|
+
} else if (this.model.f_print[0] === '电子发票') {
|
|
293
|
+
this.eticket_show = true
|
|
294
|
+
await this.$refs.eticketbill.openETicket([res.data.id], this.row, this.invoice_show_gas, this.invoice_is_pax, '物联网收费')
|
|
295
|
+
}
|
|
261
296
|
} else {
|
|
262
|
-
this.
|
|
263
|
-
this.print = true
|
|
297
|
+
this.clean()
|
|
264
298
|
}
|
|
265
|
-
} else if (this.config.printType === '国税发票') {
|
|
266
|
-
// TODO
|
|
267
|
-
} else if (this.model.f_print[0] === '电子发票') {
|
|
268
|
-
this.eticket_show = true
|
|
269
|
-
await this.$refs.eticketbill.openETicket([res.data.id], this.row, this.invoice_show_gas, this.invoice_is_pax, '物联网收费')
|
|
270
299
|
}
|
|
271
|
-
}
|
|
272
|
-
this.clean()
|
|
273
|
-
}
|
|
300
|
+
}, 5000)
|
|
274
301
|
},
|
|
275
302
|
clean () {
|
|
276
303
|
this.$dispatch('success')
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
<td style="text-align:center"><nobr>{{row.f_value}}</nobr></td>
|
|
137
137
|
<td style="text-align:center"><nobr>{{row.f_filiale_name}}</nobr></td>
|
|
138
138
|
<td style="text-align:center"><button @click.stop="$parent.$parent.$parent.operate(row.f_price_id,row.f_price_name,row.f_filialeid)" class="btn btn-link"><b>{{row.usercount}}</b></button></td>
|
|
139
|
-
<td style="text-align:center">{{row.
|
|
139
|
+
<td style="text-align:center">{{row.f_price_state}}</td>
|
|
140
140
|
<td style="text-align:center" v-if="$parent.$parent.$parent.config.audit">
|
|
141
141
|
<button :disabled="$login.r.includes('气价审核')" @click.stop="$parent.$parent.$parent.passPrice(row)"
|
|
142
142
|
class="btn btn-link" v-if="row.f_state === '待审核'">通过
|
|
@@ -294,7 +294,7 @@
|
|
|
294
294
|
// 加入扫码盒付款码支付流水号
|
|
295
295
|
param.f_serial_id = self.$refs.paymentcode.paymentCodeReturnData.f_out_trade_no ? self.$refs.paymentcode.paymentCodeReturnData.f_out_trade_no : ''
|
|
296
296
|
param.f_serial_id = self.$refs.mispospay.misposReturnData.f_out_trade_no ? self.$refs.paymentcode.misposReturnData.f_out_trade_no : ''
|
|
297
|
-
let res = await self.$resetpost('rs/logic/sale_IOTCharge_logic', {data: param}, {
|
|
297
|
+
let res = await self.$resetpost('/mispos/rs/logic/sale_IOTCharge_logic', {data: param}, {
|
|
298
298
|
resolveMsg: '物联网收费成功!!',
|
|
299
299
|
rejectMsg: '物联网收费出错!!!'
|
|
300
300
|
})
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex-column">
|
|
3
|
+
<div class="span" style="">
|
|
4
|
+
<validator name='v'>
|
|
5
|
+
<form novalidate class="form-horizontal">
|
|
6
|
+
<div class="row" style="margin-top:10px;">
|
|
7
|
+
<div class="col-sm-4">
|
|
8
|
+
<label for="f_newuser_name" id="label" class="font_normal_body">转出方编号</label>
|
|
9
|
+
<input class="input_search" style="width:60%" type="text" title="转出方编号" v-model="model.out_userinfo_code"
|
|
10
|
+
readonly placeholder="用户姓名">
|
|
11
|
+
</div>
|
|
12
|
+
<div class="col-sm-4">
|
|
13
|
+
<label for="f_newuser_name" id="label" class="font_normal_body">转出方姓名</label>
|
|
14
|
+
<input class="input_search" style="width:60%" type="text" title="转出方姓名" v-model="model.out_user_name"
|
|
15
|
+
readonly placeholder="用户姓名">
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="row" style="margin-top:10px;">
|
|
19
|
+
<div class="col-sm-4" title="回车搜索传出方信息" :class="[$v.in_userinfo_code.required ? 'has-error' : 'has-success']">
|
|
20
|
+
<label for="f_newuser_name" id="label" class="font_normal_body">转 入 方</label>
|
|
21
|
+
<input class="input_search" style="width:60%" type="text" title="回车搜索转入方信息" v-model="model.in_userinfo_code"
|
|
22
|
+
v-validate:in_userinfo_code='{required: true }' @keydown.enter="searchByCode" placeholder="转出方编号,按下回车进行查询">
|
|
23
|
+
</div>
|
|
24
|
+
<div class="col-sm-4" :class="[$v.in_user_name.required ? 'has-error' : 'has-success']">
|
|
25
|
+
<label for="f_newuser_name" id="label" class="font_normal_body">转入方姓名</label>
|
|
26
|
+
<input class="input_search" style="width:60%" type="text" title="转入方姓名" v-model="model.in_user_name"
|
|
27
|
+
v-validate:in_user_name='{required: true }' readonly placeholder="转入方姓名">
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="row" style="margin-top:10px;">
|
|
31
|
+
<div class="col-sm-12" :class="[$v.f_comments.required ? 'has-error' : 'has-success']">
|
|
32
|
+
<label id="label" for="f_comments" class="font_normal_body"> 备  注</label>
|
|
33
|
+
<input class="input_search" style="width:87%" v-model="model.f_comments"
|
|
34
|
+
v-validate:f_comments='{required: true }'
|
|
35
|
+
placeholder="备注"/>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</form>
|
|
39
|
+
<div style="text-align:right;height:auto;">
|
|
40
|
+
<button class="button_search" @click="notarize = true" :disabled='!$v.valid'>
|
|
41
|
+
确认
|
|
42
|
+
</button>
|
|
43
|
+
<button class="button_clear" @click="clear()">
|
|
44
|
+
取消
|
|
45
|
+
</button>
|
|
46
|
+
</div>
|
|
47
|
+
<upload :blodid="blodid" v-if="config.showupload" isremark="true" fusetype="用户记录转移管理"></upload>
|
|
48
|
+
</validator>
|
|
49
|
+
</div>
|
|
50
|
+
<modal v-if="notarize" :show.sync="notarize" width="100%" title="信息确认" v-ref:modal large backdrop="false">
|
|
51
|
+
<article slot="modal-body" class="modal-body" style="text-align: center">
|
|
52
|
+
<strong>此操作具有一定的风险性,需要您再次确认转出方用户信息,请输入转入方用户编号</strong>
|
|
53
|
+
<div class="row">
|
|
54
|
+
<div class="col-sm-6 col-sm-offset-3">
|
|
55
|
+
<label for="f_newuser_name" id="label" class="font_normal_body">再次确认用户编号</label>
|
|
56
|
+
<input class="input_search" style="width:60%" type="text" title="用户编号" v-model="notarize_userinfo_code"
|
|
57
|
+
placeholder="用户编号">
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
<!--<div class="row" v-if="row.f_meter_type== '物联网表'||row.f_meter_type== '机表' || row.f_meter_type == '金额卡表'">-->
|
|
61
|
+
<!--<div class="col-sm-6 col-sm-offset-3">-->
|
|
62
|
+
<!--<label for="f_auto_operate" id="f_auto_operate" class="font_normal_body">自动生成补费扣费</label>-->
|
|
63
|
+
<!--<v-select :value.sync="model.f_auto_operate" v-model='model.f_auto_operate'-->
|
|
64
|
+
<!--style="width:60%"-->
|
|
65
|
+
<!--:options='autoOperate' placeholder='是否自动生成补费扣费'-->
|
|
66
|
+
<!--close-on-select-->
|
|
67
|
+
<!--condition="f_state = '{}'"></v-select>-->
|
|
68
|
+
<!--</div>-->
|
|
69
|
+
<!--</div>-->
|
|
70
|
+
</article>
|
|
71
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
72
|
+
<button class="button_search" @click="confirm()" :disabled='!notarize_userinfo_code'>
|
|
73
|
+
确认
|
|
74
|
+
</button>
|
|
75
|
+
<button class="button_clear" @click="notarize = false">
|
|
76
|
+
取消
|
|
77
|
+
</button>
|
|
78
|
+
</footer>
|
|
79
|
+
</modal>
|
|
80
|
+
</div>
|
|
81
|
+
</template>
|
|
82
|
+
<script>
|
|
83
|
+
|
|
84
|
+
import {HttpResetClass} from 'vue-client'
|
|
85
|
+
|
|
86
|
+
let asyncTransferManage = async function (self) {
|
|
87
|
+
// await self.$getConfig(self, 'TransferRecord')
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export default {
|
|
91
|
+
title: '过户管理',
|
|
92
|
+
props: ['row', 'records'],
|
|
93
|
+
data () {
|
|
94
|
+
return {
|
|
95
|
+
// 附件上传必须
|
|
96
|
+
blodid: '',
|
|
97
|
+
notarize: false,
|
|
98
|
+
notarize_userinfo_code: '',
|
|
99
|
+
config: {
|
|
100
|
+
showupload: true,
|
|
101
|
+
tableNames: [
|
|
102
|
+
{
|
|
103
|
+
table: 't_sellinggas',
|
|
104
|
+
name: '收费记录',
|
|
105
|
+
checked: true,
|
|
106
|
+
disabled: true
|
|
107
|
+
}, {
|
|
108
|
+
table: 't_chargeprice',
|
|
109
|
+
name: '划价记录',
|
|
110
|
+
checked: true,
|
|
111
|
+
disabled: true
|
|
112
|
+
}, {
|
|
113
|
+
table: 't_record',
|
|
114
|
+
name: '记录',
|
|
115
|
+
checked: true,
|
|
116
|
+
disabled: true
|
|
117
|
+
}]
|
|
118
|
+
},
|
|
119
|
+
model: {
|
|
120
|
+
table_name: [],
|
|
121
|
+
in_userinfo_id: '',
|
|
122
|
+
in_userfiles_id: '',
|
|
123
|
+
in_userinfo_code: '',
|
|
124
|
+
in_user_id: '',
|
|
125
|
+
out_userinfo_id: '',
|
|
126
|
+
out_userfiles_id: '',
|
|
127
|
+
out_user_id: '',
|
|
128
|
+
// f_auto_operate: '否',
|
|
129
|
+
out_userinfo_code: '',
|
|
130
|
+
in_user_name: '',
|
|
131
|
+
out_user_name: '',
|
|
132
|
+
f_orgid: '',
|
|
133
|
+
f_orgname: '',
|
|
134
|
+
f_depid: '',
|
|
135
|
+
f_depname: '',
|
|
136
|
+
f_operatorid: '',
|
|
137
|
+
f_operator: '',
|
|
138
|
+
f_comments: ''
|
|
139
|
+
},
|
|
140
|
+
autoOperate: [{ label: '是', value: '是' }, { label: '否', value: '否' }]
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
ready () {
|
|
144
|
+
this.blodid = this.row.f_userinfo_id
|
|
145
|
+
Object.assign(this.model, {
|
|
146
|
+
out_userinfo_id: this.row.f_userinfo_id,
|
|
147
|
+
out_userinfo_code: this.row.f_userinfo_code,
|
|
148
|
+
out_userfiles_id: this.row.f_userfiles_id,
|
|
149
|
+
out_user_id: this.row.f_user_id,
|
|
150
|
+
out_user_name: this.row.f_user_name,
|
|
151
|
+
f_operator: this.$login.f.name,
|
|
152
|
+
f_operatorid: this.$login.f.id,
|
|
153
|
+
f_orgid: this.$login.f.orgid,
|
|
154
|
+
f_orgname: this.$login.f.orgs,
|
|
155
|
+
f_depid: this.$login.f.depids,
|
|
156
|
+
f_depname: this.$login.f.deps
|
|
157
|
+
})
|
|
158
|
+
asyncTransferManage(this)
|
|
159
|
+
},
|
|
160
|
+
methods: {
|
|
161
|
+
confirm () {
|
|
162
|
+
// 首先验证用户
|
|
163
|
+
new HttpResetClass().load('post', 'rs/sql/sale_getUser',
|
|
164
|
+
{
|
|
165
|
+
data: {
|
|
166
|
+
condition: `f_userinfo_code = '${this.notarize_userinfo_code}'`,
|
|
167
|
+
orderitem: ` f_userinfo_code Desc`
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{resolveMsg: null, rejectMsg: '查找用户出错'}).then(
|
|
171
|
+
res => {
|
|
172
|
+
if (res.data.length === 0) {
|
|
173
|
+
this.$showAlert('验证信息有误,请重新输入用户编号进行查询并谨慎核对!!!', 'warning', 2000)
|
|
174
|
+
} else if (this.model.in_user_id !== res.data[0].f_user_id || this.model.in_userinfo_id !== res.data[0].f_userinfo_id || this.model.in_userfiles_id !== res.data[0].f_userfiles_id) {
|
|
175
|
+
this.$showAlert('验证信息有误,请重新输入用户编号进行查询并谨慎核对!!!', 'warning', 2000)
|
|
176
|
+
this.model.in_user_name = undefined
|
|
177
|
+
} else {
|
|
178
|
+
this.model.table_name = this.config.tableNames.map(item => item.table)
|
|
179
|
+
// this.model.f_auto_operate = this.model.f_auto_operate[0]
|
|
180
|
+
new HttpResetClass().load('post', 'rs/logic/transferRecords',
|
|
181
|
+
{
|
|
182
|
+
model: this.model,
|
|
183
|
+
records: this.records
|
|
184
|
+
},
|
|
185
|
+
{resolveMsg: null, rejectMsg: '转移记录出错'}).then(
|
|
186
|
+
res => {
|
|
187
|
+
this.$showAlert('操作成功', 'success', 2000)
|
|
188
|
+
this.clear()
|
|
189
|
+
}
|
|
190
|
+
)
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
)
|
|
194
|
+
},
|
|
195
|
+
clear () {
|
|
196
|
+
this.$dispatch('refresh')
|
|
197
|
+
},
|
|
198
|
+
searchByCode () {
|
|
199
|
+
if (this.model.in_userinfo_code === this.model.out_userinfo_code) {
|
|
200
|
+
this.$showAlert('转出方转入方信息不能一致,请谨慎核对!!!', 'warning', 2000)
|
|
201
|
+
return
|
|
202
|
+
}
|
|
203
|
+
new HttpResetClass().load('post', 'rs/sql/sale_getUser',
|
|
204
|
+
{
|
|
205
|
+
data: {
|
|
206
|
+
condition: `f_userinfo_code = '${this.model.in_userinfo_code}'`,
|
|
207
|
+
orderitem: ` f_userinfo_code Desc`
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
{resolveMsg: null, rejectMsg: '查找用户出错'}).then(
|
|
211
|
+
res => {
|
|
212
|
+
if (res.data.length > 0) {
|
|
213
|
+
Object.assign(this.model, {
|
|
214
|
+
in_userinfo_code: res.data[0].f_userinfo_code,
|
|
215
|
+
in_user_id: res.data[0].f_user_id,
|
|
216
|
+
in_userinfo_id: res.data[0].f_userinfo_id,
|
|
217
|
+
in_userfiles_id: res.data[0].f_userfiles_id,
|
|
218
|
+
in_user_name: res.data[0].f_user_name
|
|
219
|
+
})
|
|
220
|
+
} else {
|
|
221
|
+
this.$showAlert('查无用户信息,请谨慎核对!!!', 'warning', 2000)
|
|
222
|
+
this.model.in_user_name = undefined
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
)
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
events: {}
|
|
229
|
+
}
|
|
230
|
+
</script>
|
|
231
|
+
|
|
232
|
+
<style scoped>
|
|
233
|
+
#label {
|
|
234
|
+
margin-top: 5px;
|
|
235
|
+
}
|
|
236
|
+
</style>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="binary flex" >
|
|
3
|
-
<div class="
|
|
3
|
+
<div class="col-12 binary-left flex" style="width:99%;height:98%;margin-bottom:0px">
|
|
4
4
|
<div class="auto"><user-base-info-new :row="row" @cancel-main="cancel"></user-base-info-new></div>
|
|
5
5
|
<saletabbut v-if="row" v-ref:list style="height:72%;margin-top: 1%">
|
|
6
6
|
<saletab header="流水查询" v-if="permission('流水查询')">
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
<modal v-if="transfer" :show.sync="transfer" v-ref:modal backdrop="false">
|
|
140
140
|
<header slot="modal-header" class="modal-header" style="display: none">
|
|
141
141
|
</header>
|
|
142
|
-
<article slot="modal-body" class="modal-body" style="padding:4rem 20px;">
|
|
142
|
+
<article slot="modal-body" class="modal-body" style="padding:4rem 20px;height:700px;">
|
|
143
143
|
<transfer-records :row="row" :records="records" @refresh="transfer = false"></transfer-records>
|
|
144
144
|
</article>
|
|
145
145
|
<footer slot="modal-footer" class="modal-footer" style="display:none"> </footer>
|
|
@@ -112,6 +112,8 @@ let specialComp = {
|
|
|
112
112
|
|
|
113
113
|
// 发票信息提示框
|
|
114
114
|
'eticket-modal': (resolve) => { require(['./bill/EticketModal'], resolve) },
|
|
115
|
-
'card-meter-center': (resolve) => { require(['./CardMeterCenter'], resolve) }
|
|
115
|
+
'card-meter-center': (resolve) => { require(['./CardMeterCenter'], resolve) },
|
|
116
|
+
// 过户
|
|
117
|
+
'transfer-records':(resolve) => { require(['./TransferRecords'], resolve) }
|
|
116
118
|
}
|
|
117
119
|
exports.specialComp = specialComp
|
|
@@ -605,8 +605,8 @@ let sendCardSaleGasGenremanent = async function (model, row) {
|
|
|
605
605
|
}
|
|
606
606
|
// 判断是否是累购表
|
|
607
607
|
if (row.f_support_purchase === '是') {
|
|
608
|
-
params.ljgql = (row.f_write_totalgas - 0) + (model.f_pregas - 0)
|
|
609
|
-
params.ljgqje = (row.f_write_totalfee - 0) + (model.f_preamount - 0)
|
|
608
|
+
params.ljgql = (row.f_write_totalgas - 0) + (model.f_pregas - 0)
|
|
609
|
+
params.ljgqje = (row.f_write_totalfee - 0) + (model.f_preamount - 0)
|
|
610
610
|
}
|
|
611
611
|
params = Object.assign({}, Vue.CommonService.writeCardParams(cardParams), params)
|
|
612
612
|
console.log('换表发卡写卡参数', params)
|