import{j as e,C as d,u as m,c as u}from"./index-N0bQxk_U.js";import{B as x}from"./Back-DYJQkSlw.js";import{u as l,E as j}from"./index-ByRV7Y4F.js";import{E as f}from"./EquipmentStatus-Bazj01nO.js";import{g as r}from"./index-DStefT17.js";import{G as i}from"./index-V6NIE8e2.js";import"./attach-properties-to-component-CxYBDbn1.js";import"./to-css-length-qRJH4nmz.js";const h="_page_myh9o_1",p="_equipment-detail_myh9o_6",v="_features_myh9o_49",N="_feature_myh9o_49",n={page:h,equipmentDetail:p,features:v,feature:N};function g(){var a,t;const s=l();return s?e.jsxs("div",{className:n.equipmentDetail,children:[e.jsx("img",{className:"main",src:d.absoluteUrl("assets/images/default-icon.png")}),e.jsxs("div",{className:"info",children:[e.jsx("div",{className:"name",children:s.name}),e.jsx(f,{}),((a=s.contact)==null?void 0:a.name)&&e.jsxs("div",{className:"remark",children:["联系人: ",s.contact.name]}),((t=s.contact)==null?void 0:t.phone)&&e.jsxs("div",{className:"remark",children:["联系电话: ",s.contact.phone]})]})]}):null}const I=r("rulemanage"),k=r("apply"),q=r("calendar"),o=r("form"),c=r("menu2");function y(){const s=l(),a=m();return s?e.jsxs("div",{className:n.features,children:[e.jsx("div",{className:"title",children:"在线功能"}),e.jsx("div",{className:"content",children:e.jsxs(i,{columns:3,gap:32,children:[e.jsx(i.Item,{children:e.jsxs("div",{className:n.feature,children:[e.jsxs("div",{className:"feature-body",onClick:()=>{a(`/config/${s.id}`)},children:[e.jsx(I,{}),e.jsx("span",{children:"仪器设置"})]}),e.jsx("div",{className:"feature-footer",children:e.jsx(c,{})})]})}),s.options.clockIn&&e.jsx(i.Item,{children:e.jsxs("div",{className:n.feature,onClick:()=>{a(`/clock-in/${s.id}`)},children:[e.jsxs("div",{className:"feature-body",children:[e.jsx(k,{}),e.jsx("span",{children:"培训签到"})]}),e.jsx("div",{className:"feature-footer",children:e.jsx(c,{})})]})}),s.options.bookingRequired&&e.jsx(i.Item,{children:e.jsxs("div",{className:n.feature,onClick:()=>{a(`/bookings/${s.id}`)},children:[e.jsxs("div",{className:"feature-body",children:[e.jsx(q,{}),e.jsx("span",{children:"预约日历"})]}),e.jsx("div",{className:"feature-footer",children:e.jsx(c,{})})]})}),e.jsx(i.Item,{children:e.jsxs("div",{className:n.feature,onClick:()=>{a(`/occupy-records/${s.id}`)},children:[e.jsxs("div",{className:"feature-body",children:[e.jsx(o,{}),e.jsx("span",{children:"使用记录"})]}),e.jsx("div",{className:"feature-footer",children:e.jsx(c,{})})]})}),e.jsx(i.Item,{children:e.jsxs("div",{className:n.feature,onClick:()=>{a(`/sample-submissions/${s.id}`)},children:[e.jsxs("div",{className:"feature-body",children:[e.jsx(o,{}),e.jsx("span",{children:"送样记录"})]}),e.jsx("div",{className:"feature-footer",children:e.jsx(c,{})})]})})]})})]}):null}function F(){const{equipmentId:s}=u();return s?e.jsxs(e.Fragment,{children:[e.jsx(x,{}),e.jsx("div",{className:n.page,children:e.jsxs(j,{equipmentId:s,children:[e.jsx(g,{}),e.jsx(y,{})]})})]}):null}export{F as default};
