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