fix: quotation => handle change pay type
This commit is contained in:
parent
89265882d5
commit
40d0f4f2dc
1 changed files with 5 additions and 8 deletions
|
|
@ -671,15 +671,12 @@ function triggerProductServiceDialog() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleChangePayType(type: PayCondition) {
|
function handleChangePayType(type: PayCondition) {
|
||||||
if (type === 'Full') {
|
|
||||||
quotationFormData.value.paySplitCount = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (
|
if (
|
||||||
type === 'Split' &&
|
type === 'Split' ||
|
||||||
tempPaySplitCount.value !== undefined &&
|
(type === 'Full' &&
|
||||||
tempPaySplit.value &&
|
tempPaySplitCount.value !== undefined &&
|
||||||
tempTableProduct.value
|
tempPaySplit.value &&
|
||||||
|
tempTableProduct.value)
|
||||||
) {
|
) {
|
||||||
quotationFormData.value.paySplitCount = tempPaySplitCount.value;
|
quotationFormData.value.paySplitCount = tempPaySplitCount.value;
|
||||||
quotationFormData.value.paySplit = JSON.parse(
|
quotationFormData.value.paySplit = JSON.parse(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue