| 1 |
- var u=(v,h,o)=>new Promise((c,i)=>{var m=d=>{try{l(o.next(d))}catch(n){i(n)}},f=d=>{try{l(o.throw(d))}catch(n){i(n)}},l=d=>d.done?c(d.value):Promise.resolve(d.value).then(m,f);l((o=o.apply(v,h)).next())});import{_ as T}from"./componentMap-d5106bf3.js";import{u as b}from"./useForm-bff27c7a.js";import"./FormItem.vue_vue_type_script_lang-4a8994f8.js";import{P as C}from"./ImportModal.vue_vue_type_style_index_0_scoped_375ed303_lang-fdd1625c.js";import"./index-6b64feb2.js";import"./index-a4e1ec38.js";import{l as H,B as Y,a5 as w,a6 as R}from"./antd-f259b82a.js";import{m as B,_ as V}from"./index.js";import{c as M}from"./treatApi-4370dfc1.js";import{u as j,_ as z}from"./useTable-6be6a2db.js";import{_ as E}from"./line.vue_vue_type_script_setup_true_lang-d47a712c.js";import{d as S,f as r,o as $,Y as L,Z as A,_ as x,l as e,u as a,a7 as _,F as N}from"./vue-aed314e3.js";import"./index-7fe9c1e2.js";import"./index-6811a03f.js";import"./useFormItem-421691fe.js";import"./uuid-31b8b5a4.js";import"./useSortable-7d2b6665.js";import"./download-fac9a150.js";import"./copyTextToClipboard-328ee3b1.js";import"./TextEditor-4892fcd0.js";import"./onMountedOrActivated-d9097634.js";import"./useWindowSizeFn-6e9d633b.js";import"./useForm-92641d34.js";import"./componentMap-f0a937fc.js";import"./sortable.esm-4ae27e0b.js";import"./useECharts-947e808e.js";const O=[{title:"透析日期",dataIndex:"dateList",align:"left",width:120},{title:"HD",dataIndex:"dt_hd",align:"left",width:120},{title:"HDF",dataIndex:"dt_hdf",align:"left",width:120},{title:"CRRT",dataIndex:"dt_hd_crrt",align:"left"},{title:"ARRT",dataIndex:"dt_hd_arrt",align:"left"},{title:"HP",dataIndex:"dt_hd_hp",align:"left",width:120},{title:"HD+HP",dataIndex:"dt_hd_hd_hp",align:"left"},{title:"HDF+HP",dataIndex:"dt_hd_hdf_hp",align:"left"},{title:"单超",dataIndex:"dt_hd_dc",align:"left",width:120},{title:"单超+HD",dataIndex:"dt_hd_dc_hd",align:"left"},{title:"血浆置换",dataIndex:"dt_hd_xjzh",align:"left"},{title:"总计",dataIndex:"totalCount",align:"left",width:120}],k=[{field:"types",component:"RadioButtonGroup",componentProps:{options:[{label:"日",value:"day"},{label:"月",value:"month"}]},defaultValue:"day"},{field:"patrolTime",component:"RangePicker",componentProps:{format:"YYYY-MM-DD",valueFormat:"YYYY-MM-DD"},defaultValue:[H().add(-3,"month"),H()],colProps:{span:16}}],G={class:"flex items-center xt-form"},Z={class:"flex"},q={class:"mb-4"},J=S({__name:"index",setup(v){const h=r("透析类型"),o=r({}),c=r([]),i=r("day"),m=r([]),[f,{getFieldsValue:l}]=b({schemas:k,autoSubmitOnEnter:!0,size:"large",rowProps:{gutter:16}}),[d,{setTableData:n}]=j({showIndexColumn:!1,bordered:!0,striped:!1,pagination:!1,maxHeight:400,dataSource:c.value,columns:O});$(()=>u(this,null,function*(){D()}));function I(){return u(this,null,function*(){m.value=l().patrolTime||[],i.value=l().types||"",D()})}function D(){return u(this,null,function*(){const y={time:m.value,type:i.value},p=yield M(y);c.value=p,yield n(p);const t=[];p.forEach(g=>{Object.keys(g).forEach(s=>{t[s]?t[s].push(g[s]):t[s]=[g[s]]})});const P={content:[{id:"HD",value:t.dt_hd},{id:"HDF",value:t.dt_hdf},{id:"CRRT",value:t.dt_hd_crrt},{id:"ARRT",value:t.dt_hd_arrt},{id:"HP",value:t.dt_hd_hp},{id:"HD+HP",value:t.dt_hd_hd_hp},{id:"HDF+HP",value:t.dt_hd_hdf_hp},{id:"单超",value:t.dt_hd_dc},{id:"单超+HD",value:t.dt_hd_dc_hd},{id:"血浆置换",value:t.dt_hd_xjzh}],time:t.dateList};o.value=P})}function F(){console.log("下载按钮")}return(y,p)=>(L(),A(N,null,[x("div",G,[x("div",Z,[e(a(T),{onRegister:a(f),onFieldValueChange:I,style:{width:"400px"},class:"mr-2"},null,8,["onRegister"])]),e(a(Y),{type:"default",onClick:F,style:{height:"38px","margin-top":"-8px"}},{default:_(()=>[e(B,{icon:"icon-xt-download-download_default|iconfont",size:14})]),_:1})]),x("div",q,[e(a(C),{title:h.value},null,8,["title"])]),e(a(R),{style:{"max-height":"360px"}},{default:_(()=>[e(a(w),{span:24},{default:_(()=>[e(E,{data:o.value},null,8,["data"])]),_:1})]),_:1}),e(a(R),{style:{"max-height":"300px","margin-bottom":"16px"}},{default:_(()=>[e(a(w),{span:24},{default:_(()=>[e(a(z),{onRegister:a(d)},null,8,["onRegister"])]),_:1})]),_:1})],64))}});const Ht=V(J,[["__scopeId","data-v-c7e3416e"]]);export{Ht as default};
|