import{_ as D}from"./ContentWrap.vue_vue_type_script_setup_true_lang-BjvrLlUT.js";import{d as c,as as M,a0 as E,r as i,b as g,o as A,g as B,B as e,k as t,a,N as O,O as r,D as o}from"./index-CHTXMeh8.js";import{E as T,a as j}from"./el-descriptions-item-XOb4a1bP.js";import{_ as x}from"./DictTag.vue_vue_type_script_lang-DPOZRs0A.js";import{f as p}from"./formatTime-DG99nHw2.js";import{g as L}from"./index-BV2p1r3n.js";import"./el-card-Bdk9qx7q.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}),g(()=>{u()}),(k,q)=>{const b=x,s=T,v=j,y=D;return A(),B(y,null,{default:e(()=>[t(v,{column:1,border:""},{default:e(()=>[t(s,{label:"\u8BF7\u5047\u7C7B\u578B"},{default:e(()=>[t(b,{type:a(O).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};
|