diff --git a/src/pages/05_quotation/QuotationFormInfo.vue b/src/pages/05_quotation/QuotationFormInfo.vue index 3735e92b..500541a0 100644 --- a/src/pages/05_quotation/QuotationFormInfo.vue +++ b/src/pages/05_quotation/QuotationFormInfo.vue @@ -186,9 +186,10 @@ watch( (v) => { if (props.mode === 'info') return; if (v === 'Split' || v === 'BillSplit') { - paySplitCount.value = 1; + if (paySplitCount.value === 0) paySplitCount.value = 1; } else { paySplitCount.value = 0; + paySplit.value = []; } }, ); @@ -196,7 +197,7 @@ watch( watch( () => [paySplitCount.value, summaryPrice.value.finalPrice], ([newCount, _newF], [oldCount, _oldF]) => { - if (props.mode === 'info') return; + if (props.mode === 'info' || paySplitCount.value === 0) return; calculateInstallments({ newCount: newCount || 0, oldCount: oldCount || 0 }); if (newCount !== oldCount) { paySplit.value[0].date && installmentsDate(paySplit.value[0].date);