import{d as A,r as i,o,x as m,w as s,g as _,a,q as p,y as T,c as q,F as D,v as B,Q as C,z as j,A as G,B as J,G as P,D as Q,J as R,_ as E,__tla as H}from"./index-7d5b26d3.js";import{_ as K,__tla as L}from"./Dialog-2be588df.js";import{u as M,__tla as N}from"./index-206463c2.js";import{g as O,__tla as S}from"./index-a25f8706.js";let v,W=Promise.all([(()=>{try{return H}catch{}})(),(()=>{try{return L}catch{}})(),(()=>{try{return N}catch{}})(),(()=>{try{return S}catch{}})()]).then(async()=>{v=E(A({name:"BpmTaskUpdateAssigneeForm",__name:"TaskUpdateAssigneeForm",emits:["success"],setup(X,{expose:y,emit:g}){const l=i(!1),d=i(!1),t=i({id:"",assigneeUserId:void 0}),U=i({assigneeUserId:[{required:!0,message:"\u65B0\u5BA1\u6279\u4EBA\u4E0D\u80FD\u4E3A\u7A7A",trigger:"change"}]}),n=i(),c=i([]);y({open:async u=>{l.value=!0,h(),t.value.id=u,c.value=await O()}});const w=g,b=async()=>{if(n&&await n.value.validate()){d.value=!0;try{await M(t.value),l.value=!1,w("success")}finally{d.value=!1}}},h=()=>{var u;t.value={id:"",assigneeUserId:void 0},(u=n.value)==null||u.resetFields()};return(u,r)=>{const k=j,x=G,I=J,V=P,f=Q,F=K,z=R;return o(),m(F,{modelValue:a(l),"onUpdate:modelValue":r[2]||(r[2]=e=>C(l)?l.value=e:null),title:"\u8F6C\u6D3E\u5BA1\u6279\u4EBA",width:"500"},{footer:s(()=>[_(f,{disabled:a(d),type:"primary",onClick:b},{default:s(()=>[p("\u786E \u5B9A")]),_:1},8,["disabled"]),_(f,{onClick:r[1]||(r[1]=e=>l.value=!1)},{default:s(()=>[p("\u53D6 \u6D88")]),_:1})]),default:s(()=>[T((o(),m(V,{ref_key:"formRef",ref:n,model:a(t),rules:a(U),"label-width":"110px"},{default:s(()=>[_(I,{label:"\u65B0\u5BA1\u6279\u4EBA",prop:"assigneeUserId"},{default:s(()=>[_(x,{modelValue:a(t).assigneeUserId,"onUpdate:modelValue":r[0]||(r[0]=e=>a(t).assigneeUserId=e),clearable:"",style:{width:"100%"}},{default:s(()=>[(o(!0),q(D,null,B(a(c),e=>(o(),m(k,{key:e.id,label:e.nickname,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])),[[z,a(d)]])]),_:1},8,["modelValue"])}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/bpm/processInstance/detail/TaskUpdateAssigneeForm.vue"]])});export{W as __tla,v as default};
