index-ea84ffa1.js 6.1 KB

1
  1. import{d as G,u as J,n as Q,r as f,f as X,aP as $,B as W,P as Z,o as s,c as x,i as a,w as t,a as l,F as C,k as L,l as _,Q as ee,j as i,C as y,a2 as ae,c9 as le,D as te,G as re,H as oe,I as se,U as ne,v as ue,J as pe,K as _e,L as ie,M as ce,N as me,_ as de,__tla as fe}from"./index-afaf388d.js";import{_ as ye,__tla as ve}from"./index-89d02e79.js";import{_ as he,__tla as be}from"./DictTag-3a1a976c.js";import{_ as we,__tla as ge}from"./ContentWrap-abe0694e.js";import{a as M,D as v,__tla as ke}from"./dict-0449a0a1.js";import{d as P,__tla as xe}from"./formatTime-42952e7f.js";import{a as Ce,__tla as Pe}from"./index-33aa81cc.js";import{a as Te,__tla as Se}from"./index-5db42602.js";import{u as Ve,__tla as Ee}from"./useMessage-a290df31.js";import{__tla as Ne}from"./index-0eed91e1.js";import"./color-6e929987.js";import{__tla as Ue}from"./el-card-9c18d881.js";let R,Ae=Promise.all([(()=>{try{return fe}catch{}})(),(()=>{try{return ve}catch{}})(),(()=>{try{return be}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return Se}catch{}})(),(()=>{try{return Ee}catch{}})(),(()=>{try{return Ne}catch{}})(),(()=>{try{return Ue}catch{}})()]).then(async()=>{R=de(G({name:"BpmOALeave",__name:"index",setup(Be){const O=Ve(),d=J(),{t:T}=Q(),h=f(!0),S=f(0),V=f([]),r=X({pageNo:1,pageSize:10,type:void 0,result:void 0,reason:void 0,createTime:[]}),E=f(),c=async()=>{h.value=!0;try{const w=await Ce(r);V.value=w.list,S.value=w.total}finally{h.value=!1}},b=()=>{r.pageNo=1,c()},Y=()=>{E.value.resetFields(),b()};return $(()=>d.currentRoute.value,()=>{c()}),W(()=>{c()}),(w,o)=>{const N=te,U=re,m=oe,q=se,I=ne,g=ue,p=pe,z=_e,A=we,n=ie,B=he,H=ce,F=ye,k=Z("hasPermi"),K=me;return s(),x(C,null,[a(A,null,{default:t(()=>[a(z,{ref_key:"queryFormRef",ref:E,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(U,{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(()=>[(s(!0),x(C,null,L(l(M)(l(v).BPM_OA_LEAVE_TYPE),e=>(s(),_(N,{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(q,{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(U,{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(()=>[(s(!0),x(C,null,L(l(M)(l(v).BPM_PROCESS_INSTANCE_RESULT),e=>(s(),_(N,{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(I,{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(g,{class:"mr-5px",icon:"ep:search"}),i(" \u641C\u7D22 ")]),_:1}),a(p,{onClick:Y},{default:t(()=>[a(g,{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(g,{class:"mr-5px",icon:"ep:plus"}),i(" \u53D1\u8D77\u8BF7\u5047 ")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(A,null,{default:t(()=>[y((s(),_(H,{data:l(V)},{default:t(()=>[a(n,{align:"center",label:"\u7533\u8BF7\u7F16\u53F7",prop:"id"}),a(n,{align:"center",label:"\u72B6\u6001",prop:"result"},{default:t(e=>[a(B,{type:l(v).BPM_PROCESS_INSTANCE_RESULT,value:e.row.result},null,8,["type","value"])]),_:1}),a(n,{formatter:l(P),align:"center",label:"\u5F00\u59CB\u65F6\u95F4",prop:"startTime",width:"180"},null,8,["formatter"]),a(n,{formatter:l(P),align:"center",label:"\u7ED3\u675F\u65F6\u95F4",prop:"endTime",width:"180"},null,8,["formatter"]),a(n,{align:"center",label:"\u8BF7\u5047\u7C7B\u578B",prop:"type"},{default:t(e=>[a(B,{type:l(v).BPM_OA_LEAVE_TYPE,value:e.row.type},null,8,["type","value"])]),_:1}),a(n,{align:"center",label:"\u539F\u56E0",prop:"reason"}),a(n,{formatter:l(P),align:"center",label:"\u7533\u8BF7\u65F6\u95F4",prop:"createTime",width:"180"},null,8,["formatter"]),a(n,{align:"center",label:"\u64CD\u4F5C",width:"200"},{default:t(e=>[y((s(),_(p,{link:"",type:"primary",onClick:D=>{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((s(),_(p,{link:"",type:"primary",onClick:D=>{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((s(),_(p,{key:0,link:"",type:"danger",onClick:D=>(async u=>{const{value:j}=await le.prompt("\u8BF7\u8F93\u5165\u53D6\u6D88\u539F\u56E0","\u53D6\u6D88\u6D41\u7A0B",{confirmButtonText:T("common.ok"),cancelButtonText:T("common.cancel"),inputPattern:/^[\s\S]*.*\S[\s\S]*$/,inputErrorMessage:"\u53D6\u6D88\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"});await Te(u.id,j),O.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(F,{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(S),onPagination:c},null,8,["limit","page","total"])]),_:1})],64)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/bpm/oa/leave/index.vue"]])});export{Ae as __tla,R as default};