feat: paycondition
This commit is contained in:
parent
da8dc33b15
commit
810b8b96ba
7 changed files with 57 additions and 30 deletions
|
|
@ -265,8 +265,7 @@ async function fetchQuotationList() {
|
|||
{
|
||||
fullAmountCash: 'Full',
|
||||
installmentsCash: 'Split',
|
||||
fullAmountBill: 'BillFull',
|
||||
installmentsBill: 'BillSplit',
|
||||
installmentsCustomCash: 'SplitCustom',
|
||||
} as const
|
||||
)[pageState.currentTab]
|
||||
: undefined,
|
||||
|
|
@ -337,11 +336,9 @@ async function storeDataLocal(id: string) {
|
|||
? quotationStats.full
|
||||
: pageState.currentTab === 'installmentsCash'
|
||||
? quotationStats.split
|
||||
: pageState.currentTab === 'fullAmountBill'
|
||||
? quotationStats.billFull
|
||||
: pageState.currentTab === 'installmentsBill'
|
||||
? quotationStats.billSplit
|
||||
: 0
|
||||
: pageState.currentTab === 'installmentsCustomCash'
|
||||
? quotationStats.splitCustom
|
||||
: 0
|
||||
}}
|
||||
</q-badge>
|
||||
<q-btn
|
||||
|
|
@ -383,22 +380,13 @@ async function storeDataLocal(id: string) {
|
|||
pageState.currentTab !== 'installmentsCash',
|
||||
},
|
||||
{
|
||||
icon: 'mdi-receipt-text-outline',
|
||||
count: quotationStats.billFull,
|
||||
label: 'quotation.type.fullAmountBill',
|
||||
icon: 'mdi-hand-coin-outline',
|
||||
count: quotationStats.splitCustom,
|
||||
label: 'quotation.type.installmentsCustomCash',
|
||||
color: 'lime',
|
||||
hidden:
|
||||
pageState.currentTab !== 'all' &&
|
||||
pageState.currentTab !== 'fullAmountBill',
|
||||
},
|
||||
{
|
||||
icon: 'mdi-receipt-text-send-outline',
|
||||
count: quotationStats.billSplit,
|
||||
label: 'quotation.type.installmentsBill',
|
||||
color: 'light-purple',
|
||||
hidden:
|
||||
pageState.currentTab !== 'all' &&
|
||||
pageState.currentTab !== 'installmentsBill',
|
||||
pageState.currentTab !== 'installmentsCustomCash',
|
||||
},
|
||||
]"
|
||||
:dark="$q.dark.isActive"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue