fix(05): total padi remain display condition
This commit is contained in:
parent
200cce9e7e
commit
b58ed78929
1 changed files with 8 additions and 33 deletions
|
|
@ -448,22 +448,14 @@ watch(
|
|||
{{ $t('quotation.receiptDialog.remain') }}
|
||||
<span class="q-ml-auto">
|
||||
{{
|
||||
data.payCondition === 'BillSplit' ||
|
||||
data.payCondition === 'Split'
|
||||
? formatNumberDecimal(
|
||||
paymentData.reduce(
|
||||
(c, i) =>
|
||||
i.paymentStatus !== 'PaymentSuccess'
|
||||
? c + i.amount
|
||||
: c,
|
||||
0,
|
||||
),
|
||||
2,
|
||||
)
|
||||
: data.quotationStatus === 'PaymentPending'
|
||||
? paymentData[0]?.amount &&
|
||||
formatNumberDecimal(paymentData[0]?.amount, 2)
|
||||
: '0.00'
|
||||
formatNumberDecimal(
|
||||
paymentData.reduce(
|
||||
(c, i) =>
|
||||
i.paymentStatus !== 'PaymentSuccess' ? c + i.amount : c,
|
||||
0,
|
||||
),
|
||||
2,
|
||||
)
|
||||
}}
|
||||
</span>
|
||||
</span>
|
||||
|
|
@ -516,23 +508,6 @@ watch(
|
|||
}}
|
||||
</span>
|
||||
</span>
|
||||
<!-- <div
|
||||
class="q-ml-auto items-center flex q-py-xs q-px-sm rounded"
|
||||
:class="{
|
||||
'payment-success': p.paymentStatus === 'PaymentSuccess',
|
||||
'payment-wait':
|
||||
p.paymentStatus === 'PaymentWait' ||
|
||||
p.paymentStatus === 'PaymentPending',
|
||||
}"
|
||||
>
|
||||
<q-icon size="6px" class="q-mr-sm" name="mdi-circle" />
|
||||
{{
|
||||
p.paymentStatus === 'PaymentWait' ||
|
||||
p.paymentStatus === 'PaymentPending'
|
||||
? $t('quotation.receiptDialog.notYetPaid')
|
||||
: $t('quotation.receiptDialog.alreadyPaid')
|
||||
}}
|
||||
</div> -->
|
||||
|
||||
<q-btn
|
||||
@click.stop
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue