import{d as D,r as i,o as _,v as c,w as t,f as u,a as l,n as p,x as T,c as U,F as z,q as P,P as S,y as j,z as B,A as R,W,D as E,C as G,I as H,_ as J,__tla as K}from"./index-04f8d540.js";import{_ as M,__tla as N}from"./Dialog-9afb5ba5.js";import{t as O,__tla as Q}from"./index-19f209ed.js";import{g as X,__tla as Y}from"./index-6e48cf5a.js";import{u as Z,__tla as $}from"./useMessage-9c37e840.js";let b,ee=Promise.all([(()=>{try{return K}catch{}})(),(()=>{try{return N}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return $}catch{}})()]).then(async()=>{b=J(D({name:"BpmTaskUpdateAssigneeForm",__name:"TaskAddSignDialogForm",emits:["success"],setup(ae,{expose:g,emit:h}){const k=Z(),d=i(!1),o=i(!1),s=i({id:"",userIdList:[],type:""}),V=i({userIdList:[{required:!0,message:"\u52A0\u7B7E\u5904\u7406\u4EBA\u4E0D\u80FD\u4E3A\u7A7A",trigger:"change"}],reason:[{required:!0,message:"\u52A0\u7B7E\u7406\u7531\u4E0D\u80FD\u4E3A\u7A7A",trigger:"change"}]}),n=i(),f=i([]);g({open:async r=>{d.value=!0,I(),s.value.id=r,f.value=await X()}});const w=h,y=async r=>{if(n&&await n.value.validate()){o.value=!0,s.value.type=r;try{await O(s.value),k.success("\u52A0\u7B7E\u6210\u529F"),d.value=!1,w("success")}finally{o.value=!1}}},I=()=>{var r;s.value={id:"",userIdList:[],type:""},(r=n.value)==null||r.resetFields()};return(r,e)=>{const x=j,L=B,v=R,F=W,q=E,m=G,A=M,C=H;return _(),c(A,{modelValue:l(d),"onUpdate:modelValue":e[5]||(e[5]=a=>S(d)?d.value=a:null),title:"\u52A0\u7B7E",width:"500"},{footer:t(()=>[u(m,{disabled:l(o),type:"primary",onClick:e[2]||(e[2]=a=>y("before"))},{default:t(()=>[p(" \u5411\u524D\u52A0\u7B7E ")]),_:1},8,["disabled"]),u(m,{disabled:l(o),type:"primary",onClick:e[3]||(e[3]=a=>y("after"))},{default:t(()=>[p(" \u5411\u540E\u52A0\u7B7E ")]),_:1},8,["disabled"]),u(m,{onClick:e[4]||(e[4]=a=>d.value=!1)},{default:t(()=>[p("\u53D6 \u6D88")]),_:1})]),default:t(()=>[T((_(),c(q,{ref_key:"formRef",ref:n,model:l(s),rules:l(V),"label-width":"110px"},{default:t(()=>[u(v,{label:"\u52A0\u7B7E\u5904\u7406\u4EBA",prop:"userIdList"},{default:t(()=>[u(L,{modelValue:l(s).userIdList,"onUpdate:modelValue":e[0]||(e[0]=a=>l(s).userIdList=a),multiple:"",clearable:"",style:{width:"100%"}},{default:t(()=>[(_(!0),U(z,null,P(l(f),a=>(_(),c(x,{key:a.id,label:a.nickname,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),u(v,{label:"\u52A0\u7B7E\u7406\u7531",prop:"reason"},{default:t(()=>[u(F,{modelValue:l(s).reason,"onUpdate:modelValue":e[1]||(e[1]=a=>l(s).reason=a),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u52A0\u7B7E\u7406\u7531"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])),[[C,l(o)]])]),_:1},8,["modelValue"])}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/bpm/processInstance/detail/TaskAddSignDialogForm.vue"]])});export{ee as __tla,b as default};
