import{c as h,d as A,a as r,b as e,j as c,w,v as B,l as M,i as a,u as d,F as y,r as m,t as s,k as F,h as g,o as l,n as i,e as S,f as b}from"./index-C436_g8x.js";import{C as E}from"./circle-check-Ddc7xHK2.js";import{T as f}from"./triangle-alert-DZ0A_5xH.js";import{U as G}from"./upload-DdEqBuGd.js";/** * @license lucide-vue-next v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const v=h("camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/** * @license lucide-vue-next v0.487.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const T=h("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),V={class:"p-6"},N={class:"bg-white p-6 rounded-lg mb-6",style:{boxShadow:"0 1px 2px rgba(0, 0, 0, 0.05)"}},z={class:"grid grid-cols-3 gap-6"},q={class:"mb-4 p-4 rounded-lg flex items-start gap-3",style:{backgroundColor:"#F6FFED",border:"1px solid #B7EB8F"}},P={class:"mb-6 p-4 rounded-lg flex items-start gap-3",style:{backgroundColor:"#FFFBE6",border:"1px solid #FFE58F",display:"none"}},j={class:"bg-white rounded-lg mb-6",style:{boxShadow:"0 1px 2px rgba(0, 0, 0, 0.05)"}},X={class:"p-6 border-b",style:{borderColor:"#F0F0F0"}},L={class:"flex items-center justify-between"},R={class:"px-4 py-2 rounded flex items-center gap-2",style:{border:"1px solid #D9D9D9",color:"rgba(0, 0, 0, 0.85)"}},I={class:"overflow-x-auto"},O={class:"w-full"},U={class:"px-6 py-4",style:{color:"rgba(0, 0, 0, 0.65)"}},W={class:"px-6 py-4"},$={class:"px-6 py-4"},H={class:"px-6 py-4",style:{color:"rgba(0, 0, 0, 0.65)"}},J={class:"px-6 py-4"},K={class:"px-6 py-4"},Q={class:"bg-white rounded-lg mb-6",style:{boxShadow:"0 1px 2px rgba(0, 0, 0, 0.05)"}},Y={class:"p-6 border-b",style:{borderColor:"#F0F0F0"}},Z={class:"flex items-center justify-between"},ee={class:"flex items-center gap-2"},te={class:"text-sm font-semibold",style:{color:"#1890FF"}},oe={class:"p-6"},se={class:"space-y-3"},le=["onClick"],re={class:"flex-1"},de={class:"flex items-center gap-2"},ae={key:0,class:"px-2 py-1 rounded text-xs flex items-center gap-1",style:{backgroundColor:"#FFF1F0",color:"#FF4D4F",border:"1px solid #FFCCC7"}},ne={class:"flex items-center gap-2"},ce={key:0,class:"px-3 py-1 rounded text-xs flex items-center gap-1",style:{backgroundColor:"#E6F7FF",color:"#1890FF"}},ie={key:1,class:"px-3 py-1 rounded text-xs flex items-center gap-1",style:{backgroundColor:"#1890FF",color:"#fff"}},me=A({__name:"DeviceRegistration",setup(pe){const u=F("GD30"),n=F([{id:1,text:"主板安装及固定",completed:!0,photos:3,needPhoto:!0,versionCheck:!0,versionMatch:!0},{id:2,text:"采集板连接",completed:!0,photos:2,needPhoto:!0,versionCheck:!0,versionMatch:!0},{id:3,text:"测控板安装",completed:!0,photos:2,needPhoto:!0,versionCheck:!0,versionMatch:!1},{id:4,text:"电源线连接检查",completed:!1,photos:0,needPhoto:!0,versionCheck:!1,versionMatch:!0},{id:5,text:"外壳密封性检测",completed:!1,photos:0,needPhoto:!0,versionCheck:!1,versionMatch:!0}]),D=[{code:"MB-2024-001",name:"主控板",sn:"MB20240308001",spec:"GD30-MB-V2.3",calibration:"无需校准",quantity:1},{code:"RX-2024-002",name:"采集板",sn:"RX20240308002",spec:"GD30-RX-V1.8",calibration:"已校准",quantity:2},{code:"MC-2024-003",name:"测控板",sn:"MC20240308003",spec:"GD30-MC-V1.5",calibration:"无需校准",quantity:1},{code:"TX-2024-003",name:"发射板",sn:"TX20240308003",spec:"GD30-TX-V1.5",calibration:"无需校准",quantity:1},{code:"BO-2024-004",name:"升压板",sn:"BO20240308004",spec:"BP600",calibration:"无需校准",quantity:1},{code:"CS-2024-005",name:"外壳机箱",sn:"-",spec:"AL6061-T6",calibration:"无需校准",quantity:1}],k=g(()=>n.value.filter(p=>p.completed).length),C=g(()=>n.value.length),_=p=>{n.value=n.value.map(t=>t.id===p?{...t,completed:!t.completed}:t)};return(p,t)=>(l(),r("div",V,[t[16]||(t[16]=e("div",{class:"mb-6"},[e("h2",{class:"text-2xl font-semibold mb-1"},"设备登记"),e("p",{class:"text-sm",style:{color:"rgba(0, 0, 0, 0.45)"}},"登记新设备信息及装配记录")],-1)),e("div",N,[t[4]||(t[4]=e("h3",{class:"text-lg font-semibold mb-6"},"装机信息",-1)),e("div",z,[e("div",null,[t[2]||(t[2]=e("label",{class:"block text-sm mb-2",style:{color:"rgba(0, 0, 0, 0.85)"}},[c(" 设备型号 "),e("span",{style:{color:"#FF4D4F"}},"*")],-1)),w(e("select",{"onUpdate:modelValue":t[0]||(t[0]=o=>u.value=o),class:"w-full px-3 py-2 border rounded",style:{borderColor:"#D9D9D9",backgroundColor:"#fff"}},[...t[1]||(t[1]=[e("option",{value:"GD30"},"GD30 高密度电法仪",-1),e("option",{value:"GT20"},"GT20 瞬变电磁仪",-1),e("option",{value:"GTXD"},"GM10 大地电磁仪",-1)])],512),[[B,u.value]])]),t[3]||(t[3]=M('