sale-client 4.1.230 → 4.2.1-ronghao
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 +29 -46
- package/package.json +2 -2
- package/src/App.vue +3 -3
- package/src/components/FilesManage/UserGeneralInfoTest.vue +4 -4
- package/src/components/FilesManageNew/FileUserFiles.vue +2 -4
- package/src/components/FilesManageNew/MeterinfoTest.vue +9 -9
- package/src/components/FilesManageNew/UserEssentialInfoTest.vue +201 -227
- package/src/components/FilesManageNew/UserGeneralInfoTest.vue +0 -2
- package/src/components/charge/business/CardMeterCenter.vue +1 -1
- package/src/components/charge/business/FilesComplete.vue +3 -3
- package/src/components/charge/business/IOTMeterCenter.vue +1 -1
- package/src/components/charge/business/OtherChargeNew.vue +68 -48
- package/src/components/common/userinfo_detail/UserInfoDetailManageNew.vue +10 -1
- package/src/components/common/userinfo_detail/ic_detail/CardHandRecord.vue +1 -1
- package/src/components/common/userinfo_detail/ic_detail/ChangeMeterQueryUser.vue +1 -1
- package/src/components/common/userinfo_detail/ic_detail/GarbageRecordList.vue +69 -0
- package/src/components/common/userinfo_detail/ic_detail/InsuranceChargesRecord.vue +384 -0
- package/src/components/common/userinfo_detail/ic_detail/WebHandQueryUser.vue +1 -1
- package/src/components/revenue/Common/MeterMessage.vue +1 -1
- package/src/components/revenue/HandManager/MeterBookUser.vue +726 -726
- package/src/components/revenue/HandManager/WebHand.vue +7 -4
- package/src/components/revenue/base/leftview/SafeCheck.vue +41 -3
- package/src/components/revenue/base/leftview/UserFeeInfo.vue +76 -0
- package/src/components/revenue/base/leftview/otherinfo.vue +1 -0
- package/src/components/revenue/base/rightview/CardList.vue +7 -3
- package/src/components/revenue/batchDeduction/batchDeductionList.vue +1 -1
- package/src/components/revenue/cardHandManage/cardDown.vue +18 -0
- package/src/components/revenue/changeInsurance/InsuranceAdd.vue +1 -0
- package/src/components/revenue/changeInsurance/InsuranceRecord.vue +2 -1
- package/src/components/revenue/comprehen/ComprehenOperation/BankPayment/BankPayment.vue +1 -1
- package/src/components/revenue/comprehen/ComprehenOperation/GiftFee/icTable.vue +4 -2
- package/src/components/revenue/comprehen/ComprehenOperation/QrPay/QrPaymentDetailed.vue +423 -423
- package/src/components/revenue/comprehen/Maintenance/hand/handOperate.vue +469 -469
- package/src/components/revenue/comprehen/Maintenance/revenue/MeterOperatemain.vue +2 -2
- package/src/components/revenue/machineHandManage/ArrearsQuery.vue +938 -938
- package/src/components/revenue/machineHandManage/HandplanQuery.vue +1 -1
- package/src/components/revenue/machineHandManage/machineHand.vue +3 -2
- package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +970 -970
- package/src/filiale/alashan/eticket/EticketRecordList.vue +428 -428
- package/src/filiale/bayan/ChargeList.vue +1010 -1010
- package/src/filiale/bayan/StockListmain.vue +543 -543
- package/src/filiale/beifangshiye/OtherChargeNew.vue +625 -625
- package/src/filiale/dexin/MeterinfoTest.vue +1239 -0
- package/src/filiale/dexin/UserEssentialInfoTest.vue +602 -0
- package/src/filiale/dexin/sale.js +5 -0
- package/src/filiale/fugou/MeterinfoTest.vue +1 -1
- package/src/filiale/jiaxian/AutomaticPurse.vue +349 -0
- package/src/filiale/jiaxian/ChangeMeterQueryUser.vue +303 -0
- package/src/filiale/jiaxian/ChangeRecord.vue +44 -2
- package/src/filiale/jiaxian/FillCardQueryUser.vue +250 -0
- package/src/filiale/jiaxian/FillGasQueryUser.vue +270 -0
- package/src/filiale/jiaxian/OtherChargeQueryUser.vue +305 -0
- package/src/filiale/jiaxian/PriceAdjustmentQueryUser.vue +368 -0
- package/src/filiale/jiaxian/PriceChangeQueryUser.vue +243 -0
- package/src/filiale/jiaxian/QueryInstruct.vue +436 -0
- package/src/filiale/jiaxian/RecordQueryUser.vue +321 -0
- package/src/filiale/jiaxian/Repurchase.vue +181 -0
- package/src/filiale/jiaxian/TransferQueryUser.vue +274 -0
- package/src/filiale/jiaxian/UserInfoDetailManageNew.vue +11 -11
- package/src/filiale/jiaxian/Userinfo.vue +426 -0
- package/src/filiale/jiaxian/WatchCollection.vue +54 -1
- package/src/filiale/jiaxian/WebAutomaticPurse.vue +348 -0
- package/src/filiale/jiaxian/contractSigningList.vue +149 -0
- package/src/filiale/jiaxian/sale.js +5 -0
- package/src/filiale/jinhong/AutoAccountsDetail.vue +63 -0
- package/src/filiale/jinhong/CardList.vue +572 -0
- package/src/filiale/jinhong/CardMeterCenter.vue +1 -1
- package/src/filiale/jinhong/CardMeterCenterInner.vue +61 -22
- package/src/filiale/jinhong/GarbageCharge.vue +1 -1
- package/src/filiale/jinhong/HandplanQuery.vue +1430 -0
- package/src/filiale/jinhong/IOTMeterCenterInner.vue +42 -14
- package/src/filiale/jinhong/InsuranceAdd.vue +27 -5
- package/src/filiale/jinhong/InsuranceChargesDetails.vue +11 -5
- package/src/filiale/jinhong/InsuranceRecord.vue +4 -5
- package/src/filiale/jinhong/InsuranceTemp.vue +33 -5
- package/src/filiale/jinhong/MachineChargeService.js +8 -0
- package/src/filiale/jinhong/MachineMeterCenter.vue +38 -11
- package/src/filiale/jinhong/ShowCardSellGasInner.vue +46 -14
- package/src/filiale/jinhong/Userinfo.vue +75 -1
- package/src/filiale/jinhong/insuranceGuanL.vue +349 -0
- package/src/filiale/jinhong/machineDown.vue +1205 -0
- package/src/filiale/jinhong/sale.js +9 -0
- package/src/filiale/jinhuang/UserInfoDetailManageNew.vue +259 -0
- package/src/filiale/jinhuang/WebHand.vue +1026 -0
- package/src/filiale/jinhuang/WebHandQueryUser.vue +413 -0
- package/src/filiale/jinhuang/cardsHand.vue +911 -0
- package/src/filiale/jinhuang/sale.js +8 -0
- package/src/filiale/lixianV3/ArrearsQuery.vue +938 -938
- package/src/filiale/lixianV3/InsuranceAdd.vue +1 -0
- package/src/filiale/lixianV3/InsuranceChargesDetails.vue +425 -425
- package/src/filiale/meihekou/CardMeterCenter.vue +991 -0
- package/src/filiale/meihekou/ChargeManage.vue +3 -2
- package/src/filiale/meihekou/ChargeOper.vue +279 -169
- package/src/filiale/meihekou/HandManager.vue +57 -2
- package/src/filiale/meihekou/NoCardMeterCenter.vue +542 -0
- package/src/filiale/meihekou/OverUseCharge.vue +1 -1
- package/src/filiale/meihekou/PrintBill.vue +48 -41
- package/src/filiale/meihekou/ReissueBill.vue +4 -1
- package/src/filiale/meihekou/ShowCardSellGas.vue +935 -0
- package/src/filiale/meihekou/TransferManage.vue +704 -0
- package/src/filiale/meihekou/Userinfo.vue +233 -5
- package/src/filiale/meihekou/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +281 -281
- package/src/filiale/meihekou/icTable.vue +233 -0
- package/src/filiale/meihekou/machineHand.vue +2158 -0
- package/src/filiale/meihekou/manualChargeCenter.vue +394 -0
- package/src/filiale/meihekou/meterTable.vue +220 -0
- package/src/filiale/meihekou/sale.js +15 -0
- package/src/filiale/qianneng/MeterMessage.vue +1 -1
- package/src/filiale/qianneng/revenue/sms/AccountMessageList.vue +508 -508
- package/src/filiale/rizhao/InsuranceAdd.vue +1 -0
- package/src/filiale/ronghao/ArrearsQuery.vue +974 -974
- package/src/filiale/ronghao/CardList.vue +19 -17
- package/src/filiale/ronghao/CardMeterChargeCancel.vue +5 -0
- package/src/filiale/ronghao/CardService.js +2144 -2144
- package/src/filiale/ronghao/ChangeMeterService.js +1 -1
- package/src/filiale/ronghao/ChargeList.vue +17 -17
- package/src/filiale/ronghao/ChargeManage.vue +325 -0
- package/src/filiale/ronghao/ChargeOper.vue +330 -0
- package/src/filiale/ronghao/FilesManageNew/UserEssentialInfoTest.vue +457 -0
- package/src/filiale/ronghao/FilesManageNew/UserGeneralInfoTest.vue +690 -0
- package/src/filiale/ronghao/HandplanQuery.vue +13 -14
- package/src/filiale/ronghao/IOTMeterCenter.vue +15 -6
- package/src/filiale/ronghao/InsuranceAdd.vue +1 -0
- package/src/filiale/ronghao/InsuranceManage.vue +58 -58
- package/src/filiale/ronghao/MachineChargeService.js +149 -149
- package/src/filiale/ronghao/NoCardMeterCenter.vue +534 -534
- package/src/filiale/ronghao/PaymentCode.vue +174 -174
- package/src/filiale/ronghao/PriceChangeCompensation/CompensationManage.vue +26 -26
- package/src/filiale/ronghao/PriceChangeCompensation/IotCompensation.vue +318 -318
- package/src/filiale/ronghao/PriceChangeCompensation/JbCompensation.vue +343 -343
- package/src/filiale/ronghao/PriceChangeCompensation/SurplusRecordDetail.vue +74 -74
- package/src/filiale/ronghao/ReplaceCardManage.vue +415 -415
- package/src/filiale/ronghao/Upload.vue +654 -654
- package/src/filiale/ronghao/Userinfo.vue +18 -18
- package/src/filiale/ronghao/cardDown.vue +1141 -1141
- package/src/filiale/ronghao/changemeterOperate.vue +315 -315
- package/src/filiale/ronghao/fillgasSpecific.vue +313 -313
- package/src/filiale/ronghao/ic_detail/ChargeRecordQuery.vue +106 -106
- package/src/filiale/ronghao/ic_detail/WatchCollection.vue +115 -115
- package/src/filiale/ronghao/ic_detail/WebHandQueryUser.vue +411 -411
- package/src/filiale/ronghao/machineDown.vue +1176 -1176
- package/src/filiale/ronghao/machineRefund.vue +3 -1
- package/src/filiale/ronghao/replacementSingleInfoOperation.vue +315 -315
- package/src/filiale/ronghao/sale.js +11 -0
- package/src/filiale/ronghao/specificInformation.vue +537 -537
- package/src/filiale/ronghao/uploadFilesHistory.vue +214 -0
- package/src/filiale/ruihua/FilesManage/MeterinfoTest.vue +10 -0
- package/src/filiale/shanxian/components/revenue/InsuranceAdd.vue +1 -0
- package/src/filiale/wuan/MeterMessage.vue +1 -1
- package/src/filiale/yangchun/BasicLivingList.vue +281 -0
- package/src/filiale/yangchun/BlackList/BlackRecordQuery.vue +1 -0
- package/src/filiale/yangchun/CardChangeFill.vue +1 -1
- package/src/filiale/yangchun/ChargeList.vue +954 -954
- package/src/filiale/yangchun/FilesManage/UserPaperInfoTest.vue +3 -3
- package/src/filiale/yangchun/NewMeterList.vue +742 -0
- package/src/filiale/yangchun/sale.js +3 -0
- package/src/filiale/yuncheng/CardList.vue +1 -1
- package/src/filiale/yuncheng/IndustryCommerceHand.vue +1145 -0
- package/src/filiale/yuncheng/IndustryCommerceHandAudit.vue +794 -0
- package/src/filiale/yuncheng/IndustryCommerceHandManager.vue +64 -0
- package/src/filiale/yuncheng/InsuranceAdd.vue +1 -0
- package/src/filiale/yuncheng/MeterBookUser.vue +781 -0
- package/src/filiale/yuncheng/UserDeviceInfoTest.vue +2 -2
- package/src/filiale/yuncheng/changemeterListMaintain.vue +504 -504
- package/src/filiale/yuncheng/industryDown.vue +1118 -0
- package/src/filiale/yuncheng/sale.js +11 -0
- package/src/filiale/yuncheng/uploadFilesHistory.vue +185 -0
- package/src/filiale/zhongsheng/BlackListList.vue +293 -293
- package/src/filiale/zhongyi/HandQueryUser.vue +389 -389
- package/src/plugins/CardService.js +2217 -2217
- package/src/sale.js +3 -1
|
@@ -1,174 +1,174 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id='PaymentCode'>
|
|
3
|
-
<modal :show.sync="paymentCodeShow" backdrop="false">
|
|
4
|
-
<header slot="modal-header" class="modal-header">
|
|
5
|
-
<h4 class="modal-title">请扫描用户付款码</h4>
|
|
6
|
-
</header>
|
|
7
|
-
<article slot="modal-body" class="modal-body">
|
|
8
|
-
<div class="form-horizontal">
|
|
9
|
-
<div class="form-group">
|
|
10
|
-
<input type="text" class="form-control" @keyup.enter="ConfirmCode" @blur="paycodefocus"
|
|
11
|
-
v-model="paymentCode" placeholder="请扫描用户付款码" v-el:paycode>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
</article>
|
|
15
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
16
|
-
<button type="button" class="btn btn-default" @click='closeCode'>取消</button>
|
|
17
|
-
</footer>
|
|
18
|
-
</modal>
|
|
19
|
-
</div>
|
|
20
|
-
</template>
|
|
21
|
-
|
|
22
|
-
<script>
|
|
23
|
-
export default {
|
|
24
|
-
name: 'PaymentCode',
|
|
25
|
-
props: {
|
|
26
|
-
// 付款方式
|
|
27
|
-
payment: {},
|
|
28
|
-
// 用户信息
|
|
29
|
-
row: {},
|
|
30
|
-
type: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: '燃气收费'
|
|
33
|
-
},
|
|
34
|
-
// 付款金额
|
|
35
|
-
money: {}
|
|
36
|
-
},
|
|
37
|
-
data () {
|
|
38
|
-
return {
|
|
39
|
-
ip:null,
|
|
40
|
-
// 付款码弹框显示
|
|
41
|
-
paymentCodeShow: false,
|
|
42
|
-
// 付款码值
|
|
43
|
-
paymentCode: null,
|
|
44
|
-
// 付款码流程控制
|
|
45
|
-
paycoderesolve: null,
|
|
46
|
-
// 付款码返回数据
|
|
47
|
-
paymentCodeReturnData: {},
|
|
48
|
-
// 定时器
|
|
49
|
-
timer: null,
|
|
50
|
-
// 收费成功id
|
|
51
|
-
sellinggasId: null
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
created () {
|
|
55
|
-
},
|
|
56
|
-
ready () {
|
|
57
|
-
console.log(this.$login.f)
|
|
58
|
-
},
|
|
59
|
-
methods: {
|
|
60
|
-
// 返回结果为true意味着可以通行
|
|
61
|
-
flowPath () {
|
|
62
|
-
return new Promise((resolve) => {
|
|
63
|
-
this.paycoderesolve = resolve
|
|
64
|
-
// 如果是付款码支付则显示界面扫用户付款码收钱
|
|
65
|
-
if (this.payment.toString().indexOf('扫码枪支付') !== -1) {
|
|
66
|
-
this.paymentCodeShow = true
|
|
67
|
-
this.paycodefocus()
|
|
68
|
-
} else {
|
|
69
|
-
this.paycoderesolve({msg: '不是扫码枪支付', result: true})
|
|
70
|
-
}
|
|
71
|
-
})
|
|
72
|
-
},
|
|
73
|
-
// 付款码框获得焦点
|
|
74
|
-
paycodefocus () {
|
|
75
|
-
this.$nextTick(() => {
|
|
76
|
-
this.$els.paycode.focus()
|
|
77
|
-
})
|
|
78
|
-
},
|
|
79
|
-
// 付款码支付流程
|
|
80
|
-
async ConfirmCode () {
|
|
81
|
-
// 付款码支付之前取本机mac号对应的柜台号进行下单
|
|
82
|
-
let equipment = await this.$resetpost('api/af-system/sql/equipmentQuery',
|
|
83
|
-
{data: {condition: `f_equipment_type = 'PC' and f_state = '正常' and f_orgid = '${this.$login.f.orgid}' and f_user_operatorid = '${this.$login.f.id}'`}},
|
|
84
|
-
{resolveMsg: null, rejectMsg: '获取柜台号失败'})
|
|
85
|
-
// console.log('柜台号: ', equipment.data)
|
|
86
|
-
if (equipment.data.length != 1) {
|
|
87
|
-
this.$showMessage(equipment.data.length ? `获取到多个设备, 请核实! ` : `当前设备没有对应的柜台号, 请核实!}`)
|
|
88
|
-
return
|
|
89
|
-
}
|
|
90
|
-
let data = {
|
|
91
|
-
filiale: this.$login.f.dir,
|
|
92
|
-
flag: 'microPayRongHaoJsbc',
|
|
93
|
-
auth_code: this.paymentCode,
|
|
94
|
-
money: this.money,
|
|
95
|
-
posid: equipment.data[0].f_mac_outlets,
|
|
96
|
-
proinfo: `${this.type}(${this.row.f_userinfo_id})`,
|
|
97
|
-
f_userinfo_id: this.row ? this.row.f_userinfo_id : null,
|
|
98
|
-
f_user_id: this.row ? this.row.f_user_id : null,
|
|
99
|
-
f_userfiles_id: this.row ? this.row.f_userfiles_id : null
|
|
100
|
-
}
|
|
101
|
-
let res = await this.$resetpost('weixin2/rs/pay/jsApiPay', data, {resolveMsg: null, rejectMsg: '服务器内部出错,'})
|
|
102
|
-
this.paymentCodeReturnData = res = res.data
|
|
103
|
-
if (res.result_msg == '支付确认成功') {
|
|
104
|
-
this.paycoderesolve({msg: '支付完成', result: true})
|
|
105
|
-
this.$closeAlert()
|
|
106
|
-
} else if (res.result_msg == '支付确认未知') {
|
|
107
|
-
// 支付结果未知, 根据商户订单号继续查询
|
|
108
|
-
this.$showAlert(`正在查询用户付款状态,请勿进行任何操作,耐心等待,如长时间未响应可手动取消`, 'warning')
|
|
109
|
-
let self = this
|
|
110
|
-
// 启动定时器之前先关闭定时器,防止之前的定时器未关闭
|
|
111
|
-
if (this.timer) {
|
|
112
|
-
this.closeTimer()
|
|
113
|
-
}
|
|
114
|
-
let times = 1
|
|
115
|
-
this.timer = setInterval(async () => {
|
|
116
|
-
times++
|
|
117
|
-
res.filiale = this.$login.f.dir
|
|
118
|
-
res.flag = 'microPayRongHaoJsbc'
|
|
119
|
-
let res1 = await self.$resetpost('weixin2/rs/pay/microPayOrderStatus', res, {resolveMsg: null, rejectMsg: '付款码支付查询出错,'})
|
|
120
|
-
this.paymentCodeReturnData = res1.data
|
|
121
|
-
res1 = res1.data
|
|
122
|
-
// 支付成功关闭定时器
|
|
123
|
-
if (res1.trade_state == '已支付') {
|
|
124
|
-
self.paycoderesolve({msg: '支付完成', result: true})
|
|
125
|
-
self.closeTimer()
|
|
126
|
-
return
|
|
127
|
-
}
|
|
128
|
-
if (res1.result_msg == '扣款失败') {
|
|
129
|
-
this.$showAlert(`支付失败, 请提醒用户重新付款`, 'danger')
|
|
130
|
-
this.closeTimer()
|
|
131
|
-
this.paymentCodeShow = false
|
|
132
|
-
return
|
|
133
|
-
}
|
|
134
|
-
if (times > 24) {
|
|
135
|
-
self.$showAlert(`多次查询未成功,请重新扫描用户付款码`, 'danger')
|
|
136
|
-
self.closeTimer()
|
|
137
|
-
}
|
|
138
|
-
}, 9000)
|
|
139
|
-
} else {
|
|
140
|
-
this.$showAlert(`${res.result_msg}, 请重新扫描用户付款码`, 'danger')
|
|
141
|
-
}
|
|
142
|
-
// 清空付款码
|
|
143
|
-
this.paymentCode = ''
|
|
144
|
-
},
|
|
145
|
-
// 付款成功更新收费记录订单号
|
|
146
|
-
async updateSellinggas () {
|
|
147
|
-
if (this.payment.toString().indexOf('&') !== -1) {
|
|
148
|
-
let sqldata = `update t_sellinggas set f_serial_id = '${this.paymentCodeReturnData.f_out_trade_no}' where id = '${this.sellinggasId}'`
|
|
149
|
-
await this.$resetpost('api/af-revenue/logic/runSQL', {data: {sql: sqldata}}, {resolveMsg: null, rejectMsg: '更新收费记录订单号失败'})
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
// 关闭定时器
|
|
153
|
-
closeTimer () {
|
|
154
|
-
console.log('关闭定时器')
|
|
155
|
-
clearInterval(this.timer)
|
|
156
|
-
this.timer = null
|
|
157
|
-
},
|
|
158
|
-
closeCode () {
|
|
159
|
-
this.$showMessage('取消后无法继续收款,确定取消吗?', ['confirm', 'cancel']).then((res) => {
|
|
160
|
-
if (res == 'confirm') {
|
|
161
|
-
this.paymentCodeShow = false
|
|
162
|
-
this.$closeAlert()
|
|
163
|
-
this.paycoderesolve({msg: '支付取消', result: false})
|
|
164
|
-
this.closeTimer()
|
|
165
|
-
}
|
|
166
|
-
})
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
</script>
|
|
171
|
-
|
|
172
|
-
<style lang="less">
|
|
173
|
-
|
|
174
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div id='PaymentCode'>
|
|
3
|
+
<modal :show.sync="paymentCodeShow" backdrop="false">
|
|
4
|
+
<header slot="modal-header" class="modal-header">
|
|
5
|
+
<h4 class="modal-title">请扫描用户付款码</h4>
|
|
6
|
+
</header>
|
|
7
|
+
<article slot="modal-body" class="modal-body">
|
|
8
|
+
<div class="form-horizontal">
|
|
9
|
+
<div class="form-group">
|
|
10
|
+
<input type="text" class="form-control" @keyup.enter="ConfirmCode" @blur="paycodefocus"
|
|
11
|
+
v-model="paymentCode" placeholder="请扫描用户付款码" v-el:paycode>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
</article>
|
|
15
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
16
|
+
<button type="button" class="btn btn-default" @click='closeCode'>取消</button>
|
|
17
|
+
</footer>
|
|
18
|
+
</modal>
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script>
|
|
23
|
+
export default {
|
|
24
|
+
name: 'PaymentCode',
|
|
25
|
+
props: {
|
|
26
|
+
// 付款方式
|
|
27
|
+
payment: {},
|
|
28
|
+
// 用户信息
|
|
29
|
+
row: {},
|
|
30
|
+
type: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: '燃气收费'
|
|
33
|
+
},
|
|
34
|
+
// 付款金额
|
|
35
|
+
money: {}
|
|
36
|
+
},
|
|
37
|
+
data () {
|
|
38
|
+
return {
|
|
39
|
+
ip:null,
|
|
40
|
+
// 付款码弹框显示
|
|
41
|
+
paymentCodeShow: false,
|
|
42
|
+
// 付款码值
|
|
43
|
+
paymentCode: null,
|
|
44
|
+
// 付款码流程控制
|
|
45
|
+
paycoderesolve: null,
|
|
46
|
+
// 付款码返回数据
|
|
47
|
+
paymentCodeReturnData: {},
|
|
48
|
+
// 定时器
|
|
49
|
+
timer: null,
|
|
50
|
+
// 收费成功id
|
|
51
|
+
sellinggasId: null
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
created () {
|
|
55
|
+
},
|
|
56
|
+
ready () {
|
|
57
|
+
console.log(this.$login.f)
|
|
58
|
+
},
|
|
59
|
+
methods: {
|
|
60
|
+
// 返回结果为true意味着可以通行
|
|
61
|
+
flowPath () {
|
|
62
|
+
return new Promise((resolve) => {
|
|
63
|
+
this.paycoderesolve = resolve
|
|
64
|
+
// 如果是付款码支付则显示界面扫用户付款码收钱
|
|
65
|
+
if (this.payment.toString().indexOf('扫码枪支付') !== -1) {
|
|
66
|
+
this.paymentCodeShow = true
|
|
67
|
+
this.paycodefocus()
|
|
68
|
+
} else {
|
|
69
|
+
this.paycoderesolve({msg: '不是扫码枪支付', result: true})
|
|
70
|
+
}
|
|
71
|
+
})
|
|
72
|
+
},
|
|
73
|
+
// 付款码框获得焦点
|
|
74
|
+
paycodefocus () {
|
|
75
|
+
this.$nextTick(() => {
|
|
76
|
+
this.$els.paycode.focus()
|
|
77
|
+
})
|
|
78
|
+
},
|
|
79
|
+
// 付款码支付流程
|
|
80
|
+
async ConfirmCode () {
|
|
81
|
+
// 付款码支付之前取本机mac号对应的柜台号进行下单
|
|
82
|
+
let equipment = await this.$resetpost('api/af-system/sql/equipmentQuery',
|
|
83
|
+
{data: {condition: `f_equipment_type = 'PC' and f_state = '正常' and f_orgid = '${this.$login.f.orgid}' and f_user_operatorid = '${this.$login.f.id}'`}},
|
|
84
|
+
{resolveMsg: null, rejectMsg: '获取柜台号失败'})
|
|
85
|
+
// console.log('柜台号: ', equipment.data)
|
|
86
|
+
if (equipment.data.length != 1) {
|
|
87
|
+
this.$showMessage(equipment.data.length ? `获取到多个设备, 请核实! ` : `当前设备没有对应的柜台号, 请核实!}`)
|
|
88
|
+
return
|
|
89
|
+
}
|
|
90
|
+
let data = {
|
|
91
|
+
filiale: this.$login.f.dir,
|
|
92
|
+
flag: 'microPayRongHaoJsbc',
|
|
93
|
+
auth_code: this.paymentCode,
|
|
94
|
+
money: this.money,
|
|
95
|
+
posid: equipment.data[0].f_mac_outlets,
|
|
96
|
+
proinfo: `${this.type}(${this.row.f_userinfo_id})`,
|
|
97
|
+
f_userinfo_id: this.row ? this.row.f_userinfo_id : null,
|
|
98
|
+
f_user_id: this.row ? this.row.f_user_id : null,
|
|
99
|
+
f_userfiles_id: this.row ? this.row.f_userfiles_id : null
|
|
100
|
+
}
|
|
101
|
+
let res = await this.$resetpost('weixin2/rs/pay/jsApiPay', data, {resolveMsg: null, rejectMsg: '服务器内部出错,'})
|
|
102
|
+
this.paymentCodeReturnData = res = res.data
|
|
103
|
+
if (res.result_msg == '支付确认成功') {
|
|
104
|
+
this.paycoderesolve({msg: '支付完成', result: true})
|
|
105
|
+
this.$closeAlert()
|
|
106
|
+
} else if (res.result_msg == '支付确认未知') {
|
|
107
|
+
// 支付结果未知, 根据商户订单号继续查询
|
|
108
|
+
this.$showAlert(`正在查询用户付款状态,请勿进行任何操作,耐心等待,如长时间未响应可手动取消`, 'warning')
|
|
109
|
+
let self = this
|
|
110
|
+
// 启动定时器之前先关闭定时器,防止之前的定时器未关闭
|
|
111
|
+
if (this.timer) {
|
|
112
|
+
this.closeTimer()
|
|
113
|
+
}
|
|
114
|
+
let times = 1
|
|
115
|
+
this.timer = setInterval(async () => {
|
|
116
|
+
times++
|
|
117
|
+
res.filiale = this.$login.f.dir
|
|
118
|
+
res.flag = 'microPayRongHaoJsbc'
|
|
119
|
+
let res1 = await self.$resetpost('weixin2/rs/pay/microPayOrderStatus', res, {resolveMsg: null, rejectMsg: '付款码支付查询出错,'})
|
|
120
|
+
this.paymentCodeReturnData = res1.data
|
|
121
|
+
res1 = res1.data
|
|
122
|
+
// 支付成功关闭定时器
|
|
123
|
+
if (res1.trade_state == '已支付') {
|
|
124
|
+
self.paycoderesolve({msg: '支付完成', result: true})
|
|
125
|
+
self.closeTimer()
|
|
126
|
+
return
|
|
127
|
+
}
|
|
128
|
+
if (res1.result_msg == '扣款失败') {
|
|
129
|
+
this.$showAlert(`支付失败, 请提醒用户重新付款`, 'danger')
|
|
130
|
+
this.closeTimer()
|
|
131
|
+
this.paymentCodeShow = false
|
|
132
|
+
return
|
|
133
|
+
}
|
|
134
|
+
if (times > 24) {
|
|
135
|
+
self.$showAlert(`多次查询未成功,请重新扫描用户付款码`, 'danger')
|
|
136
|
+
self.closeTimer()
|
|
137
|
+
}
|
|
138
|
+
}, 9000)
|
|
139
|
+
} else {
|
|
140
|
+
this.$showAlert(`${res.result_msg}, 请重新扫描用户付款码`, 'danger')
|
|
141
|
+
}
|
|
142
|
+
// 清空付款码
|
|
143
|
+
this.paymentCode = ''
|
|
144
|
+
},
|
|
145
|
+
// 付款成功更新收费记录订单号
|
|
146
|
+
async updateSellinggas () {
|
|
147
|
+
if (this.payment.toString().indexOf('&') !== -1) {
|
|
148
|
+
let sqldata = `update t_sellinggas set f_serial_id = '${this.paymentCodeReturnData.f_out_trade_no}' where id = '${this.sellinggasId}'`
|
|
149
|
+
await this.$resetpost('api/af-revenue/logic/runSQL', {data: {sql: sqldata}}, {resolveMsg: null, rejectMsg: '更新收费记录订单号失败'})
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
// 关闭定时器
|
|
153
|
+
closeTimer () {
|
|
154
|
+
console.log('关闭定时器')
|
|
155
|
+
clearInterval(this.timer)
|
|
156
|
+
this.timer = null
|
|
157
|
+
},
|
|
158
|
+
closeCode () {
|
|
159
|
+
this.$showMessage('取消后无法继续收款,确定取消吗?', ['confirm', 'cancel']).then((res) => {
|
|
160
|
+
if (res == 'confirm') {
|
|
161
|
+
this.paymentCodeShow = false
|
|
162
|
+
this.$closeAlert()
|
|
163
|
+
this.paycoderesolve({msg: '支付取消', result: false})
|
|
164
|
+
this.closeTimer()
|
|
165
|
+
}
|
|
166
|
+
})
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
</script>
|
|
171
|
+
|
|
172
|
+
<style lang="less">
|
|
173
|
+
|
|
174
|
+
</style>
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="auto">
|
|
3
|
-
<surplus-record-detail :row.sync="row"></surplus-record-detail>
|
|
4
|
-
<iot-compensation v-if="row.f_meter_type.includes('物联网表')" :row.sync="row"></iot-compensation>
|
|
5
|
-
<jb-compensation v-if="row.f_meter_type.includes('机表')||row.f_meter_type.includes('卡表')" :row.sync="row"></jb-compensation>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
</div>
|
|
9
|
-
</template>
|
|
10
|
-
<script>
|
|
11
|
-
import IotCompensation from './IotCompensation'
|
|
12
|
-
import JbCompensation from './JbCompensation'
|
|
13
|
-
import SurplusRecordDetail from './SurplusRecordDetail'
|
|
14
|
-
|
|
15
|
-
export default {
|
|
16
|
-
components: {IotCompensation, JbCompensation, SurplusRecordDetail},
|
|
17
|
-
title: '调价补差',
|
|
18
|
-
data () {
|
|
19
|
-
return {
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
props: ['row'],
|
|
23
|
-
ready () {
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto">
|
|
3
|
+
<surplus-record-detail :row.sync="row"></surplus-record-detail>
|
|
4
|
+
<iot-compensation v-if="row.f_meter_type.includes('物联网表')" :row.sync="row"></iot-compensation>
|
|
5
|
+
<jb-compensation v-if="row.f_meter_type.includes('机表')||row.f_meter_type.includes('卡表')" :row.sync="row"></jb-compensation>
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
</div>
|
|
9
|
+
</template>
|
|
10
|
+
<script>
|
|
11
|
+
import IotCompensation from './IotCompensation'
|
|
12
|
+
import JbCompensation from './JbCompensation'
|
|
13
|
+
import SurplusRecordDetail from './SurplusRecordDetail'
|
|
14
|
+
|
|
15
|
+
export default {
|
|
16
|
+
components: {IotCompensation, JbCompensation, SurplusRecordDetail},
|
|
17
|
+
title: '调价补差',
|
|
18
|
+
data () {
|
|
19
|
+
return {
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
props: ['row'],
|
|
23
|
+
ready () {
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
</script>
|