import{d as T,r as i,o as _,l as c,w as t,i as u,a as l,j as p,C as A,c as H,F as q,k as j,y as R,D as S,G as z,H as B,U as G,K as J,J as K,N,_ as P,__tla as X}from"./index-8c6726e5.js";import{_ as E,__tla as M}from"./Dialog-336bccec.js";import{t as O,__tla as Q}from"./index-359e4172.js";import{g as W,__tla as Y}from"./index-b80ccf29.js";import{u as Z,__tla as $}from"./useMessage-9f6930df.js";let g,ee=Promise.all([(()=>{try{return X}catch{}})(),(()=>{try{return M}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return $}catch{}})()]).then(async()=>{g=P(T({name:"BpmTaskUpdateAssigneeForm",__name:"TaskAddSignDialogForm",emits:["success"],setup(ae,{expose:b,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([]);b({open:async r=>{d.value=!0,I(),s.value.id=r,f.value=await W()}});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 L=S,U=z,v=B,x=G,F=J,m=K,C=E,D=N;return _(),c(C,{modelValue:l(d),"onUpdate:modelValue":e[5]||(e[5]=a=>R(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(()=>[A((_(),c(F,{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(U,{modelValue:l(s).userIdList,"onUpdate:modelValue":e[0]||(e[0]=a=>l(s).userIdList=a),multiple:"",clearable:"",style:{width:"100%"}},{default:t(()=>[(_(!0),H(q,null,j(l(f),a=>(_(),c(L,{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(x,{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"])),[[D,l(o)]])]),_:1},8,["modelValue"])}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/bpm/processInstance/detail/TaskAddSignDialogForm.vue"]])});export{ee as __tla,g as default};
