index-1ed6cefe.js 6.9 KB

1
  1. import{d as X,u as $,h as Q,r as h,e as W,q as Z,M as ee,o,c as _,f as a,w as t,a as l,N as A,F as m,v as g,x as u,y as d,z as w,g as ae,t as le,a0 as te,by as re,R as se,C as oe,A as ne,B as ue,D as pe,j as ce,G as ie,H as _e,I as me,J as de,K as fe,_ as ye,__tla as be}from"./index-8dc1e40a.js";import{_ as ve,__tla as he}from"./index-64aeaa78.js";import{_ as ge,__tla as we}from"./DictTag-85aade2b.js";import{_ as Se,__tla as ke}from"./ContentWrap-0aca5216.js";import{a as E,D as i,__tla as Te}from"./dict-f13a3c8f.js";import{d as O,__tla as xe}from"./formatTime-8a155b2e.js";import{d as Ce,a as Ve,__tla as Pe}from"./index-7c267f71.js";import{u as Ee,__tla as De}from"./useMessage-7a27dd80.js";import{__tla as Ne}from"./index-803dbf9a.js";import"./color-6e929987.js";import{__tla as Ie}from"./el-card-18df90f0.js";let q,Ue=Promise.all([(()=>{try{return be}catch{}})(),(()=>{try{return he}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return Te}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return De}catch{}})(),(()=>{try{return Ne}catch{}})(),(()=>{try{return Ie}catch{}})()]).then(async()=>{q=ye(X({name:"BpmProcessInstance",__name:"index",setup(Be){const D=$(),z=Ee(),{t:N}=Q(),S=h(!0),I=h(0),U=h([]),r=W({pageNo:1,pageSize:10,name:"",processDefinitionId:void 0,category:void 0,status:void 0,result:void 0,createTime:[]}),B=h(),f=async()=>{S.value=!0;try{const k=await Ce(r);U.value=k.list,I.value=k.total}finally{S.value=!1}},y=()=>{r.pageNo=1,f()},Y=()=>{B.value.resetFields(),y()},H=()=>{D.push({name:"BpmProcessInstanceCreate"})};return Z(()=>{f()}),(k,s)=>{const M=se,p=oe,T=ne,x=ue,L=pe,C=ce,c=ie,F=_e,R=Se,n=me,V=ge,G=de,K=ve,P=ee("hasPermi"),j=fe;return o(),_(m,null,[a(R,null,{default:t(()=>[a(F,{class:"-mb-15px",model:l(r),ref_key:"queryFormRef",ref:B,inline:!0,"label-width":"68px"},{default:t(()=>[a(p,{label:"\u6D41\u7A0B\u540D\u79F0",prop:"name"},{default:t(()=>[a(M,{modelValue:l(r).name,"onUpdate:modelValue":s[0]||(s[0]=e=>l(r).name=e),placeholder:"\u8BF7\u8F93\u5165\u6D41\u7A0B\u540D\u79F0",clearable:"",onKeyup:A(y,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(p,{label:"\u6240\u5C5E\u6D41\u7A0B",prop:"processDefinitionId"},{default:t(()=>[a(M,{modelValue:l(r).processDefinitionId,"onUpdate:modelValue":s[1]||(s[1]=e=>l(r).processDefinitionId=e),placeholder:"\u8BF7\u8F93\u5165\u6D41\u7A0B\u5B9A\u4E49\u7684\u7F16\u53F7",clearable:"",onKeyup:A(y,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(p,{label:"\u6D41\u7A0B\u5206\u7C7B",prop:"category"},{default:t(()=>[a(x,{modelValue:l(r).category,"onUpdate:modelValue":s[2]||(s[2]=e=>l(r).category=e),placeholder:"\u8BF7\u9009\u62E9\u6D41\u7A0B\u5206\u7C7B",clearable:"",class:"!w-240px"},{default:t(()=>[(o(!0),_(m,null,g(l(E)(l(i).BPM_MODEL_CATEGORY),e=>(o(),u(T,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(p,{label:"\u72B6\u6001",prop:"status"},{default:t(()=>[a(x,{modelValue:l(r).status,"onUpdate:modelValue":s[3]||(s[3]=e=>l(r).status=e),placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",clearable:"",class:"!w-240px"},{default:t(()=>[(o(!0),_(m,null,g(l(E)(l(i).BPM_PROCESS_INSTANCE_STATUS),e=>(o(),u(T,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(p,{label:"\u7ED3\u679C",prop:"result"},{default:t(()=>[a(x,{modelValue:l(r).result,"onUpdate:modelValue":s[4]||(s[4]=e=>l(r).result=e),placeholder:"\u8BF7\u9009\u62E9\u7ED3\u679C",clearable:"",class:"!w-240px"},{default:t(()=>[(o(!0),_(m,null,g(l(E)(l(i).BPM_PROCESS_INSTANCE_RESULT),e=>(o(),u(T,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(p,{label:"\u63D0\u4EA4\u65F6\u95F4",prop:"createTime"},{default:t(()=>[a(L,{modelValue:l(r).createTime,"onUpdate:modelValue":s[5]||(s[5]=e=>l(r).createTime=e),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px"},null,8,["modelValue","default-time"])]),_:1}),a(p,null,{default:t(()=>[a(c,{onClick:y},{default:t(()=>[a(C,{icon:"ep:search",class:"mr-5px"}),d(" \u641C\u7D22")]),_:1}),a(c,{onClick:Y},{default:t(()=>[a(C,{icon:"ep:refresh",class:"mr-5px"}),d(" \u91CD\u7F6E")]),_:1}),w((o(),u(c,{type:"primary",plain:"",onClick:H},{default:t(()=>[a(C,{icon:"ep:plus",class:"mr-5px"}),d(" \u53D1\u8D77\u6D41\u7A0B ")]),_:1})),[[P,["bpm:process-instance:query"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(R,null,{default:t(()=>[w((o(),u(G,{data:l(U)},{default:t(()=>[a(n,{label:"\u6D41\u7A0B\u7F16\u53F7",align:"center",prop:"id",width:"300px"}),a(n,{label:"\u6D41\u7A0B\u540D\u79F0",align:"center",prop:"name"}),a(n,{label:"\u6D41\u7A0B\u5206\u7C7B",align:"center",prop:"category"},{default:t(e=>[a(V,{type:l(i).BPM_MODEL_CATEGORY,value:e.row.category},null,8,["type","value"])]),_:1}),a(n,{label:"\u5F53\u524D\u5BA1\u6279\u4EFB\u52A1",align:"center",prop:"tasks"},{default:t(e=>[(o(!0),_(m,null,g(e.row.tasks,b=>(o(),u(c,{type:"primary",key:b.id,link:""},{default:t(()=>[ae("span",null,le(b.name),1)]),_:2},1024))),128))]),_:1}),a(n,{label:"\u72B6\u6001",prop:"status"},{default:t(e=>[a(V,{type:l(i).BPM_PROCESS_INSTANCE_STATUS,value:e.row.status},null,8,["type","value"])]),_:1}),a(n,{label:"\u7ED3\u679C",prop:"result"},{default:t(e=>[a(V,{type:l(i).BPM_PROCESS_INSTANCE_RESULT,value:e.row.result},null,8,["type","value"])]),_:1}),a(n,{label:"\u63D0\u4EA4\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:l(O)},null,8,["formatter"]),a(n,{label:"\u7ED3\u675F\u65F6\u95F4",align:"center",prop:"endTime",width:"180",formatter:l(O)},null,8,["formatter"]),a(n,{label:"\u64CD\u4F5C",align:"center"},{default:t(e=>[w((o(),u(c,{link:"",type:"primary",onClick:b=>{return v=e.row,void D.push({name:"BpmProcessInstanceDetail",query:{id:v.id}});var v}},{default:t(()=>[d(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[P,["bpm:process-instance:cancel"]]]),e.row.result===1?w((o(),u(c,{key:0,link:"",type:"primary",onClick:b=>(async v=>{const{value:J}=await re.prompt("\u8BF7\u8F93\u5165\u53D6\u6D88\u539F\u56E0","\u53D6\u6D88\u6D41\u7A0B",{confirmButtonText:N("common.ok"),cancelButtonText:N("common.cancel"),inputPattern:/^[\s\S]*.*\S[\s\S]*$/,inputErrorMessage:"\u53D6\u6D88\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"});await Ve(v.id,J),z.success("\u53D6\u6D88\u6210\u529F"),await f()})(e.row)},{default:t(()=>[d(" \u53D6\u6D88 ")]),_:2},1032,["onClick"])),[[P,["bpm:process-instance:query"]]]):te("",!0)]),_:1})]),_:1},8,["data"])),[[j,l(S)]]),a(K,{total:l(I),page:l(r).pageNo,"onUpdate:page":s[6]||(s[6]=e=>l(r).pageNo=e),limit:l(r).pageSize,"onUpdate:limit":s[7]||(s[7]=e=>l(r).pageSize=e),onPagination:f},null,8,["total","page","limit"])]),_:1})],64)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/bpm/processInstance/index.vue"]])});export{Ue as __tla,q as default};