| 1 |
- var _=(v,p,r)=>new Promise((d,l)=>{var c=o=>{try{s(r.next(o))}catch(i){l(i)}},f=o=>{try{s(r.throw(o))}catch(i){l(i)}},s=o=>o.done?d(o.value):Promise.resolve(o.value).then(c,f);s((r=r.apply(v,p)).next())});import{_ as T}from"./componentMap-61ccdbb2.js";import{u as B}from"./useForm-bff27c7a.js";import"./FormItem.vue_vue_type_script_lang-39d09a3e.js";import{P}from"./ImportModal.vue_vue_type_style_index_0_scoped_375ed303_lang-fdd1625c.js";import"./index-4f5bc708.js";import"./index-a4e1ec38.js";import{B as R,a5 as b,a6 as w}from"./antd-f259b82a.js";import{m as D,_ as L}from"./index.js";import{d as V}from"./patientStatsApi-897775eb.js";import{u as S,_ as $}from"./useTable-98d6d579.js";import{_ as k}from"./line.vue_vue_type_script_setup_true_lang-d47a712c.js";import{d as E,f as m,o as O,Y as z,Z as N,_ as h,l as e,u as a,a7 as u,F as G}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-2ecc6b15.js";import"./copyTextToClipboard-328ee3b1.js";import"./TextEditor-4892fcd0.js";import"./onMountedOrActivated-d9097634.js";import"./useWindowSizeFn-6e9d633b.js";import"./useForm-c7f42ee0.js";import"./componentMap-175d8229.js";import"./sortable.esm-4ae27e0b.js";import"./useECharts-947e808e.js";const H=[{title:"转归日期",dataIndex:"typeList",align:"left"},{title:"转出中心",dataIndex:"return_roll_out",align:"left"},{title:"临时转移",dataIndex:"return_roll_tmp",align:"left"},{title:"周转",dataIndex:"return_turnover",align:"left"},{title:"出院",dataIndex:"return_discharge",align:"left"},{title:"死亡",dataIndex:"return_dead",align:"left"},{title:"其他",dataIndex:"return_else",align:"left"},{title:"总计",dataIndex:"totalCount",align:"left"}],M=[{field:"statsTypes",component:"RadioButtonGroup",componentProps:{options:[{label:"日",value:"day"},{label:"月",value:"month"}]},defaultValue:"day"}],Y={class:"flex items-center xt-form"},Z={class:"flex"},j={class:"mb-4"},q=E({__name:"index",setup(v){const p=m("转归患者"),r=m({}),d=m([]),l=m("day"),[c,{getFieldsValue:f}]=B({schemas:M,autoSubmitOnEnter:!0,size:"large",rowProps:{gutter:16}}),[s,{setTableData:o}]=S({showIndexColumn:!1,bordered:!0,striped:!1,pagination:!1,maxHeight:400,dataSource:d.value,columns:H});O(()=>_(this,null,function*(){x()}));function i(){return _(this,null,function*(){l.value=f().statsTypes,x()})}function x(){return _(this,null,function*(){const y={type:l.value},t=yield V(y),g=[];t.typeList.forEach((F,n)=>{g.push({typeList:F,return_roll_out:t.return_roll_out[n],return_roll_tmp:t.return_roll_tmp[n],return_turnover:t.return_turnover[n],return_discharge:t.return_discharge[n],return_dead:t.return_dead[n],return_else:t.return_else[n],totalCount:t.totalCount[n]})}),d.value=g,yield o(g);const I={content:[{id:"转出中心",value:t.return_roll_out},{id:"临时转移",value:t.return_roll_tmp},{id:"周转",value:t.return_turnover},{id:"出院",value:t.return_discharge},{id:"死亡",value:t.return_dead},{id:"其他",value:t.return_else}],time:t.typeList};r.value=I})}function C(){console.log("下载按钮")}return(y,t)=>(z(),N(G,null,[h("div",Y,[h("div",Z,[e(a(T),{onRegister:a(c),onFieldValueChange:i,style:{width:"110px"},class:"mr-2"},null,8,["onRegister"])]),e(a(R),{type:"default",onClick:C,style:{height:"38px","margin-top":"-8px"}},{default:u(()=>[e(D,{icon:"icon-xt-download-download_default|iconfont",size:14})]),_:1})]),h("div",j,[e(a(P),{title:p.value},null,8,["title"])]),e(a(w),{style:{"max-height":"360px"}},{default:u(()=>[e(a(b),{span:24},{default:u(()=>[e(k,{data:r.value},null,8,["data"])]),_:1})]),_:1}),e(a(w),{style:{"max-height":"300px","margin-bottom":"16px"}},{default:u(()=>[e(a(b),{span:24},{default:u(()=>[e(a($),{onRegister:a(s)},null,8,["onRegister"])]),_:1})]),_:1})],64))}});const yt=L(q,[["__scopeId","data-v-709d37f4"]]);export{yt as default};
|