|
@@ -11,7 +11,7 @@
|
|
|
* ⛔ 把未上传的文件名随单提交,材料在建单后到工单详情直传(§5.8)。
|
|
* ⛔ 把未上传的文件名随单提交,材料在建单后到工单详情直传(§5.8)。
|
|
|
*/
|
|
*/
|
|
|
import { useCallback, useEffect, useId, useState, type FormEvent } from "react";
|
|
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 { Link, useLocation, useSearchParams } from "react-router";
|
|
|
import { Button } from "../components/ui/button";
|
|
import { Button } from "../components/ui/button";
|
|
|
import { Input } from "../components/ui/input";
|
|
import { Input } from "../components/ui/input";
|
|
@@ -167,7 +167,6 @@ export function CustomerSubmitPage() {
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<footer className="customer-request-footer">
|
|
<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>
|
|
<Button type="submit" disabled={submit.busy}><Send size={16} aria-hidden="true" />{submit.busy ? "提交中…" : "提交工单"}</Button>
|
|
|
</footer>
|
|
</footer>
|
|
|
</form>
|
|
</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.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 className="order-date">{item.created_at ? fmtTime(item.created_at) : <span className="table-placeholder">—</span>}</td>
|
|
|
<td><div className="ops-inline-actions">
|
|
<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>
|
|
<Link className="ops-table-action" to={`/work-orders/${encodeURIComponent(number)}`} state={detailState} aria-label={`查看工单 ${number} 详情`}>详情<ArrowRight size={14} aria-hidden="true" /></Link>
|
|
|
</div></td>
|
|
</div></td>
|
|
|
</tr>;
|
|
</tr>;
|