修复 r102 普通报销编辑夹具(08-29-r102-reimbursement-fixture-debt)
这个提交包含在:
@@ -51,7 +51,7 @@ function reimbursementListItem() {
|
||||
status: "draft",
|
||||
reimbursementDate: "2026-05-06",
|
||||
totalAmount: "168.30",
|
||||
description: "客户拜访交通费",
|
||||
description: "办公室宽带费用",
|
||||
payment: {
|
||||
paymentVoucherNo: null,
|
||||
paymentDate: null,
|
||||
@@ -81,7 +81,7 @@ function reimbursementDetail(overrides: { reimbursementDate?: string; descriptio
|
||||
submittedAt: null,
|
||||
reimbursementDate: overrides.reimbursementDate ?? "2026-05-06",
|
||||
totalAmount: "168.30",
|
||||
description: overrides.description ?? "客户拜访交通费",
|
||||
description: overrides.description ?? "办公室宽带费用",
|
||||
projectId: null,
|
||||
linkedTravelRequestId: null,
|
||||
linkedTravelRequest: null,
|
||||
@@ -91,15 +91,15 @@ function reimbursementDetail(overrides: { reimbursementDate?: string; descriptio
|
||||
items: [
|
||||
{
|
||||
id: itemId,
|
||||
expenseTypeId: "expense-transport",
|
||||
expenseTypeId: "expense-office-communication",
|
||||
expenseDate: "2026-05-06",
|
||||
amount: "168.30",
|
||||
description: "客户拜访交通费",
|
||||
description: "办公室宽带费用",
|
||||
expenseType: {
|
||||
id: "expense-transport",
|
||||
code: "transport",
|
||||
name: "交通费",
|
||||
category: "travel",
|
||||
id: "expense-office-communication",
|
||||
code: "office_communication",
|
||||
name: "通讯费用",
|
||||
category: "office",
|
||||
enabled: true,
|
||||
},
|
||||
},
|
||||
@@ -116,7 +116,7 @@ function reimbursementDetail(overrides: { reimbursementDate?: string; descriptio
|
||||
async function mockApis(page: Page) {
|
||||
let draftExists = true;
|
||||
let detailReimbursementDate = "2026-05-06";
|
||||
let detailDescription = "客户拜访交通费";
|
||||
let detailDescription = "办公室宽带费用";
|
||||
|
||||
await page.route((url) => url.pathname.startsWith("/api/"), async (route) => {
|
||||
const request = route.request();
|
||||
|
||||
在新工单中引用
屏蔽一个用户