import{d as T,r as i,o,l as m,w as s,i as _,a,j as p,C as A,c as D,F as H,k as j,y as R,D as q,G as z,H as B,K as G,J,N as K,_ as N,__tla as P}from"./index-8c6726e5.js";import{_ as X,__tla as E}from"./Dialog-336bccec.js";import{u as L,__tla as M}from"./index-359e4172.js";import{g as O,__tla as Q}from"./index-b80ccf29.js";let v,S=Promise.all([(()=>{try{return P}catch{}})(),(()=>{try{return E}catch{}})(),(()=>{try{return M}catch{}})(),(()=>{try{return Q}catch{}})()]).then(async()=>{v=N(T({name:"BpmTaskUpdateAssigneeForm",__name:"TaskUpdateAssigneeForm",emits:["success"],setup(W,{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,b(),t.value.id=u,c.value=await O()}});const k=g,w=async()=>{if(n&&await n.value.validate()){d.value=!0;try{await L(t.value),l.value=!1,k("success")}finally{d.value=!1}}},b=()=>{var u;t.value={id:"",assigneeUserId:void 0},(u=n.value)==null||u.resetFields()};return(u,r)=>{const h=q,I=z,V=B,F=G,f=J,x=X,C=K;return o(),m(x,{modelValue:a(l),"onUpdate:modelValue":r[2]||(r[2]=e=>R(l)?l.value=e:null),title:"\u8F6C\u6D3E\u5BA1\u6279\u4EBA",width:"500"},{footer:s(()=>[_(f,{disabled:a(d),type:"primary",onClick:w},{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(()=>[A((o(),m(F,{ref_key:"formRef",ref:n,model:a(t),rules:a(U),"label-width":"110px"},{default:s(()=>[_(V,{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(H,null,j(a(c),e=>(o(),m(h,{key:e.id,label:e.nickname,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])),[[C,a(d)]])]),_:1},8,["modelValue"])}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/bpm/processInstance/detail/TaskUpdateAssigneeForm.vue"]])});export{S as __tla,v as default};
