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