R56 A1-A6:费用标准管控
这个提交包含在:
@@ -289,6 +289,31 @@ export function WorkflowTaskDetailPage() {
|
||||
</div>
|
||||
</SectionPanel>
|
||||
|
||||
{detail.workflowInstance?.entityType === "reimbursement" &&
|
||||
detail.workflowInstance.contextData.standardViolations.length ? (
|
||||
<SectionPanel title="费用标准提示" description="以下明细在提交时已被标记为超出费用标准,供审批判断时参考。">
|
||||
<div className="space-y-2">
|
||||
{detail.workflowInstance.contextData.standardViolations.map((item) => (
|
||||
<div
|
||||
key={`${item.itemId}-${item.standardId}`}
|
||||
className={
|
||||
item.controlMode === "block"
|
||||
? "rounded-lg border border-red-200 bg-red-50 px-3 py-2 text-sm text-red-700"
|
||||
: "rounded-lg border border-amber-200 bg-amber-50 px-3 py-2 text-sm text-amber-700"
|
||||
}
|
||||
>
|
||||
<div className="font-medium text-zinc-900">{item.expenseTypeName}</div>
|
||||
<div>
|
||||
当前 ¥{item.amount} / 标准 ¥{item.maxAmount}/{item.perUnit}
|
||||
</div>
|
||||
<div>超出 ¥{item.exceededAmount} · {item.standardName}</div>
|
||||
<div>管控模式:{item.controlMode === "block" ? "阻断" : "预警"}</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</SectionPanel>
|
||||
) : null}
|
||||
|
||||
<SectionPanel title="审批动作" description="把通过、驳回、退回和转审统一收口在同一块操作区。">
|
||||
<div className="space-y-4">
|
||||
{actionError ? (
|
||||
|
||||
在新工单中引用
屏蔽一个用户