apply-clients 4.1.57-weinan → 4.1.59-weinan
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/package.json
CHANGED
|
@@ -206,7 +206,8 @@ export default {
|
|
|
206
206
|
},
|
|
207
207
|
title1:'',
|
|
208
208
|
// 收费编号
|
|
209
|
-
f_charge_number:''
|
|
209
|
+
f_charge_number:'',
|
|
210
|
+
state:'结束'
|
|
210
211
|
}
|
|
211
212
|
},
|
|
212
213
|
ready () {
|
|
@@ -234,41 +235,42 @@ export default {
|
|
|
234
235
|
this.$dispatch('breakControl')
|
|
235
236
|
},*/
|
|
236
237
|
// 获取订单信息
|
|
237
|
-
|
|
238
|
+
getOrderInformation () {
|
|
239
|
+
this.state = '开始'
|
|
238
240
|
// 查询订单信息
|
|
239
241
|
console.log('查询订单信息!!!')
|
|
240
|
-
// let data = {
|
|
241
|
-
// out_trade_no: this.order.out_trade_no,
|
|
242
|
-
// filiale: this.config[Vue.user.number]
|
|
243
|
-
// }
|
|
244
242
|
// 查询订单状态
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
243
|
+
try {
|
|
244
|
+
let http = new HttpResetClass()
|
|
245
|
+
let res = http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {
|
|
246
|
+
data: {
|
|
247
|
+
tablename: "t_weixinreturnxml",
|
|
248
|
+
condition: ` f_out_trade_no = '${this.order.f_out_trade_no}' and f_order_state = '已支付' `,
|
|
249
|
+
}
|
|
250
|
+
}, {
|
|
251
|
+
resolveMsg: null,
|
|
252
|
+
rejectMsg: '订单查询失败!!!'
|
|
253
|
+
})
|
|
254
|
+
console.log('8888888888')
|
|
255
|
+
console.log(this.order.f_out_trade_no)
|
|
256
|
+
console.log(JSON.stringify(res))
|
|
257
|
+
// 支付成功
|
|
258
|
+
if (res.data.length > 0) {
|
|
259
|
+
this.$showMessage('支付成功!!!')
|
|
260
|
+
clearTimeout(this.paymentInterval)
|
|
261
|
+
clearTimeout(this.orderInterval)
|
|
262
|
+
this.timeLeft = 300
|
|
263
|
+
// 修改支付状态
|
|
264
|
+
this.updatestate('支付成功','有效')
|
|
265
|
+
this.saveother()
|
|
266
|
+
// 清除二维码
|
|
267
|
+
this.clearQrCode()
|
|
268
|
+
this.showQrCode = false
|
|
251
269
|
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
rejectMsg: '订单查询失败!!!'
|
|
255
|
-
})
|
|
256
|
-
console.log('8888888888')
|
|
257
|
-
console.log(this.order.f_out_trade_no)
|
|
258
|
-
console.log(JSON.stringify(res))
|
|
259
|
-
// 支付成功
|
|
260
|
-
if (res.data.length > 0) {
|
|
261
|
-
this.$showMessage('支付成功!!!')
|
|
262
|
-
clearTimeout(this.paymentInterval)
|
|
263
|
-
clearTimeout(this.orderInterval)
|
|
264
|
-
this.timeLeft = 300
|
|
265
|
-
// 修改支付状态
|
|
266
|
-
this.updatestate('支付成功','有效')
|
|
267
|
-
this.saveother()
|
|
268
|
-
// 清除二维码
|
|
269
|
-
this.clearQrCode()
|
|
270
|
-
this.showQrCode = false
|
|
270
|
+
}catch (e){
|
|
271
|
+
this.state = '结束'
|
|
271
272
|
}
|
|
273
|
+
this.state = '结束'
|
|
272
274
|
},
|
|
273
275
|
checkApplyModel(){
|
|
274
276
|
console.log(this.charge.payment_terms)
|
|
@@ -315,13 +317,13 @@ export default {
|
|
|
315
317
|
tablename: 't_userinfo',
|
|
316
318
|
condition: `f_userinfo_id = '${this.selectdata.f_userinfo_id}'`
|
|
317
319
|
}
|
|
318
|
-
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data1}, {resolveMsg: null, rejectMsg: '获取数据失败'}).then(res1=>{
|
|
320
|
+
await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable`, {data: data1}, {resolveMsg: null, rejectMsg: '获取数据失败'}).then(res1=>{
|
|
319
321
|
this.$showMessage( `确认对${res1.data[0].f_user_name}进行${this.charge.f_payment_method}收费?`,['confirm', 'cancel']).then((res)=>{
|
|
320
322
|
if (res=='confirm'){
|
|
321
323
|
http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/logic/beforeAddChargeRecord`,{data:info},{
|
|
322
324
|
resolveMsg: null,
|
|
323
325
|
rejectMsg: null
|
|
324
|
-
}).then(res=>{
|
|
326
|
+
}).then(async (res)=>{
|
|
325
327
|
console.log(res.data)
|
|
326
328
|
if (res.data.code == '200') {
|
|
327
329
|
this.$showMessage('缴费成功!')
|
|
@@ -360,7 +362,7 @@ export default {
|
|
|
360
362
|
console.log('下单信息')
|
|
361
363
|
console.log(JSON.stringify(data))
|
|
362
364
|
// 下订单
|
|
363
|
-
|
|
365
|
+
http.load('POST', `${this.$androidUtil.getProxyUrl()}/wx/rs/pay/jsApiPay`, data, {
|
|
364
366
|
resolveMsg: null,
|
|
365
367
|
rejectMsg: '订单生成失败!!!'
|
|
366
368
|
}).then(
|
|
@@ -369,40 +371,40 @@ export default {
|
|
|
369
371
|
console.log("数据测试"+JSON.stringify(res.data))
|
|
370
372
|
this.order = res.data
|
|
371
373
|
console.log("数据测试"+this.order)
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
this.timeLeft = this.timeLeft - 1
|
|
394
|
-
},1000)
|
|
374
|
+
let info = {
|
|
375
|
+
apply: this.selectdata,
|
|
376
|
+
charge: this.charge,
|
|
377
|
+
user: Vue.user,
|
|
378
|
+
f_out_trade_no:this.order.f_out_trade_no
|
|
379
|
+
}
|
|
380
|
+
http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/logic/beforeAddChargeRecord`,{data:info},{
|
|
381
|
+
resolveMsg: null,
|
|
382
|
+
rejectMsg: null
|
|
383
|
+
}).then(ress=>{
|
|
384
|
+
console.log('ress',ress)
|
|
385
|
+
if(ress.data.code == '200'){
|
|
386
|
+
this.f_charge_number = ress.data.f_charge_number
|
|
387
|
+
this.showQrCode = true
|
|
388
|
+
this.$nextTick(()=>{
|
|
389
|
+
this.qrcode()
|
|
390
|
+
})
|
|
391
|
+
// 剩余支付时间
|
|
392
|
+
this.paymentInterval = setInterval(() => {
|
|
393
|
+
this.timeLeft = this.timeLeft - 1
|
|
394
|
+
},1000)
|
|
395
395
|
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
396
|
+
// 3秒查询一次订单支付信息
|
|
397
|
+
this.orderInterval = setInterval(() => {
|
|
398
|
+
if(this.state == '结束'){
|
|
399
|
+
this.getOrderInformation()
|
|
400
|
+
}
|
|
401
|
+
},3000)
|
|
402
|
+
}else{
|
|
403
|
+
this.$showMessage('订单生成失败')
|
|
404
|
+
}
|
|
405
|
+
})
|
|
402
406
|
}
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
407
|
+
)
|
|
406
408
|
},
|
|
407
409
|
accMul(arg1,arg2) {
|
|
408
410
|
let m = 0, s1 = arg1.toString(), s2 = arg2.toString();
|