feat: add request cancel badge
This commit is contained in:
parent
fadbe34ccf
commit
9e7d67fb6c
4 changed files with 16 additions and 0 deletions
|
|
@ -936,6 +936,7 @@ export default {
|
||||||
InProgress: 'In Progress',
|
InProgress: 'In Progress',
|
||||||
Completed: 'Completed',
|
Completed: 'Completed',
|
||||||
Canceled: 'Canceled',
|
Canceled: 'Canceled',
|
||||||
|
CancelRequested: 'Cancel Requested',
|
||||||
|
|
||||||
AwaitOrder: 'Awaiting Order',
|
AwaitOrder: 'Awaiting Order',
|
||||||
ReadyOrder: 'Ready for Order',
|
ReadyOrder: 'Ready for Order',
|
||||||
|
|
|
||||||
|
|
@ -924,6 +924,7 @@ export default {
|
||||||
InProgress: 'กำลังดำเนินการ',
|
InProgress: 'กำลังดำเนินการ',
|
||||||
Completed: 'เสร็จสิ้น',
|
Completed: 'เสร็จสิ้น',
|
||||||
Canceled: 'ยกเลิก',
|
Canceled: 'ยกเลิก',
|
||||||
|
CancelRequested: 'ต้องการยกเลิก',
|
||||||
|
|
||||||
AwaitOrder: 'รอสั่งงาน',
|
AwaitOrder: 'รอสั่งงาน',
|
||||||
ReadyOrder: 'พร้อมสั่งงาน',
|
ReadyOrder: 'พร้อมสั่งงาน',
|
||||||
|
|
|
||||||
|
|
@ -183,6 +183,15 @@ function getEmployeeName(
|
||||||
$t(`requestList.status.${props.row.requestDataStatus}`) || '-'
|
$t(`requestList.status.${props.row.requestDataStatus}`) || '-'
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
|
<BadgeComponent
|
||||||
|
v-if="
|
||||||
|
props.row.customerRequestCancel &&
|
||||||
|
props.row.requestDataStatus !== RequestDataStatus.Canceled
|
||||||
|
"
|
||||||
|
:hsla-color="'--red-5-hsl'"
|
||||||
|
class="q-ml-sm"
|
||||||
|
:title="$t(`requestList.status.CancelRequested`) || '-'"
|
||||||
|
/>
|
||||||
</q-td>
|
</q-td>
|
||||||
<q-td class="text-right">
|
<q-td class="text-right">
|
||||||
<q-btn
|
<q-btn
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,9 @@ export type RequestData = {
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
|
|
||||||
|
customerRequestCancel?: boolean;
|
||||||
|
customerRequestCancelReason?: string;
|
||||||
|
|
||||||
quotation: QuotationFull & {
|
quotation: QuotationFull & {
|
||||||
debitNoteQuotationId: string;
|
debitNoteQuotationId: string;
|
||||||
isDebitNote: boolean;
|
isDebitNote: boolean;
|
||||||
|
|
@ -60,6 +63,8 @@ export type RequestWork = {
|
||||||
attributes?: Attributes;
|
attributes?: Attributes;
|
||||||
creditNoteId?: string;
|
creditNoteId?: string;
|
||||||
processByUserId?: string;
|
processByUserId?: string;
|
||||||
|
customerRequestCancel?: boolean;
|
||||||
|
customerRequestCancelReason?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type RowDocument = {
|
export type RowDocument = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue