TaskDelegateForm-db34bf4e.js 2.3 KB

1
  1. import{d as C,r as d,o as _,k as m,w as t,i as u,a,l as v,D as R,c as z,F as q,C as B,R as j,G,H,I as J,Y as M,J as P,s as Y,M as A,_ as E,__tla as K}from"./index-2f799233.js";import{_ as L,__tla as N}from"./Dialog-6fd39e06.js";import{d as O,__tla as Q}from"./index-6627f2e4.js";import{g as S,__tla as W}from"./index-dd9c509d.js";let y,X=Promise.all([(()=>{try{return K}catch{}})(),(()=>{try{return N}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return W}catch{}})()]).then(async()=>{y=E(C({name:"BpmTaskDelegateForm",__name:"TaskDelegateForm",emits:["success"],setup(Z,{expose:g,emit:b}){const r=d(!1),i=d(!1),l=d({id:"",delegateUserId:void 0}),h=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 k=b,V=async()=>{if(n&&await n.value.validate()){i.value=!0;try{await O(l.value),r.value=!1,k("success")}finally{i.value=!1}}},w=()=>{var o;l.value={id:"",delegateUserId:void 0},(o=n.value)==null||o.resetFields()};return(o,s)=>{const U=G,I=H,f=J,x=M,D=P,p=Y,F=L,T=A;return _(),m(F,{modelValue:a(r),"onUpdate:modelValue":s[3]||(s[3]=e=>j(r)?r.value=e:null),title:"\u59D4\u6D3E\u4EFB\u52A1",width:"500"},{footer:t(()=>[u(p,{disabled:a(i),type:"primary",onClick:V},{default:t(()=>[v("\u786E \u5B9A")]),_:1},8,["disabled"]),u(p,{onClick:s[2]||(s[2]=e=>r.value=!1)},{default:t(()=>[v("\u53D6 \u6D88")]),_:1})]),default:t(()=>[R((_(),m(D,{ref_key:"formRef",ref:n,model:a(l),rules:a(h),"label-width":"110px"},{default:t(()=>[u(f,{label:"\u63A5\u6536\u4EBA",prop:"delegateUserId"},{default:t(()=>[u(I,{modelValue:a(l).delegateUserId,"onUpdate:modelValue":s[0]||(s[0]=e=>a(l).delegateUserId=e),clearable:"",style:{width:"100%"}},{default:t(()=>[(_(!0),z(q,null,B(a(c),e=>(_(),m(U,{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:t(()=>[u(x,{modelValue:a(l).reason,"onUpdate:modelValue":s[1]||(s[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","D:/zx/mall-newfeifan-zx-business/src/views/bpm/processInstance/detail/TaskDelegateForm.vue"]])});export{X as __tla,y as default};