A2-A3 补充关联明细码值防回归
这个提交包含在:
@@ -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() {
|
||||
|
||||
在新工单中引用
屏蔽一个用户