|
|
@@ -166,7 +166,7 @@ export default {
|
|
166
|
166
|
this.paymentInfo.bankName = newVal.bankName || ''
|
|
167
|
167
|
this.paymentInfo.bankAccount = newVal.bankCardNumber || ''
|
|
168
|
168
|
this.paymentInfo.idNumber = newVal.idCard || ''
|
|
169
|
|
- this.paymentAmount = newVal.tableFee || '0.00'
|
|
|
169
|
+ // this.paymentAmount = newVal.tableFee || '0.00'
|
|
170
|
170
|
}
|
|
171
|
171
|
},
|
|
172
|
172
|
deep: true,
|
|
|
@@ -354,19 +354,35 @@ export default {
|
|
354
|
354
|
},
|
|
355
|
355
|
|
|
356
|
356
|
// 立即支付按钮点击事件
|
|
357
|
|
- handlePayNowClick() {
|
|
|
357
|
+ async handlePayNowClick() {
|
|
|
358
|
+ //保存
|
|
|
359
|
+ await uni.$u.api.updateReceiptForm({
|
|
|
360
|
+ id: this.currentReceipt.id,
|
|
|
361
|
+ tableFee: this.paymentAmount,
|
|
|
362
|
+ fileIds: this.detailImages.map(item => item.id).join(',')
|
|
|
363
|
+ });
|
|
|
364
|
+
|
|
|
365
|
+ //保存上面的支付信息
|
|
|
366
|
+ await uni.$u.api.updateClueOrderForm({
|
|
|
367
|
+ id: this.orderDetail.id,
|
|
|
368
|
+ customName: this.paymentInfo.customName || '',
|
|
|
369
|
+ bankName: this.paymentInfo.bankName || '',
|
|
|
370
|
+ bankCardNumber: this.paymentInfo.bankAccount || '',
|
|
|
371
|
+ idCard: this.paymentInfo.idNumber || '',
|
|
|
372
|
+ });
|
|
|
373
|
+
|
|
358
|
374
|
console.log('点击了立即支付按钮');
|
|
359
|
375
|
this.payNowModelShow = true;
|
|
360
|
376
|
|
|
361
|
377
|
//让父组件保存数据
|
|
362
|
|
- this.$emit('handleNeedSave', {
|
|
363
|
|
- fileIds: this.detailImages.map(item => item.id).join(','),
|
|
364
|
|
- nowPage: 'formThree',
|
|
365
|
|
- form: {
|
|
366
|
|
- ...this.paymentInfo,
|
|
367
|
|
- paymentAmount: this.paymentAmount
|
|
368
|
|
- }
|
|
369
|
|
- });
|
|
|
378
|
+ // this.$emit('handleNeedSave', {
|
|
|
379
|
+ // fileIds: this.detailImages.map(item => item.id).join(','),
|
|
|
380
|
+ // nowPage: 'formThree',
|
|
|
381
|
+ // form: {
|
|
|
382
|
+ // ...this.paymentInfo,
|
|
|
383
|
+ // paymentAmount: this.paymentAmount
|
|
|
384
|
+ // }
|
|
|
385
|
+ // });
|
|
370
|
386
|
},
|
|
371
|
387
|
|
|
372
|
388
|
|
|
|
@@ -380,14 +396,28 @@ export default {
|
|
380
|
396
|
this.$emit('handleConfirmPay');
|
|
381
|
397
|
},
|
|
382
|
398
|
// 下一步按钮点击事件
|
|
383
|
|
- handleNextClick() {
|
|
384
|
|
- console.log('page3点击了下一步按钮', this.detailImages);
|
|
385
|
|
- this.$emit('handleNextClick', {
|
|
386
|
|
- nowPage: 'formThree',
|
|
387
|
|
- form: {
|
|
388
|
|
- ...this.paymentInfo
|
|
389
|
|
- }
|
|
|
399
|
+ async handleNextClick() {
|
|
|
400
|
+ await uni.$u.api.updateReceiptForm({
|
|
|
401
|
+ id: this.currentReceipt.id,
|
|
|
402
|
+ tableFee: this.paymentAmount,
|
|
|
403
|
+ fileIds: this.detailImages.map(item => item.id).join(',')
|
|
|
404
|
+ });
|
|
|
405
|
+
|
|
|
406
|
+ await uni.$u.api.updateClueOrderForm({
|
|
|
407
|
+ id: this.orderDetail.id,
|
|
|
408
|
+ customName: this.paymentInfo.customName || '',
|
|
|
409
|
+ bankName: this.paymentInfo.bankName || '',
|
|
|
410
|
+ bankCardNumber: this.paymentInfo.bankAccount || '',
|
|
|
411
|
+ idCard: this.paymentInfo.idNumber || '',
|
|
390
|
412
|
});
|
|
|
413
|
+
|
|
|
414
|
+ console.log('page3点击了下一步按钮', this.detailImages);
|
|
|
415
|
+ // this.$emit('handleNextClick', {
|
|
|
416
|
+ // nowPage: 'formThree',
|
|
|
417
|
+ // form: {
|
|
|
418
|
+ // ...this.paymentInfo
|
|
|
419
|
+ // }
|
|
|
420
|
+ // });
|
|
391
|
421
|
},
|
|
392
|
422
|
|
|
393
|
423
|
// 确认未收按钮点击事件
|