| 1 |
- var n=(f,e,u)=>new Promise((d,l)=>{var x=o=>{try{s(u.next(o))}catch(c){l(c)}},I=o=>{try{s(u.throw(o))}catch(c){l(c)}},s=o=>o.done?d(o.value):Promise.resolve(o.value).then(x,I);s((u=u.apply(f,e)).next())});import{B as y}from"./TableImg.0cd3291c.js";import"./BasicForm.d58d202f.js";import{u as A}from"./useTable.578ae310.js";import{q as D,f as _}from"./busEvalApi.d04f35f3.js";import{f as T}from"./busHospitalConfigApi.7ecc8807.js";import{a as S}from"./data.f19f7e62.js";import"./index.3d21a375.js";import{a as R,p as k,r as w,dP as P,aa as V,O as L,a8 as O,o as F,Q as g,x as v,h,w as j,y as q,af as z,n as H}from"./index.ae52ebae.js";import{j as M}from"./Export2Excel.6e63a5d1.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.3ccc18ac.js";import"./FullscreenOutlined.b9fd5be6.js";import"./index.c1d6a1f9.js";import"./sortable.esm.c20789c1.js";import"./RedoOutlined.80b8c01a.js";import"./index.5d87e81e.js";import"./index.95f887db.js";import"./index.9e0f8a6b.js";/* empty css */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"./index.5e5e8ba1.js";import"./params.cdcdde57.js";const C=[{title:"\u6CF5\u53F7",dataIndex:"deviceId",width:150},{title:"\u8BC4\u4EF7\u65F6\u95F4",dataIndex:"evaluateTime",width:160},{title:"\u8BC4\u4EF7\u4EBA",dataIndex:"evaluator",width:80},{title:"\u9759\u606F",dataIndex:"statics",width:60},{title:"\u8FD0\u52A8",dataIndex:"activity",width:60},{title:"\u9547\u9759",dataIndex:"calm",width:60},{title:"\u5DE6\u4E0A\u80A2",dataIndex:"leftArm",width:60},{title:"\u53F3\u4E0A\u80A2",dataIndex:"rightArm",width:60},{title:"\u5DE6\u4E0B\u80A2",dataIndex:"leftLeg",width:60},{title:"\u53F3\u4E0B\u80A2",dataIndex:"rightLeg",width:60},{title:"\u6076\u5FC3\u5455\u5410",dataIndex:"nauseaVomit",width:80},{title:"\u7619\u75D2",dataIndex:"itch",width:60},{title:"\u7729\u6655",dataIndex:"vertigo",width:60},{title:"\u54BD\u5589\u75BC\u75DB",dataIndex:"soreThroat",width:80},{title:"\u5C3F\u6F74\u7559",dataIndex:"uroschesis",width:60},{title:"\u547C\u5438\u6291\u5236",dataIndex:"breathDepression",width:80},{title:"\u58F0\u97F3\u5636\u54D1",dataIndex:"hoarseness",width:80},{title:"\u8BA4\u77E5\u969C\u788D",dataIndex:"cognitionObstacle",width:80},{title:"\u6EE1\u610F\u5EA6",dataIndex:"satisfaction",width:60},{title:"\u6536\u7F29\u538B",dataIndex:"shrinkPressure",width:60},{title:"\u8212\u5F20\u538B",dataIndex:"diastensPressure",width:60},{title:"\u547C\u5438\u9891\u7387",dataIndex:"breathRate",width:80},{title:"\u5FC3\u7387",dataIndex:"heartRate",width:60},{title:"SPO2(%)",dataIndex:"bloodOxygenSaturation",width:80},{title:"\u80CE\u5FC3",dataIndex:"fetalHeartRate",width:60}],$t=R({__name:"index",props:{data:{type:Object,default:()=>{}}},setup(f){const e=f;k(()=>n(this,null,function*(){yield B()}));const u=w([]),d=w([]),l=w(null),{isFullscreen:x}=P(l),[I,{reload:s,setColumns:o}]=A({api:e.data.deviceId?D:_,rowKey:"id",columns:C,showIndexColumn:!0,bordered:!0,indexColumnProps:{fixed:"left",width:60},maxHeight:150,pagination:!1,beforeFetch:c,afterFetch:E,showTableSetting:!0,tableSetting:{fullScreen:!0,redo:!0,setting:!1}});function c(t){return n(this,null,function*(){return e.data.deviceId?t={page:{size:500,current:1,searchCount:!1},clinicId:e.data.clinicId,deviceId:e.data.deviceId,infusionId:e.data.history?e.data.infusionId:null}:t={size:500,current:1,wheres:[{column:"clinicId",termType:"eq",value:e.data.clinicId}]},t})}function E(t){return n(this,null,function*(){return d.value=t.reverse(),t.reverse()})}V(e.data,t=>n(this,null,function*(){yield s()}));function B(){return n(this,null,function*(){let t={size:1,wheres:[{column:"type",value:S.EVAL,termType:"eq"}]},m=yield T(t);if(m.records.length){const a=m.records[0].config;let r=[],p=C;for(let i of p)i.dataIndex!="deviceId"&&i.dataIndex!="evaluateTime"&&i.dataIndex!="evaluator"?(i.ifShow=a[i.dataIndex]==1,i.defaultHidden=a[i.dataIndex]!=1):(i.ifShow=!0,i.defaultHidden=!1),r.push(i);u.value=r,o(r)}})}function b(){let t={};u.value.forEach(a=>{a.ifShow&&(t[a.dataIndex]=a.title)});let m=d.value.map(a=>{let r={};for(let p in t)r[p]=a[p];return r});M({header:t,data:m,filename:"\u9547\u75DB\u8BC4\u4EF7.xlsx"})}return(t,m)=>{const a=L("a-button"),r=O("auth");return F(),g(h(y),{onRegister:h(I),ref_key:"wrapRef",ref:l,class:H([h(x)?"table--fullscreen":""])},{toolbar:v(()=>[h(d).length?j((F(),g(a,{key:0,type:"primary",onClick:b,preIcon:"ant-design:download-outlined"},{default:v(()=>[q(" \u5BFC\u51FA\u8868\u683C ")]),_:1})),[[r,["bus:clinic:edit"]]]):z("",!0)]),_:1},8,["onRegister","class"])}}});export{$t as default};
|