import{d as S,u as Y,r as o,A as P,b as z,o as N,c as B,k as e,B as l,a,O as u,P as F,g as q,F as H,a7 as M,S as j,T as A,U as W,V as O,W as R,X,Y as Z,Z as E}from"./index-BP6bNRoi.js";import{_ as G}from"./index.vue_vue_type_script_setup_true_lang-sJUY8qtC.js";import{_ as J}from"./ContentWrap.vue_vue_type_script_setup_true_lang-CR_2gECF.js";import{d as y}from"./formatTime-DwR9f7DP.js";import{f as K}from"./index-DMqCuIfZ.js";import"./index-BZESAUPP.js";import"./el-card-bU92WWV4.js";const L=S({name:"BpmProcessInstanceCopy",__name:"index",setup(Q){const{push:x}=Y(),i=o(!1),f=o(0),g=o([]),t=P({pageNo:1,pageSize:10,processInstanceId:"",processInstanceName:"",createTime:[]}),_=o(),p=async()=>{i.value=!0;try{const m=await K(t);g.value=m.list,f.value=m.total}finally{i.value=!1}},h=()=>{t.pageNo=1,p()},k=()=>{_.value.resetFields(),h()};return z(()=>{p()}),(m,s)=>{const v=M,c=j,T=A,w=W,d=O,V=R,b=J,n=X,U=Z,C=G,D=E;return N(),B(H,null,[e(b,null,{default:l(()=>[e(V,{ref_key:"queryFormRef",ref:_,inline:!0,class:"-mb-15px","label-width":"68px"},{default:l(()=>[e(c,{label:"\u6D41\u7A0B\u540D\u79F0",prop:"name"},{default:l(()=>[e(v,{modelValue:a(t).processInstanceName,"onUpdate:modelValue":s[0]||(s[0]=r=>a(t).processInstanceName=r),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u6D41\u7A0B\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(c,{label:"\u6284\u9001\u65F6\u95F4",prop:"createTime"},{default:l(()=>[e(T,{modelValue:a(t).createTime,"onUpdate:modelValue":s[1]||(s[1]=r=>a(t).createTime=r),"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}),e(c,null,{default:l(()=>[e(d,{onClick:h},{default:l(()=>[e(w,{class:"mr-5px",icon:"ep:search"}),u(" \u641C\u7D22 ")]),_:1}),e(d,{onClick:k},{default:l(()=>[e(w,{class:"mr-5px",icon:"ep:refresh"}),u(" \u91CD\u7F6E ")]),_:1})]),_:1})]),_:1},512)]),_:1}),e(b,null,{default:l(()=>[F((N(),q(U,{data:a(g)},{default:l(()=>[e(n,{align:"center",label:"\u6D41\u7A0B\u540D",prop:"processInstanceName","min-width":"180"}),e(n,{align:"center",label:"\u6D41\u7A0B\u53D1\u8D77\u4EBA",prop:"startUserName","min-width":"100"}),e(n,{formatter:a(y),align:"center",label:"\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4",prop:"processInstanceStartTime",width:"180"},null,8,["formatter"]),e(n,{align:"center",label:"\u6284\u9001\u4EFB\u52A1",prop:"taskName","min-width":"180"}),e(n,{align:"center",label:"\u6284\u9001\u4EBA",prop:"creatorName","min-width":"100"}),e(n,{align:"center",label:"\u6284\u9001\u65F6\u95F4",prop:"createTime",width:"180",formatter:a(y)},null,8,["formatter"]),e(n,{align:"center",label:"\u64CD\u4F5C",fixed:"right",width:"80"},{default:l(r=>[e(d,{link:"",type:"primary",onClick:$=>{return I=r.row,void x({name:"BpmProcessInstanceDetail",query:{id:I.processInstanceId}});var I}},{default:l(()=>[u("\u8BE6\u60C5")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[D,a(i)]]),e(C,{limit:a(t).pageSize,"onUpdate:limit":s[2]||(s[2]=r=>a(t).pageSize=r),page:a(t).pageNo,"onUpdate:page":s[3]||(s[3]=r=>a(t).pageNo=r),total:a(f),onPagination:p},null,8,["limit","page","total"])]),_:1})],64)}}});export{L as default};