TaskAddSignDialogForm-ec39526f.js 2.8 KB

1
  1. import{d as C,r as i,o as _,C as c,A as t,f as u,a as l,D as p,k as T,c as z,F as S,R as q,a2 as R,S as j,U as B,V as J,a9 as P,W,J as Z,Z as E,_ as G,__tla as H}from"./index-0b2503c4.js";import{_ as K,__tla as M}from"./Dialog-3207cd36.js";import{t as N,__tla as O}from"./index-fe6c8773.js";import{g as Q,__tla as X}from"./index-b12ce3e2.js";import{u as Y,__tla as $}from"./useMessage-d05433ee.js";let g,ee=Promise.all([(()=>{try{return H}catch{}})(),(()=>{try{return M}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return X}catch{}})(),(()=>{try{return $}catch{}})()]).then(async()=>{g=G(C({name:"BpmTaskUpdateAssigneeForm",__name:"TaskAddSignDialogForm",emits:["success"],setup(ae,{expose:b,emit:h}){const k=Y(),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 Q()}});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=B,v=J,D=P,F=W,m=Z,U=K,A=E;return _(),c(U,{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(()=>[T((_(),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(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(S,null,q(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(D,{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"])),[[A,l(o)]])]),_:1},8,["modelValue"])}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/bpm/processInstance/detail/TaskAddSignDialogForm.vue"]])});export{ee as __tla,g as default};