A2-A3 补充关联明细码值防回归

这个提交包含在:
2026-05-08 23:28:48 +08:00
父节点 7a90e729f0
当前提交 555e7b7e29
共修改 4 个文件,包含 12 行新增和 2 行删除
+2 -2
查看文件
@@ -898,10 +898,10 @@ export function ReimbursementDetailPage() {
const linkedItem = detail.items.find((item) => item.id === linkedItemId);
if (!linkedItem) {
return linkedItemId;
return "未识别明细";
}
return `${linkedItem.expenseType?.name ?? linkedItem.expenseTypeId} · ${linkedItem.description ?? "未填写说明"}`;
return `${linkedItem.expenseType?.name ?? "未识别费用类型"} · ${linkedItem.description ?? "未填写说明"}`;
};
return (
@@ -538,6 +538,7 @@ test.describe("R111 国内报销发票与附件双端体验", () => {
expect(bodyText).not.toMatch(/\bdraft\b/);
expect(bodyText).not.toMatch(/\bbound\b/);
expect(bodyText).not.toContain("business_client_meal");
expect(bodyText).not.toContain("expense-type-r111");
await page.screenshot({ path: screenshotPath("pc-reimbursement-detail.png"), fullPage: true });
});
@@ -35,6 +35,7 @@ async function expectNoRawReimbursementCodes(page: Page) {
expect(bodyText).not.toMatch(/\bdraft\b/);
expect(bodyText).not.toMatch(/\bbound\b/);
expect(bodyText).not.toContain("business_client_meal");
expect(bodyText).not.toContain("expense-type-r125");
}
function buildMe() {