import{d as S,o as h,c as y,a as x,u as A,r as g,b as L,e as B,f as u,g as l,w as I,F as D,h as t,_ as F,i as R,j as m,k as V,N as r,l as c,m as _}from"./index-bb1600c6.js";import{g as j}from"./Task-1669c287.js";import{_ as q}from"./DataTable-a287c4be.js";import{_ as d}from"./Space-6807f258.js";import"./RadioGroup-3051618a.js";import"./get-slot-1efb97e5.js";import"./Tooltip-f0032eab.js";const O={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},U=x("path",{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 0 0 0-48.4z",fill:"currentColor"},null,-1),$=[U],p=S({name:"ArrowRightOutlined",render:function(a,s){return h(),y("svg",O,$)}}),E={style:{display:"flex","align-items":"center","margin-bottom":"10px"}},W={__name:"index",setup(T){const a=A(),s=g({T_uuid:"",T_name:"",page:1,page_z:8}),f=L([]),v=(e,n)=>t(V,{trigger:"hover"},{trigger:()=>e,default:()=>t(d,null,{default:()=>n})}),w=[{title:"公司名称",key:"T_user_name",width:180},{title:"报告名称",key:"T_name",width:180},{title:"截止时间",key:"T_deadline",width:180},{title(){return v("流程（?）",[0,1,2,3,4].map(e=>t(r,{bordered:!1,type:e===0?"error":e===1?"info":e===2?"warning":e===4?"success":"default"},{default:()=>e===0?"未完成":e===1?"数据来源已完成":e===2?"处理中":e===4?"数据编辑已完成":"已采集-无数据"})))},key:"T_task_id",width:460,render(e){return t(d,{align:"center"},{default:()=>[t(c,{style:{width:"70px",height:"50px"},contentStyle:{textAlign:"center",padding:0}},{default:()=>e.T_scheme_name,cover:()=>t(r,{class:"w-full",type:e.T_scheme_state===0?"error":"success",bordered:!1},{default:()=>"实施方案"})}),t(_,{size:25,component:p,color:"#0e7a0d"},{}),t(c,{contentStyle:{textAlign:"center",padding:0}},{default:()=>e.T_collection_name,cover:()=>t(r,{class:"w-full",type:e.T_collection_state===0?"error":e.T_collection_state===1?"info":e.T_collection_state===2?"warning":e.T_collection_state===4?"success":"default",bordered:!1},{default:()=>"数据采集"})}),t(_,{size:25,component:p,color:"#0e7a0d"},{}),t(c,{contentStyle:{textAlign:"center",padding:0}},{default:()=>e.T_reporting_name,cover:()=>t(r,{class:"w-full",type:e.T_reporting_state===0?"error":"success",bordered:!1},{default:()=>"报告编写"})}),t(_,{size:25,component:p,color:"#0e7a0d"},{}),t(c,{contentStyle:{textAlign:"center",padding:0}},{default:()=>e.T_delivery_name,cover:()=>t(r,{class:"w-full",type:e.T_delivery_state===0?"error":e.T_delivery_state===1?"success":"warning",bordered:!1},{default:()=>"交付审核"})})]})}},{title:"操作",key:"actions",render(e){return t(d,null,{default:()=>["设备管理","实施方案","数据来源","数据编辑","数据校验","报告生成","报告审核"].map(n=>t(m,{type:"primary",size:"small",onClick:()=>{window.sessionStorage.setItem("task",JSON.stringify(e)),n==="实施方案"?a.push("/scheme"):n==="校准证书"?a.push("/certificate"):n==="设备管理"?a.push("/equipment"):n==="数据来源"?a.push("/data_source"):n==="数据编辑"?a.push("/data_edit"):n==="数据校验"?a.push("/data_checkout"):n==="报告生成"?a.push("/report_create"):a.push("/report_audit")}},{default:()=>n}))})}}],k=()=>{s.page=1,o()},i=g({page:s.page,pageSize:s.page_z,itemCount:0,onChange:e=>{i.page=e,s.page=e,o()}}),o=async()=>{const{data:e}=await j(s);i.itemCount=e.Data.Num,f.value=e.Data.List||[]};o();let b=setInterval(()=>{o()},3e4);return B(()=>{clearInterval(b)}),(e,n)=>{const z=F,C=q;return h(),y(D,null,[x("div",E,[u(z,{value:l(s).T_name,"onUpdate:value":n[0]||(n[0]=N=>l(s).T_name=N),type:"text",placeholder:"请输入报告名称",style:{width:"30%"},clearable:""},null,8,["value"]),u(l(m),{type:"primary",onClick:k,style:{"margin-left":"10px"}},{default:I(()=>[R("搜索")]),_:1})]),u(C,{remote:"",columns:w,data:l(f),pagination:l(i),class:"flex flex-col justify-between"},null,8,["data","pagination"])],64)}}};export{W as default};
