消毒机设备
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
21 KiB

  1. import{_ as Z,g as L,F as R,f as ge,c as ye}from"../../assets/index-FZ48n_d9.js";import{d as K,r as i,k as te,ag as b,c as k,o as g,P as o,H as v,O as J,a6 as Q,G as E,h as ae,a as l,L as X,M as T,i as ue,S as he,I as W,ak as be,T as we,D as de,u as ce,Q as Se,w as me,aq as pe,J as j,a1 as ve}from"../@vue/@vue.B_jFLcBm.1751277099553.js";import{E as De}from"../element-plus/element-plus.DC0PKXec.1751277099553.js";import{F as ke}from"../FormulaConfig/FormulaConfig.DWjnEYue.1751277099553.js";import{d as Ve}from"../pinia/pinia.Col4Kkvr.1751277099553.js";import{S as fe}from"../index/index.DTZj_65S.1751277099553.js";import"../@element-plus/@element-plus.C01e5HIG.1751277099553.js";import"../pinia-plugin-persistedstate/pinia-plugin-persistedstate.BUYkM9Wd.1751277099553.js";import"../destr/destr.Ctyiwlcu.1751277099553.js";import"../deep-pick-omit/deep-pick-omit.CegYQlcN.1751277099553.js";import"../vue-i18n/vue-i18n.DKgOWBxc.1751277099553.js";import"../@intlify/@intlify.Bpjdt8ji.1751277099553.js";import"../nanoid/nanoid.OxPLOBIU.1751277099553.js";import"../lodash/lodash.Cz9E_6Pa.1751277099553.js";import"../dayjs/dayjs.CWsDMI8D.1751277099553.js";import"../vue-router/vue-router.DaQm0NVE.1751277099553.js";import"../lodash-es/lodash-es.S0Y0Up6J.1751277099553.js";import"../@vueuse/@vueuse.VzzCFLRY.1751277099553.js";import"../@popperjs/@popperjs.D_chPuIy.1751277099553.js";import"../@ctrl/@ctrl.r5W6hzzQ.1751277099553.js";import"../async-validator/async-validator.CDKkdPIV.1751277099553.js";import"../memoize-one/memoize-one.BdPwpGay.1751277099553.js";import"../normalize-wheel-es/normalize-wheel-es.BQoi3Ox2.1751277099553.js";import"../@floating-ui/@floating-ui.DwceP2Gb.1751277099553.js";const Ne={class:"data-table-container"},Me=K({__name:"HistoryDetail",setup(Y){const w=i(["时间,设备状态,HO2O2-0,T-0,RH-0,RS-0,D值,当前LOG,目标LOG,注液速率,消毒剂剩余量(g),预计剩余时间,",'2023-03-28 12:57:54,预热,N/A,N/A,N/A,N/A,0,"0.00",1,10,1000,N/A,','2023-03-28 12:57:58,预热,N/A,N/A,N/A,N/A,0,"0.00",1,10,1000,00:01:58,','2023-03-28 12:57:59,消毒结束,N/A,N/A,N/A,N/A,0,"0.00",1,10,1000,00:00:00,']),c=te(()=>w.value.length===0?[]:w.value[0].split(",").filter(f=>f.trim()!=="")),a=te(()=>w.value.length<=1?[]:w.value.slice(1).map(f=>{const y=f.split(","),_={};return c.value.forEach((d,p)=>{let u=y[p]||"";u=u.replace(/^"|"$/g,""),_[d]=u.trim()}),_})),m=te(()=>c.value.map(f=>({prop:f,label:f,minWidth:120})));return(f,y)=>{const _=b("el-table-column"),d=b("el-table");return g(),k("div",Ne,[o(d,{data:a.value,stripe:"",style:{width:"100%"}},{default:v(()=>[(g(!0),k(J,null,Q(m.value,p=>(g(),E(_,{key:p.prop,prop:p.prop,label:p.label,width:"200","min-width":p.minWidth},null,8,["prop","label","min-width"]))),128))]),_:1},8,["data"])])}}}),xe=Z(Me,[["__scopeId","data-v-ff70cd72"]]),Ce={class:"history-export"},$e={class:"history-table"},Ue=K({__name:"History",setup(Y){const w=i([]),c=i([]),a=i(!1);ae(()=>{m()});const m=()=>{L({className:"DisinfectionLogsService",fnName:"getRecordList",params:{}}).then(n=>{if(n.ackcode===0&&n.rely&&n.rely.length){const S=n.rely.map(t=>({name:t}));w.value=S}})},f=u=>{const n={className:"DisinfectionLogsService",fnName:"getRecord",params:{logName:u.name}};L(n).then(()=>{a.value=!0})},y=()=>{if(c.value.length!==1){R.warning("请选择一条数据进行删除");return}De.confirm("请确认是否删除?","删除",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const u={className:"DisinfectionLogsService",fnName:"deleteReport",params:{logName:c.value.map(n=>n.name)[0]}};L(u).then(n=>{n.ackcode===0&&(R.success("删除成功"),m())})})},_=()=>{if(!c.value.length){R.warning("请选择要导出的数据");return}const u={className:"DisinfectionLogsService",fnName:"exportRecord",params:{logNames:c.value.map(n=>n.name)}};L(u)},d=u=>{c.value=u},p=()=>{a.value=!1};return(u,n)=>{const S=b("bt-button"),t=b("el-table-column"),C=b("el-link"),M=b("el-table"),A=b("ft-dialog");return g(),k("div",null,[l("div",Ce,[o(S,{type:"primary","button-text":"导出",onClick:_}),o(S,{type:"primary","butto