import{d as D,r as i,o as _,x as c,w as t,g as u,a as l,q as p,y as U,c as z,F as T,v as B,Q as S,z as j,A as G,B as J,X as P,G as Q,D as R,J as X,_ as E,__tla as H}from"./index-7d5b26d3.js";import{_ as K,__tla as M}from"./Dialog-2be588df.js";import{t as N,__tla as O}from"./index-206463c2.js";import{g as W,__tla as Y}from"./index-a25f8706.js";import{u as Z,__tla as $}from"./useMessage-c81eaa5b.js";let g,ee=Promise.all([(()=>{try{return H}catch{}})(),(()=>{try{return M}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return $}catch{}})()]).then(async()=>{g=E(D({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 N(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=G,v=J,F=P,q=Q,m=R,A=K,C=X;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(()=>[U((_(),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),z(T,null,B(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,g as default};
