import{d as T,r as i,o,x as m,w as s,f as _,a,y as p,z,c as C,F as B,v as H,l as R,A as j,B as q,C as D,H as G,G as K,K as P,_ as X,__tla as E}from"./index-8dc1e40a.js";import{_ as J,__tla as L}from"./Dialog-41802231.js";import{u as M,__tla as N}from"./index-56ab8bb6.js";import{g as O,__tla as Q}from"./index-6f284c9a.js";let v,S=Promise.all([(()=>{try{return E}catch{}})(),(()=>{try{return L}catch{}})(),(()=>{try{return N}catch{}})(),(()=>{try{return Q}catch{}})()]).then(async()=>{v=X(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,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,I=q,x=D,V=G,f=K,F=J,A=P;return o(),m(F,{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: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(()=>[z((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),C(B,null,H(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"])),[[A,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};
