import{d as A,r as i,o,v as m,w as s,f as _,a,n as p,x as C,c as D,F as T,q,P,y as j,z as B,A as R,D as E,C as G,I as H,_ as J,__tla as K}from"./index-04f8d540.js";import{_ as L,__tla as M}from"./Dialog-9afb5ba5.js";import{u as N,__tla as O}from"./index-19f209ed.js";import{g as Q,__tla as S}from"./index-6e48cf5a.js";let v,W=Promise.all([(()=>{try{return K}catch{}})(),(()=>{try{return M}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return S}catch{}})()]).then(async()=>{v=J(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 Q()}});const w=g,b=async()=>{if(n&&await n.value.validate()){d.value=!0;try{await N(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,I=B,x=R,V=E,f=G,F=L,z=H;return o(),m(F,{modelValue:a(l),"onUpdate:modelValue":r[2]||(r[2]=e=>P(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(()=>[C((o(),m(V,{ref_key:"formRef",ref:n,model:a(t),rules:a(U),"label-width":"110px"},{default:s(()=>[_(x,{label:"\u65B0\u5BA1\u6279\u4EBA",prop:"assigneeUserId"},{default:s(()=>[_(I,{modelValue:a(t).assigneeUserId,"onUpdate:modelValue":r[0]||(r[0]=e=>a(t).assigneeUserId=e),clearable:"",style:{width:"100%"}},{default:s(()=>[(o(!0),D(T,null,q(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};
