import{d as C,r as u,o as _,x as c,w as l,g as i,a,q as f,y as T,c as j,F as G,v as I,t as p,Q as J,aq as M,da as N,ak as P,B as Q,X as R,G as X,D as A,J as E,_ as H,__tla as K}from"./index-7d5b26d3.js";import{_ as L,__tla as O}from"./Dialog-2be588df.js";import{e as W,f as Y,__tla as Z}from"./index-206463c2.js";import{u as $,__tla as ee}from"./useMessage-c81eaa5b.js";let b,ae=Promise.all([(()=>{try{return K}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return ee}catch{}})()]).then(async()=>{b=H(C({__name:"TaskSubSignDialogForm",emits:["success"],setup(le,{expose:h,emit:k}){const v=$(),r=u(!1),n=u(!1),t=u({id:"",reason:""}),w=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 W(o),M(m.value))return v.warning("\u5F53\u524D\u6CA1\u6709\u53EF\u51CF\u7B7E\u7684\u4EFB\u52A1"),!1;r.value=!0,U()}});const V=k,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,V("success")}finally{n.value=!1}}},U=()=>{var o;t.value={id:"",reason:""},(o=d.value)==null||o.resetFields()};return(o,s)=>{const q=N,D=P,g=Q,F=R,S=X,y=A,z=L,B=E;return _(),c(z,{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(()=>[T((_(),c(S,{ref_key:"formRef",ref:d,model:a(t),rules:a(w),"label-width":"110px"},{default:l(()=>[i(g,{label:"\u51CF\u7B7E\u4EFB\u52A1",prop:"id"},{default:l(()=>[i(D,{modelValue:a(t).id,"onUpdate:modelValue":s[0]||(s[0]=e=>a(t).id=e)},{default:l(()=>[(_(!0),j(G,null,I(a(m),e=>(_(),c(q,{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(F,{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"])),[[B,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};
