import{_ as D}from"./ContentWrap.vue_vue_type_script_setup_true_lang-CR_2gECF.js";import{d as c,as as M,a0 as E,r as i,b as T,o as g,g as A,B as e,k as t,a,N as B,O as r,D as o}from"./index-BP6bNRoi.js";import{E as O,a as j}from"./el-descriptions-item-BuMEVwqR.js";import{_ as x}from"./DictTag.vue_vue_type_script_lang-DwXPHgid.js";import{f as p}from"./formatTime-DwR9f7DP.js";import{g as L}from"./index-B8sHfnMD.js";import"./el-card-bU92WWV4.js";import"./color-DXkOL5Tu.js";const P=c({name:"BpmOALeaveDetail",__name:"detail",props:{id:M.number.def(void 0)},setup(d,{expose:f}){const{query:n}=E(),_=d,m=i(!1),l=i({}),Y=n.id,u=async()=>{m.value=!0;try{l.value=await L(_.id||Y)}finally{m.value=!1}};return f({open:u}),T(()=>{u()}),(k,q)=>{const b=x,s=O,v=j,y=D;return g(),A(y,null,{default:e(()=>[t(v,{column:1,border:""},{default:e(()=>[t(s,{label:"\u8BF7\u5047\u7C7B\u578B"},{default:e(()=>[t(b,{type:a(B).BPM_OA_LEAVE_TYPE,value:a(l).type},null,8,["type","value"])]),_:1}),t(s,{label:"\u5F00\u59CB\u65F6\u95F4"},{default:e(()=>[r(o(a(p)(a(l).startTime,"YYYY-MM-DD")),1)]),_:1}),t(s,{label:"\u7ED3\u675F\u65F6\u95F4"},{default:e(()=>[r(o(a(p)(a(l).endTime,"YYYY-MM-DD")),1)]),_:1}),t(s,{label:"\u539F\u56E0"},{default:e(()=>[r(o(a(l).reason),1)]),_:1})]),_:1})]),_:1})}}});export{P as default};