fix(04): pay type
This commit is contained in:
parent
d05eae23a9
commit
269acec48e
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue