index-fcdd0310.js 6.0 KB

1
  1. import{d as G,u as J,B as X,r as f,f as $,O as Q,z as W,S as Z,o as n,c as T,i as a,w as t,a as l,F as C,C as M,j as _,T as ee,m as i,D as y,l as ae,ay as le,G as te,H as re,I as oe,p as ne,X as se,_ as ue,q as pe,J as _e,K as ie,L as ce,M as me,__tla as de}from"./index-1e808f2e.js";import{_ as fe,__tla as ye}from"./index.vue_vue_type_script_setup_true_lang-571824c6.js";import{_ as ve,__tla as he}from"./DictTag.vue_vue_type_script_lang-5c02ebfe.js";import{_ as be,__tla as ge}from"./ContentWrap.vue_vue_type_script_setup_true_lang-cc335a20.js";import{a as N,D as v,__tla as we}from"./dict-a31cb4ba.js";import{d as S,__tla as ke}from"./formatTime-a348c3be.js";import{a as Te,__tla as Ce}from"./index-f020f250.js";import{a as Se,__tla as Ve}from"./index-76ea2ca5.js";import{u as xe,__tla as Ee}from"./useMessage-5f9e8917.js";import{__tla as Pe}from"./index-73afebcf.js";import"./color-6e929987.js";import{__tla as Ae}from"./el-card-03b3588b.js";let O,Be=Promise.all([(()=>{try{return de}catch{}})(),(()=>{try{return ye}catch{}})(),(()=>{try{return he}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return Ce}catch{}})(),(()=>{try{return Ve}catch{}})(),(()=>{try{return Ee}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return Ae}catch{}})()]).then(async()=>{O=G({name:"BpmOALeave",__name:"index",setup(Ue){const q=xe(),d=J(),{t:V}=X(),h=f(!0),x=f(0),E=f([]),r=$({pageNo:1,pageSize:10,type:void 0,result:void 0,reason:void 0,createTime:[]}),P=f(),c=async()=>{h.value=!0;try{const g=await Te(r);E.value=g.list,x.value=g.total}finally{h.value=!1}},b=()=>{r.pageNo=1,c()},I=()=>{P.value.resetFields(),b()};return Q(()=>d.currentRoute.value,()=>{c()}),W(()=>{c()}),(g,o)=>{const A=te,B=re,m=oe,R=ne,Y=se,w=ue,p=pe,z=_e,U=be,s=ie,D=ve,F=ce,H=fe,k=Z("hasPermi"),K=me;return n(),T(C,null,[a(U,null,{default:t(()=>[a(z,{ref_key:"queryFormRef",ref:P,inline:!0,model:l(r),class:"-mb-15px","label-width":"68px"},{default:t(()=>[a(m,{label:"\u8BF7\u5047\u7C7B\u578B",prop:"type"},{default:t(()=>[a(B,{modelValue:l(r).type,"onUpdate:modelValue":o[0]||(o[0]=e=>l(r).type=e),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u8BF7\u5047\u7C7B\u578B"},{default:t(()=>[(n(!0),T(C,null,M(l(N)(l(v).BPM_OA_LEAVE_TYPE),e=>(n(),_(A,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(m,{label:"\u7533\u8BF7\u65F6\u95F4",prop:"createTime"},{default:t(()=>[a(R,{modelValue:l(r).createTime,"onUpdate:modelValue":o[1]||(o[1]=e=>l(r).createTime=e),"default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px","end-placeholder":"\u7ED3\u675F\u65E5\u671F","start-placeholder":"\u5F00\u59CB\u65E5\u671F",type:"daterange","value-format":"YYYY-MM-DD HH:mm:ss"},null,8,["modelValue","default-time"])]),_:1}),a(m,{label:"\u7ED3\u679C",prop:"result"},{default:t(()=>[a(B,{modelValue:l(r).result,"onUpdate:modelValue":o[2]||(o[2]=e=>l(r).result=e),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u7ED3\u679C"},{default:t(()=>[(n(!0),T(C,null,M(l(N)(l(v).BPM_PROCESS_INSTANCE_RESULT),e=>(n(),_(A,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(m,{label:"\u539F\u56E0",prop:"reason"},{default:t(()=>[a(Y,{modelValue:l(r).reason,"onUpdate:modelValue":o[3]||(o[3]=e=>l(r).reason=e),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u539F\u56E0",onKeyup:ee(b,["enter"])},null,8,["modelValue"])]),_:1}),a(m,null,{default:t(()=>[a(p,{onClick:b},{default:t(()=>[a(w,{class:"mr-5px",icon:"ep:search"}),i(" \u641C\u7D22 ")]),_:1}),a(p,{onClick:I},{default:t(()=>[a(w,{class:"mr-5px",icon:"ep:refresh"}),i(" \u91CD\u7F6E ")]),_:1}),a(p,{plain:"",type:"primary",onClick:o[4]||(o[4]=e=>{d.push({name:"OALeaveCreate"})})},{default:t(()=>[a(w,{class:"mr-5px",icon:"ep:plus"}),i(" \u53D1\u8D77\u8BF7\u5047 ")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(U,null,{default:t(()=>[y((n(),_(F,{data:l(E)},{default:t(()=>[a(s,{align:"center",label:"\u7533\u8BF7\u7F16\u53F7",prop:"id"}),a(s,{align:"center",label:"\u72B6\u6001",prop:"result"},{default:t(e=>[a(D,{type:l(v).BPM_PROCESS_INSTANCE_RESULT,value:e.row.result},null,8,["type","value"])]),_:1}),a(s,{formatter:l(S),align:"center",label:"\u5F00\u59CB\u65F6\u95F4",prop:"startTime",width:"180"},null,8,["formatter"]),a(s,{formatter:l(S),align:"center",label:"\u7ED3\u675F\u65F6\u95F4",prop:"endTime",width:"180"},null,8,["formatter"]),a(s,{align:"center",label:"\u8BF7\u5047\u7C7B\u578B",prop:"type"},{default:t(e=>[a(D,{type:l(v).BPM_OA_LEAVE_TYPE,value:e.row.type},null,8,["type","value"])]),_:1}),a(s,{align:"center",label:"\u539F\u56E0",prop:"reason"}),a(s,{formatter:l(S),align:"center",label:"\u7533\u8BF7\u65F6\u95F4",prop:"createTime",width:"180"},null,8,["formatter"]),a(s,{align:"center",label:"\u64CD\u4F5C",width:"200"},{default:t(e=>[y((n(),_(p,{link:"",type:"primary",onClick:L=>{return u=e.row,void d.push({name:"OALeaveDetail",query:{id:u.id}});var u}},{default:t(()=>[i(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[k,["bpm:oa-leave:query"]]]),y((n(),_(p,{link:"",type:"primary",onClick:L=>{return u=e.row,void d.push({name:"BpmProcessInstanceDetail",query:{id:u.processInstanceId}});var u}},{default:t(()=>[i(" \u8FDB\u5EA6 ")]),_:2},1032,["onClick"])),[[k,["bpm:oa-leave:query"]]]),e.row.result===1?y((n(),_(p,{key:0,link:"",type:"danger",onClick:L=>(async u=>{const{value:j}=await le.prompt("\u8BF7\u8F93\u5165\u53D6\u6D88\u539F\u56E0","\u53D6\u6D88\u6D41\u7A0B",{confirmButtonText:V("common.ok"),cancelButtonText:V("common.cancel"),inputPattern:/^[\s\S]*.*\S[\s\S]*$/,inputErrorMessage:"\u53D6\u6D88\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"});await Se(u.id,j),q.success("\u53D6\u6D88\u6210\u529F"),await c()})(e.row)},{default:t(()=>[i(" \u53D6\u6D88 ")]),_:2},1032,["onClick"])),[[k,["bpm:oa-leave:create"]]]):ae("",!0)]),_:1})]),_:1},8,["data"])),[[K,l(h)]]),a(H,{limit:l(r).pageSize,"onUpdate:limit":o[5]||(o[5]=e=>l(r).pageSize=e),page:l(r).pageNo,"onUpdate:page":o[6]||(o[6]=e=>l(r).pageNo=e),total:l(x),onPagination:c},null,8,["limit","page","total"])]),_:1})],64)}}})});export{Be as __tla,O as default};