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),
|
status: getStatus(quotationFormData.value.quotationStatus, 4, 1),
|
||||||
handler: () => {
|
handler: () => {
|
||||||
fetchReceipt();
|
fetchReceipt();
|
||||||
view.value =
|
view.value = View.Receipt;
|
||||||
quotationFormData.value.payCondition === 'Full' ||
|
|
||||||
quotationFormData.value.payCondition === 'BillFull'
|
|
||||||
? View.Receipt
|
|
||||||
: View.ReceiptPre;
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -864,7 +860,6 @@ function storeDataLocal() {
|
||||||
const documentTypes: Record<number, string> = {
|
const documentTypes: Record<number, string> = {
|
||||||
3: 'invoice',
|
3: 'invoice',
|
||||||
4: 'payment',
|
4: 'payment',
|
||||||
6: 'receipt',
|
|
||||||
7: 'receipt',
|
7: 'receipt',
|
||||||
};
|
};
|
||||||
const documentType = documentTypes[view.value] || '';
|
const documentType = documentTypes[view.value] || '';
|
||||||
|
|
@ -1446,7 +1441,7 @@ const view = ref<View>(View.Quotation);
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<QuotationFormReceipt
|
<QuotationFormReceipt
|
||||||
v-if="view === View.ReceiptPre || view === View.Receipt"
|
v-if="view === View.Receipt"
|
||||||
v-for="v in receiptList"
|
v-for="v in receiptList"
|
||||||
:amount="v.amount"
|
:amount="v.amount"
|
||||||
:date="v.date"
|
:date="v.date"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue