diff --git a/src/pages/05_quotation/QuotationForm.vue b/src/pages/05_quotation/QuotationForm.vue index 504a19f3..f34b4e0e 100644 --- a/src/pages/05_quotation/QuotationForm.vue +++ b/src/pages/05_quotation/QuotationForm.vue @@ -732,6 +732,10 @@ function triggerProductServiceDialog() { } function handleChangePayType(type: PayCondition) { + if (type === 'Full') { + quotationFormData.value.paySplitCount = 0; + } + if ( type === 'Split' && tempPaySplitCount.value !== undefined && @@ -750,7 +754,10 @@ function handleChangePayType(type: PayCondition) { if (type === 'SplitCustom') { quotationFormData.value.paySplitCount = 1; - quotationFormData.value.paySplit.push({ no: Number(1), amount: 0 }); + if (tempPaySplit.value.length === 0) { + quotationFormData.value.paySplit = []; + quotationFormData.value.paySplit.push({ no: Number(1), amount: 0 }); + } } } @@ -1269,7 +1276,6 @@ watch( () => quotationFormState.value.inputSearchRequest, ], () => { - console.log('asdasd'); fetchRequest(); }, );