| 1 |
- var x=(v,b,h)=>new Promise((g,c)=>{var s=r=>{try{_(h.next(r))}catch(m){c(m)}},w=r=>{try{_(h.throw(r))}catch(m){c(m)}},_=r=>r.done?g(r.value):Promise.resolve(r.value).then(s,w);_((h=h.apply(v,b)).next())});import{j as Q,a as U,dv as q,r as S,s as K,p as G,o as f,e as C,i as n,x as u,h as l,f as d,au as A,T as E,n as F,z as p,B as J,y as z,Q as W,eK as X,eL as Y}from"./index.ae52ebae.js";import{L as V,a as k}from"./index.ea3ebde9.js";/* empty css */import{P as Z}from"./index.87b4cc3a.js";import{B as tt}from"./TableImg.0cd3291c.js";import{T as et}from"./BasicForm.d58d202f.js";import{u as at}from"./useTable.578ae310.js";import{c as R}from"./busDeviceRegApi.8bafab64.js";import{c as D}from"./busInfusionApi.4f5a324d.js";import{u as ut}from"./index.3ccc18ac.js";import{M as st}from"./index.6ba04408.js";import{C as B,R as N}from"./index.5e5e8ba1.js";import"./Col.605699c9.js";import"./useFlexGapSupport.3240d255.js";import"./eagerComputed.94e91cab.js";import"./useRefs.fe3bdf15.js";import"./index.e3129508.js";import"./css.bcd121de.js";import"./index.adbf62a5.js";import"./index.52c33256.js";import"./index.0321d0be.js";import"./Checkbox.919eb32a.js";import"./index.beed4ab5.js";import"./scrollTo.d4c332b7.js";import"./useForm.e55162bc.js";import"./index.11cb8430.js";import"./index.c4be8493.js";import"./index.ddcc0e35.js";import"./useSize.9b10dc05.js";import"./onMountedOrActivated.c176aad3.js";import"./useWindowSizeFn.d176b3a5.js";import"./useContentViewHeight.2a59a8a3.js";import"./ArrowLeftOutlined.0f7d1b9e.js";import"./index.a995b471.js";import"./index.14e14872.js";import"./index.4040b11d.js";import"./index.0c29338b.js";import"./index.0fe57a5b.js";import"./_baseIteratee.432be787.js";import"./get.0b1c6ac7.js";import"./DeleteOutlined.707204c0.js";import"./Form.1cc72784.js";import"./index.c1d6a1f9.js";import"./sortable.esm.c20789c1.js";import"./RedoOutlined.80b8c01a.js";import"./FullscreenOutlined.b9fd5be6.js";import"./index.5d87e81e.js";import"./index.95f887db.js";import"./index.9e0f8a6b.js";import"./index.37fc506d.js";import"./index.5c0d538f.js";import"./uniqBy.7b5fdd96.js";import"./index.3eedf359.js";import"./index.3b88ad02.js";import"./useContextMenu.6088df26.js";import"./busClinicApi.3d8324ac.js";import"./useECharts.514ffc33.js";const lt=[{title:"\u7ED3\u675F",dataIndex:"infusionFinished",fixed:!0,width:60,slots:{customRender:"infusionFinished"}},{title:"\u6CF5\u53F7",dataIndex:"deviceId",fixed:!0,width:150},{title:"\u4F4F\u9662\u53F7",dataIndex:"patientCode",fixed:!0,width:150,slots:{customRender:"patientCode"}},{title:"\u59D3\u540D",dataIndex:"patientName",fixed:!0,width:100},{title:"\u75C5\u533A",dataIndex:"ward"},{title:"\u5E8A\u53F7",dataIndex:"bedNo",width:80},{title:"\u8BBE\u5907",dataIndex:"type",slots:{customRender:"type"},width:80},{title:"\u6709\u6548/\u65E0\u6548",dataIndex:"pca",width:100,slots:{customRender:"pca"}},{title:"\u6301\u7EED\u91CF",dataIndex:"continueDose",slots:{customRender:"continueDose"},width:80},{title:"\u72B6\u6001",dataIndex:"runState",slots:{customRender:"runState"},width:100},{title:"\u62A5\u8B66",dataIndex:"alarm",slots:{customRender:"alarm"},width:100},{title:"\u63D0\u9192",dataIndex:"warns",slots:{customRender:"warns"}},{title:"\u8F93\u6DB2\u8FDB\u5EA6",dataIndex:"progress",slots:{customRender:"progress"},width:120,fixed:"right"},{title:"\u6700\u540E\u4E0A\u4F20\u65F6\u95F4",dataIndex:"lastUploadTime",width:150,fixed:"right"},{title:"\u603B\u91CF",dataIndex:"totalDose",width:80},{title:"ASA",dataIndex:"asa"},{title:"\u7535\u91CF",dataIndex:"electricQuantity"},{title:"\u9996\u6B21\u91CF",dataIndex:"firstDose"},{title:"\u5DF2\u8F93\u5165\u91CF",dataIndex:"inputDose"},{title:"\u6781\u9650\u91CF",dataIndex:"maxDose"},{title:"\u81EA\u8C03\u6BD4\u4F8B",dataIndex:"flowAdjustRate",defaultHidden:!0},{title:"\u81EA\u63A7\u6B21\u6570",dataIndex:"selfControlCount",defaultHidden:!0},{title:"\u81EA\u63A7\u9501\u65F6",dataIndex:"selfControlLockTime",defaultHidden:!0},{title:"\u64A4\u6CF5\u4EBA",dataIndex:"undoBy"},{title:"\u89C1\u8BC1\u4EBA",dataIndex:"witnesses"},{title:"\u9500\u6BC1\u4EBA",dataIndex:"destroyer"}],it=[{label:"\u6781\u9650",value:1,state:"alarmState",stateValue:"5"},{label:"\u5835\u585E",value:2,state:"alarmState",stateValue:"2"},{label:"\u7535\u673A\u5931\u63A7",value:3,state:"alarmState",stateValue:"8"},{label:"\u673A\u68B0\u6545\u969C",value:4,state:"alarmState",stateValue:"9"},{label:"\u7535\u91CF\u8017\u5C3D",value:5,state:"alarmState",stateValue:"7"},{label:"\u6C14\u6CE1\u65E0\u6DB2",value:6,state:"alarmState",stateValue:"1"},{label:"\u8FD4\u5382\u7EF4\u4FEE",value:7,state:"alarmState",stateValue:"4"},{label:"\u9547\u75DB\u4E0D\u8DB3",value:8,state:"warnAnalgesicPoor",stateValue:!0},{label:"\u672A\u88C5\u836F\u76D2",value:9,state:"alarmState",stateValue:"3"},{label:"\u4F4E\u8F93\u6CE8\u72B6\u6001",value:10,state:"warnFlow",stateValue:"5"},{label:"\u4E0D\u5728\u670D\u52A1\u533A",value:11,state:"runState",stateValue:"5"}];const T=v=>(X("data-v-088be012"),v=v(),Y(),v),ot={class:"warp"},nt={class:"flex stats-status__warp"},rt=["onClick"],dt={id:"goBack"},ct=T(()=>d("span",{style:{width:"60%"}},"\u6CF5\u53F7",-1)),pt=T(()=>d("span",{style:{width:"40%","padding-right":"10px"}},"\u62A5\u8B66\u6B21\u6570",-1)),mt={style:{width:"60%"}},ft={style:{width:"40%"}},vt={key:0},ht={key:1,class:"color-green"},xt=["onClick"],Ct={class:"table-item__label"},wt=U({__name:"index",setup(v){const b=q(),[h,{openModal:g}]=ut(),c=S([]),s=K({deviceId:"",page:{current:1,size:10}}),w=S(),[_,{setTableData:r,setPagination:m}]=at({api:D,columns:lt,showIndexColumn:!0,beforeFetch:P,bordered:!0,indexColumnProps:{fixed:!0},actionColumn:{auth:["bus:pump:edit","bus:pump:remove"],title:"\u64CD\u4F5C",width:60,dataIndex:"action",slots:{customRender:"action"}}});G(()=>x(this,null,function*(){M()}));function P(e){return x(this,null,function*(){return e&&(s.page={current:e.current||1,size:e.size||10}),s})}function L(){b.push({path:"/info/infoDeviceUse"})}function M(){return x(this,null,function*(){let e=yield R({alarmState:"5"});for(let t of e)c.value.push({label:t.deviceId,count:t.alarmCount,value:t.num});let a=yield D({deviceAlarm:"5",page:{current:1,size:10}});r(a.records),m({pageSizeOptions:["10","50","80","100"],defaultPageSize:a.size,pageSize:Number(a.size),current:Number(a.current),total:Number(a.total)})})}const y=S(1);function H(e){return x(this,null,function*(){c.value=[],w.value=null,y.value=e.value;let a=e.state,t={};s.deviceId="",s.page={current:1,size:10},s.deviceAlarm="",s.deviceRunState="",s.warns=[],a==="alarmState"&&(t={alarmState:e.stateValue},s.deviceAlarm=e.stateValue),a==="runState"&&(t={runState:e.stateValue},s.deviceRunState=e.stateValue),a==="warnAnalgesicPoor"&&(t={warnAnalgesicPoor:e.stateValue},s.warns=["5"]),a==="warnFlow"&&(t={warnFlow:e.stateValue},s.warns=["7"]);let i=yield R(t);for(let I of i)c.value.push({label:I.deviceId,count:I.alarmCount,value:I.num,state:a,stateValue:e.stateValue});let o=yield D(s);r(o.records),m({showSizeChanger:!0,pageSizeOptions:["10","50","80","100"],pageSize:Number(o.size),current:Number(o.current),total:Number(o.total)})})}function O(e){return x(this,null,function*(){c.value,w.value=e.value,s.page={current:1,size:10};for(let t of c.value)t.value==e.value&&(s.deviceId=t.label);let a=yield D(s);r(a.records),m({showSizeChanger:!0,pageSizeOptions:["10","50","80","100"],defaultPageSize:a.size,pageSize:Number(a.size),current:Number(a.current),total:Number(a.total)})})}function $(e){g(!0,{record:e})}function j(e){b.push({path:"/infusion/infusionDetail",query:{monitorType:1,history:1,patientCode:e.patientCode,patientId:e.patientId,clinicId:e.clinicId,infusionId:e.id}})}return(e,a)=>(f(),C("div",ot,[n(l(N),null,{default:u(()=>[n(l(B),{span:24,class:"flex",xs:24,sm:24,md:24,lg:24,xl:24},{default:u(()=>[d("div",nt,[(f(!0),C(A,null,E(l(it),t=>(f(),C("div",{key:t.label,onClick:i=>H(t),class:F(["stats-status",y.value==t.value?"stats-status--active":""])},p(t.label),11,rt))),128))]),d("div",dt,[n(l(J),{onClick:L,type:"primary"},{default:u(()=>[z("\u8FD4\u56DE")]),_:1})])]),_:1})]),_:1}),n(l(N),null,{default:u(()=>[n(l(B),{span:4},{default:u(()=>[n(l(V),{class:"list"},{default:u(()=>[n(l(k),null,{default:u(()=>[ct,pt]),_:1})]),_:1}),n(l(V),{class:"List"},{default:u(()=>[(f(!0),C(A,null,E(c.value,t=>(f(),W(l(k),{key:t.label,onClick:i=>O(t),class:F(["style-status",w.value==t.value?"style-status--active":""])},{default:u(()=>[d("span",mt,p(t.label),1),d("span",ft,p(t.count),1)]),_:2},1032,["onClick","class"]))),128))]),_:1})]),_:1}),n(l(B),{span:20,style:{padding:"16px"}},{default:u(()=>[n(l(tt),{onRegister:l(_)},{infusionFinished:u(({record:t})=>[t.infusionFinished?(f(),C("span",vt," \u5DF2\u7ED3\u675F ")):(f(),C("span",ht," \u672A\u7ED3\u675F "))]),type:u(({record:t})=>{var i,o;return[d("div",{class:F(["card-device card-device--table","card-device--"+((i=t.type)==null?void 0:i.value)])},p((o=t.type)==null?void 0:o.text),3)]}),pca:u(({record:t})=>[z(p(t.pcaValidCount)+"/"+p(t.pcaInvalidCount),1)]),continueDose:u(({record:t})=>[d("div",{onClick:i=>$(t),class:"pointer table-item"},[d("div",Ct,p(t.continueDose)+"ml/h ",1)],8,xt)]),runState:u(({record:t})=>{var i,o;return[d("span",{class:F([((i=t.runState)==null?void 0:i.value)==5?"color-yellow":""])},p((o=t.runState)==null?void 0:o.text),3)]}),alarm:u(({record:t})=>{var i,o;return[d("span",{class:F([(i=t.alarm)!=null&&i.value?"color-yellow":""])},p((o=t.alarm)==null?void 0:o.text),3)]}),action:u(({record:t})=>[n(l(et),{actions:[{auth:["bus:pump:edit"],tooltip:"\u8BE6\u60C5",label:"\u8BE6\u60C5",onClick:j.bind(null,t)}]},null,8,["actions"])]),progress:u(({record:t})=>[n(l(Z),{percent:Number((t.inputDose/t.totalDose*100).toFixed(2)),size:"small",status:"active",strokeColor:Number((t.inputDose/t.totalDose*100).toFixed(2))>99?"#f8af4e":"#6cd761"},null,8,["percent","strokeColor"])]),_:1},8,["onRegister"]),n(l(st),{onRegister:l(h)},null,8,["onRegister"])]),_:1})]),_:1})]))}});var ge=Q(wt,[["__scopeId","data-v-088be012"]]);export{ge as default};
|