FormDrawerHistory-eb417b9b.js 7.1 KB

1
  1. var P=(e,d,t)=>new Promise((f,r)=>{var o=a=>{try{n(t.next(a))}catch(i){r(i)}},b=a=>{try{n(t.throw(a))}catch(i){r(i)}},n=a=>a.done?f(a.value):Promise.resolve(a.value).then(o,b);n((t=t.apply(e,d)).next())});import{a as _,B as I}from"./index-d7f80bb7.js";import{l as u}from"./index-fe06ec6c.js";import{p as y}from"./pharmaceuticalsApi-fca52cfa.js";import{u as Y,_ as T}from"./useTable-e37b46e3.js";import"./FormItem.vue_vue_type_script_lang-aa52e9e4.js";import{a as w}from"./vitalsHistoryApi-41f6c31d.js";import{C as v}from"./ChartsCard-1a8e0ce8.js";import{l as p}from"./antd-f204cf77.js";import{d as C,f as m,r as N,Y as x,a6 as M,a7 as F,_ as h,l as g,u as c,aa as S,x as k}from"./vue-b33f04cb.js";import{_ as L}from"./index.js";const X=[{title:"类型",dataIndex:"typeName",edit:!0,editable:!0,editRule:!0,width:150,editComponent:"ApiSelect",editComponentProps:()=>({api:u,params:{dictCode:"ct"},showSearch:!0,placeholder:"请选择",getPopupContainer:()=>document.body})},{title:"名称",dataIndex:"name",edit:!0,editable:!0,width:150,editComponent:"ApiSelect",editRule:!0,editComponentProps:({record:e})=>({api:y,immediate:!1,labelField:"name",valueField:"id",params:{suppliesType:e.typeName||""},placeholder:"请选择"})},{title:"数量",dataIndex:"count",width:200,edit:!0,editable:!0,editComponent:"InputNumber",editRule:!0,editComponentProps:{placeholder:"请输入"}}],Z=[{label:"血管通路",field:"vascularAccess",required:!0,component:"ApiSelect",componentProps:{api:u,params:{dictCode:"va_type"}}},{label:"透析模式",field:"dialysisType",required:!0,component:"ApiSelect",componentProps:{api:u,params:{dictCode:"dt"}}},{label:"制定日期",field:"enactedTime",required:!0,component:"DatePicker",componentProps:()=>({placeholder:"请输入制定日期",getPopupContainer:()=>document.body,valueFormat:"YYYY-MM-DD"})},{field:"vitals",component:"PlainTitle",defaultValue:"体征",subLabel:"查看历史",subLabelColor:"rgba(0, 109, 255, 1)",colProps:{span:24}},{label:"干体重 (kg)",field:"vitals.dryWeight",component:"InputNumber",componentProps:{placeholder:"请输入干体重",step:"0.01"}},{label:"OH值 (kg)",field:"vitals.oh",component:"InputNumber",componentProps:{placeholder:"请输入干体重",step:"0.01"}},{label:"V值 (kg)",field:"vitals.v",component:"InputNumber",componentProps:{placeholder:"请输入干体重",step:"0.01"}},{field:"anticoagulant",component:"PlainTitle",defaultValue:"抗凝",colProps:{span:24}},{label:"抗凝方式",field:"anticoagulant.type",component:"ApiSelect",itemProps:{validateTrigger:"blur"},componentProps:({formModel:e})=>({api:u,params:{dictCode:"agt"},onChange:d=>{e["anticoagulant.name"]=null}})},{label:"抗凝剂",field:"anticoagulant.name",component:"ApiSelect",itemProps:{validateTrigger:"blur"},componentProps:({formModel:e})=>({api:y,immediate:!1,labelField:"name",valueField:"id",params:{suppliesType:e["anticoagulant.type"]}}),ifShow:({values:e})=>e["anticoagulant.type"]&&e["anticoagulant.type"]!=""},{label:"首剂",field:"anticoagulant.firstDose",component:"InputNumber",componentProps:{placeholder:"请输入追加",step:"0.01"}},{label:"追加",field:"anticoagulant.appendDose",component:"InputNumber",componentProps:{placeholder:"请输入追加",step:"0.01"}},{field:"suppliesTemplateTitle",component:"PlainTitle",defaultValue:"耗材",colProps:{span:24}},{field:"suppliesTemplate",component:"PlainText",slot:"suppliesTemplate",labelClass:"hidden",colProps:{span:24}},{field:"dialysisParam11",component:"PlainTitle",defaultValue:"透析参数",colProps:{span:24}},{label:"透析时长 (h)",field:"dialysisParam.dialysisTime",component:"InputNumber",componentProps:{placeholder:"请输入",step:"0.01"}},{label:"流量 (ml/min)",field:"dialysisParam.flowRate",component:"InputNumber",componentProps:{placeholder:"请输入",step:"0.01"}},{label:"湿度 (℃)",field:"dialysisParam.temperature",component:"InputNumber",componentProps:{placeholder:"请输入",step:"0.01"}},{label:"血流量 (ml/min)",field:"dialysisParam.bloodFlow",component:"InputNumber",componentProps:{placeholder:"请输入",step:"0.01"}},{label:"K (mmolL)",field:"dialysisParam.k",component:"InputNumber",componentProps:{placeholder:"请输入",step:"0.01"}},{label:"Na (mmolL)",field:"dialysisParam.na",component:"InputNumber",componentProps:{placeholder:"请输入",step:"0.01"}},{label:"Ca (mmolL)",field:"dialysisParam.ca",component:"InputNumber",componentProps:{placeholder:"请输入",step:"0.01"}},{label:"碳酸氢根 (mmolL)",field:"dialysisParam.hco",component:"InputNumber",componentProps:{placeholder:"请输入",step:"0.01"}},{label:"Mg (mmolL)",field:"dialysisParam.mg",component:"InputNumber",componentProps:{placeholder:"请输入",step:"0.01"}},{label:"Cl (mmolL)",field:"dialysisParam.cl",component:"InputNumber",componentProps:{placeholder:"请输入",step:"0.01"}},{label:"葡萄糖 (mmolL)",field:"dialysisParam.glucose",component:"InputNumber",componentProps:{placeholder:"请输入",step:"0.01"}},{label:"置换液",field:"dialysisParam.dsplacementFluid",component:"Input",componentProps:{placeholder:"请输入"},ifShow:({values:e})=>e.dialysisType=="dt_hd_crrt"},{label:"稀释方式",field:"dialysisParam.dilute",component:"Input",componentProps:{placeholder:"请输入"},ifShow:({values:e})=>e.dialysisType=="dt_hd_crrt"}],B=[{title:"时间",dataIndex:"dialysisTime",align:"left"},{title:"透前血压(mmHg)",dataIndex:"preBloodPressure",align:"left"},{title:"透前体重(kg)",dataIndex:"preWeight",align:"left"},{title:"透后体重(kg)",dataIndex:"postWeight",align:"left"},{title:"干体重(kg)",dataIndex:"dryWeight",align:"left"},{title:"实际超滤量(kg)",dataIndex:"actualUltrafiltration",align:"left"}],H={class:"w-full mt-2"},R={class:"my-2"},V="70%",A=C({__name:"FormDrawerHistory",setup(e){const d=m("体征历史数据"),t=m(),f=m([p().subtract(3,"month").format("YYYY-MM-DD"),p().format("YYYY-MM-DD")]),r=m([]);p().subtract(3,"month").format("YYYY-MM-DD"),p().format("YYYY-MM-DD");const o=N({colors:[{color:"rgba(33, 201, 153, 1)",label:"透前血压 (mmHg)",dot:"rgba(33, 201, 153, 1)"}],infoData:[],dateData:[]}),[b,{setTableData:n}]=Y({rowKey:"id",showIndexColumn:!1,bordered:!0,striped:!1,pagination:!1,maxHeight:200,dataSource:r.value,columns:B}),[a,{setDrawerProps:i}]=_(l=>P(this,null,function*(){i({confirmLoading:!1}),t.value=l.record.patientBasicId,yield D()}));function D(){return P(this,null,function*(){const l=yield w({createTime:f.value,patientBasicId:t.value});o.dateData=l.map(s=>s.dialysisTime?p(s.dialysisTime).format("YYYY-MM-DD"):""),o.infoData=l.map(s=>s.preBloodPressure),r.value=l,yield k(),yield n(r.value)})}return(l,s)=>(x(),M(c(I),S(l.$attrs,{destroyOnClose:"",onRegister:c(a),title:d.value,width:V,showFooter:!1}),{default:F(()=>[h("div",H,[h("div",R,[g(v,{title:"透前血压趋势","has-safe":!1,colors:o.colors,height:"200px","date-data":o.dateData,"info-data":o.infoData},null,8,["colors","date-data","info-data"])]),g(c(T),{onRegister:c(b)},null,8,["onRegister"])])]),_:1},16,["onRegister","title"]))}});const O=L(A,[["__scopeId","data-v-3e62c569"]]),ee=Object.freeze(Object.defineProperty({__proto__:null,default:O},Symbol.toStringTag,{value:"Module"}));export{O as F,ee as a,X as c,Z as d};