Bladeren bron

fix(web): 调整工单撤回样式并移除材料提示

sy 3 dagen geleden
bovenliggende
commit
b42920cb23

+ 6 - 3
web-scaffold/src/pages/CustomerTicketPages.tsx

@@ -11,7 +11,7 @@
  *   ⛔ 把未上传的文件名随单提交,材料在建单后到工单详情直传(§5.8)。
  */
 import { useCallback, useEffect, useId, useState, type FormEvent } from "react";
-import { ArrowRight, Check, CircleAlert, ClipboardCheck, ClipboardList, Clock3, FileText, Headphones, Info, Paperclip, RefreshCw, Search, Send, Wrench, X } from "lucide-react";
+import { ArrowRight, Check, CircleAlert, ClipboardCheck, ClipboardList, Clock3, FileText, Headphones, Info, RefreshCw, Search, Send, Wrench, X } from "lucide-react";
 import { Link, useLocation, useSearchParams } from "react-router";
 import { Button } from "../components/ui/button";
 import { Input } from "../components/ui/input";
@@ -167,7 +167,6 @@ export function CustomerSubmitPage() {
             </div>
 
             <footer className="customer-request-footer">
-              <p><Paperclip size={15} aria-hidden="true" />提交后可在工单详情补充照片、录音等材料。</p>
               <Button type="submit" disabled={submit.busy}><Send size={16} aria-hidden="true" />{submit.busy ? "提交中…" : "提交工单"}</Button>
             </footer>
           </form>
@@ -357,7 +356,11 @@ function CustomerTicketProgressLedger() {
                 <td className="order-date">{item.completed_at ? fmtTime(item.completed_at) : <span className="table-placeholder">—</span>}</td>
                 <td className="order-date">{item.created_at ? fmtTime(item.created_at) : <span className="table-placeholder">—</span>}</td>
                 <td><div className="ops-inline-actions">
-                  {(gate.confirmClose || gate.withdraw || gate.needsDetail) && <button className="ops-table-action" type="button" onClick={() => setActive({ ...item, submitter_type: submitterType })}>{actionLabel}</button>}
+                  {(gate.confirmClose || gate.withdraw || gate.needsDetail) && <button
+                    className={gate.withdraw ? "ops-table-action is-danger" : "ops-table-action"}
+                    type="button"
+                    onClick={() => setActive({ ...item, submitter_type: submitterType })}
+                  >{actionLabel}</button>}
                   <Link className="ops-table-action" to={`/work-orders/${encodeURIComponent(number)}`} state={detailState} aria-label={`查看工单 ${number} 详情`}>详情<ArrowRight size={14} aria-hidden="true" /></Link>
                 </div></td>
               </tr>;

+ 2 - 6
web-scaffold/src/styles/customer-ticket-submit.css

@@ -106,14 +106,10 @@
 .customer-request-fields > .ops-form-error { margin: 0; }
 .customer-request-footer {
   display: flex;
-  flex-wrap: wrap;
-  align-items: center;
-  gap: 10px 16px;
+  justify-content: flex-end;
   padding: 14px var(--request-inset);
   border-top: 1px solid var(--border-subtle);
 }
-.customer-request-footer button { margin-inline-start: auto; }
-.customer-request-footer p,
 .customer-request-scope {
   display: flex;
   align-items: flex-start;
@@ -123,7 +119,7 @@
   font-size: var(--type-meta);
   line-height: 1.6;
 }
-.customer-request-footer p svg, .customer-request-scope svg { flex: none; margin-top: 2px; color: var(--icon); }
+.customer-request-scope svg { flex: none; margin-top: 2px; color: var(--icon); }
 .customer-request-guide { padding: 18px var(--request-inset); }
 .customer-request-guide ol { margin: 16px 0; padding-inline-start: 18px; list-style: decimal; }
 .customer-request-guide li + li { margin-top: 13px; }