diff --git a/src/pages/05_quotation/peview/ViewForm.vue b/src/pages/05_quotation/peview/ViewForm.vue index a9900a75..1f96fdee 100644 --- a/src/pages/05_quotation/peview/ViewForm.vue +++ b/src/pages/05_quotation/peview/ViewForm.vue @@ -14,7 +14,7 @@ import { baseUrl } from 'stores/utils'; import { commaInput } from 'stores/utils'; // NOTE Import Types -import { BankBook } from 'stores/branch/types'; +import { BankBook, Branch } from 'stores/branch/types'; import { QuotationPayload } from 'src/stores/quotations/types'; // NOTE: Import Components @@ -49,7 +49,7 @@ type SummaryPrice = { finalPrice: number; }; -const note = ref(''); +const branch = ref(); const productList = ref([]); const bankList = ref([]); @@ -121,6 +121,8 @@ onMounted(async () => { const res = await branchStore.fetchById(data.value?.registeredBranchId); if (res) { + branch.value = res; + bankList.value = res.bank.map((v) => ({ ...v, bankUrl: `${baseUrl}/branch/${res.id}/bank-qr/${v.id}?ts=${Date.now()}`, @@ -385,7 +387,16 @@ function print() { /> - +