实现 B-2a 报销审批内容工作台(reimbursement-approval-content-workbench)
这个提交包含在:
@@ -5,18 +5,7 @@ import { fetchExpenseStandards } from "../../api/expenseStandards";
|
||||
import { Button } from "../../components/ui/button";
|
||||
import { Input } from "../../components/ui/input";
|
||||
import { Textarea } from "../../components/ui/textarea";
|
||||
|
||||
export const OFFICE_ELECTRONICS_HINT_THRESHOLD = 2000;
|
||||
|
||||
export function shouldShowOfficeElectronicsHint(
|
||||
expenseType: Pick<ExpenseType, "code"> | null | undefined,
|
||||
amount: string | number,
|
||||
) {
|
||||
const numericAmount = Number(amount);
|
||||
return expenseType?.code === "office_supplies"
|
||||
&& Number.isFinite(numericAmount)
|
||||
&& numericAmount >= OFFICE_ELECTRONICS_HINT_THRESHOLD;
|
||||
}
|
||||
import { shouldShowOfficeElectronicsHint } from "../../lib/reimbursementPolicyHints";
|
||||
|
||||
export type ItemEditorMode = "create" | "edit";
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户