3 lines
14 KiB
JavaScript
3 lines
14 KiB
JavaScript
module.exports=[84505,a=>{"use strict";let b=(0,a.i(70106).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);a.s(["Download",()=>b],84505)},97063,a=>{"use strict";let b=(0,a.i(70106).default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);a.s(["Info",()=>b],97063)},33508,a=>{"use strict";let b=(0,a.i(70106).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);a.s(["X",()=>b],33508)},77156,a=>{"use strict";let b=(0,a.i(70106).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);a.s(["Eye",()=>b],77156)},87532,13749,50522,a=>{"use strict";var b=a.i(70106);let c=(0,b.default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);a.s(["Search",()=>c],87532);let d=(0,b.default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);a.s(["ChevronLeft",()=>d],13749);let e=(0,b.default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);a.s(["ChevronRight",()=>e],50522)},74362,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(97063),e=a.i(87532),f=a.i(84505),g=a.i(13749),h=a.i(50522),i=a.i(33508),j=a.i(77156);let k=(0,a.i(70106).default)("file-down",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]]),l=[{id:1,sn:"RX20240308001",boardModel:"ACB-6000",calibDate:"2024-03-01",expiryDate:"2025-03-01",operator:"王工程师",status:"合格",channel:6,deviation:"±0.05%"},{id:2,sn:"RX20240308002",boardModel:"ACB-6000",calibDate:"2024-02-15",expiryDate:"2025-02-15",operator:"张工程师",status:"合格",channel:6,deviation:"±0.03%"},{id:3,sn:"RX20240115003",boardModel:"ACB-5000",calibDate:"2024-01-15",expiryDate:"2025-01-15",operator:"王工程师",status:"合格",channel:4,deviation:"±0.08%"},{id:4,sn:"RX20240420004",boardModel:"ACB-6000",calibDate:"2024-04-20",expiryDate:"2025-04-20",operator:"李工程师",status:"待校准",channel:6,deviation:"-"},{id:5,sn:"RX20231205005",boardModel:"ACB-5000",calibDate:"2023-12-05",expiryDate:"2024-12-05",operator:"王工程师",status:"不合格",channel:4,deviation:"±0.25%"},{id:6,sn:"RX20240610006",boardModel:"ACB-6000",calibDate:"2024-06-10",expiryDate:"2025-06-10",operator:"张工程师",status:"合格",channel:6,deviation:"±0.04%"},{id:7,sn:"RX20240801007",boardModel:"ACB-6000",calibDate:"2024-08-01",expiryDate:"2025-08-01",operator:"李工程师",status:"待校准",channel:6,deviation:"-"},{id:8,sn:"RX20240305008",boardModel:"ACB-5000",calibDate:"2024-03-05",expiryDate:"2025-03-05",operator:"王工程师",status:"合格",channel:4,deviation:"±0.06%"},{id:9,sn:"RX20240922009",boardModel:"ACB-6000",calibDate:"2024-09-22",expiryDate:"2025-09-22",operator:"张工程师",status:"合格",channel:6,deviation:"±0.02%"},{id:10,sn:"RX20231110010",boardModel:"ACB-5000",calibDate:"2023-11-10",expiryDate:"2024-11-10",operator:"李工程师",status:"不合格",channel:4,deviation:"±0.30%"}],m=["全部","王工程师","张工程师","李工程师"],n=["全部","合格","不合格","待校准"],o=[{channel:"CH1",reference:"1000.00Ω",measured:"999.95Ω",deviation:"+0.005%",result:"合格"},{channel:"CH2",reference:"1000.00Ω",measured:"1000.03Ω",deviation:"-0.003%",result:"合格"},{channel:"CH3",reference:"1000.00Ω",measured:"999.98Ω",deviation:"+0.002%",result:"合格"},{channel:"CH4",reference:"1000.00Ω",measured:"1000.08Ω",deviation:"-0.008%",result:"合格"},{channel:"CH5",reference:"1000.00Ω",measured:"999.92Ω",deviation:"+0.008%",result:"合格"},{channel:"CH6",reference:"1000.00Ω",measured:"1000.05Ω",deviation:"-0.005%",result:"合格"}];function p(a){switch(a){case"合格":return{backgroundColor:"#F6FFED",color:"#52C41A",border:"1px solid #B7EB8F"};case"不合格":return{backgroundColor:"#FFF1F0",color:"#FF4D4F",border:"1px solid #FFCCC7"};case"待校准":return{backgroundColor:"#FFFBE6",color:"#FAAD14",border:"1px solid #FFE58F"};default:return{backgroundColor:"#FAFAFA",color:"rgba(0,0,0,0.45)",border:"1px solid #D9D9D9"}}}function q(){let[a,q]=(0,c.useState)(""),[r,s]=(0,c.useState)("全部"),[t,u]=(0,c.useState)("全部"),[v,w]=(0,c.useState)(1),[x,y]=(0,c.useState)(null),z=l.filter(b=>(!a||!!b.sn.toLowerCase().includes(a.toLowerCase()))&&("全部"===r||b.status===r)&&("全部"===t||b.operator===t)),A=Math.ceil(z.length/6),B=z.slice((v-1)*6,6*v);return(0,b.jsxs)("div",{style:{padding:24},children:[(0,b.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:24},children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h2",{style:{fontSize:20,fontWeight:600,margin:0},children:"校准管理"}),(0,b.jsx)("p",{style:{fontSize:14,color:"rgba(0,0,0,0.45)",margin:"4px 0 0"},children:"管理采集板校准数据与记录"})]}),(0,b.jsxs)("button",{style:{display:"flex",alignItems:"center",gap:6,padding:"8px 16px",border:"1px solid #D9D9D9",borderRadius:6,backgroundColor:"#fff",cursor:"pointer",fontSize:14},children:[(0,b.jsx)(f.Download,{size:16}),"导入"]})]}),(0,b.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:12,padding:16,backgroundColor:"#F9F0FF",borderRadius:8,marginBottom:24,border:"1px solid #D3ADF7"},children:[(0,b.jsx)(d.Info,{size:18,style:{color:"#722ED1",flexShrink:0,marginTop:2}}),(0,b.jsx)("div",{style:{fontSize:14,color:"#722ED1",lineHeight:1.6},children:"校准管理仅针对采集板(ACB系列),其他类型板卡无需校准。校准到期前30天系统会自动提醒。"})]}),(0,b.jsx)("div",{style:{backgroundColor:"#fff",borderRadius:8,padding:20,marginBottom:24,boxShadow:"0 1px 2px rgba(0,0,0,0.05)"},children:(0,b.jsxs)("div",{style:{display:"flex",alignItems:"flex-end",gap:16},children:[(0,b.jsxs)("div",{style:{flex:1},children:[(0,b.jsx)("label",{style:{display:"block",fontSize:13,color:"rgba(0,0,0,0.65)",marginBottom:6},children:"采集板SN号"}),(0,b.jsx)("input",{type:"text",value:a,onChange:a=>{q(a.target.value),w(1)},placeholder:"输入SN号搜索",style:{width:"100%",padding:"6px 12px",border:"1px solid #D9D9D9",borderRadius:6,fontSize:14,boxSizing:"border-box"}})]}),(0,b.jsxs)("div",{style:{flex:1},children:[(0,b.jsx)("label",{style:{display:"block",fontSize:13,color:"rgba(0,0,0,0.65)",marginBottom:6},children:"校准状态"}),(0,b.jsx)("select",{value:r,onChange:a=>{s(a.target.value),w(1)},style:{width:"100%",padding:"6px 12px",border:"1px solid #D9D9D9",borderRadius:6,fontSize:14},children:n.map(a=>(0,b.jsx)("option",{value:a,children:a},a))})]}),(0,b.jsxs)("div",{style:{flex:1},children:[(0,b.jsx)("label",{style:{display:"block",fontSize:13,color:"rgba(0,0,0,0.65)",marginBottom:6},children:"校准人员"}),(0,b.jsx)("select",{value:t,onChange:a=>{u(a.target.value),w(1)},style:{width:"100%",padding:"6px 12px",border:"1px solid #D9D9D9",borderRadius:6,fontSize:14},children:m.map(a=>(0,b.jsx)("option",{value:a,children:a},a))})]}),(0,b.jsxs)("button",{onClick:()=>w(1),style:{display:"flex",alignItems:"center",gap:4,padding:"6px 16px",border:"none",borderRadius:6,backgroundColor:"#4a7c59",color:"#fff",cursor:"pointer",fontSize:14,flexShrink:0},children:[(0,b.jsx)(e.Search,{size:14}),"查询"]})]})}),(0,b.jsxs)("div",{style:{backgroundColor:"#fff",borderRadius:8,boxShadow:"0 1px 2px rgba(0,0,0,0.05)",overflow:"hidden"},children:[(0,b.jsxs)("table",{style:{width:"100%",borderCollapse:"collapse"},children:[(0,b.jsx)("thead",{children:(0,b.jsx)("tr",{style:{backgroundColor:"#FAFAFA"},children:["采集板SN号","板卡型号","校准日期","到期日期","校准人员","状态","操作"].map(a=>(0,b.jsx)("th",{style:{padding:"12px 16px",textAlign:"left",fontSize:14,fontWeight:600,color:"rgba(0,0,0,0.85)",borderBottom:"1px solid #F0F0F0"},children:a},a))})}),(0,b.jsx)("tbody",{children:B.map(a=>(0,b.jsxs)("tr",{style:{borderBottom:"1px solid #F0F0F0"},children:[(0,b.jsx)("td",{style:{padding:"12px 16px",fontSize:14,fontWeight:500},children:a.sn}),(0,b.jsx)("td",{style:{padding:"12px 16px",fontSize:14,color:"rgba(0,0,0,0.65)"},children:a.boardModel}),(0,b.jsx)("td",{style:{padding:"12px 16px",fontSize:14,color:"rgba(0,0,0,0.65)"},children:a.calibDate}),(0,b.jsx)("td",{style:{padding:"12px 16px",fontSize:14,color:"rgba(0,0,0,0.65)"},children:a.expiryDate}),(0,b.jsx)("td",{style:{padding:"12px 16px",fontSize:14,color:"rgba(0,0,0,0.65)"},children:a.operator}),(0,b.jsx)("td",{style:{padding:"12px 16px"},children:(0,b.jsx)("span",{style:{...p(a.status),padding:"2px 8px",borderRadius:4,fontSize:12},children:a.status})}),(0,b.jsx)("td",{style:{padding:"12px 16px"},children:(0,b.jsxs)("div",{style:{display:"flex",gap:12},children:[(0,b.jsxs)("button",{onClick:()=>y(a),style:{color:"#4a7c59",cursor:"pointer",border:"none",background:"none",fontSize:14,display:"flex",alignItems:"center",gap:4},children:[(0,b.jsx)(j.Eye,{size:14}),"详情"]}),(0,b.jsxs)("button",{style:{color:"#4a7c59",cursor:"pointer",border:"none",background:"none",fontSize:14,display:"flex",alignItems:"center",gap:4},children:[(0,b.jsx)(k,{size:14}),"校准文件"]})]})})]},a.id))})]}),(0,b.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"12px 16px",borderTop:"1px solid #F0F0F0"},children:[(0,b.jsxs)("span",{style:{fontSize:14,color:"rgba(0,0,0,0.45)"},children:["显示 ",(v-1)*6+1,"-",Math.min(6*v,z.length)," / 共 ",z.length," 条"]}),(0,b.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:4},children:[(0,b.jsx)("button",{onClick:()=>w(a=>Math.max(1,a-1)),disabled:1===v,style:{padding:"4px 8px",border:"1px solid #D9D9D9",borderRadius:4,backgroundColor:"#fff",cursor:1===v?"not-allowed":"pointer",opacity:1===v?.4:1},children:(0,b.jsx)(g.ChevronLeft,{size:16})}),Array.from({length:A},(a,c)=>(0,b.jsx)("button",{onClick:()=>w(c+1),style:{width:32,height:32,borderRadius:4,fontSize:14,border:v===c+1?"1px solid #4a7c59":"1px solid #D9D9D9",color:v===c+1?"#4a7c59":"rgba(0,0,0,0.65)",backgroundColor:v===c+1?"#eef5f0":"#fff",cursor:"pointer"},children:c+1},c)),(0,b.jsx)("button",{onClick:()=>w(a=>Math.min(A,a+1)),disabled:v===A,style:{padding:"4px 8px",border:"1px solid #D9D9D9",borderRadius:4,backgroundColor:"#fff",cursor:v===A?"not-allowed":"pointer",opacity:v===A?.4:1},children:(0,b.jsx)(h.ChevronRight,{size:16})})]})]})]}),x&&(0,b.jsxs)("div",{style:{position:"fixed",inset:0,zIndex:50},children:[(0,b.jsx)("div",{onClick:()=>y(null),style:{position:"absolute",inset:0,backgroundColor:"rgba(0,0,0,0.45)"}}),(0,b.jsxs)("div",{style:{position:"absolute",right:0,top:0,bottom:0,width:560,backgroundColor:"#fff",boxShadow:"-2px 0 8px rgba(0,0,0,0.15)",display:"flex",flexDirection:"column"},children:[(0,b.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"16px 24px",borderBottom:"1px solid #F0F0F0"},children:[(0,b.jsxs)("h3",{style:{fontSize:16,fontWeight:600,margin:0},children:["校准详情 - ",x.sn]}),(0,b.jsx)("button",{onClick:()=>y(null),style:{border:"none",background:"none",cursor:"pointer",padding:4},children:(0,b.jsx)(i.X,{size:20})})]}),(0,b.jsxs)("div",{style:{flex:1,overflow:"auto",padding:24},children:[(0,b.jsxs)("div",{style:{padding:16,backgroundColor:"#FAFAFA",borderRadius:8,marginBottom:16,border:"1px solid #F0F0F0"},children:[(0,b.jsx)("h4",{style:{fontSize:14,fontWeight:600,marginBottom:12},children:"基本信息"}),(0,b.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:12,fontSize:13},children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{style:{color:"rgba(0,0,0,0.45)"},children:"采集板SN:"}),x.sn]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{style:{color:"rgba(0,0,0,0.45)"},children:"板卡型号:"}),x.boardModel]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{style:{color:"rgba(0,0,0,0.45)"},children:"通道数:"}),x.channel]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{style:{color:"rgba(0,0,0,0.45)"},children:"综合偏差:"}),x.deviation]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{style:{color:"rgba(0,0,0,0.45)"},children:"校准日期:"}),x.calibDate]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{style:{color:"rgba(0,0,0,0.45)"},children:"到期日期:"}),x.expiryDate]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{style:{color:"rgba(0,0,0,0.45)"},children:"校准人员:"}),x.operator]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{style:{color:"rgba(0,0,0,0.45)"},children:"状态:"}),(0,b.jsx)("span",{style:{...p(x.status),padding:"1px 6px",borderRadius:4,fontSize:12},children:x.status})]})]})]}),(0,b.jsxs)("div",{style:{padding:16,backgroundColor:"#FAFAFA",borderRadius:8,marginBottom:16,border:"1px solid #F0F0F0"},children:[(0,b.jsx)("h4",{style:{fontSize:14,fontWeight:600,marginBottom:12},children:"通道校准结果"}),(0,b.jsxs)("table",{style:{width:"100%",borderCollapse:"collapse"},children:[(0,b.jsx)("thead",{children:(0,b.jsx)("tr",{children:["通道","参考值","测量值","偏差","结果"].map(a=>(0,b.jsx)("th",{style:{padding:"8px 10px",textAlign:"left",fontSize:12,fontWeight:600,color:"rgba(0,0,0,0.65)",borderBottom:"1px solid #F0F0F0"},children:a},a))})}),(0,b.jsx)("tbody",{children:o.map((a,c)=>(0,b.jsxs)("tr",{children:[(0,b.jsx)("td",{style:{padding:"8px 10px",fontSize:13},children:a.channel}),(0,b.jsx)("td",{style:{padding:"8px 10px",fontSize:13,color:"rgba(0,0,0,0.65)"},children:a.reference}),(0,b.jsx)("td",{style:{padding:"8px 10px",fontSize:13},children:a.measured}),(0,b.jsx)("td",{style:{padding:"8px 10px",fontSize:13,color:"rgba(0,0,0,0.65)"},children:a.deviation}),(0,b.jsx)("td",{style:{padding:"8px 10px"},children:(0,b.jsx)("span",{style:{...p(a.result),padding:"1px 6px",borderRadius:4,fontSize:11},children:a.result})})]},c))})]})]})]}),(0,b.jsxs)("div",{style:{padding:"16px 24px",borderTop:"1px solid #F0F0F0",display:"flex",justifyContent:"flex-end",gap:12},children:[(0,b.jsxs)("button",{style:{display:"flex",alignItems:"center",gap:4,padding:"8px 20px",border:"1px solid #D9D9D9",borderRadius:6,backgroundColor:"#fff",cursor:"pointer",fontSize:14},children:[(0,b.jsx)(k,{size:14}),"下载校准文件"]}),(0,b.jsx)("button",{onClick:()=>y(null),style:{padding:"8px 20px",border:"1px solid #D9D9D9",borderRadius:6,backgroundColor:"#fff",cursor:"pointer",fontSize:14},children:"关闭"})]})]})]})]})}a.s(["default",()=>q],74362)}];
|
||
|
||
//# sourceMappingURL=_3a7a62b9._.js.map
|