import{a as A,E as D}from"./el-form-item-BvJauXBe.js";import{d as Q,h as J,a$ as $,b as j,o as k,c as M,m as e,p as l,w as c,q as Z,e as t,t as G,x as b,A as H,y as _,aF as h,b1 as O,a0 as W,z as X,v as Y,aZ as ee,r as i,ai as oe}from"./index-XuO881sr.js";import{E as te}from"./el-card-BkEyhI_t.js";import{E as ae}from"./el-row-eghH2z0a.js";import{E as le,a as ne}from"./el-table-column-5BM1zXQ-.js";import{_ as se}from"./index-CcdWvSxw.js";import"./el-checkbox-Cxc7yQYm.js";import{_ as re}from"./index-DFHXdJnc.js";/* empty css               */import{_ as ie}from"./index-WfLIS66b.js";import{j as pe}from"./index-CWoBQyxt.js";import{w as me}from"./index-BpaKvpB0.js";import"./cloneDeep-CQdyn166.js";import"./_baseClone-CIlxLVYA.js";import"./_baseIteratee-CskuuWpP.js";import"./el-select-BHeVexdj.js";import"./strings-giQSq8zG.js";import"./index-B7j6XCDK.js";import"./omit-nuy_stBf.js";import"./el-tree-CVxcisGT.js";const ue={class:"p-2"},de={class:"mb-[10px]"},Ue=Q({__name:"taskCopyList",setup(ce){const y=i(),{proxy:u}=J(),{wf_business_status:E}=$(u?.useDict("wf_business_status")),f=i(!0),S=i([]),x=i(!0),T=i(!0),m=i(!0),w=i(0),C=i([]),n=i({pageNum:1,pageSize:10,nodeName:void 0,flowName:void 0,flowCode:void 0}),p=()=>{N()},z=()=>{y.value?.resetFields(),n.value.pageNum=1,n.value.pageSize=10,p()},B=s=>{S.value=s.map(o=>o.id),x.value=s.length!==1,T.value=!s.length},N=()=>{f.value=!0,pe(n.value).then(s=>{C.value=s.rows,w.value=s.total,f.value=!1})},F=s=>{const o=oe({businessId:s.businessId,taskId:s.id,type:"view",formCustom:s.formCustom,formPath:s.formPath});me.routerJump(o,u)};return j(()=>{N()}),(s,o)=>{const g=G,d=D,v=H,I=A,V=te,R=ie,U=ae,r=ne,q=re,K=le,L=se,P=Y;return k(),M("div",ue,[e(O,{"enter-active-class":t(u)?.animate.searchAnimate.enter,"leave-active-class":t(u)?.animate.searchAnimate.leave},{default:l(()=>[c(Z("div",de,[e(V,{shadow:"hover"},{default:l(()=>[c(e(I,{ref_key:"queryFormRef",ref:y,model:t(n),inline:!0},{default:l(()=>[e(d,{label:"任务名称",prop:"nodeName"},{default:l(()=>[e(g,{modelValue:t(n).nodeName,"onUpdate:modelValue":o[0]||(o[0]=a=>t(n).nodeName=a),placeholder:"请输入任务名称",onKeyup:b(p,["enter"])},null,8,["modelValue"])]),_:1}),e(d,{label:"流程定义名称","label-width":"100",prop:"flowName"},{default:l(()=>[e(g,{modelValue:t(n).flowName,"onUpdate:modelValue":o[1]||(o[1]=a=>t(n).flowName=a),placeholder:"请输入流程定义名称",onKeyup:b(p,["enter"])},null,8,["modelValue"])]),_:1}),e(d,{label:"流程定义编码","label-width":"100",prop:"flowCode"},{default:l(()=>[e(g,{modelValue:t(n).flowCode,"onUpdate:modelValue":o[2]||(o[2]=a=>t(n).flowCode=a),placeholder:"请输入流程定义编码",onKeyup:b(p,["enter"])},null,8,["modelValue"])]),_:1}),e(d,null,{default:l(()=>[e(v,{type:"primary",icon:"Search",onClick:p},{default:l(()=>[...o[6]||(o[6]=[_("搜索",-1)])]),_:1}),e(v,{icon:"Refresh",onClick:z},{default:l(()=>[...o[7]||(o[7]=[_("重置",-1)])]),_:1})]),_:1})]),_:1},8,["model"]),[[h,t(m)]])]),_:1})],512),[[h,t(m)]])]),_:1},8,["enter-active-class","leave-active-class"]),e(V,{shadow:"hover"},{header:l(()=>[e(U,{gutter:10,class:"mb8"},{default:l(()=>[e(R,{"show-search":t(m),"onUpdate:showSearch":o[3]||(o[3]=a=>ee(m)?m.value=a:null),onQueryTable:p},null,8,["show-search"])]),_:1})]),default:l(()=>[c((k(),W(K,{border:"",data:t(C),onSelectionChange:B},{default:l(()=>[e(r,{type:"selection",width:"55",align:"center"}),e(r,{align:"center",type:"index",label:"序号",width:"60"}),e(r,{"show-overflow-tooltip":!0,prop:"businessCode",align:"center",label:"业务编码"}),e(r,{"show-overflow-tooltip":!0,prop:"businessTitle",align:"center",label:"业务标题"}),e(r,{"show-overflow-tooltip":!0,prop:"flowName",align:"center",label:"流程定义名称"}),e(r,{align:"center",prop:"flowCode",label:"流程定义编码"}),e(r,{align:"center",prop:"categoryName",label:"流程分类"}),e(r,{align:"center",prop:"version",label:"版本号",width:"90"},{default:l(a=>[_(" v"+X(a.row.version)+".0",1)]),_:1}),e(r,{align:"center",prop:"nodeName",label:"任务名称"}),e(r,{align:"center",label:"流程状态","min-width":"70"},{default:l(a=>[e(q,{options:t(E),value:a.row.flowStatus},null,8,["options","value"])]),_:1}),e(r,{label:"操作",align:"center",width:"200"},{default:l(a=>[e(v,{type:"primary",size:"small",icon:"View",onClick:_e=>F(a.row)},{default:l(()=>[...o[8]||(o[8]=[_("查看",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[P,t(f)]]),c(e(L,{page:t(n).pageNum,"onUpdate:page":o[4]||(o[4]=a=>t(n).pageNum=a),limit:t(n).pageSize,"onUpdate:limit":o[5]||(o[5]=a=>t(n).pageSize=a),total:t(w),onPagination:p},null,8,["page","limit","total"]),[[h,t(w)>0]])]),_:1})])}}});export{Ue as default};
