| 1 |
- var s=(N,w,h)=>new Promise((x,C)=>{var B=c=>{try{F(h.next(c))}catch(a){C(a)}},b=c=>{try{F(h.throw(c))}catch(a){C(a)}},F=c=>c.done?x(c.value):Promise.resolve(c.value).then(B,b);F((h=h.apply(N,w)).next())});import{j as ie,a as ne,bR as oe,ci as ue,r as A,s as se,p as le,O as ae,a8 as re,o as T,e as E,i as p,x as l,h as m,w as ce,Q as de,y as M,f as d,z as v,n as y,b6 as r,fD as me,G as fe}from"./index.ae52ebae.js";import{f as S}from"./busConstantApi.27f88676.js";import{B as pe}from"./TableImg.0cd3291c.js";import"./BasicForm.d58d202f.js";import{u as Fe}from"./useTable.578ae310.js";import{u as R}from"./index.3ccc18ac.js";import he from"./evalCount.bed4fb92.js";import ge from"./infusionCount.1a934e66.js";import ye from"./detail.c1d0ca82.js";import{C as k,M as Y}from"./data.f02cf73e.js";/* empty css */import{m as ve}from"./filters.39437beb.js";import{f as P}from"./busNetpumpApi.73f97f76.js";import{d as Ce,e as De,f as Te}from"./busClinicApi.3d8324ac.js";import{c as we}from"./busDeviceHistoryApi.2da144fb.js";import{C as O,R as z}from"./index.5e5e8ba1.js";import"./params.cdcdde57.js";import"./index.e3129508.js";import"./eagerComputed.94e91cab.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"./index.87b4cc3a.js";import"./useRefs.fe3bdf15.js";import"./Form.1cc72784.js";import"./Col.605699c9.js";import"./useFlexGapSupport.3240d255.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"./busHospitalConfigApi.7ecc8807.js";import"./index.6ba04408.js";import"./useECharts.514ffc33.js";import"./index.209e9c16.js";const $=[{title:"\u4F4F\u9662\u53F7",dataIndex:"patientCode",slots:{customRender:"patientCode"},fixed:!0,width:100},{title:"\u59D3\u540D",dataIndex:"patientName",fixed:!0,width:120},{title:"\u75C5\u533A",dataIndex:"ward",fixed:!0,filters:[],width:120},{title:"\u5E8A\u53F7",dataIndex:"bedNo",width:120},{title:"\u624B\u672F\u540D\u79F0",dataIndex:"surgeryName",width:160},{title:"\u624B\u672F\u533B\u751F",dataIndex:"surgeryDoctor",width:120},{title:"\u9EBB\u9189\u533B\u751F",dataIndex:"anaDoctor",width:120},{title:"\u4E34\u5E8A\u72B6\u6001",dataIndex:"finished",slots:{customRender:"finished"},width:120,sorter:!0},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"monitorStartTime",width:160,sorter:!0},{title:"\u76D1\u63A7\u65F6\u957F",dataIndex:"useTime",slots:{customRender:"useTime"},width:120},{title:"\u76D1\u63A7\u7C7B\u578B",dataIndex:"monitorType",slots:{customRender:"monitorType"},width:120,filters:ve,filterMultiple:!1},{title:"\u8F93\u6CE8\u6B21\u6570",dataIndex:"infusionCount",slots:{customRender:"infusionCount"},fixed:"right",width:80},{title:"\u8BC4\u4EF7\u4FE1\u606F",dataIndex:"evalCount",slots:{customRender:"evalCount"},fixed:"right",width:80}],xe=[{field:"patientCode",label:"\u4F4F\u9662\u53F7",component:"Input",componentProps:{placeholder:"\u8BF7\u8F93\u5165\u4F4F\u9662\u53F7"}},{field:"surgeryName",label:"\u624B\u672F\u540D\u79F0",component:"Input",componentProps:{placeholder:"\u8BF7\u8F93\u5165\u624B\u672F\u540D\u79F0"}},{field:"bedNo",label:"\u5E8A\u53F7",component:"Input",componentProps:{placeholder:"\u8BF7\u8F93\u5165\u5E8A\u53F7"}},{field:"patientName",label:"\u60A3\u8005\u540D\u79F0",component:"Input",componentProps:{placeholder:"\u8BF7\u8F93\u5165\u60A3\u8005\u540D\u79F0"}}];const Be={class:"warp"},be=["onClick"],_e={key:0},Ee={key:1,class:"color-green"},Me=["onClick"],Re=["onClick"],Ne={class:"flex stats-status__warp"},Ae=ne({__name:"index",setup(N){const[w,{openModal:h}]=R(),[x,{openModal:C}]=R(),[B,{openModal:b}]=R(),{hasPermission:F}=oe(),{createMessage:c}=fe();ue(()=>s(this,null,function*(){let e=yield S({type:k.MIX,wheres:[{column:"type",value:Y.WARD,termType:"eq"}]});if(e.records){let t=e.records.map(o=>({key:o.name,title:o.name}));D.value=[{key:"all",title:"\u5168\u90E8",children:t}]}}));const a=A(0),D=A([]),[q,{setTableData:V,setPagination:I,setColumns:W,getDataSource:j}]=Fe({title:"\u4E34\u5E8A\u7BA1\u7406",api:P,columns:$,formConfig:{labelWidth:80,baseColProps:{xs:20,sm:8,md:4,lg:5},labelAlign:"left",actionColOptions:{span:4},resetButtonOptions:{preIcon:"ant-design:delete-outlined"},submitButtonOptions:{preIcon:"ant-design:search-outlined"},schemas:xe,autoSubmitOnEnter:!0},showIndexColumn:!0,indexColumnProps:{fixed:!0},useSearchForm:!0,showTableSetting:!1,tableSetting:{setting:!1,redo:!1},bordered:!0,maxHeight:615,beforeFetch:L,filterFn:K,sortFn:J}),n=se({bedNo:"",monitorType:"",page:{current:1,size:0},patientCode:"",patientName:"",surgeryName:"",timeRange:[],ward:[],clinicEndTimeDesc:"",clinicFinishedDesc:"",monitorStartTimeDesc:""});function L(e){return n.page={current:(e==null?void 0:e.current)||1,size:(e==null?void 0:e.size)||10},n.bedNo="",n.patientCode="",n.surgeryName="",n.patientName="",e!=null&&e.ward&&(n.ward=e==null?void 0:e.ward),e!=null&&e.bedNo&&(n.bedNo=e==null?void 0:e.bedNo),e!=null&&e.monitorType&&(n.monitorType=e==null?void 0:e.monitorType),e!=null&&e.patientCode&&(n.patientCode=e==null?void 0:e.patientCode),e!=null&&e.surgeryName&&(n.surgeryName=e==null?void 0:e.surgeryName),e!=null&&e.patientName&&(n.patientName=e==null?void 0:e.patientName),e!=null&&e.timeRange&&(n.timeRange=e==null?void 0:e.timeRange),n}le(()=>s(this,null,function*(){yield X()}));function X(){return s(this,null,function*(){let e=yield S({type:k.MIX,wheres:[{column:"type",value:Y.WARD,termType:"eq"}]});e.records&&(D.value=e.records.map(o=>({text:o.name,value:o.name})),D.value);let t=$.map(o=>(o.dataIndex=="ward"&&(o.filters=D.value),o));W(t)})}function G(e,t){if(t){let o=(new Date(Date.parse(t)).getTime()-new Date(Date.parse(e)).getTime())/1e3;const u=Math.floor(o/(60*60*24)),i=Math.floor((o-u*60*60*24)/(60*60)),f=Math.floor((o-u*60*60*24-i*60*60)/60);return(u>0?u+"\u5929":"")+i+"\u65F6"+f+"\u5206"}else{let o=(new Date().getTime()-new Date(Date.parse(e)).getTime())/1e3;const u=Math.floor(o/(60*60*24)),i=Math.floor((o-u*60*60*24)/(60*60)),f=Math.floor((o-u*60*60*24-i*60*60)/60);return(u>0?u+"\u5929":"")+i+"\u65F6"+f+"\u5206"}}function H(e){return e===0?"\u5176\u5B83\u76D1\u63A7":e===1?"\u8F93\u6CE8\u76D1\u63A7":""}function g(e){return s(this,null,function*(){a.value=e;let t=r(r().format("YYYY-MM-DD")).valueOf(),o=r(r().subtract(1,"day").format("YYYY-MM-DD")).valueOf(),u=r(r().subtract(2,"day").format("YYYY-MM-DD")).valueOf(),i=r(r().subtract(3,"day").format("YYYY-MM-DD")).valueOf(),f=r(r().subtract(50,"year").format("YYYY-MM-DD")).valueOf(),_=r().valueOf();e===0&&(n.timeRange=[]),e===1&&(n.timeRange=[t,_]),e===2&&(n.timeRange=[o,t]),e===3&&(n.timeRange=[u,o]),e===4&&(n.timeRange=[i,u]),e===5&&(n.timeRange=[f,i]),yield Q()})}function Q(){return s(this,null,function*(){let e=yield P(n);V(e.records),I({showSizeChanger:!0,pageSizeOptions:["10","50","80","100"],defaultPageSize:e.size,pageSize:Number(e.size),current:Number(e.current),total:Number(e.total)})})}function J(e){return s(this,null,function*(){e.field==="monitorStartTime"&&(e.order==="ascend"?n.monitorStartTimeDesc=!1:e.order==="descend"?n.monitorStartTimeDesc=!0:n.monitorStartTimeDesc=""),e.field==="finished"&&(e.order==="ascend"?n.clinicFinishedDesc=!1:e.order==="descend"?n.clinicFinishedDesc=!0:n.clinicFinishedDesc="")})}function K(e){return s(this,null,function*(){if(e!=null&&e.monitorType?n.monitorType=e.monitorType[0]:n.monitorType="",e!=null&&e.ward){let t=[];for(let o in e==null?void 0:e.ward)e!=null&&e.ward[o]&&t.push(e==null?void 0:e.ward[o]);n.ward=t}else n.ward=[]})}function U(e){return s(this,null,function*(){const t=yield Ce(e.clinicId);b(!0,{PatientData:t})})}function Z(e){return s(this,null,function*(){if(F(["bus:eval:query"]),!F(["clinic:eval:query"])){c.warning("\u8BF7\u6C42\u672A\u6388\u6743\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458");return}const t=yield De({type:"and",wheres:[{column:"clinic_id",value:e.clinicId,termType:"eq"}]});h(!0,{evalData:t})})}function ee(e){return s(this,null,function*(){if(!F(["clinic:infusion:query"])){c.warning("\u8BF7\u6C42\u672A\u6388\u6743\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458");return}const t=yield Te({type:"and",wheres:[{column:"clinic_id",value:e.clinicId,termType:"eq"}]});C(!0,{evalData:t,clinicId:e.clinicId})})}function te(){return s(this,null,function*(){const e=j().map(o=>o.clinicId),t=yield we(e);me(t.base64,t.fileName)})}return(e,t)=>{const o=ae("a-button"),u=re("auth");return T(),E("div",Be,[p(m(z),{xs:24,sm:24,md:24,lg:24,xl:12},{default:l(()=>[p(m(O),null,{default:l(()=>[p(m(pe),{onRegister:m(q)},{toolbar:l(()=>[ce((T(),de(o,{type:"primary",color:"success",onClick:te,preIcon:"ant-design:download-outlined"},{default:l(()=>[M(" \u5BFC\u51FA\u8868\u683C ")]),_:1})),[[u,["bus:clinic:edit"]]])]),patientCode:l(({record:i})=>[d("span",{onClick:f=>U(i),class:"pointer color-primary"},v(i.patientCode),9,be)]),monitorType:l(({record:i})=>[M(v(H(i.monitorType)),1)]),useTime:l(({record:i})=>[M(v(i.monitorStartTime?G(i.monitorStartTime,i.monitorEndTime):""),1)]),finished:l(({record:i})=>[i.finished?(T(),E("span",_e," \u5DF2\u7ED3\u675F ")):(T(),E("span",Ee," \u672A\u7ED3\u675F "))]),evalCount:l(({record:i})=>[d("span",{onClick:f=>Z(i),class:"pointer color-primary"},v(i.evalCount),9,Me)]),infusionCount:l(({record:i})=>[d("span",{onClick:f=>ee(i),class:"pointer color-primary"},v(i.infusionCount),9,Re)]),_:1},8,["onRegister"])]),_:1})]),_:1}),p(m(z),null,{default:l(()=>[p(m(O),{xs:24,sm:24,md:24,lg:24,xl:12,class:"flex",style:{left:"22px",position:"relative",bottom:"50px"}},{default:l(()=>[d("div",Ne,[d("div",{class:y(["stats-status",a.value==0?"stats-status--active":""]),onClick:t[0]||(t[0]=i=>g(0))}," \u5168\u90E8 ",2),d("div",{class:y(["stats-status",a.value==1?"stats-status--active":""]),onClick:t[1]||(t[1]=i=>g(1))}," \u5F53\u5929 ",2),d("div",{class:y(["stats-status",a.value==2?"stats-status--active":""]),onClick:t[2]||(t[2]=i=>g(2))}," \u4E00\u5929 ",2),d("div",{class:y(["stats-status",a.value==3?"stats-status--active":""]),onClick:t[3]||(t[3]=i=>g(3))}," \u4E24\u5929 ",2),d("div",{class:y(["stats-status",a.value==4?"stats-status--active":""]),onClick:t[4]||(t[4]=i=>g(4))}," \u4E09\u5929 ",2),d("div",{class:y(["stats-status",a.value==5?"stats-status--active":""]),onClick:t[5]||(t[5]=i=>g(5))}," \u4E09\u5929\u4EE5\u4E0A ",2)])]),_:1})]),_:1}),p(he,{onRegister:m(w)},null,8,["onRegister"]),p(ge,{onRegister:m(x)},null,8,["onRegister"]),p(ye,{onRegister:m(B)},null,8,["onRegister"])])}}});var Lt=ie(Ae,[["__scopeId","data-v-67af58dd"]]);export{Lt as default};
|