sale-client 3.5.183 → 3.5.184
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 +73 -67
- package/package.json +1 -1
- package/src/components/FilesManage/UserGeneralInfoTest.vue +1 -1
- package/src/components/revenue/machineHandManage/machineHandAudit.vue +21 -9
- package/src/filiale/gehua/sale.js +48 -48
- package/src/filiale/qianneng/eticket/EticketPrint.vue +8 -6
- package/src/filiale/tongchuan/EticketOpenJBPage.vue +93 -5
- package/src/filiale/tongchuan/HandList.vue +15 -15
- package/src/filiale/tongchuan/bill/ReissueBill.vue +11 -8
- package/src/main.js +22 -22
- package/yarn-error.log +9224 -0
- package/.gradle/5.2.1/fileChanges/last-build.bin +0 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/5.2.1/gc.properties +0 -0
- package/.gradle/7.5.1/checksums/checksums.lock +0 -0
- package/.gradle/7.5.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/.gradle/7.5.1/dependencies-accessors/gc.properties +0 -0
- package/.gradle/7.5.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/7.5.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/7.5.1/fileChanges/last-build.bin +0 -0
- package/.gradle/7.5.1/fileHashes/fileHashes.bin +0 -0
- package/.gradle/7.5.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/7.5.1/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/.gradle/file-system.probe +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
package/build/dev-server.js
CHANGED
|
@@ -1,67 +1,73 @@
|
|
|
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
|
-
'/
|
|
14
|
-
target:
|
|
15
|
-
},
|
|
16
|
-
'/
|
|
17
|
-
target:
|
|
18
|
-
},
|
|
19
|
-
'/
|
|
20
|
-
target:
|
|
21
|
-
},
|
|
22
|
-
'/
|
|
23
|
-
target: server
|
|
24
|
-
},
|
|
25
|
-
'/
|
|
26
|
-
target: server
|
|
27
|
-
},
|
|
28
|
-
'/
|
|
29
|
-
target: server
|
|
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
|
-
|
|
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
|
+
'/rs/report/hand_bill': {
|
|
14
|
+
target: 'http://127.0.0.1:8084'
|
|
15
|
+
},
|
|
16
|
+
'/rs/sql/open_eticket_JBquery': {
|
|
17
|
+
target: local
|
|
18
|
+
},
|
|
19
|
+
'/text': {
|
|
20
|
+
target: local
|
|
21
|
+
},
|
|
22
|
+
'/files': {
|
|
23
|
+
target: server
|
|
24
|
+
},
|
|
25
|
+
'/excel': {
|
|
26
|
+
target: server
|
|
27
|
+
},
|
|
28
|
+
'/webmeter': {
|
|
29
|
+
target: server
|
|
30
|
+
},
|
|
31
|
+
'/rs/logic': {
|
|
32
|
+
target: server
|
|
33
|
+
},
|
|
34
|
+
'/rs': {
|
|
35
|
+
target: server
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
40
|
+
publicPath: config.output.publicPath,
|
|
41
|
+
stats: {
|
|
42
|
+
colors: true,
|
|
43
|
+
chunks: false
|
|
44
|
+
}
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
const hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
48
|
+
compiler.plugin('compilation', function (compilation) {
|
|
49
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
50
|
+
hotMiddleware.publish({action: 'reload'})
|
|
51
|
+
cb()
|
|
52
|
+
})
|
|
53
|
+
})
|
|
54
|
+
|
|
55
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
56
|
+
let options = proxyTable[context]
|
|
57
|
+
if (typeof options === 'string') {
|
|
58
|
+
options = {target: options}
|
|
59
|
+
}
|
|
60
|
+
app.use(proxyMiddleware(context, options))
|
|
61
|
+
})
|
|
62
|
+
app.use(require('connect-history-api-fallback')())
|
|
63
|
+
app.use(devMiddleware)
|
|
64
|
+
app.use(hotMiddleware)
|
|
65
|
+
app.use('/static', express.static('./static'))
|
|
66
|
+
|
|
67
|
+
module.exports = app.listen(port, function (err) {
|
|
68
|
+
if (err) {
|
|
69
|
+
console.log(err)
|
|
70
|
+
return
|
|
71
|
+
}
|
|
72
|
+
console.log('Listening at http://localhost:' + port)
|
|
73
|
+
})
|
package/package.json
CHANGED
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
</div>
|
|
94
94
|
<div class="row">
|
|
95
95
|
<div class="col-sm-2"></div>
|
|
96
|
-
<input v-if="fileSaveData.reason==='其他'" class="input_search" style="width:60%" placeholder='修改原因' v-model="fileSaveData.modifyReason"/>
|
|
96
|
+
<input v-if="fileSaveData.reason ==='其他'" class="input_search" style="width:60%" placeholder='修改原因' v-model="fileSaveData.modifyReason"/>
|
|
97
97
|
</div>
|
|
98
98
|
</article>
|
|
99
99
|
<footer slot="modal-footer" class="modal-footer">
|
|
@@ -394,7 +394,7 @@
|
|
|
394
394
|
import * as Util from '../../../Util'
|
|
395
395
|
|
|
396
396
|
let readyGen = async function (self) {
|
|
397
|
-
self.$refs.paged.$refs.cri.model.startDate =
|
|
397
|
+
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStartAndEndDateString()[0]
|
|
398
398
|
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
|
|
399
399
|
await self.$LoadParams.loadMeterBook(self.f_filialeid)
|
|
400
400
|
self.loadMeterBooks()
|
|
@@ -414,12 +414,13 @@
|
|
|
414
414
|
dep: [],
|
|
415
415
|
user: []
|
|
416
416
|
},
|
|
417
|
-
config:{
|
|
418
|
-
examine: false
|
|
417
|
+
config: {
|
|
418
|
+
examine: false
|
|
419
419
|
},
|
|
420
420
|
imgfilename: '',
|
|
421
421
|
// 小区
|
|
422
422
|
residentialArea: [],
|
|
423
|
+
inputtouPerson: [],
|
|
423
424
|
imgshow: false,
|
|
424
425
|
criteriaShow: false,
|
|
425
426
|
orgCondtionStr: '',
|
|
@@ -444,8 +445,8 @@
|
|
|
444
445
|
'f_adjustable_name': '调压箱名称',
|
|
445
446
|
'f_inputtor': '抄表员'
|
|
446
447
|
},
|
|
447
|
-
auditState:[{label: '全部', value: ''}, {label: '已审核', value: '已抄表'}, {label: '未审核', value: '待审核'}],
|
|
448
|
-
auditState1:[{label: '全部', value: ''}, {label: '审核失败', value: '审核失败'}],
|
|
448
|
+
auditState: [{label: '全部', value: ''}, {label: '已审核', value: '已抄表'}, {label: '未审核', value: '待审核'}],
|
|
449
|
+
auditState1: [{label: '全部', value: ''}, {label: '审核失败', value: '审核失败'}],
|
|
449
450
|
meters: [{label: '全部', value: ''}, {label: '机表', value: '机表'}, {label: '物联网表', value: '物联网表'}],
|
|
450
451
|
resultstate: this.$appdata.getParam('抄表结果状态'),
|
|
451
452
|
meterstates: this.$appdata.getParam('抄表状态') ? [{
|
|
@@ -475,7 +476,7 @@
|
|
|
475
476
|
methods: {
|
|
476
477
|
// 修正本期底数
|
|
477
478
|
amend (row) {
|
|
478
|
-
let tablebase = window.prompt('请输入你要修正的底数值,上期底数:'+ row.f_meter_base)
|
|
479
|
+
let tablebase = window.prompt('请输入你要修正的底数值,上期底数:' + row.f_meter_base)
|
|
479
480
|
if (!tablebase) return
|
|
480
481
|
if (tablebase < 0) {
|
|
481
482
|
this.$showAlert(`底数不能小于0,请注意!`, 'warning', 2000)
|
|
@@ -596,9 +597,9 @@
|
|
|
596
597
|
this.imgshow = false
|
|
597
598
|
},
|
|
598
599
|
imgShow (val) {
|
|
599
|
-
console.log(
|
|
600
|
+
console.log('-----------val2:', val)
|
|
600
601
|
this.imgfilename = `rs/image/file/` + val
|
|
601
|
-
console.log(
|
|
602
|
+
console.log('-----------imgfilename2:', this.imgfilename)
|
|
602
603
|
this.imgshow = true
|
|
603
604
|
},
|
|
604
605
|
async getaddress () {
|
|
@@ -632,6 +633,17 @@
|
|
|
632
633
|
} else {
|
|
633
634
|
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
634
635
|
}
|
|
636
|
+
// 抄表员查询条件
|
|
637
|
+
this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
|
|
638
|
+
if (this.inputtouPerson.length !== 0) {
|
|
639
|
+
let str = JSON.stringify(this.inputtouPerson)
|
|
640
|
+
str = str.replace(/"/g, `'`)
|
|
641
|
+
str = str.replace(/\[/g, ``)
|
|
642
|
+
str = str.replace(/\]/g, ``)
|
|
643
|
+
console.log('=====抄表员model22222222222绑定====', str)
|
|
644
|
+
// 查询多个抄表员时条件
|
|
645
|
+
args.condition += ` and f_inputtor in ( ${str} )`
|
|
646
|
+
}
|
|
635
647
|
this.excelCondition = args.condition
|
|
636
648
|
this.$refs.paged.$refs.grid.selectInit()
|
|
637
649
|
this.model.search(args.condition, args.model)
|
|
@@ -696,7 +708,7 @@
|
|
|
696
708
|
},
|
|
697
709
|
loadMeterBooks () {
|
|
698
710
|
this.meterbooks = this.$GetSaleParam.getMeterBooks()
|
|
699
|
-
}
|
|
711
|
+
}
|
|
700
712
|
|
|
701
713
|
},
|
|
702
714
|
computed: {
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
// 分公司特殊组件页面注册
|
|
2
|
-
|
|
3
|
-
const Vue = require("vue");
|
|
4
|
-
let specialComp = {
|
|
5
|
-
'sale-handplan-query': (resolve) => { require(['./machineHandManage/HandplanQuery'], resolve) },
|
|
6
|
-
// 高拍仪
|
|
7
|
-
'high-meter': (resolve) => { require(['./HighMeterIdCard'], resolve) },
|
|
8
|
-
'high-meter-idcard': (resolve) => { require(['./HighMeterIdCard'], resolve) },
|
|
9
|
-
// 物联网表收费
|
|
10
|
-
'iot-meter-center': (resolve) => { require(['./IOTMeterCenter'], resolve) },
|
|
11
|
-
// MISPOS支付
|
|
12
|
-
'mis-pos-pay': (resolve) => { require(['./MisPosPay'], resolve) },
|
|
13
|
-
// 购气撤销
|
|
14
|
-
'card-meter-charge-cancel': (resolve) => { require(['./CardMeterChargeCancel'], resolve) },
|
|
15
|
-
// 换表补卡
|
|
16
|
-
'change_fill_sendcard': (resolve) => { require(['./ChangeSendCard'], resolve) },
|
|
17
|
-
// 发卡售气
|
|
18
|
-
'show-card-sell-gas': (resolve) => { require(['./ShowCardSellGas'], resolve) },
|
|
19
|
-
// 卡表收费
|
|
20
|
-
'card-meter-center': (resolve) => { require(['./CardMeterCenter'], resolve) },
|
|
21
|
-
// 机表收费
|
|
22
|
-
'machine-meter-center': (resolve) => { require(['./MachineMeterCenter'], resolve) },
|
|
23
|
-
// 预存收费
|
|
24
|
-
'deposit-charge': (resolve) => { require(['./DepositCharge'], resolve) },
|
|
25
|
-
// 超用收费
|
|
26
|
-
'over-use-charge': (resolve) => { require(['./OverUseCharge'], resolve) },
|
|
27
|
-
// 补卡管理
|
|
28
|
-
'replace-card-manage': (resolve) => { require(['./ReplaceCardManage'], resolve) },
|
|
29
|
-
// 换表
|
|
30
|
-
'change-meter': (resolve) => { require(['./ChangeMeter'], resolve) },
|
|
31
|
-
//收费
|
|
32
|
-
'charge-list': (resolve) => { require(['./ChargeList'], resolve) },
|
|
33
|
-
// 银行对账
|
|
34
|
-
'bank-payment': (resolve) => { require(['./BankPayment'], resolve) },
|
|
35
|
-
//自助机对账
|
|
36
|
-
'wechat-validate-manage': (resolve) => { require(['./wechatValidateManage'], resolve) },
|
|
37
|
-
// 其他收费xin
|
|
38
|
-
'other-charge-new': (resolve) => { require(['./OtherChargeNew'], resolve) },
|
|
39
|
-
'file-meter-info': (resolve) => { require(['./MeterinfoTest'], resolve) },
|
|
40
|
-
'file-user-files': (resolve) => { require(['./FileUserFiles'], resolve) },
|
|
41
|
-
// 用户基本信息
|
|
42
|
-
'user-base-info-new': (resolve) => { require(['./UserBaseInfoNew'], resolve) },
|
|
43
|
-
//预备户建档
|
|
44
|
-
'file-user-files-new': (resolve) => { require(['./FileManageNew/FileUserFiles'], resolve) },
|
|
45
|
-
// 用户综合信息
|
|
46
|
-
'file-user-general-info-new': (resolve) => { require(['./UserGeneralInfoTest'], resolve) }
|
|
47
|
-
}
|
|
48
|
-
exports.specialComp = specialComp
|
|
1
|
+
// 分公司特殊组件页面注册
|
|
2
|
+
|
|
3
|
+
const Vue = require("vue");
|
|
4
|
+
let specialComp = {
|
|
5
|
+
'sale-handplan-query': (resolve) => { require(['./machineHandManage/HandplanQuery'], resolve) },
|
|
6
|
+
// 高拍仪
|
|
7
|
+
'high-meter': (resolve) => { require(['./HighMeterIdCard'], resolve) },
|
|
8
|
+
'high-meter-idcard': (resolve) => { require(['./HighMeterIdCard'], resolve) },
|
|
9
|
+
// 物联网表收费
|
|
10
|
+
'iot-meter-center': (resolve) => { require(['./IOTMeterCenter'], resolve) },
|
|
11
|
+
// MISPOS支付
|
|
12
|
+
'mis-pos-pay': (resolve) => { require(['./MisPosPay'], resolve) },
|
|
13
|
+
// 购气撤销
|
|
14
|
+
'card-meter-charge-cancel': (resolve) => { require(['./CardMeterChargeCancel'], resolve) },
|
|
15
|
+
// 换表补卡
|
|
16
|
+
'change_fill_sendcard': (resolve) => { require(['./ChangeSendCard'], resolve) },
|
|
17
|
+
// 发卡售气
|
|
18
|
+
'show-card-sell-gas': (resolve) => { require(['./ShowCardSellGas'], resolve) },
|
|
19
|
+
// 卡表收费
|
|
20
|
+
'card-meter-center': (resolve) => { require(['./CardMeterCenter'], resolve) },
|
|
21
|
+
// 机表收费
|
|
22
|
+
'machine-meter-center': (resolve) => { require(['./MachineMeterCenter'], resolve) },
|
|
23
|
+
// 预存收费
|
|
24
|
+
'deposit-charge': (resolve) => { require(['./DepositCharge'], resolve) },
|
|
25
|
+
// 超用收费
|
|
26
|
+
'over-use-charge': (resolve) => { require(['./OverUseCharge'], resolve) },
|
|
27
|
+
// 补卡管理
|
|
28
|
+
'replace-card-manage': (resolve) => { require(['./ReplaceCardManage'], resolve) },
|
|
29
|
+
// 换表
|
|
30
|
+
'change-meter': (resolve) => { require(['./ChangeMeter'], resolve) },
|
|
31
|
+
//收费
|
|
32
|
+
'charge-list': (resolve) => { require(['./ChargeList'], resolve) },
|
|
33
|
+
// 银行对账
|
|
34
|
+
'bank-payment': (resolve) => { require(['./BankPayment'], resolve) },
|
|
35
|
+
//自助机对账
|
|
36
|
+
'wechat-validate-manage': (resolve) => { require(['./wechatValidateManage'], resolve) },
|
|
37
|
+
// 其他收费xin
|
|
38
|
+
'other-charge-new': (resolve) => { require(['./OtherChargeNew'], resolve) },
|
|
39
|
+
'file-meter-info': (resolve) => { require(['./MeterinfoTest'], resolve) },
|
|
40
|
+
'file-user-files': (resolve) => { require(['./FileUserFiles'], resolve) },
|
|
41
|
+
// 用户基本信息
|
|
42
|
+
'user-base-info-new': (resolve) => { require(['./UserBaseInfoNew'], resolve) },
|
|
43
|
+
//预备户建档
|
|
44
|
+
'file-user-files-new': (resolve) => { require(['./FileManageNew/FileUserFiles'], resolve) },
|
|
45
|
+
// 用户综合信息
|
|
46
|
+
'file-user-general-info-new': (resolve) => { require(['./UserGeneralInfoTest'], resolve) }
|
|
47
|
+
}
|
|
48
|
+
exports.specialComp = specialComp
|
|
@@ -132,11 +132,12 @@ export default {
|
|
|
132
132
|
id: ticket_id,
|
|
133
133
|
f_bill_code: req.fpDm,
|
|
134
134
|
f_bill_number: req.fpHm,
|
|
135
|
-
f_bill_url: req.
|
|
136
|
-
|
|
135
|
+
f_bill_url: req.fileUrl.replace('d:\\qianNengInvoiceFile', '/Download'),
|
|
136
|
+
f_sign_url: req.shareurl,
|
|
137
|
+
f_sign_result: req.sharecode,
|
|
137
138
|
f_bill_state: req.status
|
|
138
139
|
}
|
|
139
|
-
this.eticket_src =
|
|
140
|
+
this.eticket_src = 'https://qnjtkf.cn:7400' + model.f_bill_url
|
|
140
141
|
} else if (req.status === '开票中') {
|
|
141
142
|
model = {
|
|
142
143
|
id: ticket_id,
|
|
@@ -303,11 +304,12 @@ export default {
|
|
|
303
304
|
f_eticket_id: ticket_id,
|
|
304
305
|
f_bill_code: req.fpDm,
|
|
305
306
|
f_bill_number: req.fpHm,
|
|
306
|
-
f_bill_url: req.
|
|
307
|
-
|
|
307
|
+
f_bill_url: req.fileUrl.replace('d:\\qianNengInvoiceFile', '/Download'),
|
|
308
|
+
f_sign_url: req.shareurl,
|
|
309
|
+
f_sign_result: req.sharecode,
|
|
308
310
|
f_bill_state: req.status
|
|
309
311
|
})
|
|
310
|
-
this.eticket_src =
|
|
312
|
+
this.eticket_src = 'https://qnjtkf.cn:7400' + req.fileUrl.replace('d:\\qianNengInvoiceFile', '/Download')
|
|
311
313
|
} else if (req && req.status !== '开票中') {
|
|
312
314
|
clearInterval(interval)
|
|
313
315
|
// TODO 失败后保存发票详情
|
|
@@ -50,10 +50,31 @@
|
|
|
50
50
|
</div>
|
|
51
51
|
<div style="float: right">
|
|
52
52
|
<button class="button_search" @click="search()">查 询</button>
|
|
53
|
+
<button class="button_search" @click="$parent.$parent.open_report()">打印收据</button>
|
|
53
54
|
<button class="button_search" @click="$parent.$parent.open_eTicket()">开票</button>
|
|
54
55
|
</div>
|
|
55
56
|
</div>
|
|
56
57
|
</div>
|
|
58
|
+
<div class="row">
|
|
59
|
+
<div class="form-group col-sm-2">
|
|
60
|
+
<label class="font_normal_body">气表类型</label>
|
|
61
|
+
<v-select :value.sync="model.f_meter_type"
|
|
62
|
+
:options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
|
|
63
|
+
condition="f_meter_classify = '{}'"
|
|
64
|
+
close-on-select></v-select>
|
|
65
|
+
</div>
|
|
66
|
+
<div class="form-group col-sm-2">
|
|
67
|
+
<label class="font_normal_body">是否有收据</label>
|
|
68
|
+
<v-select
|
|
69
|
+
v-model="model.is_report"
|
|
70
|
+
placeholder='是否有收据'
|
|
71
|
+
:search="false"
|
|
72
|
+
condition=" f_is_report {} "
|
|
73
|
+
:value.sync="model.is_report"
|
|
74
|
+
:options='$parent.$parent.is_report'
|
|
75
|
+
close-on-select></v-select>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
57
78
|
</div>
|
|
58
79
|
</criteria>
|
|
59
80
|
<data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
|
|
@@ -71,8 +92,8 @@
|
|
|
71
92
|
<th>应交金额</th>
|
|
72
93
|
<th>上期底数</th>
|
|
73
94
|
<th>本期底数</th>
|
|
74
|
-
<th
|
|
75
|
-
<th
|
|
95
|
+
<th>是否开过发票</th>
|
|
96
|
+
<th>是否开过票据</th>
|
|
76
97
|
<th>缴费时间</th>
|
|
77
98
|
</tr>
|
|
78
99
|
</template>
|
|
@@ -91,7 +112,7 @@
|
|
|
91
112
|
<th style="text-align:center">{{ row.f_last_tablebase }}</th>
|
|
92
113
|
<th style="text-align:center">{{ row.f_tablebase }}</th>
|
|
93
114
|
<th style="text-align:center">{{ row.is_bill }}</th>
|
|
94
|
-
<th style="text-align:center">{{ row.
|
|
115
|
+
<th style="text-align:center">{{ row.f_is_report }}</th>
|
|
95
116
|
<th style="text-align:center">{{ row.f_hand_date }}</th>
|
|
96
117
|
</tr>
|
|
97
118
|
</template>
|
|
@@ -149,15 +170,40 @@
|
|
|
149
170
|
<footer slot="modal-footer" class="modal-footer">
|
|
150
171
|
<button type="button" class="btn button_search"
|
|
151
172
|
:disabled="!(row.f_paper_name&&row.f_address_phone)"
|
|
152
|
-
@click='confirm'
|
|
173
|
+
@click='confirm'>确认收费
|
|
153
174
|
</button>
|
|
154
175
|
</footer>
|
|
155
176
|
</modal>
|
|
156
177
|
<ticket-print :show="eticket_show" @toggle="eticket_toggle" v-ref:eticketbill></ticket-print>
|
|
178
|
+
<reissue-bill :data="reissue_data" :show.sync="reissue_show" @cancel="reissueOper()" @reissue-success="reissueSucc()"
|
|
179
|
+
v-if="reissue_show"></reissue-bill>
|
|
157
180
|
</template>
|
|
158
181
|
<script>
|
|
159
182
|
import {HttpResetClass, PagedList} from 'vue-client'
|
|
160
183
|
import * as Util from '../../Util'
|
|
184
|
+
import co from 'co'
|
|
185
|
+
let reprintGen = function* (self, row, type) {
|
|
186
|
+
try {
|
|
187
|
+
row.f_report = type
|
|
188
|
+
row.f_bill_type = '普通收据'
|
|
189
|
+
row.f_bill_style = '普通收据'
|
|
190
|
+
row.f_operator = self.$login.f.name
|
|
191
|
+
row.operator = self.$login.f.name
|
|
192
|
+
row.f_operatorid = self.$login.f.id
|
|
193
|
+
row.f_orgid = self.$login.f.orgid
|
|
194
|
+
row.f_orgname = self.$login.f.orgs
|
|
195
|
+
row.f_depid = self.$login.f.depids
|
|
196
|
+
row.f_depname = self.$login.f.deps
|
|
197
|
+
row.billUrl = 'rs/report/hand_bill'
|
|
198
|
+
self.reissue_data = row
|
|
199
|
+
self.reissue_show = true
|
|
200
|
+
} catch (error) {
|
|
201
|
+
if (error.status) {
|
|
202
|
+
self.$warn(`加载数据出错, ${JSON.stringify(error)}`, 'CardList')
|
|
203
|
+
}
|
|
204
|
+
throw error
|
|
205
|
+
}
|
|
206
|
+
}
|
|
161
207
|
let asyncReadyGen = async function (self) {
|
|
162
208
|
self.$refs.paged.$refs.cri.model.f_start_date = Util.toStandardDateString().substr(0, 5) + '01-01'
|
|
163
209
|
self.$refs.paged.$refs.cri.model.f_end_date = Util.toStandardDateString()
|
|
@@ -190,11 +236,14 @@ export default {
|
|
|
190
236
|
msg: [],
|
|
191
237
|
orgname: [],
|
|
192
238
|
depname: [],
|
|
239
|
+
is_report: [{label: '是', value: ` = '是'`}, {label: '否', value: ' is null'}],
|
|
193
240
|
eticket_msg: false,
|
|
194
241
|
invoice_show_gas: '否',
|
|
195
242
|
show_gas: [{label: '是', value: '是'}, {label: '否', value: '否'}],
|
|
196
243
|
row: {},
|
|
197
|
-
mid: [{label: '全部', value: ''}, {label: '是', value: ' > 0 '}, {label: '否', value: ' is null'}]
|
|
244
|
+
mid: [{label: '全部', value: ''}, {label: '是', value: ' > 0 '}, {label: '否', value: ' is null'}],
|
|
245
|
+
reissue_data: null,
|
|
246
|
+
reissue_show: false
|
|
198
247
|
}
|
|
199
248
|
},
|
|
200
249
|
ready () {
|
|
@@ -202,6 +251,21 @@ export default {
|
|
|
202
251
|
asyncReadyGen(this)
|
|
203
252
|
},
|
|
204
253
|
methods: {
|
|
254
|
+
reissueOper () {
|
|
255
|
+
this.reissue_data = null
|
|
256
|
+
this.reissue_show = false
|
|
257
|
+
},
|
|
258
|
+
async reissueSucc () {
|
|
259
|
+
// 把选中的记录改成已经打票
|
|
260
|
+
let sql = `update t_handplan set f_is_report = '是' where id in ${this.$login.convertToIn(this.selecteds.map(item => item.id))}`
|
|
261
|
+
let data = {
|
|
262
|
+
sql: sql
|
|
263
|
+
}
|
|
264
|
+
await this.$resetpost('rs/logic/runSQL', data)
|
|
265
|
+
// 重新查询页面
|
|
266
|
+
this.reissue_show = false
|
|
267
|
+
this.search()
|
|
268
|
+
},
|
|
205
269
|
search () {
|
|
206
270
|
this.$refs.paged.$refs.cri.search()
|
|
207
271
|
},
|
|
@@ -239,6 +303,27 @@ export default {
|
|
|
239
303
|
}
|
|
240
304
|
this.eticket_msg = true
|
|
241
305
|
},
|
|
306
|
+
async open_report () {
|
|
307
|
+
if ([...new Set(this.selecteds.map(item => item.f_userinfo_code))].length > 1) {
|
|
308
|
+
this.$showAlert('所选择用户不是同一用户!!', 'warning', 2000)
|
|
309
|
+
return
|
|
310
|
+
}
|
|
311
|
+
let isReports = [...new Set(this.selecteds.map(item => item.f_is_report))]
|
|
312
|
+
if (isReports.length > 1) {
|
|
313
|
+
this.$showAlert('所选择记录中打印票据状态不一致,请重新选择!!', 'warning', 2000)
|
|
314
|
+
return
|
|
315
|
+
}
|
|
316
|
+
let data = {
|
|
317
|
+
id: this.$login.convertToIn(this.selecteds.map(item => item.id)).replace(/'/g, '')
|
|
318
|
+
}
|
|
319
|
+
let reprint
|
|
320
|
+
if (isReports[0] === '是') {
|
|
321
|
+
reprint = reprintGen(this, data, '补打')
|
|
322
|
+
} else {
|
|
323
|
+
reprint = reprintGen(this, data, ' ')
|
|
324
|
+
}
|
|
325
|
+
return co(reprint)
|
|
326
|
+
},
|
|
242
327
|
confirm () {
|
|
243
328
|
this.eticket_msg = false
|
|
244
329
|
this.eticket_show = true
|
|
@@ -285,6 +370,9 @@ export default {
|
|
|
285
370
|
}
|
|
286
371
|
},
|
|
287
372
|
computed: {
|
|
373
|
+
metertypes () {
|
|
374
|
+
return [{label: ' 全部 ', value: ''}, {label: ' 机表 ', value: '机表'}, {label: '物联网表', value: '物联网表'}]
|
|
375
|
+
},
|
|
288
376
|
getPayee () {
|
|
289
377
|
return this.$GetSaleParam.getPayee()
|
|
290
378
|
},
|
|
@@ -16,21 +16,21 @@
|
|
|
16
16
|
<span class="col-sm-3" title="是否欠费">{{ row.f_whether_pay === '是' ? '已缴' : '欠费' }}</span>
|
|
17
17
|
</div>
|
|
18
18
|
</div>
|
|
19
|
-
<div class="col-sm-1"
|
|
20
|
-
<dropdown class="auto"
|
|
21
|
-
<button data-toggle="dropdown" style="border: 0px;background: none;" type="button"
|
|
22
|
-
<span class="glyphicon glyphicon-th-list"></span
|
|
23
|
-
</button
|
|
24
|
-
<ul class="dropdown-menu dropdown-menu-right" slot="dropdown-menu" style=" min-width: 60px;"
|
|
25
|
-
<li
|
|
26
|
-
<a @click.stop="$parent.$parent.$parent.operate('票据补打', row)" href="#">票据补打</a
|
|
27
|
-
</li
|
|
28
|
-
<li
|
|
29
|
-
<a @click.stop="$parent.$parent.$parent.operate('电子票补打', row)" href="#">电子票补打</a
|
|
30
|
-
</li
|
|
31
|
-
</ul
|
|
32
|
-
</dropdown
|
|
33
|
-
</div
|
|
19
|
+
<!-- <div class="col-sm-1">-->
|
|
20
|
+
<!-- <dropdown class="auto">-->
|
|
21
|
+
<!-- <button data-toggle="dropdown" style="border: 0px;background: none;" type="button">-->
|
|
22
|
+
<!-- <span class="glyphicon glyphicon-th-list"></span>-->
|
|
23
|
+
<!-- </button>-->
|
|
24
|
+
<!-- <ul class="dropdown-menu dropdown-menu-right" slot="dropdown-menu" style=" min-width: 60px;">-->
|
|
25
|
+
<!-- <li>-->
|
|
26
|
+
<!-- <a @click.stop="$parent.$parent.$parent.operate('票据补打', row)" href="#">票据补打</a>-->
|
|
27
|
+
<!-- </li>-->
|
|
28
|
+
<!-- <li>-->
|
|
29
|
+
<!-- <a @click.stop="$parent.$parent.$parent.operate('电子票补打', row)" href="#">电子票补打</a>-->
|
|
30
|
+
<!-- </li>-->
|
|
31
|
+
<!-- </ul>-->
|
|
32
|
+
<!-- </dropdown>-->
|
|
33
|
+
<!-- </div>-->
|
|
34
34
|
|
|
35
35
|
</span>
|
|
36
36
|
<div class="panel-body" v-if="$parent.$parent.$parent.isSelected(row)">
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
*/
|
|
197
197
|
let getBillData = async function (self) {
|
|
198
198
|
// 显示票据
|
|
199
|
-
self.bill = new DataModel(self.data.billUrl, {reprint: "'补打'",operator: `'${self.$login.f.name}'
|
|
199
|
+
self.bill = new DataModel(self.data.billUrl, {reprint: "'补打'", operator: `'${self.$login.f.name}'`})
|
|
200
200
|
await self.bill.search(self.data.id)
|
|
201
201
|
// self.bill.data = '我是补打发票'
|
|
202
202
|
await getBillGen(self)
|
|
@@ -259,16 +259,21 @@
|
|
|
259
259
|
}
|
|
260
260
|
// 进行补打
|
|
261
261
|
try {
|
|
262
|
+
if (this.data.id.includes('(')) {
|
|
263
|
+
this.data.id = this.data.id.replace('(', '')
|
|
264
|
+
this.data.id = this.data.id.replace(')', '')
|
|
265
|
+
this.data.id = this.data.id.split(',')[0]
|
|
266
|
+
}
|
|
262
267
|
let param = {
|
|
263
268
|
items: '*',
|
|
264
269
|
tablename: 't_billdetail',
|
|
265
|
-
condition: ` 1=1 and f_charge_id = ${this.data.id} and f_type = '${this.data.f_bill_type}'`,
|
|
270
|
+
condition: ` 1=1 and f_charge_id = '${this.data.id}' and f_type = '${this.data.f_bill_type}'`,
|
|
266
271
|
orderitem: 'id'
|
|
267
272
|
}
|
|
268
273
|
let res = await this.$resetpost('rs/sql/singleTable_OrderBy', {data: param}, {resolveMsg: null, rejectMsg: '获取补票数据出错!!'})
|
|
269
|
-
if (res.data.length>0){
|
|
270
|
-
let confirm = await this.$showMessage(`这是第${res.data.length+1}次打印,确认要补打票据吗?`, ['confirm', 'cancel'])
|
|
271
|
-
if (confirm === 'confirm'){
|
|
274
|
+
if (res.data.length > 0) {
|
|
275
|
+
let confirm = await this.$showMessage(`这是第${res.data.length + 1}次打印,确认要补打票据吗?`, ['confirm', 'cancel'])
|
|
276
|
+
if (confirm === 'confirm') {
|
|
272
277
|
console.log('开具收据的参数:', this.data.id, this.data.f_bill_type)
|
|
273
278
|
if (this.config.hasBillManage) {
|
|
274
279
|
await this.$CommonService.reissuePaperBill(this.data.id, this.data.f_bill_type, this.model)
|
|
@@ -282,10 +287,8 @@
|
|
|
282
287
|
} else {
|
|
283
288
|
this.$refs.reportprint.print()
|
|
284
289
|
}
|
|
285
|
-
}else {
|
|
286
|
-
|
|
287
290
|
}
|
|
288
|
-
}else {
|
|
291
|
+
} else {
|
|
289
292
|
console.log('开具收据的参数:', this.data.id, this.data.f_bill_type)
|
|
290
293
|
if (this.config.hasBillManage) {
|
|
291
294
|
await this.$CommonService.reissuePaperBill(this.data.id, this.data.f_bill_type, this.model)
|