import{S as e,G as a,C as l,D as o,y as t,Q as s,R as i,v as r,P as n}from"./element-plus-DSMJnpwa.js";import"./index-mv7arXuk.js";import{_ as d}from"./index-CY3mI-ZB.js";/* empty css                    *//* empty css                        */import{_ as p}from"./index-ppR_FSA-.js";/* empty css               *//* empty css               */import{_ as u}from"./index-DfwAfZV-.js";/* empty css                *//* empty css                     */import{B as m,g as c,a4 as f,m as w,H as v,L as h,M as g,O as b,V as _,P as j,u as y,ao as C,Y as N,_ as x,$ as V,I as k,Z as S,k as P,d as U,l as z}from"./vue-vendor-DZekML78.js";import{j as I}from"./index-DesgXWZg.js";import{w as R}from"./index-YHgrVijZ.js";import"./utils-cPVb2Haz.js";/* empty css                  *//* empty css                */const K={class:"p-2"},Q={class:"mb-[10px]"},A=m({__name:"taskCopyList",setup(m){const A=U(),{proxy:B}=c(),{wf_business_status:D}=f(B?.useDict("wf_business_status")),F=U(!0),J=U([]),L=U(!0),T=U(!0),q=U(!0),G=U(0),H=U([]),M=U({pageNum:1,pageSize:10,nodeName:void 0,flowName:void 0,flowCode:void 0}),O=()=>{Z()},W=()=>{A.value?.resetFields(),M.value.pageNum=1,M.value.pageSize=10,O()},Y=e=>{J.value=e.map(e=>e.id),L.value=1!==e.length,T.value=!e.length},Z=()=>{F.value=!0,I(M.value).then(e=>{H.value=e.rows,G.value=e.total,F.value=!1})};return w(()=>{Z()}),(m,c)=>{const f=o,w=l,U=t,I=a,J=e,L=u,T=n,Z=i,$=p,E=s,X=d,ee=r;return v(),h("div",K,[g(V,{"enter-active-class":y(B)?.animate.searchAnimate.enter,"leave-active-class":y(B)?.animate.searchAnimate.leave},{default:b(()=>[_(j("div",Q,[g(J,{shadow:"hover"},{default:b(()=>[_(g(I,{ref_key:"queryFormRef",ref:A,model:y(M),inline:!0},{default:b(()=>[g(w,{label:"任务名称",prop:"nodeName"},{default:b(()=>[g(f,{modelValue:y(M).nodeName,"onUpdate:modelValue":c[0]||(c[0]=e=>y(M).nodeName=e),placeholder:"请输入任务名称",onKeyup:C(O,["enter"])},null,8,["modelValue"])]),_:1}),g(w,{label:"流程定义名称","label-width":"100",prop:"flowName"},{default:b(()=>[g(f,{modelValue:y(M).flowName,"onUpdate:modelValue":c[1]||(c[1]=e=>y(M).flowName=e),placeholder:"请输入流程定义名称",onKeyup:C(O,["enter"])},null,8,["modelValue"])]),_:1}),g(w,{label:"流程定义编码","label-width":"100",prop:"flowCode"},{default:b(()=>[g(f,{modelValue:y(M).flowCode,"onUpdate:modelValue":c[2]||(c[2]=e=>y(M).flowCode=e),placeholder:"请输入流程定义编码",onKeyup:C(O,["enter"])},null,8,["modelValue"])]),_:1}),g(w,null,{default:b(()=>[g(U,{type:"primary",icon:"Search",onClick:O},{default:b(()=>[...c[6]||(c[6]=[N("搜索",-1)])]),_:1}),g(U,{icon:"Refresh",onClick:W},{default:b(()=>[...c[7]||(c[7]=[N("重置",-1)])]),_:1})]),_:1})]),_:1},8,["model"]),[[x,y(q)]])]),_:1})],512),[[x,y(q)]])]),_:1},8,["enter-active-class","leave-active-class"]),g(J,{shadow:"hover"},{header:b(()=>[g(T,{gutter:10,class:"mb8"},{default:b(()=>[g(L,{"show-search":y(q),"onUpdate:showSearch":c[3]||(c[3]=e=>P(q)?q.value=e:null),onQueryTable:O},null,8,["show-search"])]),_:1})]),default:b(()=>[_((v(),k(E,{border:"",data:y(H),onSelectionChange:Y},{default:b(()=>[g(Z,{type:"selection",width:"55",align:"center"}),g(Z,{align:"center",type:"index",label:"序号",width:"60"}),g(Z,{"show-overflow-tooltip":!0,prop:"businessCode",align:"center",label:"业务编码"}),g(Z,{"show-overflow-tooltip":!0,prop:"businessTitle",align:"center",label:"业务标题"}),g(Z,{"show-overflow-tooltip":!0,prop:"flowName",align:"center",label:"流程定义名称"}),g(Z,{align:"center",prop:"flowCode",label:"流程定义编码"}),g(Z,{align:"center",prop:"categoryName",label:"流程分类"}),g(Z,{align:"center",prop:"version",label:"版本号",width:"90"},{default:b(e=>[N(" v"+S(e.row.version)+".0",1)]),_:1}),g(Z,{align:"center",prop:"nodeName",label:"任务名称"}),g(Z,{align:"center",label:"流程状态","min-width":"70"},{default:b(e=>[g($,{options:y(D),value:e.row.flowStatus},null,8,["options","value"])]),_:1}),g(Z,{label:"操作",align:"center",width:"200"},{default:b(e=>[g(U,{type:"primary",size:"small",icon:"View",onClick:a=>(e=>{const a=z({businessId:e.businessId,taskId:e.id,type:"view",formCustom:e.formCustom,formPath:e.formPath});R.routerJump(a,B)})(e.row)},{default:b(()=>[...c[8]||(c[8]=[N("查看",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[ee,y(F)]]),_(g(X,{page:y(M).pageNum,"onUpdate:page":c[4]||(c[4]=e=>y(M).pageNum=e),limit:y(M).pageSize,"onUpdate:limit":c[5]||(c[5]=e=>y(M).pageSize=e),total:y(G),onPagination:O},null,8,["page","limit","total"]),[[x,y(G)>0]])]),_:1})])}}});export{A as default};
