فهرست منبع

恢复客户详情原标题字号和右侧按钮

sy 3 ساعت پیش
والد
کامیت
74452b79d7
2فایلهای تغییر یافته به همراه6 افزوده شده و 25 حذف شده
  1. 5 11
      web-scaffold/src/pages/CustomerWorkspacePage.tsx
  2. 1 14
      web-scaffold/src/styles/record-detail.css

+ 5 - 11
web-scaffold/src/pages/CustomerWorkspacePage.tsx

@@ -526,10 +526,7 @@ export function CustomerWorkspacePage() {
     return labelText === "生效中";
   });
   return <section className="ops-page ops-record-page customer-workspace record-detail">
-    <div className="customer-record-navigation">
-      <Link to={back.to} state={back.state} className="ops-back-link"><ArrowLeft size={16} />{back.label}</Link>
-      <Button variant="ghost" size="sm" onClick={detail.reload}><RefreshCcw size={15} />刷新</Button>
-    </div>
+    <Link to={back.to} state={back.state} className="ops-back-link"><ArrowLeft size={16} />{back.label}</Link>
     <header className="customer-record-masthead">
       <div className="customer-hero-symbol" aria-hidden="true"><Building2 size={26} /></div>
       <div className="customer-hero-copy">
@@ -541,19 +538,16 @@ export function CustomerWorkspacePage() {
           <span className="customer-record-region"><MapPin size={14} aria-hidden="true" /><TextCell value={mountedRegionPath} note="未取到该客户的区域挂载信息" /></span>
         </div>
       </div>
-      {writable && <div className="ops-hero-actions customer-record-actions">
+      <div className="ops-hero-actions customer-record-actions">
         {/* D-11:手册「客户/订阅详情页」均可发起服务停用;停用挂具体订阅(工单§3.2.1)。 */}
-        {heroStopSub ? <CustomerServiceStopAction
+        {writable && heroStopSub ? <CustomerServiceStopAction
           customerId={no || ""}
           customerName={displayName}
           orderId={heroStopSub.subscription_id}
           orderLabel={heroStopSub.status_display?.label ?? orderView(heroStopSub).statusLabel}
         /> : null}
-        <Button variant="outline" size="sm" disabled={!form || busy} onClick={() => {
-          setTab("profile");
-          startField("name");
-        }}>编辑档案</Button>
-      </div>}
+        <Button variant="outline" onClick={detail.reload}><RefreshCcw size={15} />刷新</Button>
+      </div>
     </header>
 
     <dl className="customer-record-metrics" aria-label="客户业务摘要">

+ 1 - 14
web-scaffold/src/styles/record-detail.css

@@ -10,19 +10,6 @@
   box-shadow: var(--shadow-card);
 }
 
-.customer-record-navigation {
-  display: flex;
-  flex-wrap: wrap;
-  align-items: center;
-  justify-content: space-between;
-  gap: 8px;
-  margin-bottom: 10px;
-}
-
-.customer-record-navigation .ops-back-link {
-  margin-bottom: 0;
-}
-
 .customer-record-masthead {
   display: grid;
   grid-template-columns: auto minmax(0, 1fr) auto;
@@ -57,7 +44,7 @@
 .customer-record-title {
   margin: 4px 0 8px;
   color: var(--foreground);
-  font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem);
+  font-size: clamp(21px, 1.8vw, 25px);
   font-weight: 650;
   line-height: 1.24;
   overflow-wrap: anywhere;