import{e as p,r as i,j as e,c as u}from"./index-B4-34yYX.js";import{B as x}from"./Back-Ub_M8a92.js";import{u as g,x as j,f as h,v as f,E as _}from"./index-BlK4gupB.js";import"./index-Bhyn9pT4.js";import{S as v}from"./space-CN6CenAq.js";import{E as N}from"./EquipmentStatus-Rtrhv1GJ.js";import{T as b}from"./Table-Ccu8zDrB.js";const E="_page_1bqeo_1",T="_logs_1bqeo_12",r={page:E,logs:T};function y(){const{T:a}=p(),n=g(),[o,l]=i.useMemo(()=>{const t=Math.round(Date.now()/1e3);return[t-14*86400,t]},[]),{value:m,loading:c}=j(n,o,l),d=i.useMemo(()=>[{key:"id",title:"编号",align:"center",width:120,render:(t,{id:s})=>s},{key:"user",title:"使用者",align:"center",width:120,render:(t,{user:s})=>s==null?void 0:s.name},{key:"timeRange",title:"预约时间",render:(t,{submitTime:s})=>e.jsx(v,{children:h(f(s),"YYYY/MM/DD HH:mm")})},{key:"samples",title:"样品数",align:"center",width:120,render:(t,s)=>s.samples||"--"},{key:"money",title:"金额",align:"center",width:120,render:(t,s)=>"--"}],[a]);return e.jsxs("div",{className:r.logs,children:[e.jsxs("div",{className:"top-bar",children:[e.jsx("div",{className:"title",children:n==null?void 0:n.name}),e.jsx(N,{})]}),e.jsxs("div",{className:"content",children:[e.jsx("div",{className:"table-description",children:a("本页仅列出最近两周内的送样记录, 完整记录请至网页端查看")}),e.jsx("div",{className:"table-wrap",children:e.jsx(b,{loading:c,columns:d,dataSource:m})})]})]})}function P(){const{equipmentId:a}=u();return a?e.jsxs(e.Fragment,{children:[e.jsx(x,{}),e.jsxs("div",{className:r.page,children:[e.jsx("div",{className:"page-title",children:"送样记录"}),e.jsx(_,{equipmentId:a,children:e.jsx(y,{})})]})]}):null}export{P as default};
