import{d as c,a as b,b as t,u as e,f as y,t as l,j as d,x as f,F as w,r as k,m as p,z as x,y as A,A as F,s as u,o as m}from"./index-C5t0nGiQ.js";import{A as D}from"./arrow-left-De7UcLOo.js";const C={class:"p-6"},V={class:"mb-6"},h={class:"flex items-center gap-4"},N={class:"text-base",style:{color:"rgba(0,0,0,0.45)"}},R={class:"bg-white p-6 rounded-lg mb-6",style:{"box-shadow":"0 1px 2px rgba(0,0,0,0.05)"}},S={class:"space-y-2 text-sm",style:{color:"rgba(0,0,0,0.65)"}},B={class:"bg-white p-6 rounded-lg mb-6",style:{"box-shadow":"0 1px 2px rgba(0,0,0,0.05)"}},$={class:"space-y-3"},j={class:"bg-white p-6 rounded-lg mb-6",style:{"box-shadow":"0 1px 2px rgba(0,0,0,0.05)"}},z={class:"space-y-3"},G={class:"flex items-center gap-2 cursor-pointer text-sm"},I={class:"flex items-center gap-2 cursor-pointer text-sm",style:{color:"rgba(0,0,0,0.65)"}},L={class:"flex items-center justify-center gap-4 p-4 bg-white rounded-lg sticky bottom-0",style:{"box-shadow":"0 -2px 8px rgba(0,0,0,0.05)"}},T=c({__name:"RepairOrderDetail",setup(O){const r=A(),i=F().params.orderId||"WO-2024-0001",n=u(!0),a=u(!1),v=[{time:"2024-02-25 14:35:00",person:"李工",action:"接单",detail:"开始处理"},{time:"2024-02-25 15:00:00",person:"李工",action:"确认板卡故障，准备更换"},{time:"2024-02-26 09:20:00",person:"李工",action:"更换板卡 AC-2024-0001→AC-2024-0003"},{time:"2024-02-26 10:00:00",person:"李工",action:"板卡更换完成，设备恢复正常"}];return(X,s)=>(m(),b("div",C,[t("div",V,[t("div",h,[t("button",{onClick:s[0]||(s[0]=o=>e(r).go(-1)),class:"p-2 rounded hover:bg-gray-100 transition-colors",style:{color:"rgba(0,0,0,0.65)"}},[y(e(D),{size:20})]),s[5]||(s[5]=t("h2",{class:"text-2xl font-semibold"},"维修工单详情",-1)),t("span",N,l(e(i)),1)])]),t("div",R,[s[11]||(s[11]=t("h3",{class:"text-base font-semibold mb-4"},"工单信息",-1)),t("div",S,[t("div",null,"工单号："+l(e(i)),1),s[6]||(s[6]=t("div",null,[d(" 状态： "),t("span",{class:"px-2 py-0.5 rounded text-xs",style:{"background-color":"#eef5f0",color:"#4a7c59",border:"1px solid #a3c4ad"}},"🔧 处理中")],-1)),s[7]||(s[7]=t("div",null,[d("优先级："),t("span",{style:{color:"#FF4D4F"}},"高")],-1)),s[8]||(s[8]=t("div",null,"创建时间：2024-02-25 14:20:00",-1)),s[9]||(s[9]=t("div",null,"维修人员：李工",-1)),s[10]||(s[10]=t("div",null,"预计修复：2024-02-28",-1))])]),s[20]||(s[20]=f('<div class="bg-white p-6 rounded-lg mb-6" style="box-shadow:0 1px 2px rgba(0,0,0,0.05);"><h3 class="text-base font-semibold mb-4">设备信息</h3><div class="space-y-2 text-sm" style="color:rgba(0,0,0,0.65);"><div>设备SN：GD30-2024-000056</div><div>设备型号：GD30-Supreme</div><div>固件版本：v3.2.0</div><div>硬件版本：A1</div><div>客户：XX地质勘探公司</div></div></div><div class="bg-white p-6 rounded-lg mb-6" style="box-shadow:0 1px 2px rgba(0,0,0,0.05);"><h3 class="text-base font-semibold mb-4">故障信息</h3><div class="space-y-2 text-sm" style="color:rgba(0,0,0,0.65);"><div>故障类型：综合故障</div><div>故障描述：采集板AC-2024-0001无法正常工作，引起数据采集异常</div><div>初判结果：自动点采集板验证不通过，无法获取测量数据</div></div></div>',2)),t("div",B,[s[12]||(s[12]=t("h3",{class:"text-base font-semibold mb-4"},"处理记录",-1)),t("div",$,[(m(),b(w,null,k(v,(o,g)=>t("div",{key:g,class:"text-sm",style:{color:"rgba(0,0,0,0.65)"}},l(o.time)+" "+l(o.person)+" "+l(o.action),1)),64))]),s[13]||(s[13]=t("button",{class:"text-sm mt-3",style:{color:"#4a7c59"}},"添加记录",-1))]),s[21]||(s[21]=t("div",{class:"bg-white p-6 rounded-lg mb-6",style:{"box-shadow":"0 1px 2px rgba(0,0,0,0.05)"}},[t("h3",{class:"text-base font-semibold mb-4"},"板卡更换记录"),t("div",{class:"space-y-2 text-sm",style:{color:"rgba(0,0,0,0.65)"}},[t("div",null,"原板卡：AC-2024-0001 硬件版本: A1 状态: 已换下"),t("div",null,"新板卡：AC-2024-0003 硬件版本: A1 状态: 已安装"),t("div",null,"更换时间：2024-02-26 09:20:00"),t("div",null,"更换人员：李工")])],-1)),t("div",j,[s[16]||(s[16]=t("h3",{class:"text-base font-semibold mb-4"},"授权处理",-1)),s[17]||(s[17]=t("p",{class:"text-sm mb-4",style:{color:"rgba(0,0,0,0.65)"}},"板卡更换后，需要重新生成授权文件",-1)),t("div",z,[t("label",G,[p(t("input",{type:"checkbox","onUpdate:modelValue":s[1]||(s[1]=o=>n.value=o),class:"w-4 h-4",style:{"accent-color":"#4a7c59"}},null,512),[[x,n.value]]),s[14]||(s[14]=d(" 重新生成授权文件 ",-1))]),t("label",I,[p(t("input",{type:"checkbox","onUpdate:modelValue":s[2]||(s[2]=o=>a.value=o),class:"w-4 h-4",style:{"accent-color":"#4a7c59"}},null,512),[[x,a.value]]),s[15]||(s[15]=d(" 推送适配固件 ",-1))])]),s[18]||(s[18]=t("button",{class:"mt-4 px-4 py-2 rounded text-white text-sm",style:{"background-color":"#4a7c59"}},"处理授权",-1))]),t("div",L,[t("button",{class:"px-6 py-2 rounded text-sm",style:{border:"1px solid #D9D9D9",color:"rgba(0,0,0,0.85)"},onClick:s[3]||(s[3]=o=>e(r).go(-1))},"取消"),s[19]||(s[19]=t("button",{class:"px-6 py-2 rounded text-white text-sm",style:{"background-color":"#4a7c59"}},"关闭工单",-1)),t("button",{class:"px-6 py-2 rounded text-sm",style:{border:"1px solid #FF4D4F",color:"#FF4D4F"},onClick:s[4]||(s[4]=o=>e(r).push("/scrap"))},"申请报废")])]))}});export{T as default};
