fix Fixstatus; add support to all statuses

This commit is contained in:
Dawn_Ocean
2024-03-18 14:08:52 +08:00
parent 2398644cc3
commit 7ced70ab21
5 changed files with 35 additions and 19 deletions
+17 -11
View File
@@ -1,4 +1,4 @@
type FixStatus = 1 | 2 | 3 | 4 | 5;
import { FixStatus } from '@/common';
export interface TicketListText {
createdAt(time: string): string;
@@ -10,11 +10,14 @@ export const ticketListZhCn: TicketListText = {
return '创建于' + ' ' + time;
},
statusMap: new Map([
[1, '创建成功'],
[2, '维修中'],
[3, '待取回'],
[4, '已取回'],
[5, '已取回'],
[0, '已创建/交接中'],
[1, '维修中'],
[2, '劝退待取回'],
[3, '劝退已取回'],
[4, '维修成功待取回'],
[5, '维修成功已取回'],
[6, '维修翻车待取回'],
[7, '维修翻车已取回'],
]),
};
@@ -23,10 +26,13 @@ export const ticketListEnUs: TicketListText = {
return 'Created at' + ' ' + time;
},
statusMap: new Map([
[1, 'Created'],
[2, 'Repairing'],
[3, 'Pending Retrieval'],
[4, 'Retrieved'],
[5, 'Retrieved'],
[0, 'Created / Handovering'],
[1, 'Repairing'],
[2, 'Pending Retrieval (Refused)'],
[3, 'Retrieved (Refused)'],
[4, 'Pending Retrieval (Finished)'],
[5, 'Retrieved (Finished)'],
[4, 'Pending Retrieval (Failed)'],
[5, 'Retrieved (Failed)'],
]),
};