import{d as z,r as u,o as _,v as c,w as l,f as i,a,n as f,x as A,c as I,F as T,q as P,t as p,P as J,ap as M,de as N,aj as R,A as W,W as B,D as E,C as G,I as H,_ as K,__tla as L}from"./index-04f8d540.js";import{_ as O,__tla as Q}from"./Dialog-9afb5ba5.js";import{e as X,f as Y,__tla as Z}from"./index-19f209ed.js";import{u as $,__tla as ee}from"./useMessage-9c37e840.js";let b,ae=Promise.all([(()=>{try{return L}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return ee}catch{}})()]).then(async()=>{b=K(z({__name:"TaskSubSignDialogForm",emits:["success"],setup(le,{expose:h,emit:w}){const v=$(),r=u(!1),n=u(!1),t=u({id:"",reason:""}),V=u({id:[{required:!0,message:"\u5FC5\u987B\u9009\u62E9\u51CF\u7B7E\u4EFB\u52A1",trigger:"change"}],reason:[{required:!0,message:"\u51CF\u7B7E\u7406\u7531\u4E0D\u80FD\u4E3A\u7A7A",trigger:"blur"}]}),d=u(),m=u([]);h({open:async o=>{if(m.value=await X(o),M(m.value))return v.warning("\u5F53\u524D\u6CA1\u6709\u53EF\u51CF\u7B7E\u7684\u4EFB\u52A1"),!1;r.value=!0,U()}});const k=w,x=async()=>{if(d&&await d.value.validate()){n.value=!0;try{await Y(t.value),v.success("\u51CF\u7B7E\u6210\u529F"),r.value=!1,k("success")}finally{n.value=!1}}},U=()=>{var o;t.value={id:"",reason:""},(o=d.value)==null||o.resetFields()};return(o,s)=>{const D=N,F=R,g=W,S=B,q=E,y=G,C=O,j=H;return _(),c(C,{modelValue:a(r),"onUpdate:modelValue":s[3]||(s[3]=e=>J(r)?r.value=e:null),title:"\u51CF\u7B7E",width:"500"},{footer:l(()=>[i(y,{disabled:a(n),type:"primary",onClick:x},{default:l(()=>[f("\u786E \u5B9A")]),_:1},8,["disabled"]),i(y,{onClick:s[2]||(s[2]=e=>r.value=!1)},{default:l(()=>[f("\u53D6 \u6D88")]),_:1})]),default:l(()=>[A((_(),c(q,{ref_key:"formRef",ref:d,model:a(t),rules:a(V),"label-width":"110px"},{default:l(()=>[i(g,{label:"\u51CF\u7B7E\u4EFB\u52A1",prop:"id"},{default:l(()=>[i(F,{modelValue:a(t).id,"onUpdate:modelValue":s[0]||(s[0]=e=>a(t).id=e)},{default:l(()=>[(_(!0),I(T,null,P(a(m),e=>(_(),c(D,{key:e.id,label:e.id},{default:l(()=>[f(p(e.name)+"("+p(e.assigneeUser.deptName)+p(e.assigneeUser.nickname)+"--\u5BA1\u6279) ",1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1}),i(g,{label:"\u51CF\u7B7E\u7406\u7531",prop:"reason"},{default:l(()=>[i(S,{modelValue:a(t).reason,"onUpdate:modelValue":s[1]||(s[1]=e=>a(t).reason=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u51CF\u7B7E\u7406\u7531"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])),[[j,a(n)]])]),_:1},8,["modelValue"])}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/bpm/processInstance/detail/TaskSubSignDialogForm.vue"]])});export{ae as __tla,b as default};
