fix: quotation card status display and i18n
This commit is contained in:
parent
44f27bf2ea
commit
72fa68462e
4 changed files with 23 additions and 17 deletions
|
|
@ -6,12 +6,6 @@ import KebabAction from '../shared/KebabAction.vue';
|
||||||
import MainButton from '../button/MainButton.vue';
|
import MainButton from '../button/MainButton.vue';
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
type?:
|
|
||||||
| 'fullAmountCash'
|
|
||||||
| 'installmentsCash'
|
|
||||||
| 'fullAmountBill'
|
|
||||||
| 'installmentsBill'
|
|
||||||
| string;
|
|
||||||
title?: string;
|
title?: string;
|
||||||
code?: string;
|
code?: string;
|
||||||
amount?: number;
|
amount?: number;
|
||||||
|
|
|
||||||
|
|
@ -766,6 +766,17 @@ export default {
|
||||||
BillSplit: 'Installments Bill',
|
BillSplit: 'Installments Bill',
|
||||||
BillCustomSplit: 'Custom Installments Bill',
|
BillCustomSplit: 'Custom Installments Bill',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
status: {
|
||||||
|
Issued: 'Quotation',
|
||||||
|
Accepted: 'Customer Confirmation',
|
||||||
|
Invoice: 'Invoice',
|
||||||
|
PaymentPending: 'Payment',
|
||||||
|
PaymentInProcess: 'Payment',
|
||||||
|
PaymentSuccess: 'Issue Receipt',
|
||||||
|
ProcessComplete: 'Completed',
|
||||||
|
Canceled: 'Cancel',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
flow: {
|
flow: {
|
||||||
|
|
|
||||||
|
|
@ -763,6 +763,17 @@ export default {
|
||||||
BillSplit: 'ใบเรียกเก็บเงินแบ่งจ่าย',
|
BillSplit: 'ใบเรียกเก็บเงินแบ่งจ่าย',
|
||||||
BillSplitCustom: 'ใบเรียกเก็บแบ่งจ่ายกำหนดเอง',
|
BillSplitCustom: 'ใบเรียกเก็บแบ่งจ่ายกำหนดเอง',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
status: {
|
||||||
|
Issued: 'ใบเสนอราคา',
|
||||||
|
Accepted: 'ลูกค้าตอบรับ',
|
||||||
|
Invoice: 'ใบแจ้งหนี้',
|
||||||
|
PaymentPending: 'ชำระเงิน',
|
||||||
|
PaymentInProcess: 'ชำระเงิน',
|
||||||
|
PaymentSuccess: 'ออกใบเสร็จ',
|
||||||
|
ProcessComplete: 'เสร็จสิ้น',
|
||||||
|
Canceled: 'ยกเลิก',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
flow: {
|
flow: {
|
||||||
|
|
|
||||||
|
|
@ -559,21 +559,11 @@ async function storeDataLocal(id: string) {
|
||||||
>
|
>
|
||||||
<QuotationCard
|
<QuotationCard
|
||||||
:urgent="v.urgent"
|
:urgent="v.urgent"
|
||||||
:type="
|
|
||||||
pageState.currentTab !== 'all'
|
|
||||||
? pageState.currentTab
|
|
||||||
: {
|
|
||||||
Full: 'fullAmountCash',
|
|
||||||
Split: 'installmentsCash',
|
|
||||||
BillFull: 'fullAmountBill',
|
|
||||||
BillSplit: 'installmentsBill',
|
|
||||||
}[v.payCondition]
|
|
||||||
"
|
|
||||||
:code="v.code"
|
:code="v.code"
|
||||||
:title="v.workName"
|
:title="v.workName"
|
||||||
:created-at="new Date(v.createdAt).toLocaleString()"
|
:created-at="new Date(v.createdAt).toLocaleString()"
|
||||||
:valid-until="new Date(v.dueDate).toLocaleString()"
|
:valid-until="new Date(v.dueDate).toLocaleString()"
|
||||||
:status="v.quotationStatus"
|
:status="$t(`quotation.status.${v.quotationStatus}`)"
|
||||||
:worker-count="v._count.worker"
|
:worker-count="v._count.worker"
|
||||||
:worker-max="v.workerMax || v._count.worker"
|
:worker-max="v.workerMax || v._count.worker"
|
||||||
:customer-name="
|
:customer-name="
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue