interface StepItem { title: string; } type StatusStr = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7'; export interface TicketDetailText { stepItems: Array; statusModifyMessage: Map; desc: { title: string; }; divider: string; info: { title: string; extra: string; }; button: { tookAway: string; addToOreo: string; addNote: string; pick: string; status: string; }; comment: { title: string; placeholder: string; createTicketMessage: string; statusModifyPrefix: string; }; status: { title: string; cancel: string; }; } export const ticketDetailZhCn: TicketDetailText = { stepItems: [ { title: '创建成功' }, { title: '维修中' }, { title: '待取回' }, { title: '工单完成' }, ], statusModifyMessage: new Map([ ['0', '已创建/交接中'], ['1', '维修中'], ['2', '劝退待取回'], ['3', '劝退已取回'], ['4', '维修成功待取回'], ['5', '维修成功已取回'], ['6', '维修翻车待取回'], ['7', '维修翻车已取回'], ]), desc: { title: '问题描述', }, info: { title: '机主姓名', extra: '联系方式', }, divider: '评论 / 状态', button: { tookAway: '我已取回', addToOreo: '加入 Oreo', addNote: '添加评论', pick: '认领', status: '改变状态', }, comment: { title: '添加评论', placeholder: '可以在这里交流机器情况、维修进度、提出问题~', createTicketMessage: '创建了维修', statusModifyPrefix: '将维修状态改为:', }, status: { title: '请选择要改变成为的状态', cancel: '取消', }, }; export const ticketDetailEnUs: TicketDetailText = { stepItems: [ { title: 'Created' }, { title: 'Repairing' }, { title: 'Finished' }, { title: 'Retrieved' }, ], statusModifyMessage: new Map([ ['0', 'Created / Handovering'], ['1', 'Repairing'], ['2', 'Pending Retrieval (Refused)'], ['3', 'Retrieved (Refused)'], ['4', 'Pending Retrieval (Finished)'], ['5', 'Retrieved (Finished)'], ['6', 'Pending Retrieval (Failed)'], ['7', 'Retrieved (Failed)'], ]), desc: { title: 'Description', }, info: { title: 'Name', extra: 'Contact', }, divider: 'Comment / Status', button: { tookAway: 'Already retrieved', addToOreo: 'Add to Oreo', addNote: 'Comment', pick: 'Pick', status: 'Change status', }, comment: { title: 'Add comment', placeholder: 'You can exchange information the device, the progress of repairs, and ask questions here.', createTicketMessage: 'Created ticket', statusModifyPrefix: 'Modified repair status to: ', }, status: { title: 'Please select the status you want to modify to', cancel: 'Cancel', }, };