TaskDelegateForm-d40fe1b1.js 2.4 KB

1
  1. import{d as C,r as d,o as _,l as m,w as s,i as u,a,j as v,C as R,c as H,F as j,k as q,y as z,D as B,G,H as J,U as K,K as N,J as P,N as X,_ as A,__tla as E}from"./index-afaf388d.js";import{_ as L,__tla as M}from"./Dialog-82c2009c.js";import{d as O,__tla as Q}from"./index-394fabd8.js";import{g as S,__tla as W}from"./index-5a3d9119.js";let y,Y=Promise.all([(()=>{try{return E}catch{}})(),(()=>{try{return M}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return W}catch{}})()]).then(async()=>{y=A(C({name:"BpmTaskDelegateForm",__name:"TaskDelegateForm",emits:["success"],setup(Z,{expose:g,emit:k}){const r=d(!1),i=d(!1),l=d({id:"",delegateUserId:void 0}),U=d({delegateUserId:[{required:!0,message:"\u63A5\u6536\u4EBA\u4E0D\u80FD\u4E3A\u7A7A",trigger:"change"}]}),n=d(),c=d([]);g({open:async o=>{r.value=!0,w(),l.value.id=o,c.value=await S()}});const b=k,h=async()=>{if(n&&await n.value.validate()){i.value=!0;try{await O(l.value),r.value=!1,b("success")}finally{i.value=!1}}},w=()=>{var o;l.value={id:"",delegateUserId:void 0},(o=n.value)==null||o.resetFields()};return(o,t)=>{const V=B,I=G,f=J,D=K,F=N,p=P,x=L,T=X;return _(),m(x,{modelValue:a(r),"onUpdate:modelValue":t[3]||(t[3]=e=>z(r)?r.value=e:null),title:"\u59D4\u6D3E\u4EFB\u52A1",width:"500"},{footer:s(()=>[u(p,{disabled:a(i),type:"primary",onClick:h},{default:s(()=>[v("\u786E \u5B9A")]),_:1},8,["disabled"]),u(p,{onClick:t[2]||(t[2]=e=>r.value=!1)},{default:s(()=>[v("\u53D6 \u6D88")]),_:1})]),default:s(()=>[R((_(),m(F,{ref_key:"formRef",ref:n,model:a(l),rules:a(U),"label-width":"110px"},{default:s(()=>[u(f,{label:"\u63A5\u6536\u4EBA",prop:"delegateUserId"},{default:s(()=>[u(I,{modelValue:a(l).delegateUserId,"onUpdate:modelValue":t[0]||(t[0]=e=>a(l).delegateUserId=e),clearable:"",style:{width:"100%"}},{default:s(()=>[(_(!0),H(j,null,q(a(c),e=>(_(),m(V,{key:e.id,label:e.nickname,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),u(f,{label:"\u59D4\u6D3E\u7406\u7531",prop:"reason"},{default:s(()=>[u(D,{modelValue:a(l).reason,"onUpdate:modelValue":t[1]||(t[1]=e=>a(l).reason=e),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u59D4\u6D3E\u7406\u7531"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])),[[T,a(i)]])]),_:1},8,["modelValue"])}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/bpm/processInstance/detail/TaskDelegateForm.vue"]])});export{Y as __tla,y as default};