index-b5e7b26d.js 6.9 KB

1
  1. import{d as j,u as J,h as W,r as h,e as X,k as Z,P as ee,o,c as _,f as a,w as t,a as l,Q as A,F as m,n as g,q as u,m as d,v as w,g as ae,t as le,O as te,bf as re,U as se,z as oe,x as ne,y as ue,A as pe,_ as ce,B as ie,C as _e,D as me,G as de,H as fe,__tla as ye}from"./index-2eab2d23.js";import{_ as be,__tla as ve}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{_ as he,__tla as ge}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import{_ as we,__tla as Se}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{a as E,D as i,__tla as ke}from"./dict-1ad71b6f.js";import{d as O,__tla as Te}from"./formatTime-41155543.js";import{d as Ce,a as Pe,__tla as Ve}from"./index-a1993285.js";import{u as xe,__tla as Ee}from"./useMessage-171aa63e.js";import{__tla as Ue}from"./index-cc63c3c4.js";import"./color-6e929987.js";import{__tla as Be}from"./el-card-c558f0ec.js";let q,De=Promise.all([(()=>{try{return ye}catch{}})(),(()=>{try{return ve}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return Se}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return Te}catch{}})(),(()=>{try{return Ve}catch{}})(),(()=>{try{return Ee}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return Be}catch{}})()]).then(async()=>{q=j({name:"BpmProcessInstance",__name:"index",setup(Ne){const U=J(),Y=xe(),{t:B}=W(),S=h(!0),D=h(0),N=h([]),r=X({pageNo:1,pageSize:10,name:"",processDefinitionId:void 0,category:void 0,status:void 0,result:void 0,createTime:[]}),I=h(),f=async()=>{S.value=!0;try{const k=await Ce(r);N.value=k.list,D.value=k.total}finally{S.value=!1}},y=()=>{r.pageNo=1,f()},L=()=>{I.value.resetFields(),y()},z=()=>{U.push({name:"BpmProcessInstanceCreate"})};return Z(()=>{f()}),(k,s)=>{const M=se,p=oe,T=ne,C=ue,F=pe,P=ce,c=ie,G=_e,R=we,n=me,V=he,H=de,K=be,x=ee("hasPermi"),Q=fe;return o(),_(m,null,[a(R,null,{default:t(()=>[a(G,{class:"-mb-15px",model:l(r),ref_key:"queryFormRef",ref:I,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(C,{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(C,{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(C,{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(F,{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(P,{icon:"ep:search",class:"mr-5px"}),d(" \u641C\u7D22")]),_:1}),a(c,{onClick:L},{default:t(()=>[a(P,{icon:"ep:refresh",class:"mr-5px"}),d(" \u91CD\u7F6E")]),_:1}),w((o(),u(c,{type:"primary",plain:"",onClick:z},{default:t(()=>[a(P,{icon:"ep:plus",class:"mr-5px"}),d(" \u53D1\u8D77\u6D41\u7A0B ")]),_:1})),[[x,["bpm:process-instance:query"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(R,null,{default:t(()=>[w((o(),u(H,{data:l(N)},{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 U.push({name:"BpmProcessInstanceDetail",query:{id:v.id}});var v}},{default:t(()=>[d(" \u8BE6\u60C5 ")]),_:2},1032,["onClick"])),[[x,["bpm:process-instance:cancel"]]]),e.row.result===1?w((o(),u(c,{key:0,link:"",type:"primary",onClick:b=>(async v=>{const{value:$}=await re.prompt("\u8BF7\u8F93\u5165\u53D6\u6D88\u539F\u56E0","\u53D6\u6D88\u6D41\u7A0B",{confirmButtonText:B("common.ok"),cancelButtonText:B("common.cancel"),inputPattern:/^[\s\S]*.*\S[\s\S]*$/,inputErrorMessage:"\u53D6\u6D88\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"});await Pe(v.id,$),Y.success("\u53D6\u6D88\u6210\u529F"),await f()})(e.row)},{default:t(()=>[d(" \u53D6\u6D88 ")]),_:2},1032,["onClick"])),[[x,["bpm:process-instance:query"]]]):te("",!0)]),_:1})]),_:1},8,["data"])),[[Q,l(S)]]),a(K,{total:l(D),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)}}})});export{De as __tla,q as default};