浏览代码

补回客户详情头部的运营商和运维团队

sy 10 小时之前
父节点
当前提交
462f9db040
共有 2 个文件被更改,包括 11 次插入 和 4 次删除
  1. 9 2
      web-scaffold/src/pages/CustomerWorkspacePage.tsx
  2. 2 2
      web-scaffold/src/styles/record-detail.css

+ 9 - 2
web-scaffold/src/pages/CustomerWorkspacePage.tsx

@@ -17,7 +17,7 @@
  * * ⛔ 合同文档上传路由 ⇒ 合同文档区只给应备项说明。
  */
 import { useEffect, useMemo, useRef, useState, type FormEvent, type KeyboardEvent as ReactKeyboardEvent, type ReactNode } from "react";
-import { ArrowLeft, Building2, CalendarPlus, Check, FileSignature, FileText, LoaderCircle, MapPin, PencilLine, RefreshCcw, RefreshCw, ScrollText, Upload, UserCheck, UsersRound, X } from "lucide-react";
+import { ArrowLeft, Building2, CalendarPlus, Check, FileSignature, FileText, LoaderCircle, MapPin, PencilLine, RefreshCcw, RefreshCw, ScrollText, Upload, UserCheck, UsersRound, Wrench, X } from "lucide-react";
 import { Link, useLocation, useParams } from "react-router";
 import { Button } from "../components/ui/button";
 import { Input } from "../components/ui/input";
@@ -535,7 +535,14 @@ export function CustomerWorkspacePage() {
         <div className="customer-record-tags">
           {subjectText && <OpsTag tone="brand">{subjectText}</OpsTag>}
           <AcctCell raw={customer?.acct_status} />
-          <span className="customer-record-region"><MapPin size={14} aria-hidden="true" /><TextCell value={mountedRegionPath} note="未取到该客户的区域挂载信息" /></span>
+          <span className="customer-record-meta"><MapPin size={14} aria-hidden="true" /><span><TextCell value={mountedRegionPath} note="未取到该客户的区域挂载信息" /></span></span>
+          <span className="customer-record-meta"><Building2 size={14} aria-hidden="true" /><span>运营商 <TextCell value={customer?.operator_name} /></span></span>
+          <span className="customer-record-meta">
+            <Wrench size={14} aria-hidden="true" />
+            <span>运维团队 <TextCell value={teamNames.join("、")} note="未取到该客户的运维团队信息" />
+              {staleTeamHint && <> <Tri tone="fail" text="需改派单支" title={staleTeamHint} /></>}
+            </span>
+          </span>
         </div>
       </div>
       <div className="ops-hero-actions customer-record-actions">

+ 2 - 2
web-scaffold/src/styles/record-detail.css

@@ -57,7 +57,7 @@
   gap: 6px;
 }
 
-.customer-record-region {
+.customer-record-meta {
   display: inline-flex;
   align-items: center;
   gap: 5px;
@@ -67,7 +67,7 @@
   overflow-wrap: anywhere;
 }
 
-.customer-record-region svg {
+.customer-record-meta svg {
   flex: none;
 }