Files
inquiry_robot/inquiry-backend/src/views/inquiry/mock/tickets.ts
T

168 lines
4.8 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 演示数据:询价工单列表与详情字段快照。
* 六态文案对齐原型;正式环境以主账为准。
*/
export type TicketRow = {
id: string;
initiator: string;
demandTitle: string;
demandDetail: string;
quotes: { source: string; price: string; highlight?: boolean }[];
attachments: string[];
status: string;
costPrice: string;
salePrice: string;
profit: string;
eventException: string;
systemException: string;
systemExceptionReason: string;
createdAt: string;
bizType: string;
};
export const mockTickets: TicketRow[] = [
{
id: "WO202606160001",
initiator: "张敏",
demandTitle: "空运 · 上海 → 洛杉矶",
demandDetail: "件数 3 · 毛重 180kg · 体积 2.5CBM\n品名 普货 · 客户 A · 时效 下周三前到",
quotes: [
{ source: "TMS 标准报价", price: "USD 1,360" },
{ source: "航线张三手工报价", price: "USD 1,260", highlight: true },
],
attachments: ["航线张三手工报价_WO202606160001.xlsx", "空运报价单_WO202606160001.xlsx"],
status: "已报价",
costPrice: "-",
salePrice: "USD 1,500",
profit: "16%",
eventException: "-",
systemException: "-",
systemExceptionReason: "-",
createdAt: "2026-06-16 09:12",
bizType: "空运",
},
{
id: "WO202606180002",
initiator: "李华",
demandTitle: "海运 · 深圳 → 洛杉矶",
demandDetail: "40HQ × 2 · 品名 电子配件 · 客户 B",
quotes: [{ source: "TMS 标准报价", price: "USD 4,800" }],
attachments: ["海运需求_WO202606180002.xlsx"],
status: "协商中",
costPrice: "USD 4,200",
salePrice: "USD 5,100",
profit: "18%",
eventException: "产品响应超时",
systemException: "-",
systemExceptionReason: "-",
createdAt: "2026-06-18 11:05",
bizType: "海运",
},
{
id: "WO202606180003",
initiator: "王芳",
demandTitle: "陆运 · 义乌 → 阿拉木图",
demandDetail: "整车 · 普货 · 时效 12 天内",
quotes: [],
attachments: [],
status: "询价中",
costPrice: "-",
salePrice: "-",
profit: "-",
eventException: "航线响应超时",
systemException: "-",
systemExceptionReason: "-",
createdAt: "2026-06-18 14:22",
bizType: "陆运",
},
{
id: "WO202606150005",
initiator: "赵强",
demandTitle: "空运 · 香港 → 吉隆坡",
demandDetail: "件数 8 · 毛重 420kg · 危险品咨询",
quotes: [{ source: "航线手工报价", price: "USD 980", highlight: true }],
attachments: ["空运报价单_WO202606150005.pdf"],
status: "已成交",
costPrice: "USD 820",
salePrice: "USD 1,050",
profit: "22%",
eventException: "-",
systemException: "-",
systemExceptionReason: "-",
createdAt: "2026-06-15 16:40",
bizType: "空运",
},
{
id: "WO202606170006",
initiator: "陈丽",
demandTitle: "多段联运 · 上海 → 鹿特丹",
demandDetail: "海运 + 陆运提货 · 客户 C",
quotes: [],
attachments: ["联运需求扫描.jpg"],
status: "询价中",
costPrice: "-",
salePrice: "-",
profit: "-",
eventException: "-",
systemException: "大模型异常",
systemExceptionReason: "附件识别超时",
createdAt: "2026-06-17 08:55",
bizType: "多段联运",
},
{
id: "WO202606190008",
initiator: "张敏",
demandTitle: "海运 · 宁波 → 汉堡",
demandDetail: "20GP × 1 · 品名 家具配件",
quotes: [],
attachments: [],
status: "已关闭",
costPrice: "-",
salePrice: "-",
profit: "-",
eventException: "-",
systemException: "TMS异常",
systemExceptionReason: "字典投影未命中",
createdAt: "2026-06-19 10:18",
bizType: "海运",
},
{
id: "WO202606160022",
initiator: "李华",
demandTitle: "空运 · 广州 → 纽约",
demandDetail: "件数 2 · 毛重 95kg · 时效加急",
quotes: [
{ source: "TMS 标准报价", price: "USD 2,100" },
{ source: "航线手工报价", price: "USD 1,980", highlight: true },
],
attachments: ["空运报价单_WO202606160022.xlsx"],
status: "已报价",
costPrice: "-",
salePrice: "USD 2,280",
profit: "13%",
eventException: "-",
systemException: "-",
systemExceptionReason: "-",
createdAt: "2026-06-16 15:33",
bizType: "空运",
},
{
id: "WO202606160023",
initiator: "王芳",
demandTitle: "陆运 · 深圳 → 河内",
demandDetail: "零担 · 电子配件 · 客户 D",
quotes: [],
attachments: [],
status: "未成交",
costPrice: "-",
salePrice: "-",
profit: "-",
eventException: "销售响应超时",
systemException: "建群异常",
systemExceptionReason: "企微拉人失败",
createdAt: "2026-06-16 17:02",
bizType: "陆运",
},
];