From 60c27456277d884bc2e61bf2920812704f132709 Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Wed, 27 Nov 2024 09:19:42 +0700 Subject: [PATCH] fix: value pay split change --- src/pages/05_quotation/QuotationFormInfo.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/05_quotation/QuotationFormInfo.vue b/src/pages/05_quotation/QuotationFormInfo.vue index 3d8553c4..de60bfd2 100644 --- a/src/pages/05_quotation/QuotationFormInfo.vue +++ b/src/pages/05_quotation/QuotationFormInfo.vue @@ -175,7 +175,8 @@ watch( if ( paySplitCount.value === 0 || !paySplitCount.value || - !summaryPrice.value.finalPrice + !summaryPrice.value.finalPrice || + props.readonly ) { return; } @@ -287,6 +288,8 @@ watch( @focus="(e) => (e.target as HTMLInputElement).select()" @update:model-value=" (v) => { + if (readonly) return; + if (typeof v === 'string') amount4Show[i] = commaInput(v); const x = parseFloat( amount4Show[i] && typeof amount4Show[i] === 'string'