From 3ff4c9d4f4c93e128245d57785a6276f3080421d Mon Sep 17 00:00:00 2001 From: puriphatt Date: Tue, 15 Oct 2024 09:42:37 +0700 Subject: [PATCH] fix: installment split --- src/pages/05_quotation/QuotationFormInfo.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pages/05_quotation/QuotationFormInfo.vue b/src/pages/05_quotation/QuotationFormInfo.vue index 9c6dfab7..bcb529b3 100644 --- a/src/pages/05_quotation/QuotationFormInfo.vue +++ b/src/pages/05_quotation/QuotationFormInfo.vue @@ -132,8 +132,8 @@ watch( ); watch( - () => paySplitCount.value, - (newCount, oldCount) => { + () => [paySplitCount.value, summaryPrice.value.finalPrice], + ([newCount, _newF], [oldCount, _oldF]) => { if (newCount !== null && oldCount !== null) { const totalAmount = summaryPrice.value.finalPrice; @@ -342,7 +342,6 @@ watch( :label="$t('quotation.amount')" :model-value="formatNumberDecimal(period.amount, 2)" dense - readonly outlined bg-color="input-border" >