refactro: handle Receipt
This commit is contained in:
parent
e068304923
commit
0dc15e34bb
1 changed files with 2 additions and 7 deletions
|
|
@ -304,11 +304,7 @@ async function fetchStatus() {
|
|||
status: getStatus(quotationFormData.value.quotationStatus, 4, 1),
|
||||
handler: () => {
|
||||
fetchReceipt();
|
||||
view.value =
|
||||
quotationFormData.value.payCondition === 'Full' ||
|
||||
quotationFormData.value.payCondition === 'BillFull'
|
||||
? View.Receipt
|
||||
: View.ReceiptPre;
|
||||
view.value = View.Receipt;
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
@ -864,7 +860,6 @@ function storeDataLocal() {
|
|||
const documentTypes: Record<number, string> = {
|
||||
3: 'invoice',
|
||||
4: 'payment',
|
||||
6: 'receipt',
|
||||
7: 'receipt',
|
||||
};
|
||||
const documentType = documentTypes[view.value] || '';
|
||||
|
|
@ -1446,7 +1441,7 @@ const view = ref<View>(View.Quotation);
|
|||
</template>
|
||||
|
||||
<QuotationFormReceipt
|
||||
v-if="view === View.ReceiptPre || view === View.Receipt"
|
||||
v-if="view === View.Receipt"
|
||||
v-for="v in receiptList"
|
||||
:amount="v.amount"
|
||||
:date="v.date"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue