import{d as x,r as c,o as u,A as p,B as l,C as D,G as k,a as r,f as a,E as g,D as w,a2 as I,ay as d,_ as L,K as N,X as V,Y as A,__tla as B}from"./index-92ad187a.js";import{E as R,__tla as j}from"./el-drawer-05d76675.js";import{_ as z,__tla as F}from"./DictTag.vue_vue_type_script_lang-96bcb962.js";import{D as G,__tla as K}from"./dict-221f3e01.js";import{d as C,__tla as M}from"./formatTime-c7f253d6.js";import{_ as O,__tla as X}from"./TaskSubSignDialogForm.vue_vue_type_script_name_TaskRollbackDialogForm_setup_true_lang-c294d7df.js";import{u as Y,__tla as q}from"./useMessage-d9788660.js";let b,H=Promise.all([(()=>{try{return B}catch{}})(),(()=>{try{return j}catch{}})(),(()=>{try{return F}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return M}catch{}})(),(()=>{try{return X}catch{}})(),(()=>{try{return q}catch{}})()]).then(async()=>{b=x({name:"ProcessInstanceChildrenTaskList",__name:"ProcessInstanceChildrenTaskList",setup(J,{expose:v}){const T=Y(),i=c(!1),n=c({});v({open:async e=>{d(e.children)?T.warning("\u8BE5\u4EFB\u52A1\u6CA1\u6709\u5B50\u4EFB\u52A1"):(n.value=e,i.value=!0)}});const m=c(),f=e=>{m.value.open(e.id)},h=e=>{if(e&&e.children&&!d(e.children)){const s=e.children.find(_=>_.result===1||_.result===9);return!d(s)}return!1};return(e,s)=>{const _=L,y=N,o=V,S=z,E=A,P=R;return u(),p(P,{modelValue:r(i),"onUpdate:modelValue":s[1]||(s[1]=t=>I(i)?i.value=t:null),title:"\u5B50\u4EFB\u52A1",size:"70%"},{header:l(()=>{var t;return[D("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(),p(y,{key:0,style:{"margin-left":"5px"},type:"danger",plain:"",onClick:s[0]||(s[0]=U=>f(r(n)))},{default:l(()=>[a(_,{icon:"ep:remove"}),g(" \u51CF\u7B7E ")]),_:1})):w("",!0)]}),default:l(()=>[a(E,{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(S,{type:r(G).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(C)},null,8,["formatter"]),a(o,{label:"\u7ED3\u675F\u65F6\u95F4",align:"center",prop:"endTime",width:"180",formatter:r(C)},null,8,["formatter"]),a(o,{label:"\u64CD\u4F5C",prop:"operation"},{default:l(t=>[h(t.row)?(u(),p(y,{key:0,type:"danger",plain:"",onClick:U=>f(t.row)},{default:l(()=>[a(_,{icon:"ep:remove"}),g(" \u51CF\u7B7E ")]),_:2},1032,["onClick"])):w("",!0)]),_:1})]),_:1},8,["data"]),a(O,{ref_key:"taskSubSignDialogForm",ref:m},null,512)]),_:1},8,["modelValue"])}}})});export{b as _,H as __tla};
