feat: 选票自动生成报销明细并支持集中分类(08-29-reimbursement-expense-policy-invoice-guard)
这个提交包含在:
@@ -1,8 +1,11 @@
|
||||
export const ERROR_REASON_MESSAGES: Record<string, string> = {
|
||||
"reimbursement.invoice_prefill_incomplete": "票据日期或金额尚未完整识别,请先处理该票据;其他已识别票据可继续添加。",
|
||||
"reimbursement.items_description_required": "请补充明细的支出说明后再提交。",
|
||||
"reimbursement.material_preview_limit": "报销材料较多,暂时无法连续预览,请分批查看材料或联系管理员协助。",
|
||||
"purchase_attachment.unsupported_type": "仅支持 PDF、JPG、PNG、WEBP 文件,请重新选择。",
|
||||
"reimbursement.invoice_amount_required": "票据金额尚未确认,无法自动生成明细,请先核对票据金额或手动选择明细。",
|
||||
"reimbursement.expense_type_required": "当前没有可用费用类型,请联系管理员维护后再添加票据。",
|
||||
"reimbursement.items_expense_type_required": "请补充明细的费用类型;同类明细可批量设置,已停用的类型请重新选择。",
|
||||
"reimbursement.invoice_not_bound": "该票据已不再关联业务单据,请刷新票据列表后确认。",
|
||||
"reimbursement.invoice_unbind_status_invalid": "报销单当前不能移出票据,请先核实审批和付款状态。",
|
||||
"reimbursement.invoice_bind_status_invalid": "报销单当前不能添加票据,请刷新并确认单据状态。",
|
||||
|
||||
@@ -129,6 +129,7 @@ export type InvoiceBindPayload =
|
||||
| {
|
||||
reimbursementId: string;
|
||||
linkedItemId?: string;
|
||||
createItem?: true;
|
||||
}
|
||||
| {
|
||||
travelOrderId: string;
|
||||
|
||||
@@ -13,7 +13,7 @@ export type ReimbursementStatus =
|
||||
|
||||
export type ReimbursementItem = {
|
||||
id: string;
|
||||
expenseTypeId: string;
|
||||
expenseTypeId: string | null;
|
||||
expenseDate: string | null;
|
||||
amount: string;
|
||||
description: string | null;
|
||||
@@ -346,7 +346,7 @@ export type LinkableTravelRequestListResponse = {
|
||||
};
|
||||
|
||||
export type ReimbursementItemPayload = {
|
||||
expenseTypeId: string;
|
||||
expenseTypeId: string | null;
|
||||
expenseDate: string;
|
||||
amount: string;
|
||||
description?: string;
|
||||
@@ -356,7 +356,7 @@ export type ReimbursementItemPayload = {
|
||||
export type ReimbursementItemMutationResponse = {
|
||||
item: {
|
||||
id: string;
|
||||
expenseTypeId: string;
|
||||
expenseTypeId: string | null;
|
||||
expenseDate: string;
|
||||
amount: string;
|
||||
description: string | null;
|
||||
|
||||
在新工单中引用
屏蔽一个用户