Преглед на файлове

style(web): 统一对账补跑和登记更正按钮样式

sy преди 2 дни
родител
ревизия
1c66044b64

+ 2 - 2
web-scaffold/src/pages/FinanceReferencePages.tsx

@@ -3,7 +3,7 @@ import { PageIntro } from "../components/PageIntro";
 import { FilterSelect } from "../components/ui/filter-select";
 import { MonthFilter } from "../components/ui/month-filter";
 import { useEffect, useMemo, useRef, useState, type ReactNode } from "react";
-import { ArrowLeft, ArrowRight, PencilLine, Plus, Search, Trash2, X } from "lucide-react";
+import { ArrowLeft, ArrowRight, FilePenLine, PencilLine, Plus, Search, Trash2, X } from "lucide-react";
 import { ListPager, ServerListPager } from "../components/ListPager";
 import { slicePage, useLocalPage, LIST_PAGE_SIZE } from "../lib/list-paging";
 import { Button } from "../components/ui/button";
@@ -799,7 +799,7 @@ export function CorrectionNotesPage() {
     {back.to !== "/correction-notes" && <Link className="ops-back-link self-start" to={back.to} state={back.state}><ArrowLeft size={16} aria-hidden="true" />{back.label}</Link>}
     <header className="ops-heading">
       <div><h1>出账更正记录</h1><PageIntro>发现已出账的差错时,在这里登记问题、关联账单,便于日后核查。</PageIntro></div>
-      <Button onClick={() => setCreating(true)}><Plus size={16} />登记更正</Button>
+      <Button onClick={() => setCreating(true)}><FilePenLine size={15} aria-hidden="true" />登记更正</Button>
     </header>
     {wiring && <p className="ops-import-note" role="status">{CORRECTION_WIRING_NOTE}</p>}
     {list.fail && !wiring && <p className="ops-form-error" role="alert">{list.fail.message} <Button variant="ghost" size="sm" onClick={list.reload}>重试</Button></p>}

+ 3 - 3
web-scaffold/src/pages/SettlementRecordPages.tsx

@@ -630,17 +630,17 @@ function BatchRecordPage({ no }: { no?: string }) {
           </div>}
         </div>
         {batch && <div className="batch-record-actions">
-          <Button variant="outline" onClick={exportDetail} disabled={batch.can_export !== true || exporting}
+          <Button variant="outline" className="batch-record-export" onClick={exportDetail} disabled={batch.can_export !== true || exporting}
             title={batch.can_export == null ? ACTION_FLAG_PENDING_NOTE : undefined}>
             <Download size={15} aria-hidden="true" />{exporting ? "正在导出…" : "导出本批账单明细"}
           </Button>
           {isAdmin && <>
-            <Button variant="outline" disabled={batch.can_rerun !== true}
+            <Button disabled={batch.can_rerun !== true}
               title={batch.can_rerun == null ? ACTION_FLAG_PENDING_NOTE : undefined}
               onClick={() => { setRerunError(""); setConfirmRerun(true); }}>
               <RefreshCw size={15} aria-hidden="true" />人工补跑
             </Button>
-            <Button variant="outline" disabled={batch.can_correct !== true}
+            <Button disabled={batch.can_correct !== true}
               title={batch.can_correct == null ? ACTION_FLAG_PENDING_NOTE : undefined}
               onClick={() => navigate("/correction-notes", { state: { ...outgoingState, ref: batch.batch_no } })}>
               <FilePenLine size={15} aria-hidden="true" />登记更正

+ 2 - 2
web-scaffold/src/styles/settlement-records.css

@@ -122,8 +122,8 @@
 .batch-record .batch-record-masthead, .batch-record .batch-record-metrics { margin: 0; }
 .batch-record-context { gap: 6px 12px; }
 .batch-record-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
-.batch-record-actions button { background: var(--card); }
-.batch-record-actions button:hover:enabled { background: var(--primary-soft); }
+.batch-record-actions .batch-record-export { background: var(--card); }
+.batch-record-actions .batch-record-export:hover:enabled { background: var(--primary-soft); }
 .batch-record-metrics > div.batch-record-metric-primary { background: var(--primary-soft); }
 .batch-record-metrics > div:not(.batch-record-metric-primary) strong { color: var(--foreground); }
 .batch-record-unit { margin-inline-start: 4px; }