refactor: show field code
This commit is contained in:
parent
5983febe72
commit
644dca2bf7
4 changed files with 25 additions and 2 deletions
|
|
@ -898,6 +898,8 @@ export default {
|
||||||
caption: 'All Request List',
|
caption: 'All Request List',
|
||||||
quotationCode: 'Quotation Code',
|
quotationCode: 'Quotation Code',
|
||||||
requestListCode: 'Request List Code',
|
requestListCode: 'Request List Code',
|
||||||
|
|
||||||
|
referenceNo: 'Reference No.',
|
||||||
invoiceCode: 'Invoice Code',
|
invoiceCode: 'Invoice Code',
|
||||||
receiptCode: 'Receipt Code',
|
receiptCode: 'Receipt Code',
|
||||||
alienIdCard: 'Alien Identification Card"',
|
alienIdCard: 'Alien Identification Card"',
|
||||||
|
|
|
||||||
|
|
@ -889,6 +889,7 @@ export default {
|
||||||
caption: 'ใบรายการคำขอทั้งหมด',
|
caption: 'ใบรายการคำขอทั้งหมด',
|
||||||
quotationCode: 'เลขที่ใบเสนอราคา',
|
quotationCode: 'เลขที่ใบเสนอราคา',
|
||||||
requestListCode: 'เลขที่ใบรายการคำขอ',
|
requestListCode: 'เลขที่ใบรายการคำขอ',
|
||||||
|
referenceNo: 'เลขที่ใบอ้างอิง',
|
||||||
invoiceCode: 'เลขที่ใบแจ้งหนี้',
|
invoiceCode: 'เลขที่ใบแจ้งหนี้',
|
||||||
receiptCode: 'เลขที่ใบเสร็จ/กำกับภาษี',
|
receiptCode: 'เลขที่ใบเสร็จ/กำกับภาษี',
|
||||||
alienIdCard: 'บัตรประจำตัวต่างด้าว',
|
alienIdCard: 'บัตรประจำตัวต่างด้าว',
|
||||||
|
|
|
||||||
|
|
@ -314,7 +314,7 @@ function goToQuotation(
|
||||||
customerBranchId: quotation.customerBranchId,
|
customerBranchId: quotation.customerBranchId,
|
||||||
agentPrice: quotation.agentPrice,
|
agentPrice: quotation.agentPrice,
|
||||||
statusDialog: 'info',
|
statusDialog: 'info',
|
||||||
quotationId: quotation.id,
|
quotationId: opt && opt.id ? opt.id : quotation.id,
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -565,6 +565,21 @@ function goToDebitNote(opt?: { tab?: string; id?: string }) {
|
||||||
: goToQuotation(data.quotation, { tab: 'receipt' })
|
: goToQuotation(data.quotation, { tab: 'receipt' })
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<DataDisplay
|
||||||
|
v-if="data.quotation.isDebitNote"
|
||||||
|
clickable
|
||||||
|
class="col"
|
||||||
|
icon="mdi-file-document-outline"
|
||||||
|
:label="$t('requestList.referenceNo')"
|
||||||
|
:value="data.quotation.debitNoteQuotation.code || '-'"
|
||||||
|
@label-click="
|
||||||
|
goToQuotation(data.quotation, {
|
||||||
|
id: data.quotation.debitNoteQuotationId,
|
||||||
|
})
|
||||||
|
"
|
||||||
|
/>
|
||||||
|
|
||||||
<div v-if="$q.screen.gt.sm" class="col"></div>
|
<div v-if="$q.screen.gt.sm" class="col"></div>
|
||||||
</div>
|
</div>
|
||||||
<FormGroupHead class="col-12">
|
<FormGroupHead class="col-12">
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,12 @@ export type RequestData = {
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
|
|
||||||
quotation: QuotationFull & { isDebitNote: boolean };
|
quotation: QuotationFull & {
|
||||||
|
debitNoteQuotationId: string;
|
||||||
|
isDebitNote: boolean;
|
||||||
|
debitNoteQuotation: { code: string };
|
||||||
|
};
|
||||||
|
|
||||||
quotationId: string;
|
quotationId: string;
|
||||||
|
|
||||||
flow: Record<string, any>;
|
flow: Record<string, any>;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue