From 39ce237292a59d8518cbf2afa119ccac597b3fb9 Mon Sep 17 00:00:00 2001 From: lxf Date: Fri, 17 Jan 2025 15:23:45 +0800 Subject: [PATCH] fix: 下单时,优化数字小数点回退问题 --- pages/order/add.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pages/order/add.vue b/pages/order/add.vue index cd9a944..d1edc97 100644 --- a/pages/order/add.vue +++ b/pages/order/add.vue @@ -464,11 +464,14 @@ export default { }; uni.$u.api.freightOrder.getServiceAmount(params).then(res => { if (res.success) { - this.form.paidAmount = res.result.paidAmount || paidAmount; - this.form.deliveryAmount = res.result.deliveryAmount || deliveryAmount; - this.form.prepaidAmount = res.result.prepaidAmount || prepaidAmount; - this.form.oilAmount = res.result.oilAmount || oilAmount; - this.form.balancePaymentAmount = res.result.balancePaymentAmount || balancePaymentAmount; + // this.form.paidAmount = res.result.paidAmount || paidAmount; + // this.form.prepaidAmount = res.result.prepaidAmount || prepaidAmount; + // this.form.oilAmount = res.result.oilAmount || oilAmount; + if (this.autoComputedArrival) { + this.form.deliveryAmount = res.result.deliveryAmount || deliveryAmount; + } else { + this.form.balancePaymentAmount = res.result.balancePaymentAmount || balancePaymentAmount; + } this.form.oilPayRebateRate = res.result.oilPayRebateRate || ''; this.form.driverSecurityServiceAmount = res.result.driverSecurityServiceAmount || ''; this.form.securityServiceAmount = res.result.securityServiceAmount || ''; -- libgit2 0.21.0