|
@@ -11,26 +11,28 @@
|
|
|
* ⚠️ 分组只用列表行已有字段(`status`/`deferred_until`/`execution_not_before`/`expected_done_date`),
|
|
* ⚠️ 分组只用列表行已有字段(`status`/`deferred_until`/`execution_not_before`/`expected_done_date`),
|
|
|
* ⛔ 需要详情才对得上的结论。三组口径与日期读数都在 `lib/work-order-todo-row.ts`(组名、边界与组内排序
|
|
* ⛔ 需要详情才对得上的结论。三组口径与日期读数都在 `lib/work-order-todo-row.ts`(组名、边界与组内排序
|
|
|
* 有单测兜着),页内⛔ 再写一份 `new Date()` 或自己算「还剩几天」。
|
|
* 有单测兜着),页内⛔ 再写一份 `new Date()` 或自己算「还剩几天」。
|
|
|
- * 一次取 100 张(服务端 `page_norm` 上限),取满时页脚明说「还有更多,去我的工单」,
|
|
|
|
|
- * ⛔ 把当页说成全量。
|
|
|
|
|
|
|
+ * 一次最多取 100 张(服务端 `page_norm` 上限),实际还有更多时在页脚说明展示范围。
|
|
|
*/
|
|
*/
|
|
|
-import { useDetailLinkState } from "../lib/detail-navigation";
|
|
|
|
|
-import { Link, Navigate } from "react-router";
|
|
|
|
|
|
|
+import { useDetailLinkState, type DetailLinkState } from "../lib/detail-navigation";
|
|
|
|
|
+import { Link, Navigate, useLocation } from "react-router";
|
|
|
import { PageIntro } from "../components/PageIntro";
|
|
import { PageIntro } from "../components/PageIntro";
|
|
|
import { useState } from "react";
|
|
import { useState } from "react";
|
|
|
-import { ArrowRight, CheckCircle2, Clock3, Info, Search, TriangleAlert } from "lucide-react";
|
|
|
|
|
|
|
+import { ArrowRight, ClipboardCheck, ClipboardList, Clock3, Hourglass, LoaderCircle, TriangleAlert, Wrench } from "lucide-react";
|
|
|
|
|
+import { OpsTableColumns } from "../components/OperationsKit";
|
|
|
import { TicketState } from "../components/ticketState";
|
|
import { TicketState } from "../components/ticketState";
|
|
|
import { TicketStatusTag, TicketTypeTag } from "../components/work-order/TicketBadges";
|
|
import { TicketStatusTag, TicketTypeTag } from "../components/work-order/TicketBadges";
|
|
|
import { ticketUrge, type TicketListItem, type TicketWaiting } from "../lib/api/ticket";
|
|
import { ticketUrge, type TicketListItem, type TicketWaiting } from "../lib/api/ticket";
|
|
|
import { classifyTicketError, fmtDate, useTicketList } from "../lib/ticket";
|
|
import { classifyTicketError, fmtDate, useTicketList } from "../lib/ticket";
|
|
|
import { nextStepOf, type NextStep } from "../lib/work-order-next-step";
|
|
import { nextStepOf, type NextStep } from "../lib/work-order-next-step";
|
|
|
import { businessToday, daysUntil } from "../lib/business-date";
|
|
import { businessToday, daysUntil } from "../lib/business-date";
|
|
|
-import { groupTodoRows, todoRowDeadline, todoRowSummary } from "../lib/work-order-todo-row";
|
|
|
|
|
|
|
+import { groupTodoRows, todoRowDeadline, todoRowSummary, type TodoGroupId } from "../lib/work-order-todo-row";
|
|
|
import { useDemoIdentity } from "../lib/demo-session";
|
|
import { useDemoIdentity } from "../lib/demo-session";
|
|
|
import { MobileEntryHint } from "./mobile/MobileWorkOrderPages";
|
|
import { MobileEntryHint } from "./mobile/MobileWorkOrderPages";
|
|
|
import "../styles/operations.css";
|
|
import "../styles/operations.css";
|
|
|
import "../styles/work-orders.css";
|
|
import "../styles/work-orders.css";
|
|
|
import "../styles/work-order-guide.css";
|
|
import "../styles/work-order-guide.css";
|
|
|
|
|
+import "../styles/orders.css";
|
|
|
|
|
+import "../styles/work-order-mine.css";
|
|
|
|
|
|
|
|
/** 在办与待确认的全部状态(服务端 `assignee=me` 再收窄到本人名下)。 */
|
|
/** 在办与待确认的全部状态(服务端 `assignee=me` 再收窄到本人名下)。 */
|
|
|
const MINE_STATUSES = ["unassigned", "pending", "processing", "completed", "rejected"];
|
|
const MINE_STATUSES = ["unassigned", "pending", "processing", "completed", "rejected"];
|
|
@@ -43,6 +45,14 @@ const MINE_PAGE_SIZE = 100;
|
|
|
*/
|
|
*/
|
|
|
const MINE_ROLES = ["admin", "regAdmin", "teamLead", "ops", "worker"];
|
|
const MINE_ROLES = ["admin", "regAdmin", "teamLead", "ops", "worker"];
|
|
|
|
|
|
|
|
|
|
+const MINE_QUEUES = [
|
|
|
|
|
+ { id: "all", label: "全部待办", icon: ClipboardList },
|
|
|
|
|
+ { id: "due", label: "优先处理", icon: TriangleAlert },
|
|
|
|
|
+ { id: "rest", label: "在办", icon: Wrench },
|
|
|
|
|
+ { id: "waiting", label: "待对方确认", icon: Hourglass },
|
|
|
|
|
+] as const;
|
|
|
|
|
+type MineView = "all" | TodoGroupId;
|
|
|
|
|
+
|
|
|
export function WorkOrderMinePage() {
|
|
export function WorkOrderMinePage() {
|
|
|
const identity = useDemoIdentity();
|
|
const identity = useDemoIdentity();
|
|
|
if (identity && !MINE_ROLES.includes(identity.role)) return <Navigate to="/work-orders" replace />;
|
|
if (identity && !MINE_ROLES.includes(identity.role)) return <Navigate to="/work-orders" replace />;
|
|
@@ -51,93 +61,156 @@ export function WorkOrderMinePage() {
|
|
|
|
|
|
|
|
function WorkOrderMineInner() {
|
|
function WorkOrderMineInner() {
|
|
|
const linkState = useDetailLinkState();
|
|
const linkState = useDetailLinkState();
|
|
|
- // `assignee: "me"`:把「可见范围」收窄到「本人名下」(服务端解析 `me`,⛔ 前端传 user_id)。
|
|
|
|
|
|
|
+ const location = useLocation();
|
|
|
|
|
+ const params = new URLSearchParams(location.search);
|
|
|
|
|
+ const activeQueue = MINE_QUEUES.find(({ id }) => id === params.get("view")) ?? MINE_QUEUES[0];
|
|
|
|
|
+
|
|
|
|
|
+ // assignee=me 由服务端解析并与会话的可见范围取交集。
|
|
|
const list = useTicketList({ statuses: MINE_STATUSES, assignee: "me" }, 1, MINE_PAGE_SIZE);
|
|
const list = useTicketList({ statuses: MINE_STATUSES, assignee: "me" }, 1, MINE_PAGE_SIZE);
|
|
|
const fail = list.error ? classifyTicketError(list.error) : null;
|
|
const fail = list.error ? classifyTicketError(list.error) : null;
|
|
|
const rows = list.data?.rows ?? [];
|
|
const rows = list.data?.rows ?? [];
|
|
|
const total = list.data?.total ?? 0;
|
|
const total = list.data?.total ?? 0;
|
|
|
- // 分组与行内读数共用 `businessToday()`:⛔ 各自取一次 `new Date()`,跨零点会打架。
|
|
|
|
|
const today = businessToday();
|
|
const today = businessToday();
|
|
|
const groups = groupTodoRows(rows, today);
|
|
const groups = groupTodoRows(rows, today);
|
|
|
- // 「已超期」只用**服务端**真布尔(含延期载体与业务日口径)。⛔ 用 `daysLeft <= 0` 本地推:
|
|
|
|
|
- // 开通类的计划执行日=服务开始日,开始日**当天**是正常执行日(次日起才超期),
|
|
|
|
|
- // 本地推会把「今天必须执行」误计成「已超期」。
|
|
|
|
|
- const overdue = rows.filter((row) => row.status !== "completed" && row.overdue_7d === true).length;
|
|
|
|
|
|
|
+ const displayedGroups = activeQueue.id === "all" ? groups : groups.filter(({ id }) => id === activeQueue.id);
|
|
|
const truncated = total > rows.length;
|
|
const truncated = total > rows.length;
|
|
|
|
|
+ const loaded = !list.loading && !fail;
|
|
|
|
|
+
|
|
|
|
|
+ // 开通类计划执行日当天可以执行,是否超期以服务端字段为准。
|
|
|
|
|
+ const overdue = rows.filter((row) => row.status !== "completed" && row.overdue_7d === true).length;
|
|
|
|
|
+ const counts = { all: rows.length, due: 0, rest: 0, waiting: 0 };
|
|
|
|
|
+ for (const group of groups) counts[group.id] = group.rows.length;
|
|
|
|
|
+
|
|
|
|
|
+ const metrics = [
|
|
|
|
|
+ { label: "当前待办", value: rows.length, icon: ClipboardList, tone: "primary" },
|
|
|
|
|
+ { label: "已超期", value: overdue, icon: Clock3, tone: overdue > 0 ? "warning" : undefined },
|
|
|
|
|
+ { label: "待对方确认", value: counts.waiting, icon: Hourglass },
|
|
|
|
|
+ ];
|
|
|
|
|
+
|
|
|
|
|
+ function queueUrl(view: MineView) {
|
|
|
|
|
+ const next = new URLSearchParams(params);
|
|
|
|
|
+ if (view === "all") next.delete("view");
|
|
|
|
|
+ else next.set("view", view);
|
|
|
|
|
+ return { pathname: location.pathname, search: next.toString(), hash: location.hash };
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- return <section className="work-order-page work-order-mine-page">
|
|
|
|
|
- <header className="work-order-heading">
|
|
|
|
|
|
|
+ return <section className="order-page work-order-mine-page">
|
|
|
|
|
+ <header className="order-heading work-order-mine-heading">
|
|
|
<div>
|
|
<div>
|
|
|
- <p className="work-order-eyebrow"><span /> MY TODO / 我的待办</p>
|
|
|
|
|
<h1>我的待办</h1>
|
|
<h1>我的待办</h1>
|
|
|
- <PageIntro>先处理今天必须完成的工单,再跟进手上的在办事项。</PageIntro>
|
|
|
|
|
|
|
+ <PageIntro>查看分派给你的工单,按期限安排处理和跟进。</PageIntro>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div className="work-order-mine-links">
|
|
|
<MobileEntryHint />
|
|
<MobileEntryHint />
|
|
|
|
|
+ <Link className="work-order-mine-all" to="/work-orders">全部工单<ArrowRight size={15} aria-hidden="true" /></Link>
|
|
|
</div>
|
|
</div>
|
|
|
- <Link className="work-order-scope" to="/work-orders">全部工单<ArrowRight size={14} /></Link>
|
|
|
|
|
</header>
|
|
</header>
|
|
|
|
|
|
|
|
- <div className="work-order-mine-metrics">
|
|
|
|
|
- <div className={overdue > 0 ? "is-danger" : ""}><span>待我处理</span><strong>{list.loading ? "…" : fail ? "—" : rows.length}</strong><small>{truncated ? `共 ${total} 张,此处只列 ${rows.length} 张` : "全部在办"}</small></div>
|
|
|
|
|
- <div className={overdue > 0 ? "is-danger" : ""}><span>已超期</span><strong>{list.loading ? "…" : fail ? "—" : overdue}</strong><small>按服务端口径:开通类开始日次日起计入</small></div>
|
|
|
|
|
- <div><span>待别人确认</span><strong>{list.loading ? "…" : fail ? "—" : groups.find((g) => g.id === "waiting")?.rows.length ?? 0}</strong><small>等运营商回执或客户确认(行内写明对家账号)</small></div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <dl className="work-order-mine-summary" aria-label="当前待办统计">
|
|
|
|
|
+ {metrics.map(({ label, value, icon: Icon, tone }) => <div key={label} data-tone={tone}>
|
|
|
|
|
+ <dt><span className="work-order-mine-metric-icon" aria-hidden="true"><Icon size={17} /></span>{label}</dt>
|
|
|
|
|
+ <dd>{list.loading ? "…" : fail ? "—" : value.toLocaleString("zh-CN")}</dd>
|
|
|
|
|
+ </div>)}
|
|
|
|
|
+ </dl>
|
|
|
|
|
|
|
|
- {list.loading && <div className="work-order-empty"><Search size={27} /><h3>正在读取我的待办…</h3></div>}
|
|
|
|
|
- {fail && <TicketState fail={fail} onRetry={list.reload} />}
|
|
|
|
|
- {!list.loading && !fail && !rows.length && <div className="work-order-empty"><CheckCircle2 size={27} /><h3>今天没有待办</h3><p>分派给你的工单会出现在这里;也可以去「全部工单」看团队整体情况。</p><Link className="work-order-next-step tone-todo" to="/work-orders">去全部工单</Link></div>}
|
|
|
|
|
-
|
|
|
|
|
- {!list.loading && !fail && groups.map((group) => <section className={`work-order-todo-group tone-${group.tone}`} key={group.id}>
|
|
|
|
|
- <header><div><h2>{group.tone === "urgent" ? <TriangleAlert size={17} /> : group.tone === "waiting" ? <Clock3 size={17} /> : <Info size={17} />}{group.title}</h2><p>{group.hint}</p></div><span>{group.rows.length} 张</span></header>
|
|
|
|
|
- <ul>
|
|
|
|
|
- {group.rows.map((row) => {
|
|
|
|
|
- const step = nextStepOf(row);
|
|
|
|
|
- // 期限口径统一走 `todoRowDeadline`(延期 > 开通类计划执行日 > 期限日),⛔ 在这里另取一遍字段,
|
|
|
|
|
- // 否则分组用的日期与行内显示的日期可以是两天。开始日**当天**是执行日,不算超期。
|
|
|
|
|
- const deadline = todoRowDeadline(row);
|
|
|
|
|
- const due = deadline.date;
|
|
|
|
|
- const planned = deadline.kind === "planned";
|
|
|
|
|
- const left = daysUntil(due, today);
|
|
|
|
|
- // 行首只留「标题+类型/状态徽标」与「工单号·客户」两行:类型前缀、责任人(恒为本人)、
|
|
|
|
|
- // 团队(恒为本人团队)与重复的客户名都已折叠,细节见 `work-order-todo-row.ts`。
|
|
|
|
|
- const summary = todoRowSummary(row);
|
|
|
|
|
- return <li key={row.ticket_id}>
|
|
|
|
|
- <div className="work-order-todo-main">
|
|
|
|
|
- <div className="work-order-todo-title">
|
|
|
|
|
- <Link to={`/work-orders/${encodeURIComponent(row.ticket_id)}`} state={linkState}>{summary.title}</Link>
|
|
|
|
|
- <TicketTypeTag type={row.ticket_type} />
|
|
|
|
|
- <TicketStatusTag status={row.status} type={row.ticket_type} />
|
|
|
|
|
- </div>
|
|
|
|
|
- {summary.meta && <small>{summary.meta}</small>}
|
|
|
|
|
- </div>
|
|
|
|
|
- <div className="work-order-todo-due">
|
|
|
|
|
- <span>{deadline.kind === "deferred" ? "已延期至" : planned ? "计划执行" : "期限"}</span>
|
|
|
|
|
- <strong className={left !== null && left < (planned ? 0 : 1) ? "is-late" : undefined}>{fmtDate(due)}</strong>
|
|
|
|
|
- <small>{left === null ? "按 SLA" : left < 0 ? `已超 ${-left} 天` : left === 0 ? (planned ? "今天必须执行" : "今天到期") : `还剩 ${left} 天`}</small>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div className="work-order-todo-action">
|
|
|
|
|
- {/* 只读态写明**卡在谁手里/卡在哪一步**(等电信(江苏省)回执/等客户确认/未到执行日),
|
|
|
|
|
- ⛔ 一律写「等待对方」——那等于没说。对家姓名由服务端 `waiting` 下发。
|
|
|
|
|
- 对家人名**加粗**(业主 2026-11-18 裁定):切开 `passiveLabel` 只为套一层
|
|
|
|
|
- `<strong>`,⛔ 前端按词猜哪段是人名。
|
|
|
|
|
- 「催办」紧贴姓名右侧(同一行,见 `.work-order-todo-action` 的换行网格),
|
|
|
|
|
- ⛔ 单独占一行——那会把「找谁」和「催谁」拆成两段读。 */}
|
|
|
|
|
- {step.label
|
|
|
|
|
- ? <Link className={`work-order-next-step tone-${step.tone}`} to={`/work-orders/${encodeURIComponent(row.ticket_id)}${step.action ? `?act=${step.action}` : ""}`} state={linkState}>{step.label}<ArrowRight size={14} /></Link>
|
|
|
|
|
- : <span className={`work-order-next-step is-passive tone-${step.tone}`}>{passiveParts(step)}</span>}
|
|
|
|
|
- <UrgeControl row={row} onSent={list.reload} />
|
|
|
|
|
- {step.hint && <small>{step.hint}</small>}
|
|
|
|
|
- </div>
|
|
|
|
|
- </li>;
|
|
|
|
|
- })}
|
|
|
|
|
- </ul>
|
|
|
|
|
- </section>)}
|
|
|
|
|
-
|
|
|
|
|
- {!list.loading && !fail && rows.length > 0 && <p className="work-order-block-note">
|
|
|
|
|
- <Info size={13} />{truncated ? `一次最多展示 ${MINE_PAGE_SIZE} 张,当前共 ${total} 张:` : "以上为全部分派给你的工单:"}请先闭合超期与驳回项,其余按期限推进。<Link to="/work-orders">去全部工单</Link>
|
|
|
|
|
- </p>}
|
|
|
|
|
|
|
+ <div className="work-order-mine-desk">
|
|
|
|
|
+ <nav className="work-order-mine-nav" aria-label="待办分组">
|
|
|
|
|
+ <h2>任务队列</h2>
|
|
|
|
|
+ <div className="work-order-mine-views">
|
|
|
|
|
+ {MINE_QUEUES.map(({ id, label, icon: Icon }) => <Link key={id} to={queueUrl(id)} replace state={location.state}
|
|
|
|
|
+ aria-current={activeQueue.id === id ? "page" : undefined}>
|
|
|
|
|
+ <Icon size={16} aria-hidden="true" />
|
|
|
|
|
+ <span>{label}</span>
|
|
|
|
|
+ {loaded && <small className="work-order-mine-view-count" data-priority={id === "due" && counts[id] > 0}>{counts[id]}</small>}
|
|
|
|
|
+ </Link>)}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </nav>
|
|
|
|
|
+
|
|
|
|
|
+ <section className="order-list-shell work-order-mine-queue" aria-label={activeQueue.label}>
|
|
|
|
|
+ {list.loading ? <div className="order-empty work-order-mine-empty" role="status">
|
|
|
|
|
+ <LoaderCircle size={23} className="work-order-mine-loading" aria-hidden="true" />正在读取待办…
|
|
|
|
|
+ </div> : fail ? <TicketState fail={fail} onRetry={list.reload} />
|
|
|
|
|
+ : !displayedGroups.length ? <div className="order-empty work-order-mine-empty">
|
|
|
|
|
+ <ClipboardCheck size={26} aria-hidden="true" />
|
|
|
|
|
+ <h3>{rows.length ? "这一组暂无工单" : "暂无待办工单"}</h3>
|
|
|
|
|
+ {!rows.length && <p>分派给你的工单会出现在这里。</p>}
|
|
|
|
|
+ </div> : <div className="ops-table-wrap work-order-mine-scroll" role="region" aria-label="待办工单清单" tabIndex={0}>
|
|
|
|
|
+ <table className="ops-table work-order-mine-table" aria-label="我的待办工单">
|
|
|
|
|
+ <OpsTableColumns widths={[370, 205, 155, 270]} />
|
|
|
|
|
+ <thead><tr>
|
|
|
|
|
+ <th scope="col">工单事项</th>
|
|
|
|
|
+ <th scope="col">类型 / 状态</th>
|
|
|
|
|
+ <th scope="col">执行 / 期限</th>
|
|
|
|
|
+ <th scope="col">下一步</th>
|
|
|
|
|
+ </tr></thead>
|
|
|
|
|
+ {displayedGroups.map((group) => <tbody key={group.id}>
|
|
|
|
|
+ {activeQueue.id === "all" && <tr className="work-order-mine-group" data-tone={group.tone}>
|
|
|
|
|
+ <th colSpan={4} scope="rowgroup">
|
|
|
|
|
+ <span className="work-order-mine-group-label" title={group.hint}>
|
|
|
|
|
+ {group.id === "due" ? <TriangleAlert size={14} aria-hidden="true" /> : group.id === "waiting"
|
|
|
|
|
+ ? <Hourglass size={14} aria-hidden="true" /> : <ClipboardList size={14} aria-hidden="true" />}
|
|
|
|
|
+ {MINE_QUEUES.find(({ id }) => id === group.id)?.label}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ {group.id === "due" && <span className="work-order-mine-group-hint">{group.hint}</span>}
|
|
|
|
|
+ </th>
|
|
|
|
|
+ </tr>}
|
|
|
|
|
+ {group.rows.map((row) => <MineQueueRow key={row.ticket_id} row={row} today={today} linkState={linkState} onUrged={list.reload} />)}
|
|
|
|
|
+ </tbody>)}
|
|
|
|
|
+ </table>
|
|
|
|
|
+ </div>}
|
|
|
|
|
+ {loaded && truncated && <footer className="work-order-mine-footer">
|
|
|
|
|
+ <span>展示前 {rows.length} 张待办,共 {total.toLocaleString("zh-CN")} 张。各分组按当前展示的工单统计。</span>
|
|
|
|
|
+ <Link className="ops-table-action" to="/work-orders">去全部工单<ArrowRight size={14} aria-hidden="true" /></Link>
|
|
|
|
|
+ </footer>}
|
|
|
|
|
+ </section>
|
|
|
|
|
+ </div>
|
|
|
</section>;
|
|
</section>;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+function MineQueueRow({ row, today, linkState, onUrged }: {
|
|
|
|
|
+ row: TicketListItem; today: string; linkState: DetailLinkState; onUrged: () => void;
|
|
|
|
|
+}) {
|
|
|
|
|
+ const summary = todoRowSummary(row);
|
|
|
|
|
+ const step = nextStepOf(row);
|
|
|
|
|
+ const deadline = todoRowDeadline(row);
|
|
|
|
|
+ const ticketPath = `/work-orders/${encodeURIComponent(row.ticket_id)}`;
|
|
|
|
|
+ const planned = deadline.kind === "planned";
|
|
|
|
|
+ const left = row.status === "completed" ? null : daysUntil(deadline.date, today);
|
|
|
|
|
+ const dateLabel = deadline.kind === "deferred" ? "已延期至" : planned ? "计划执行" : "期限";
|
|
|
|
|
+ const relative = left === null ? null : left < 0 ? `已超 ${-left} 天` : left === 0
|
|
|
|
|
+ ? (planned ? "今天必须执行" : "今天到期") : `还剩 ${left} 天`;
|
|
|
|
|
+ const late = left !== null && left < (planned ? 0 : 1);
|
|
|
|
|
+
|
|
|
|
|
+ return <tr className="work-order-mine-row">
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <Link to={ticketPath} state={linkState} className="table-cell-title" title={summary.title}>{summary.title}</Link>
|
|
|
|
|
+ {summary.meta && <small className="work-order-mine-meta" title={summary.meta}>{summary.meta}</small>}
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td><div className="work-order-mine-badges">
|
|
|
|
|
+ <TicketTypeTag type={row.ticket_type} />
|
|
|
|
|
+ <TicketStatusTag status={row.status} type={row.ticket_type} />
|
|
|
|
|
+ </div></td>
|
|
|
|
|
+ <td className="work-order-mine-date">
|
|
|
|
|
+ {deadline.date ? <>
|
|
|
|
|
+ <time dateTime={deadline.date}>{fmtDate(deadline.date)}</time>
|
|
|
|
|
+ <small className={late ? "is-late" : undefined}>{dateLabel}{relative && ` · ${relative}`}</small>
|
|
|
|
|
+ </> : <span className="table-placeholder">按 SLA</span>}
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <td>
|
|
|
|
|
+ <div className="work-order-mine-next">
|
|
|
|
|
+ {step.label
|
|
|
|
|
+ ? <Link className={`work-order-next-step tone-${step.tone}`}
|
|
|
|
|
+ to={step.action ? `${ticketPath}?act=${step.action}` : ticketPath} state={linkState}>
|
|
|
|
|
+ {step.label}<ArrowRight size={14} aria-hidden="true" />
|
|
|
|
|
+ </Link>
|
|
|
|
|
+ : <span className={`work-order-next-step is-passive tone-${step.tone}`}>{passiveParts(step)}</span>}
|
|
|
|
|
+ <UrgeControl row={row} onSent={onUrged} />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ {step.hint && <small>{step.hint}</small>}
|
|
|
|
|
+ </td>
|
|
|
|
|
+ </tr>;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 只读态文案的渲染片段:把对家**人名**套一层 `<strong>`(业主 2026-11-18 裁定:人名要加粗)。
|
|
* 只读态文案的渲染片段:把对家**人名**套一层 `<strong>`(业主 2026-11-18 裁定:人名要加粗)。
|
|
|
*
|
|
*
|