refactor(ui): [UI8] 彻底移除遗留Card并补充下拉框中文化
这个提交包含在:
@@ -18,7 +18,6 @@ import { CardSkeleton } from "../components/common/CardSkeleton";
|
||||
import { PageHeader } from "../components/common/PageHeader";
|
||||
import { StatusBadge } from "../components/common/StatusBadge";
|
||||
import { Button } from "../components/ui/button";
|
||||
import { Card } from "../components/ui/card";
|
||||
import { Textarea } from "../components/ui/textarea";
|
||||
|
||||
export function WorkflowTaskDetailPage() {
|
||||
@@ -98,9 +97,9 @@ export function WorkflowTaskDetailPage() {
|
||||
|
||||
if (!taskId) {
|
||||
return (
|
||||
<Card className="p-6">
|
||||
<div className="card-std p-6">
|
||||
<p className="text-sm text-red-600">缺少 taskId 参数。</p>
|
||||
</Card>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -120,7 +119,7 @@ export function WorkflowTaskDetailPage() {
|
||||
: "加载失败,请返回列表重试";
|
||||
|
||||
return (
|
||||
<Card className="space-y-3 p-6">
|
||||
<div className="card-std space-y-3 p-6">
|
||||
<p className="text-sm text-red-600">{message}</p>
|
||||
<Button
|
||||
variant="secondary"
|
||||
@@ -129,7 +128,7 @@ export function WorkflowTaskDetailPage() {
|
||||
>
|
||||
返回待办列表
|
||||
</Button>
|
||||
</Card>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -147,16 +146,16 @@ export function WorkflowTaskDetailPage() {
|
||||
}
|
||||
/>
|
||||
|
||||
<Card className="space-y-2 p-6 text-sm" data-testid="workflow-task-summary">
|
||||
<div className="card-std space-y-2 p-6 text-sm" data-testid="workflow-task-summary">
|
||||
<div>状态:<StatusBadge status={detail.task.status} /></div>
|
||||
<div>实例:{detail.workflowInstance?.id ?? "-"}</div>
|
||||
<div>报销单号:{detail.reimbursement?.formNumber ?? "-"}</div>
|
||||
<div>报销金额:{detail.reimbursement?.totalAmount ?? "-"}</div>
|
||||
<div>提交人:{detail.reimbursement?.submitter?.name ?? "-"}</div>
|
||||
<div>报销人:{detail.reimbursement?.owner?.name ?? "-"}</div>
|
||||
</Card>
|
||||
</div>
|
||||
|
||||
<Card className="space-y-4 p-6">
|
||||
<div className="card-std space-y-4 p-6">
|
||||
<h3 className="text-base font-semibold text-zinc-900">审批动作</h3>
|
||||
|
||||
{actionError ? (
|
||||
@@ -253,9 +252,9 @@ export function WorkflowTaskDetailPage() {
|
||||
提交转审
|
||||
</Button>
|
||||
</div>
|
||||
</Card>
|
||||
</div>
|
||||
|
||||
<Card className="space-y-3 p-6">
|
||||
<div className="card-std space-y-3 p-6">
|
||||
<h3 className="text-base font-semibold text-zinc-900">处理历史</h3>
|
||||
<div className="space-y-2">
|
||||
{detail.history.length ? (
|
||||
@@ -272,7 +271,7 @@ export function WorkflowTaskDetailPage() {
|
||||
<p className="text-sm text-zinc-500">暂无历史记录</p>
|
||||
)}
|
||||
</div>
|
||||
</Card>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户