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