sale-client 3.5.260 → 3.5.262
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 +82 -82
- package/package.json +1 -1
- package/src/components/revenue/batchPreloads/batchPreloadsList.vue +9 -0
- package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/ChangeMeter.vue +18 -9
- package/src/filiale/liaoyuan/ChangeMeter.vue +53 -3
- package/src/filiale/shanxian/ChangeMeter.vue +16 -9
- package/src/filiale/wenxi/ChargeList.vue +962 -0
- package/src/filiale/wenxi/sale.js +2 -0
- package/src/filiale/xiangyun/cardChargeQuery.vue +24 -4
- package/src/filiale/xiangyun/cardChargeQuery1.vue +54 -3
- package/src/filiale/xiangyun/machineChargeQuery.vue +22 -2
- package/src/filiale/xiangyun/machineChargeQuery1.vue +52 -1
package/build/dev-server.js
CHANGED
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
var path = require('path')
|
|
2
|
-
const [localUrl, serverRul] = ['http://192.168.50.4:8400', 'http://192.168.50.4:8400']
|
|
3
|
-
var merge = require('webpack-merge')
|
|
4
|
-
var baseConfig = require('./webpack.dev.conf')
|
|
5
|
-
var devConfig = {
|
|
6
|
-
devServer: {
|
|
7
|
-
contentBase: path.join(__dirname, 'src'),
|
|
8
|
-
hot: true,
|
|
9
|
-
publicPath: baseConfig.output.publicPath,
|
|
10
|
-
historyApiFallback: true,
|
|
11
|
-
host:
|
|
12
|
-
port: 8089,
|
|
13
|
-
open: true,
|
|
14
|
-
stats: {
|
|
15
|
-
colors: false, // 配置控制台输出彩色日志
|
|
16
|
-
chunks: false, // 不输出构建 chunk 信息
|
|
17
|
-
children: false // 不输出子模块构建信息
|
|
18
|
-
},
|
|
19
|
-
proxy: {
|
|
20
|
-
'/rs/file': {
|
|
21
|
-
target: serverRul
|
|
22
|
-
},
|
|
23
|
-
// 查找资源服务数据
|
|
24
|
-
'/rs/search': {
|
|
25
|
-
target: serverRul
|
|
26
|
-
},
|
|
27
|
-
// 查找资源服务数据
|
|
28
|
-
'/rs/logic/getLogin': {
|
|
29
|
-
target: serverRul
|
|
30
|
-
},
|
|
31
|
-
// 查找资源服务数据
|
|
32
|
-
'/rs/logic/getInitData': {
|
|
33
|
-
target: serverRul
|
|
34
|
-
},
|
|
35
|
-
'/rs/logic/getSaleInitData': {
|
|
36
|
-
target: serverRul
|
|
37
|
-
},
|
|
38
|
-
// 用户登录服务地址
|
|
39
|
-
'/rs/user': {
|
|
40
|
-
target: serverRul
|
|
41
|
-
},
|
|
42
|
-
'/rs/path': {
|
|
43
|
-
target: serverRul
|
|
44
|
-
},
|
|
45
|
-
'/rs/data': {
|
|
46
|
-
target: serverRul
|
|
47
|
-
},
|
|
48
|
-
'/rs/license': {
|
|
49
|
-
target: serverRul
|
|
50
|
-
},
|
|
51
|
-
'/rs/db': {
|
|
52
|
-
target: serverRul
|
|
53
|
-
},
|
|
54
|
-
'/excel': {
|
|
55
|
-
target: serverRul
|
|
56
|
-
},
|
|
57
|
-
'/rs/config': {
|
|
58
|
-
target: serverRul
|
|
59
|
-
},
|
|
60
|
-
'/rs/report': {
|
|
61
|
-
target: serverRul
|
|
62
|
-
},
|
|
63
|
-
'/rs/vue': {
|
|
64
|
-
target: serverRul
|
|
65
|
-
},
|
|
66
|
-
'/rs/logic': {
|
|
67
|
-
target: localUrl
|
|
68
|
-
},
|
|
69
|
-
'/rs/sql': {
|
|
70
|
-
target: localUrl
|
|
71
|
-
},
|
|
72
|
-
'/webmeter': {
|
|
73
|
-
target: serverRul
|
|
74
|
-
},
|
|
75
|
-
'/rs': {
|
|
76
|
-
target: serverRul
|
|
77
|
-
// changeOrigin: true
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
module.exports = merge(baseConfig, devConfig)
|
|
1
|
+
var path = require('path')
|
|
2
|
+
const [localUrl, serverRul] = ['http://192.168.50.4:8400', 'http://192.168.50.4:8400']
|
|
3
|
+
var merge = require('webpack-merge')
|
|
4
|
+
var baseConfig = require('./webpack.dev.conf')
|
|
5
|
+
var devConfig = {
|
|
6
|
+
devServer: {
|
|
7
|
+
contentBase: path.join(__dirname, 'src'),
|
|
8
|
+
hot: true,
|
|
9
|
+
publicPath: baseConfig.output.publicPath,
|
|
10
|
+
historyApiFallback: true,
|
|
11
|
+
host: '127.0.0.1',
|
|
12
|
+
port: 8089,
|
|
13
|
+
open: true,
|
|
14
|
+
stats: {
|
|
15
|
+
colors: false, // 配置控制台输出彩色日志
|
|
16
|
+
chunks: false, // 不输出构建 chunk 信息
|
|
17
|
+
children: false // 不输出子模块构建信息
|
|
18
|
+
},
|
|
19
|
+
proxy: {
|
|
20
|
+
'/rs/file': {
|
|
21
|
+
target: serverRul
|
|
22
|
+
},
|
|
23
|
+
// 查找资源服务数据
|
|
24
|
+
'/rs/search': {
|
|
25
|
+
target: serverRul
|
|
26
|
+
},
|
|
27
|
+
// 查找资源服务数据
|
|
28
|
+
'/rs/logic/getLogin': {
|
|
29
|
+
target: serverRul
|
|
30
|
+
},
|
|
31
|
+
// 查找资源服务数据
|
|
32
|
+
'/rs/logic/getInitData': {
|
|
33
|
+
target: serverRul
|
|
34
|
+
},
|
|
35
|
+
'/rs/logic/getSaleInitData': {
|
|
36
|
+
target: serverRul
|
|
37
|
+
},
|
|
38
|
+
// 用户登录服务地址
|
|
39
|
+
'/rs/user': {
|
|
40
|
+
target: serverRul
|
|
41
|
+
},
|
|
42
|
+
'/rs/path': {
|
|
43
|
+
target: serverRul
|
|
44
|
+
},
|
|
45
|
+
'/rs/data': {
|
|
46
|
+
target: serverRul
|
|
47
|
+
},
|
|
48
|
+
'/rs/license': {
|
|
49
|
+
target: serverRul
|
|
50
|
+
},
|
|
51
|
+
'/rs/db': {
|
|
52
|
+
target: serverRul
|
|
53
|
+
},
|
|
54
|
+
'/excel': {
|
|
55
|
+
target: serverRul
|
|
56
|
+
},
|
|
57
|
+
'/rs/config': {
|
|
58
|
+
target: serverRul
|
|
59
|
+
},
|
|
60
|
+
'/rs/report': {
|
|
61
|
+
target: serverRul
|
|
62
|
+
},
|
|
63
|
+
'/rs/vue': {
|
|
64
|
+
target: serverRul
|
|
65
|
+
},
|
|
66
|
+
'/rs/logic': {
|
|
67
|
+
target: localUrl
|
|
68
|
+
},
|
|
69
|
+
'/rs/sql': {
|
|
70
|
+
target: localUrl
|
|
71
|
+
},
|
|
72
|
+
'/webmeter': {
|
|
73
|
+
target: serverRul
|
|
74
|
+
},
|
|
75
|
+
'/rs': {
|
|
76
|
+
target: serverRul
|
|
77
|
+
// changeOrigin: true
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
module.exports = merge(baseConfig, devConfig)
|
package/package.json
CHANGED
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
<th>用户姓名</th>
|
|
58
58
|
<th>用气性质</th>
|
|
59
59
|
<th>收费金额</th>
|
|
60
|
+
<th>付款方式</th>
|
|
60
61
|
<th>收费时间</th>
|
|
61
62
|
<th>记录状态</th>
|
|
62
63
|
<th>生成记录人员</th>
|
|
@@ -70,6 +71,7 @@
|
|
|
70
71
|
<td>{{ row.f_user_name }}</td>
|
|
71
72
|
<td>{{ row.f_gasproperties }}</td>
|
|
72
73
|
<td>{{ row.f_collection }}</td>
|
|
74
|
+
<td>{{ row.f_payment }}</td>
|
|
73
75
|
<td>{{ row.f_operate_date }}</td>
|
|
74
76
|
<td>{{ row.f_state }}</td>
|
|
75
77
|
<td>{{ row.f_operator }}</td>
|
|
@@ -222,4 +224,11 @@ export default {
|
|
|
222
224
|
}
|
|
223
225
|
</script>
|
|
224
226
|
<style lang="less" scoped>
|
|
227
|
+
.table_sy {
|
|
228
|
+
tr {
|
|
229
|
+
td {
|
|
230
|
+
text-align: center;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
225
234
|
</style>
|
|
@@ -552,16 +552,18 @@ export default {
|
|
|
552
552
|
},
|
|
553
553
|
async confirm () {
|
|
554
554
|
let msg = ''
|
|
555
|
-
if (this.row.f_meter_type.includes('机表')) {
|
|
555
|
+
if (this.row.f_meter_type.includes('机表') || this.row.f_meter_type.includes('物联网表')) {
|
|
556
556
|
if ((parseInt(this.model.f_using_base_old) > parseInt(this.row.f_meter_base))) {
|
|
557
|
-
msg = '该用户表底数大于上次抄表底数,请确定是否继续生成欠费记录'
|
|
557
|
+
msg = (this.row.f_meter_type === '机表' ? '该用户表底数大于上次抄表底数,请确定是否继续生成欠费记录' : '该用户表底数大于上次抄表底数,请确定是否进行结算')
|
|
558
558
|
} else if (this.row.f_capacity && this.row.f_capacity > 0 && (parseInt(this.model.f_using_base_old) < parseInt(this.row.f_meter_base))) {
|
|
559
559
|
msg = '该用户表底数大于上次抄表底数,且已超越最大量程,请确定是否继续生成欠费记录'
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
|
-
if (this.row.f_meter_type.includes('机表') && msg) {
|
|
562
|
+
if ((this.row.f_meter_type.includes('机表') || this.row.f_meter_type.includes('物联网表')) && msg) {
|
|
563
563
|
this.$showMessage(msg, ['confirm', 'cancel']).then((res) => {
|
|
564
564
|
if (res === 'confirm') {
|
|
565
|
+
debugger
|
|
566
|
+
let url = this.row.f_meter_type.includes('物联网表') ? 'rs/logic/changeMeterWebHand' : 'rs/logic/changeMeterHand'
|
|
565
567
|
let data = {
|
|
566
568
|
downDate: this.$login.toStandardTimeString(),
|
|
567
569
|
startDate: this.$login.toStandardDateString(),
|
|
@@ -575,9 +577,10 @@ export default {
|
|
|
575
577
|
f_serial_number: this.model.f_serial_number,
|
|
576
578
|
f_meterbase: this.model.f_using_base_old,
|
|
577
579
|
f_meter_brand: this.row.f_meter_brand,
|
|
580
|
+
f_meter_classify: this.row.f_meter_type,
|
|
578
581
|
f_price_id: this.row.f_price_id
|
|
579
582
|
}
|
|
580
|
-
this.$resetpost(
|
|
583
|
+
this.$resetpost(url, {data: data}, {resolveMsg: '生成欠费成功', rejectMsg: '生成欠费失败'}).then((res) => {
|
|
581
584
|
console.log('成功')
|
|
582
585
|
if (this.model.metermessage.f_meter_type[0] != '机表') {
|
|
583
586
|
this.$dispatch('refresh')
|
|
@@ -721,16 +724,17 @@ export default {
|
|
|
721
724
|
this.Iotjisuan()
|
|
722
725
|
}
|
|
723
726
|
let msg = ''
|
|
724
|
-
if (this.row.f_meter_type.includes('机表')) {
|
|
727
|
+
if (this.row.f_meter_type.includes('机表') || this.row.f_meter_type.includes('物联网表')) {
|
|
725
728
|
if ((parseInt(this.model.f_using_base_old) > parseInt(this.row.f_meter_base))) {
|
|
726
|
-
msg = '该用户表底数大于上次抄表底数,请确定是否继续生成欠费记录'
|
|
729
|
+
msg = (this.row.f_meter_type === '机表' ? '该用户表底数大于上次抄表底数,请确定是否继续生成欠费记录' : '该用户表底数大于上次抄表底数,请确定是否进行结算')
|
|
727
730
|
} else if (this.row.f_capacity && this.row.f_capacity > 0 && (parseInt(this.model.f_using_base_old) < parseInt(this.row.f_meter_base))) {
|
|
728
731
|
msg = '该用户表底数大于上次抄表底数,且已超越最大量程,请确定是否继续生成欠费记录'
|
|
729
732
|
}
|
|
730
733
|
}
|
|
731
|
-
if (this.row.f_meter_type.includes('机表') && msg) {
|
|
734
|
+
if ((this.row.f_meter_type.includes('机表') || this.row.f_meter_type.includes('物联网表')) && msg) {
|
|
732
735
|
this.$showMessage(msg, ['confirm', 'cancel']).then((res) => {
|
|
733
736
|
if (res === 'confirm') {
|
|
737
|
+
let url = this.row.f_meter_type.includes('物联网表') ? 'rs/logic/changeMeterWebHand' : 'rs/logic/changeMeterHand'
|
|
734
738
|
let data = {
|
|
735
739
|
downDate: this.$login.toStandardTimeString(),
|
|
736
740
|
startDate: this.$login.toStandardDateString(),
|
|
@@ -744,11 +748,16 @@ export default {
|
|
|
744
748
|
f_serial_number: this.model.f_serial_number,
|
|
745
749
|
f_meterbase: this.model.f_using_base_old,
|
|
746
750
|
f_meter_brand: this.row.f_meter_brand,
|
|
751
|
+
f_meter_classify: this.row.f_meter_type,
|
|
747
752
|
f_price_id: this.row.f_price_id
|
|
748
753
|
}
|
|
749
|
-
this.$resetpost(
|
|
754
|
+
this.$resetpost(url, {data: data}, {resolveMsg: '生成欠费成功', rejectMsg: '生成欠费失败'}).then((res) => {
|
|
750
755
|
console.log('成功')
|
|
751
|
-
this
|
|
756
|
+
if (this.row.f_meter_type.includes('物联网表')) {
|
|
757
|
+
this.$dispatch('refresh')
|
|
758
|
+
} else {
|
|
759
|
+
this.$dispatch('button-specifies', {name: '机表收费', value: 'machine-charge'}, this.row)
|
|
760
|
+
}
|
|
752
761
|
})
|
|
753
762
|
}
|
|
754
763
|
})
|
|
@@ -340,9 +340,19 @@ export default {
|
|
|
340
340
|
this.$showMessage(`换表请上传新旧表图片`)
|
|
341
341
|
return
|
|
342
342
|
}
|
|
343
|
-
|
|
344
|
-
|
|
343
|
+
let msg = ''
|
|
344
|
+
if (this.row.f_meter_type.includes('机表') || this.row.f_meter_type.includes('物联网表')) {
|
|
345
|
+
if ((parseInt(this.model.f_using_base_old) > parseInt(this.row.f_meter_base))) {
|
|
346
|
+
msg = (this.row.f_meter_type === '机表' ? '该用户表底数大于上次抄表底数,请确定是否继续生成欠费记录' : '该用户表底数大于上次抄表底数,请确定是否进行结算')
|
|
347
|
+
} else if (this.row.f_capacity && this.row.f_capacity > 0 && (parseInt(this.model.f_using_base_old) < parseInt(this.row.f_meter_base))) {
|
|
348
|
+
msg = '该用户表底数大于上次抄表底数,且已超越最大量程,请确定是否继续生成欠费记录'
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
if ((this.row.f_meter_type.includes('机表') || this.row.f_meter_type.includes('物联网表')) && msg) {
|
|
352
|
+
this.$showMessage(msg, ['confirm', 'cancel']).then((res) => {
|
|
345
353
|
if (res === 'confirm') {
|
|
354
|
+
debugger
|
|
355
|
+
let url = this.row.f_meter_type.includes('物联网表') ? 'rs/logic/changeMeterWebHand' : 'rs/logic/changeMeterHand'
|
|
346
356
|
let data = {
|
|
347
357
|
downDate: this.$login.toStandardTimeString(),
|
|
348
358
|
startDate: this.$login.toStandardDateString(),
|
|
@@ -356,9 +366,10 @@ export default {
|
|
|
356
366
|
f_serial_number: this.model.f_serial_number,
|
|
357
367
|
f_meterbase: this.model.f_using_base_old,
|
|
358
368
|
f_meter_brand: this.row.f_meter_brand,
|
|
369
|
+
f_meter_classify: this.row.f_meter_type,
|
|
359
370
|
f_price_id: this.row.f_price_id
|
|
360
371
|
}
|
|
361
|
-
this.$resetpost(
|
|
372
|
+
this.$resetpost(url, {data: data}, {resolveMsg: '生成欠费成功', rejectMsg: '生成欠费失败'}).then((res) => {
|
|
362
373
|
console.log('成功')
|
|
363
374
|
if (this.model.metermessage.f_meter_type[0] != '机表') {
|
|
364
375
|
this.$dispatch('refresh')
|
|
@@ -485,6 +496,45 @@ export default {
|
|
|
485
496
|
} else if (this.row.f_meter_type == '物联网表') {
|
|
486
497
|
this.Iotjisuan()
|
|
487
498
|
}
|
|
499
|
+
let msg = ''
|
|
500
|
+
if (this.row.f_meter_type.includes('机表') || this.row.f_meter_type.includes('物联网表')) {
|
|
501
|
+
if ((parseInt(this.model.f_using_base_old) > parseInt(this.row.f_meter_base))) {
|
|
502
|
+
msg = (this.row.f_meter_type === '机表' ? '该用户表底数大于上次抄表底数,请确定是否继续生成欠费记录' : '该用户表底数大于上次抄表底数,请确定是否进行结算')
|
|
503
|
+
} else if (this.row.f_capacity && this.row.f_capacity > 0 && (parseInt(this.model.f_using_base_old) < parseInt(this.row.f_meter_base))) {
|
|
504
|
+
msg = '该用户表底数大于上次抄表底数,且已超越最大量程,请确定是否继续生成欠费记录'
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
if ((this.row.f_meter_type.includes('机表') || this.row.f_meter_type.includes('物联网表')) && msg) {
|
|
508
|
+
this.$showMessage(msg, ['confirm', 'cancel']).then((res) => {
|
|
509
|
+
if (res === 'confirm') {
|
|
510
|
+
let url = this.row.f_meter_type.includes('物联网表') ? 'rs/logic/changeMeterWebHand' : 'rs/logic/changeMeterHand'
|
|
511
|
+
let data = {
|
|
512
|
+
downDate: this.$login.toStandardTimeString(),
|
|
513
|
+
startDate: this.$login.toStandardDateString(),
|
|
514
|
+
endDate: this.$login.toStandardDateString(),
|
|
515
|
+
condition: `f_userfiles_id = '${this.row.f_userfiles_id}'`,
|
|
516
|
+
f_operator: this.$login.f.name,
|
|
517
|
+
f_operatorid: this.$login.f.id,
|
|
518
|
+
f_meternumber: this.row.f_meternumber,
|
|
519
|
+
f_userinfo_id: this.row.f_userinfo_id,
|
|
520
|
+
f_userfiles_id: this.row.f_userfiles_id,
|
|
521
|
+
f_serial_number: this.model.f_serial_number,
|
|
522
|
+
f_meterbase: this.model.f_using_base_old,
|
|
523
|
+
f_meter_brand: this.row.f_meter_brand,
|
|
524
|
+
f_meter_classify: this.row.f_meter_type,
|
|
525
|
+
f_price_id: this.row.f_price_id
|
|
526
|
+
}
|
|
527
|
+
this.$resetpost(url, {data: data}, {resolveMsg: '生成欠费成功', rejectMsg: '生成欠费失败'}).then((res) => {
|
|
528
|
+
console.log('成功')
|
|
529
|
+
if (this.row.f_meter_type.includes('物联网表')) {
|
|
530
|
+
this.$dispatch('refresh')
|
|
531
|
+
} else {
|
|
532
|
+
this.$dispatch('button-specifies', {name: '机表收费', value: 'machine-charge'}, this.row)
|
|
533
|
+
}
|
|
534
|
+
})
|
|
535
|
+
}
|
|
536
|
+
})
|
|
537
|
+
}
|
|
488
538
|
},
|
|
489
539
|
async Iotjisuan () {
|
|
490
540
|
let gas = (this.model.f_using_base_old - 0) - (this.row.f_meter_base - 0)
|
|
@@ -552,16 +552,17 @@ export default {
|
|
|
552
552
|
},
|
|
553
553
|
async confirm () {
|
|
554
554
|
let msg = ''
|
|
555
|
-
if (this.row.f_meter_type.includes('机表')) {
|
|
555
|
+
if (this.row.f_meter_type.includes('机表') || this.row.f_meter_type.includes('物联网表')) {
|
|
556
556
|
if ((parseInt(this.model.f_using_base_old) > parseInt(this.row.f_meter_base))) {
|
|
557
|
-
msg = '该用户表底数大于上次抄表底数,请确定是否继续生成欠费记录'
|
|
557
|
+
msg = (this.row.f_meter_type === '机表' ? '该用户表底数大于上次抄表底数,请确定是否继续生成欠费记录' : '该用户表底数大于上次抄表底数,请确定是否进行结算')
|
|
558
558
|
} else if (this.row.f_capacity && this.row.f_capacity > 0 && (parseInt(this.model.f_using_base_old) < parseInt(this.row.f_meter_base))) {
|
|
559
559
|
msg = '该用户表底数大于上次抄表底数,且已超越最大量程,请确定是否继续生成欠费记录'
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
|
-
if (this.row.f_meter_type.includes('机表') && msg) {
|
|
562
|
+
if ((this.row.f_meter_type.includes('机表') || this.row.f_meter_type.includes('物联网表')) && msg) {
|
|
563
563
|
this.$showMessage(msg, ['confirm', 'cancel']).then((res) => {
|
|
564
564
|
if (res === 'confirm') {
|
|
565
|
+
let url = this.row.f_meter_type.includes('物联网表') ? 'rs/logic/changeMeterWebHand' : 'rs/logic/changeMeterHand'
|
|
565
566
|
let data = {
|
|
566
567
|
downDate: this.$login.toStandardTimeString(),
|
|
567
568
|
startDate: this.$login.toStandardDateString(),
|
|
@@ -575,9 +576,10 @@ export default {
|
|
|
575
576
|
f_serial_number: this.model.f_serial_number,
|
|
576
577
|
f_meterbase: this.model.f_using_base_old,
|
|
577
578
|
f_meter_brand: this.row.f_meter_brand,
|
|
579
|
+
f_meter_classify: this.row.f_meter_type,
|
|
578
580
|
f_price_id: this.row.f_price_id
|
|
579
581
|
}
|
|
580
|
-
this.$resetpost(
|
|
582
|
+
this.$resetpost(url, {data: data}, {resolveMsg: '生成欠费成功', rejectMsg: '生成欠费失败'}).then((res) => {
|
|
581
583
|
console.log('成功')
|
|
582
584
|
if (this.model.metermessage.f_meter_type[0] != '机表') {
|
|
583
585
|
this.$dispatch('refresh')
|
|
@@ -721,16 +723,17 @@ export default {
|
|
|
721
723
|
this.Iotjisuan()
|
|
722
724
|
}
|
|
723
725
|
let msg = ''
|
|
724
|
-
if (this.row.f_meter_type.includes('机表')) {
|
|
726
|
+
if (this.row.f_meter_type.includes('机表') || this.row.f_meter_type.includes('物联网表')) {
|
|
725
727
|
if ((parseInt(this.model.f_using_base_old) > parseInt(this.row.f_meter_base))) {
|
|
726
|
-
msg = '该用户表底数大于上次抄表底数,请确定是否继续生成欠费记录'
|
|
728
|
+
msg = (this.row.f_meter_type === '机表' ? '该用户表底数大于上次抄表底数,请确定是否继续生成欠费记录' : '该用户表底数大于上次抄表底数,请确定是否进行结算')
|
|
727
729
|
} else if (this.row.f_capacity && this.row.f_capacity > 0 && (parseInt(this.model.f_using_base_old) < parseInt(this.row.f_meter_base))) {
|
|
728
730
|
msg = '该用户表底数大于上次抄表底数,且已超越最大量程,请确定是否继续生成欠费记录'
|
|
729
731
|
}
|
|
730
732
|
}
|
|
731
|
-
if (this.row.f_meter_type.includes('机表') && msg) {
|
|
733
|
+
if ((this.row.f_meter_type.includes('机表') || this.row.f_meter_type.includes('物联网表')) && msg) {
|
|
732
734
|
this.$showMessage(msg, ['confirm', 'cancel']).then((res) => {
|
|
733
735
|
if (res === 'confirm') {
|
|
736
|
+
let url = this.row.f_meter_type.includes('物联网表') ? 'rs/logic/changeMeterWebHand' : 'rs/logic/changeMeterHand'
|
|
734
737
|
let data = {
|
|
735
738
|
downDate: this.$login.toStandardTimeString(),
|
|
736
739
|
startDate: this.$login.toStandardDateString(),
|
|
@@ -746,9 +749,13 @@ export default {
|
|
|
746
749
|
f_meter_brand: this.row.f_meter_brand,
|
|
747
750
|
f_price_id: this.row.f_price_id
|
|
748
751
|
}
|
|
749
|
-
this.$resetpost(
|
|
752
|
+
this.$resetpost(url, {data: data}, {resolveMsg: '生成欠费成功', rejectMsg: '生成欠费失败'}).then((res) => {
|
|
750
753
|
console.log('成功')
|
|
751
|
-
this
|
|
754
|
+
if (this.row.f_meter_type.includes('物联网表')) {
|
|
755
|
+
this.$dispatch('refresh')
|
|
756
|
+
} else {
|
|
757
|
+
this.$dispatch('button-specifies', {name: '机表收费', value: 'machine-charge'}, this.row)
|
|
758
|
+
}
|
|
752
759
|
})
|
|
753
760
|
}
|
|
754
761
|
})
|