import{b as q}from"./unitSelfEvaluation.5681c264.js";import{d as E,r as m,b as N,a0 as C,o as G,c as o,e as n,f as i,h as a,i as t,j as T,g as S,n as V,t as R,I as U,k as Y}from"./index.5bb861d3.js";const F={key:0,class:"flex items-center"},M={key:1},H=["onClick"],J=["onClick"],K=E({name:"unitSelfEvaluation"}),ee=Object.assign(K,{setup(Q){const s=m(),x=N([{label:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u9879\u76EE\u540D\u79F0",key:"projectName",prop:"projectName",minWidth:"150",showOverflowTooltip:!0},{label:"\u7533\u62A5\u5355\u4F4D",key:"buildOrgName",prop:"buildOrgName",minWidth:"80",showOverflowTooltip:!0},{label:"\u9879\u76EE\u7C7B\u578B",key:"projectTypeName",prop:"projectTypeName",width:"100"},{label:"\u9884\u7B97\u5E74\u5EA6",key:"projectYear",prop:"projectYear",width:"80"},{label:"\u81EA\u8BC4\u603B\u5206",key:"selfAppraisalTotalScore",prop:"selfAppraisalTotalScore",width:"80",render:l=>C("span",l.selfAppraisalScoreTime?l.selfAppraisalTotalScore:"-")},{label:"\u6253\u5206\u65F6\u95F4",key:"selfAppraisalScoreTime",prop:"selfAppraisalScoreTime",width:"150",render:l=>C("span",l.selfAppraisalScoreTime||"-")},{label:"\u72B6\u6001",key:"status",slot:"status",width:120},{label:"\u64CD\u4F5C",slot:"action",width:"110",fixed:"right"}]),f=m([]),b=m(0),p=N({projectName:void 0}),d=async(l=s.value.pageParams)=>{const r=await q(c.value,{...l,...p});f.value=r.data.records,b.value=r.data.total},I=()=>{s.value.pageParams.pageNumber=1,d()},w=()=>{p.projectName=void 0,s.value.pageParams.pageNumber=1,s.value.pageParams.pageSize=10,d()},c=m("1"),A=l=>{c.value=l,w()};return G(()=>{d()}),(l,r)=>{const $=o("el-input"),g=o("el-form-item"),h=o("el-col"),v=o("el-button"),O=o("el-row"),P=o("el-form"),k=o("el-card"),_=o("el-tab-pane"),B=o("el-tabs"),D=o("Warning"),W=o("el-icon"),z=o("el-tooltip"),L=o("table-list");return n(),i("div",null,[a(k,{class:"search mb-16"},{default:t(()=>[a(P,{"label-suffix":":",model:p,size:"small"},{default:t(()=>[a(O,{gutter:16},{default:t(()=>[a(h,{span:8},{default:t(()=>[a(g,{label:"\u9879\u76EE\u540D\u79F0"},{default:t(()=>[a($,{modelValue:p.projectName,"onUpdate:modelValue":r[0]||(r[0]=e=>p.projectName=e),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),a(h,{span:16},{default:t(()=>[a(g,{class:"btn"},{default:t(()=>[a(v,{type:"primary",onClick:I},{default:t(()=>[T("\u67E5\u8BE2")]),_:1}),a(v,{onClick:w},{default:t(()=>[T("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(k,{shadow:"never",class:"tab-card"},{header:t(()=>[a(B,{modelValue:c.value,"onUpdate:modelValue":r[1]||(r[1]=e=>c.value=e),onTabChange:A},{default:t(()=>[a(_,{label:"\u5F85\u8BC4\u4EF7",name:"1"}),a(_,{label:"\u5DF2\u8BC4\u4EF7\u5F85\u786E\u8BA4",name:"2"}),a(_,{label:"\u5DF2\u786E\u8BA4",name:"3"})]),_:1},8,["modelValue"])]),default:t(()=>[a(L,{ref_key:"tableListRef",ref:s,column:x,data:f.value,total:b.value,onGetTableData:d},{status:t(({scope:e})=>{var u,y,j;return[(u=e.row)!=null&&u.status?(n(),i("div",F,[S("span",{class:V(`dot mr-4 ${((y=e.row)==null?void 0:y.status)===1?"bg-warning":e.row.status===3?"bg-success":"bg-danger"}`)},null,2),S("p",{class:V(`${((j=e.row)==null?void 0:j.status)===1?"text-warning":e.row.status===3?"text-success":"text-danger"}`)},R(e.row.statusName),3),e.row.status===2?(n(),U(z,{key:0,effect:"light",content:"Top Center prompts info",placement:"bottom"},{default:t(()=>[a(W,{color:"#ff3b30",class:"ml-3"},{default:t(()=>[a(D)]),_:1})]),_:1})):Y("",!0)])):(n(),i("span",M))]}),action:t(({scope:e})=>[c.value==="1"&&[1,2].includes(e.row.status)?(n(),i("a",{key:0,onClick:u=>l.$router.push({name:"unitSelfGiveScore",query:{projectCode:e.row.projectCode,projectId:e.row.projectId,appraisalId:e.row.appraisalId}})},"\u81EA\u8BC4\u6253\u5206",8,H)):(n(),i("a",{key:1,onClick:u=>l.$router.push({name:"unitSelfScoreDetail",query:{projectCode:e.row.projectCode,projectId:e.row.projectId,appraisalId:e.row.appraisalId}})},"\u8BE6\u60C5",8,J))]),_:1},8,["column","data","total"])]),_:1})])}}});export{ee as default};
