import{d as E,r as c,o as u,l as m,w as l,g as U,t as k,a as r,i as a,j as g,a2 as v,y as x,ao as p,v as j,J as D,L as N,M as V,_ as A,__tla as M}from"./index-2c56227b.js";import{E as O,__tla as R}from"./el-drawer-b586217d.js";import{_ as z,__tla as B}from"./DictTag-cfe1898d.js";import{D as F,__tla as G}from"./dict-763dd292.js";import{d as w,__tla as H}from"./formatTime-7f0ec2bf.js";import J,{__tla as q}from"./TaskSubSignDialogForm-4cf754c6.js";import{u as K,__tla as Q}from"./useMessage-96878a4a.js";import"./color-6e929987.js";import{__tla as W}from"./Dialog-1050d437.js";import{__tla as X}from"./index-f96e4e1e.js";let b,Y=Promise.all([(()=>{try{return M}catch{}})(),(()=>{try{return R}catch{}})(),(()=>{try{return B}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return q}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return W}catch{}})(),(()=>{try{return X}catch{}})()]).then(async()=>{b=A(E({name:"ProcessInstanceChildrenTaskList",__name:"ProcessInstanceChildrenTaskList",setup(Z,{expose:T}){const C=K(),i=c(!1),n=c({});T({open:async e=>{p(e.children)?C.warning("\u8BE5\u4EFB\u52A1\u6CA1\u6709\u5B50\u4EFB\u52A1"):(n.value=e,i.value=!0)}});const d=c(),f=e=>{d.value.open(e.id)},h=e=>{if(e&&e.children&&!p(e.children)){const s=e.children.find(_=>_.result===1||_.result===9);return!p(s)}return!1};return(e,s)=>{const _=j,y=D,o=N,P=z,S=V,I=O;return u(),m(I,{modelValue:r(i),"onUpdate:modelValue":s[1]||(s[1]=t=>x(i)?i.value=t:null),title:"\u5B50\u4EFB\u52A1",size:"70%"},{header:l(()=>{var t;return[U("h4",null,"\u3010"+k(r(n).name)+" \u3011\u5BA1\u6279\u4EBA\uFF1A"+k((t=r(n).assigneeUser)==null?void 0:t.nickname),1),h(r(n))?(u(),m(y,{key:0,style:{"margin-left":"5px"},type:"danger",plain:"",onClick:s[0]||(s[0]=L=>f(r(n)))},{default:l(()=>[a(_,{icon:"ep:remove"}),g(" \u51CF\u7B7E ")]),_:1})):v("",!0)]}),default:l(()=>[a(S,{data:r(n).children,style:{width:"100%"},"row-key":"id",border:""},{default:l(()=>[a(o,{prop:"assigneeUser.nickname",label:"\u5BA1\u6279\u4EBA"}),a(o,{prop:"assigneeUser.deptName",label:"\u6240\u5728\u90E8\u95E8"}),a(o,{label:"\u5BA1\u6279\u72B6\u6001",prop:"result"},{default:l(t=>[a(P,{type:r(F).BPM_PROCESS_INSTANCE_RESULT,value:t.row.result},null,8,["type","value"])]),_:1}),a(o,{label:"\u63D0\u4EA4\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:r(w)},null,8,["formatter"]),a(o,{label:"\u7ED3\u675F\u65F6\u95F4",align:"center",prop:"endTime",width:"180",formatter:r(w)},null,8,["formatter"]),a(o,{label:"\u64CD\u4F5C",prop:"operation"},{default:l(t=>[h(t.row)?(u(),m(y,{key:0,type:"danger",plain:"",onClick:L=>f(t.row)},{default:l(()=>[a(_,{icon:"ep:remove"}),g(" \u51CF\u7B7E ")]),_:2},1032,["onClick"])):v("",!0)]),_:1})]),_:1},8,["data"]),a(J,{ref_key:"taskSubSignDialogForm",ref:d},null,512)]),_:1},8,["modelValue"])}}}),[["__file","E:/GAOHP_2023/mall/newfeifan-front/yudao-ui-admin-vue3/src/views/bpm/processInstance/detail/ProcessInstanceChildrenTaskList.vue"]])});export{Y as __tla,b as default};
