1 |
- import{d as Q,u as W,P as X,r as f,x as Z,w as $,b as j,a4 as G,o as n,c as x,f as a,A as t,a as l,F as C,R as O,C as _,a5 as ee,D as i,k as y,a3 as ae,bl as le,S as te,U as re,V as oe,I as ne,a9 as se,Q as ue,J as pe,W as _e,X as ie,Y as ce,Z as me,_ as de,__tla as fe}from"./index-286756b9.js";import{_ as ye,__tla as ve}from"./index-ed6c67a8.js";import{_ as be,__tla as he}from"./DictTag-f72b04ca.js";import{_ as we,__tla as ge}from"./ContentWrap-83998678.js";import{a as Y,D as v,__tla as ke}from"./dict-82dca549.js";import{d as S,__tla as xe}from"./formatTime-83e416ef.js";import{a as Ce,__tla as Se}from"./index-4e11e6ca.js";import{a as Te,__tla as Ve}from"./index-afd1ad44.js";import{u as Pe,__tla as Ee}from"./useMessage-084b1e70.js";import{__tla as Ae}from"./index-fb47c94c.js";import"./color-6e929987.js";import{__tla as De}from"./el-card-d3d5a654.js";let L,Ue=Promise.all([(()=>{try{return fe}catch{}})(),(()=>{try{return ve}catch{}})(),(()=>{try{return he}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return Se}catch{}})(),(()=>{try{return Ve}catch{}})(),(()=>{try{return Ee}catch{}})(),(()=>{try{return Ae}catch{}})(),(()=>{try{return De}catch{}})()]).then(async()=>{L=de(Q({name:"BpmOALeave",__name:"index",setup(Be){const M=Pe(),d=W(),{t:T}=X(),b=f(!0),V=f(0),P=f([]),r=Z({pageNo:1,pageSize:10,type:void 0,result:void 0,reason:void 0,createTime:[]}),E=f(),c=async()=>{b.value=!0;try{const w=await Ce(r);P.value=w.list,V.value=w.total}finally{b.value=!1}},h=()=>{r.pageNo=1,c()},R=()=>{E.value.resetFields(),h()};return $(()=>d.currentRoute.value,()=>{c()}),j(()=>{c()}),(w,o)=>{const A=te,D=re,m=oe,z=ne,I=se,g=ue,p=pe,q=_e,U=we,s=ie,B=be,F=ce,H=ye,k=G("hasPermi"),J=me;return n(),x(C,null,[a(U,null,{default:t(()=>[a(q,{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(D,{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),x(C,null,O(l(Y)(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(z,{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(D,{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),x(C,null,O(l(Y)(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(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(h,["enter"])},null,8,["modelValue"])]),_:1}),a(m,null,{default:t(()=>[a(p,{onClick:h},{default:t(()=>[a(g,{class:"mr-5px",icon:"ep:search"}),i(" \u641C\u7D22 ")]),_:1}),a(p,{onClick:R},{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(U,null,{default:t(()=>[y((n(),_(F,{data:l(P)},{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(B,{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(B,{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:N=>{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:N=>{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:N=>(async u=>{const{value:K}=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,K),M.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"])),[[J,l(b)]]),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(V),onPagination:c},null,8,["limit","page","total"])]),_:1})],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/bpm/oa/leave/index.vue"]])});export{Ue as __tla,L as default};
|