TestDrawer-Bt1O2zVI.js 1.3 KB

1
  1. var u=(t,i,a)=>new Promise((n,r)=>{var l=e=>{try{s(a.next(e))}catch(o){r(o)}},d=e=>{try{s(a.throw(e))}catch(o){r(o)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(l,d);s((a=a.apply(t,i)).next())});import{a as h,B as v}from"./index-Mu5dydaG.js";import{b as y}from"./index-D6-fj_Lr.js";import{d as B,f as m,c as C,u as _,r as I,Z as k,a6 as x,a7 as S,ab as T,a2 as z,a3 as L,$ as O}from"./vue-CF9JqwIh.js";import{_ as P}from"./entry/index-BaQQ7BQ_.js";import"./antd-ILpsl5AZ.js";const R=t=>(z("data-v-bb4ac818"),t=t(),L(),t),$=R(()=>O("div",null,null,-1)),F="1280px",M=B({__name:"TestDrawer",emits:["success","register"],setup(t,{emit:i}){const a=i,n=m(""),r=m(!1),l=C(()=>_(r)?"编辑治疗单":"透析详情"),d=I({}),s=m([{key:"anticoagulant",dictCode:"agt"}]),[e,{setDrawerProps:o,closeDrawer:w}]=h(p=>u(this,null,function*(){o({confirmLoading:!1}),n.value=p.record.id;const f=yield y(s.value.map(c=>c.dictCode));for(const c in f){const b=s.value.filter(g=>g.dictCode==c)[0];d[b.key]=f[c]}}));function D(){return u(this,null,function*(){try{w(),a("success")}finally{o({confirmLoading:!1})}})}return(p,f)=>(k(),x(_(v),T(p.$attrs,{destroyOnClose:"",onRegister:_(e),title:l.value,width:F,onCancel:D,showFooter:!0,cancelText:"关闭","show-ok-btn":!1}),{default:S(()=>[$]),_:1},16,["onRegister","title"]))}}),A=P(M,[["__scopeId","data-v-bb4ac818"]]);export{A as default};