feat: add installment name input for custom installments
This commit is contained in:
parent
71e400a809
commit
4afcda0bf2
1 changed files with 13 additions and 3 deletions
|
|
@ -57,9 +57,10 @@ const payType = defineModel<
|
||||||
const paySplitCount = defineModel<number | null>('paySplitCount', {
|
const paySplitCount = defineModel<number | null>('paySplitCount', {
|
||||||
default: 1,
|
default: 1,
|
||||||
});
|
});
|
||||||
const paySplit = defineModel<{ no: number; amount: number }[]>('paySplit', {
|
const paySplit = defineModel<{ no: number; name?: string; amount: number }[]>(
|
||||||
required: true,
|
'paySplit',
|
||||||
});
|
{ required: true },
|
||||||
|
);
|
||||||
const summaryPrice = defineModel<{
|
const summaryPrice = defineModel<{
|
||||||
totalPrice: number;
|
totalPrice: number;
|
||||||
totalDiscount: number;
|
totalDiscount: number;
|
||||||
|
|
@ -269,6 +270,15 @@ watch(
|
||||||
:class="{ 'q-mb-sm': i !== paySplit.length }"
|
:class="{ 'q-mb-sm': i !== paySplit.length }"
|
||||||
>
|
>
|
||||||
{{ `${$t('quotation.periodNo')} ${i + 1}` }}
|
{{ `${$t('quotation.periodNo')} ${i + 1}` }}
|
||||||
|
<q-input
|
||||||
|
:readonly="readonly"
|
||||||
|
:label="$t('general.name')"
|
||||||
|
v-if="payType === 'SplitCustom'"
|
||||||
|
v-model="period.name"
|
||||||
|
class="col q-mx-sm"
|
||||||
|
dense
|
||||||
|
outlined
|
||||||
|
/>
|
||||||
<q-input
|
<q-input
|
||||||
:readonly="readonly || payType === 'Split'"
|
:readonly="readonly || payType === 'Split'"
|
||||||
class="col q-mx-sm"
|
class="col q-mx-sm"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue