sale-client 4.2.71 → 4.2.72
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 +58 -36
- package/index.html +7 -2
- package/package.json +1 -1
- package/src/App.vue +1 -1
- package/src/components/FilesManage/FileUserFiles.vue +1 -1
- package/src/components/revenue/Common/EticketPrint.vue +2 -2
- package/src/components/revenue/HandManager/CardHand.vue +6 -6
- package/src/components/revenue/HandManager/MeterBookUser.vue +726 -726
- package/src/components/revenue/cardHandManage/cardDown.vue +6 -6
- 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/machineHandManage/ArrearsQuery.vue +938 -938
- package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +1 -1
- package/src/components/webMeter/paramSave/ParamSetForm.vue +1 -1
- package/src/filiale/alashan/FileUserFiles.vue +1 -1
- package/src/filiale/alashan/eticket/EticketPrint.vue +2 -2
- package/src/filiale/alashan/eticket/EticketRecordList.vue +428 -428
- package/src/filiale/ancheng/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/bayan/ChargeList.vue +1010 -1010
- package/src/filiale/bayan/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/bayan/StockListmain.vue +543 -543
- package/src/filiale/bazhong/UserInfoDetailManageNew.vue +245 -245
- package/src/filiale/bazhong/ic_detail/ChangeMeterQueryUser.vue +370 -370
- package/src/filiale/bazhong/sale.js +8 -8
- package/src/filiale/beifangshiye/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/beifangshiye/OtherChargeNew.vue +625 -625
- package/src/filiale/chengtou/components/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/dexin/FileUserFiles.vue +1 -1
- package/src/filiale/dongguan/components/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/dongguan/components/common/userinfo_detail/WebMeterBatchOperationValve.vue +1 -1
- package/src/filiale/fugou/FileUserFiles.vue +1 -1
- package/src/filiale/ganquan/components/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/gaomi/components/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/gehua/FileManageNew/FileUserFiles.vue +1 -1
- package/src/filiale/gehua/FileUserFiles.vue +1 -1
- package/src/filiale/guangxi/WebMeterBatchOperationValve.vue +1 -1
- package/src/filiale/haile/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/hantou/WebMeterBatchOperationValve.vue +1 -1
- package/src/filiale/huaran/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/huayin/FileUserFiles.vue +1 -1
- package/src/filiale/jingwei/FileUserFiles.vue +1 -1
- package/src/filiale/jingyang/EticketPrint.vue +2 -2
- package/src/filiale/jingyang/GovernmentSell.vue +1 -1
- package/src/filiale/jinhuang/WebHand.vue +1026 -1026
- package/src/filiale/jinhuang/cardsHand.vue +8 -8
- package/src/filiale/kelai/FileUserFilesKeLai.vue +1 -1
- package/src/filiale/konggang/FileUserFiles.vue +1 -1
- package/src/filiale/lixianV3/ArrearsQuery.vue +938 -938
- package/src/filiale/lixianV3/InsuranceChargesDetails.vue +425 -425
- package/src/filiale/macheng/EstimateManager.vue +1 -1
- package/src/filiale/macheng/FileUserFiles.vue +1 -1
- package/src/filiale/meihekou/FileUserFiles.vue +1 -1
- package/src/filiale/meihekou/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +281 -281
- package/src/filiale/ningjin/FileUserFiles.vue +1 -1
- package/src/filiale/qianneng/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/qianneng/revenue/sms/AccountMessageList.vue +1 -1
- package/src/filiale/qingjian/FileUserFiles.vue +1 -1
- package/src/filiale/rizhao/FileUserFiles.vue +1 -1
- package/src/filiale/rongcheng/FileUserFiles.vue +1 -1
- package/src/filiale/rongchuang/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/ronghao/ArrearsQuery.vue +974 -974
- package/src/filiale/ronghao/CardService.js +2144 -2144
- 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/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/replacementSingleInfoOperation.vue +315 -315
- package/src/filiale/ronghao/specificInformation.vue +537 -537
- package/src/filiale/shanggao/FileUserFiles.vue +1 -1
- package/src/filiale/shanxian/components/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/shanxian/components/webMeter/WebMeterBatchOperationValve.vue +1 -1
- package/src/filiale/shaoguan/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/shaoguan/Message/MessageList.vue +1 -1
- package/src/filiale/shexian/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/wenxi/FileUserFiles.vue +1 -1
- package/src/filiale/wuan/FileUserFiles.vue +1 -1
- package/src/filiale/xinkang/WebMeterBatchOperationValve.vue +1 -1
- package/src/filiale/yangchun/ChargeList.vue +954 -954
- package/src/filiale/yangchun/EticketPrint.vue +2 -2
- package/src/filiale/yangchun/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/yuncheng/FileManageService.js +469 -469
- package/src/filiale/yuncheng/changemeterListMaintain.vue +504 -504
- package/src/filiale/zhongsheng/BlackListList.vue +293 -293
- package/src/filiale/zhongsheng/FilesManage/FileUserFiles.vue +1 -1
- package/src/filiale/zhongyi/FileUserFiles.vue +1 -1
- package/src/filiale/zhongyi/HandQueryUser.vue +389 -389
- 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/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/.gradle/vcs-1/gc.properties +0 -0
- package/src/components/FilesManage/addressts/FileUserFilests.vue +0 -671
- package/src/components/FilesManage/ncUserinfoList.vue +0 -315
- package/src/components/SellGasCharge/MeterCharge/CardDataRewrite.vue +0 -107
- package/src/components/SendCard/SendCardData.vue +0 -208
- package/src/components/accounts/accountAdd.vue +0 -276
- package/src/components/accounts/accountsList.vue +0 -183
- package/src/components/accounts/accountsManage.vue +0 -87
- package/src/components/common/chargeinfo/chargeinfo.vue +0 -55
- package/src/components/common/userinfo_detail/config/exportConfig.js +0 -85
- package/src/components/ncarchives/ncArchivesAdd.vue +0 -468
- package/src/components/ncarchives/ncArchivesList.vue +0 -159
- package/src/components/ncarchives/ncUserfilesList.vue +0 -373
- package/src/components/ncarchives/ncarchivesmanage.vue +0 -80
- package/src/components/revenue/IOTArrears/arrears.vue +0 -323
- package/src/components/revenue/IOTArrears/iotRechargeAudit.vue +0 -369
- package/src/components/revenue/base/rightview/carddetail/cardiotfeeChangeDetail.vue +0 -59
- package/src/components/revenue/base/rightview/carddetail/reduceChangeDetail.vue +0 -59
- package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchCancellationts.vue +0 -73
- package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchEnablets.vue +0 -73
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/ReduceAddGas.vue +0 -199
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icdeductionManage.vue +0 -24
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icdeductionYSManage.vue +0 -24
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icfeeDeduction.vue +0 -185
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icfeeYSDeduction.vue +0 -185
- package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/ChangeFlowMeter.vue +0 -356
- package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/CorrectionMeter.vue +0 -148
- package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackUserList.vue +0 -136
- package/src/components/revenue/recordMainten/sellinggas/AddWarehousemain.vue +0 -65
- package/src/components/revenue/recordMainten/sellinggas/MeterOperateAdd.vue +0 -483
- package/src/components/revenue/recordMainten/sellinggas/MeterOperatemain.vue +0 -279
- package/src/components/revenue/recordMainten/sellinggas/MeterOperatemainImport.vue +0 -265
- package/src/components/thirdapply/thirdAdd.vue +0 -289
- package/src/components/thirdapply/thirdList.vue +0 -162
- package/src/components/thirdapply/thirdManage.vue +0 -74
- package/src/components/webMeter/InstructQuery.vue +0 -414
- package/src/components/webMeter/ParamSet/ParamSet.vue +0 -556
- package/src/components/webMeter/ParamSet/ParamSetForm.vue +0 -296
- package/src/components/webMeter/WebUserHand.vue +0 -483
- package/src/components/webMeter/instructionView/NewQueryInstruct.vue +0 -509
- package/src/components/webMeter/instructionView/NewQueryInstructMain.vue +0 -48
- package/src/components/webMeter/webManage/NewMeterList.vue +0 -461
- package/src/plugins/FileManageServicets.js +0 -214
- package/src/plugins/GetImg.js +0 -53
|
@@ -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>
|