Commit 39ce237292a59d8518cbf2afa119ccac597b3fb9

Authored by lxf
1 parent 240d061c

fix: 下单时,优化数字小数点回退问题

Showing 1 changed file with 8 additions and 5 deletions   Show diff stats
pages/order/add.vue
@@ -464,11 +464,14 @@ export default { @@ -464,11 +464,14 @@ export default {
464 }; 464 };
465 uni.$u.api.freightOrder.getServiceAmount(params).then(res => { 465 uni.$u.api.freightOrder.getServiceAmount(params).then(res => {
466 if (res.success) { 466 if (res.success) {
467 - this.form.paidAmount = res.result.paidAmount || paidAmount;  
468 - this.form.deliveryAmount = res.result.deliveryAmount || deliveryAmount;  
469 - this.form.prepaidAmount = res.result.prepaidAmount || prepaidAmount;  
470 - this.form.oilAmount = res.result.oilAmount || oilAmount;  
471 - this.form.balancePaymentAmount = res.result.balancePaymentAmount || balancePaymentAmount; 467 + // this.form.paidAmount = res.result.paidAmount || paidAmount;
  468 + // this.form.prepaidAmount = res.result.prepaidAmount || prepaidAmount;
  469 + // this.form.oilAmount = res.result.oilAmount || oilAmount;
  470 + if (this.autoComputedArrival) {
  471 + this.form.deliveryAmount = res.result.deliveryAmount || deliveryAmount;
  472 + } else {
  473 + this.form.balancePaymentAmount = res.result.balancePaymentAmount || balancePaymentAmount;
  474 + }
472 this.form.oilPayRebateRate = res.result.oilPayRebateRate || ''; 475 this.form.oilPayRebateRate = res.result.oilPayRebateRate || '';
473 this.form.driverSecurityServiceAmount = res.result.driverSecurityServiceAmount || ''; 476 this.form.driverSecurityServiceAmount = res.result.driverSecurityServiceAmount || '';
474 this.form.securityServiceAmount = res.result.securityServiceAmount || ''; 477 this.form.securityServiceAmount = res.result.securityServiceAmount || '';