112 lines
2.6 KiB
TypeScript
112 lines
2.6 KiB
TypeScript
interface StepItem {
|
|
title: string;
|
|
}
|
|
|
|
type StatusStr = '1' | '2' | '3' | '4' | '5';
|
|
|
|
export interface TicketDetailText {
|
|
stepItems: Array<StepItem>;
|
|
createTicketMessage: string;
|
|
statusModifyPrefix: string;
|
|
statusModifyMessage: Map<StatusStr, string>;
|
|
descTitle: string;
|
|
infoTitle: string;
|
|
tookAway: string;
|
|
addToOreo: string;
|
|
addNote: string;
|
|
pick: string;
|
|
comment: {
|
|
title: string;
|
|
placeholder: string;
|
|
};
|
|
status: {
|
|
button: string;
|
|
title: string;
|
|
cancel: string;
|
|
status0: string;
|
|
status1: string;
|
|
status2: string;
|
|
status3: string;
|
|
status4: string;
|
|
status5: string;
|
|
};
|
|
}
|
|
|
|
export const ticketDetailZhCn: TicketDetailText = {
|
|
stepItems: [
|
|
{ title: '创建成功' },
|
|
{ title: '维修中' },
|
|
{ title: '待取回' },
|
|
{ title: '工单完成' },
|
|
],
|
|
createTicketMessage: '创建了维修',
|
|
statusModifyPrefix: '将维修状态更改为:',
|
|
statusModifyMessage: new Map<StatusStr, string>([
|
|
['1', '维修中'],
|
|
['2', '2(?)'],
|
|
['3', '3(?)'],
|
|
['4', '维修成功待取回'],
|
|
['5', '维修成功已取回'],
|
|
]),
|
|
descTitle: '问题描述',
|
|
infoTitle: '机主信息',
|
|
tookAway: '已取回',
|
|
addToOreo: '加入 Oreo',
|
|
addNote: '添加评论',
|
|
pick: '认领',
|
|
comment: {
|
|
title: '添加评论',
|
|
placeholder: '可以在这里交流机器情况、维修进度、提出问题~',
|
|
},
|
|
status: {
|
|
button: '改变工单状态',
|
|
title: '请选择要改变成为的状态',
|
|
cancel: '取消',
|
|
status0: '',
|
|
status1: '',
|
|
status2: '',
|
|
status3: '',
|
|
status4: '',
|
|
status5: '',
|
|
},
|
|
};
|
|
|
|
export const ticketDetailEnUs: TicketDetailText = {
|
|
stepItems: [
|
|
{ title: 'Created' },
|
|
{ title: 'Repairing' },
|
|
{ title: 'Finished' },
|
|
{ title: 'Retrieved' },
|
|
],
|
|
createTicketMessage: 'Created ticket',
|
|
statusModifyPrefix: 'Modified repair status to: ',
|
|
statusModifyMessage: new Map<StatusStr, string>([
|
|
['1', 'Repairing'],
|
|
['2', '2(?)'],
|
|
['3', '3(?)'],
|
|
['4', 'Device to be retrieved'],
|
|
['5', 'Ticket finished'],
|
|
]),
|
|
descTitle: 'Problem description',
|
|
infoTitle: 'Contact the owner',
|
|
tookAway: 'Already retrieved',
|
|
addToOreo: 'Add to Oreo',
|
|
addNote: 'Comment',
|
|
pick: 'Pick',
|
|
comment: {
|
|
title: 'Add Comment',
|
|
placeholder: '可以在这里交流机器情况、维修进度、提出问题~',
|
|
},
|
|
status: {
|
|
button: 'Change Status',
|
|
title: '请选择要改变成为的状态',
|
|
cancel: 'Cancel',
|
|
status0: '',
|
|
status1: '',
|
|
status2: '',
|
|
status3: '',
|
|
status4: '',
|
|
status5: '',
|
|
},
|
|
};
|