From 0066198c3ca6073fa328e2401a49658d2dd526a6 Mon Sep 17 00:00:00 2001 From: "DESKTOP-8FGKA8Q\\chunfen" Date: Fri, 10 Oct 2025 13:46:34 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=91=E9=A2=9D=E8=AE=A1=E7=AE=97=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/approval/detail.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/approval/detail.vue b/src/components/approval/detail.vue index 71092ea..89647a7 100644 --- a/src/components/approval/detail.vue +++ b/src/components/approval/detail.vue @@ -261,11 +261,14 @@ export default { item.advance_payment = ((item.estimated_order_amount * item.prepayment_ratio) / 100).toFixed(2) item.balance_payment = (((item.estimated_order_amount * 100) - (item.advance_payment * 100)) / 100).toFixed(2) } - num1 += item.expect_unit_price * item.expect_quantity * 100 + let num = item.expect_unit_price * item.expect_quantity * 100 + num1 += num + if(item.prepayment_ratio) { - num2 += num1 * item.prepayment_ratio + num2 += num * item.prepayment_ratio } } + if(itm.type == 3) { item.apply_amount = itm.extend.products[index].apply_amount item.real_quantity = itm.extend.products[index].real_quantity -- 2.47.2