apply-clients 4.1.58-weinan → 4.1.60-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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "4.1.58-weinan",
3
+ "version": "4.1.60-weinan",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -235,14 +235,14 @@ export default {
235
235
  this.$dispatch('breakControl')
236
236
  },*/
237
237
  // 获取订单信息
238
- async getOrderInformation () {
238
+ getOrderInformation () {
239
239
  this.state = '开始'
240
240
  // 查询订单信息
241
241
  console.log('查询订单信息!!!')
242
242
  // 查询订单状态
243
243
  try {
244
244
  let http = new HttpResetClass()
245
- let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {
245
+ let res = http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {
246
246
  data: {
247
247
  tablename: "t_weixinreturnxml",
248
248
  condition: ` f_out_trade_no = '${this.order.f_out_trade_no}' and f_order_state = '已支付' `,
@@ -317,13 +317,13 @@ export default {
317
317
  tablename: 't_userinfo',
318
318
  condition: `f_userinfo_id = '${this.selectdata.f_userinfo_id}'`
319
319
  }
320
- 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=>{
321
321
  this.$showMessage( `确认对${res1.data[0].f_user_name}进行${this.charge.f_payment_method}收费?`,['confirm', 'cancel']).then((res)=>{
322
322
  if (res=='confirm'){
323
323
  http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/logic/beforeAddChargeRecord`,{data:info},{
324
324
  resolveMsg: null,
325
325
  rejectMsg: null
326
- }).then(res=>{
326
+ }).then(async (res)=>{
327
327
  console.log(res.data)
328
328
  if (res.data.code == '200') {
329
329
  this.$showMessage('缴费成功!')
@@ -362,7 +362,7 @@ export default {
362
362
  console.log('下单信息')
363
363
  console.log(JSON.stringify(data))
364
364
  // 下订单
365
- await http.load('POST', `${this.$androidUtil.getProxyUrl()}/wx/rs/pay/jsApiPay`, data, {
365
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/wx/rs/pay/jsApiPay`, data, {
366
366
  resolveMsg: null,
367
367
  rejectMsg: '订单生成失败!!!'
368
368
  }).then(
@@ -371,42 +371,40 @@ export default {
371
371
  console.log("数据测试"+JSON.stringify(res.data))
372
372
  this.order = res.data
373
373
  console.log("数据测试"+this.order)
374
- }
375
- )
376
- let info = {
377
- apply: this.selectdata,
378
- charge: this.charge,
379
- user: Vue.user,
380
- f_out_trade_no:this.order.f_out_trade_no
381
- }
382
- http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/logic/beforeAddChargeRecord`,{data:info},{
383
- resolveMsg: null,
384
- rejectMsg: null
385
- }).then(ress=>{
386
- console.log('ress',ress)
387
- if(ress.data.code == '200'){
388
- this.f_charge_number = ress.data.f_charge_number
389
- this.showQrCode = true
390
- this.$nextTick(()=>{
391
- this.qrcode()
392
- })
393
- // 剩余支付时间
394
- this.paymentInterval = setInterval(() => {
395
- this.timeLeft = this.timeLeft - 1
396
- },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)
397
395
 
398
- // 3秒查询一次订单支付信息
399
- this.orderInterval = setInterval(() => {
400
- if(this.state == '结束'){
401
- this.getOrderInformation()
396
+ // 3秒查询一次订单支付信息
397
+ this.orderInterval = setInterval(() => {
398
+ if(this.state == '结束'){
399
+ this.getOrderInformation()
400
+ }
401
+ },3000)
402
+ }else{
403
+ this.$showMessage('订单生成失败')
402
404
  }
403
- },3000)
404
- }else{
405
- this.$showMessage('订单生成失败')
405
+ })
406
406
  }
407
- })
408
-
409
-
407
+ )
410
408
  },
411
409
  accMul(arg1,arg2) {
412
410
  let m = 0, s1 = arg1.toString(), s2 = arg2.toString();
@@ -653,7 +651,7 @@ export default {
653
651
  "f_collection":this.selectdata.f_cost_sum,
654
652
  "f_comments":"",
655
653
  "f_payment":this.charge.f_payment_method,
656
- "f_voucher_number":"",
654
+ "f_voucher_number":this.order.f_out_trade_no,
657
655
  "f_bill_style":"普通收据",
658
656
  "f_userinfo_id":res.data[0].f_userinfo_id,
659
657
  "f_service_person":Vue.user.name,