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', {
|
||||
default: 1,
|
||||
});
|
||||
const paySplit = defineModel<{ no: number; amount: number }[]>('paySplit', {
|
||||
required: true,
|
||||
});
|
||||
const paySplit = defineModel<{ no: number; name?: string; amount: number }[]>(
|
||||
'paySplit',
|
||||
{ required: true },
|
||||
);
|
||||
const summaryPrice = defineModel<{
|
||||
totalPrice: number;
|
||||
totalDiscount: number;
|
||||
|
|
@ -269,6 +270,15 @@ watch(
|
|||
:class="{ 'q-mb-sm': i !== paySplit.length }"
|
||||
>
|
||||
{{ `${$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
|
||||
:readonly="readonly || payType === 'Split'"
|
||||
class="col q-mx-sm"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue