25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
2.9KB

  1. import{g as R}from"./projectReview.30fa037e.js";import{d as V,z as q,b as y,r as c,a0 as O,o as D,c as l,e as d,f as u,h as a,i as t,j as g,t as P,F as $,g as v}from"./index.d340e473.js";const z=v("div",{class:"flex justify-between items-center"},[v("span",null,"\u9879\u76EE\u5217\u8868")],-1),B=["onClick"],F=["onClick"],G=V({beforeRouteEnter(p,m,r){p.query.title&&(p.meta.title=p.query.title),r()}}),W=Object.assign(G,{__name:"index",setup(p){const m=q(),r=y({projectName:void 0}),s=c(),_=c(5),k=y([{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\u5F97\u5206",key:"selfAppraisalTotalScore",prop:"selfAppraisalTotalScore",width:"80",render:o=>O("span",o.selfAppraisalTotalScore||o.selfAppraisalTotalScore===0?o.selfAppraisalTotalScore:"-")},{label:"\u64CD\u4F5C",slot:"action",width:"110",fixed:"right"}]),f=c([]),i=async(o=s.value.pageParams)=>{const n=await R(m.query.reAppraisalGroupId,{...r,...o});f.value=n.data.records,_.value=n.data.total},I=()=>{i()},N=()=>{r.projectName=void 0,s.value.pageParams.pageNumber=1,s.value.pageParams.pageSize=10,i()};return D(()=>{i()}),(o,n)=>{const C=l("el-input"),b=l("el-form-item"),w=l("el-col"),h=l("el-button"),T=l("el-row"),S=l("el-form"),j=l("el-card"),A=l("table-list");return d(),u($,null,[a(j,{class:"search mb-16"},{default:t(()=>[a(S,{"label-suffix":":",model:r,size:"small"},{default:t(()=>[a(T,{gutter:16},{default:t(()=>[a(w,{span:8},{default:t(()=>[a(b,{label:"\u9879\u76EE\u540D\u79F0"},{default:t(()=>[a(C,{modelValue:r.projectName,"onUpdate:modelValue":n[0]||(n[0]=e=>r.projectName=e),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),a(w,{span:16},{default:t(()=>[a(b,{class:"btn"},{default:t(()=>[a(h,{type:"primary",onClick:I},{default:t(()=>[g("\u67E5\u8BE2")]),_:1}),a(h,{onClick:N},{default:t(()=>[g("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(j,null,{header:t(()=>[z]),default:t(()=>[a(A,{ref_key:"tableListRef",ref:s,column:k,data:f.value,total:_.value,onGetTableData:i},{action:t(({scope:e})=>[e.row.canReAppraisal?(d(),u("a",{key:0,onClick:x=>o.$router.push({name:"reviewGiveScore",query:{projectCode:e.row.projectCode,projectId:e.row.projectId,appraisalId:e.row.appraisalId,groupId:e.row.groupId,canReAppraisal:!0}})},P(e.row.draftId?"\u7EE7\u7EED\u6253\u5206":"\u6253\u5206"),9,B)):(d(),u("a",{key:1,onClick:x=>o.$router.push({name:"reviewScoreDetail",query:{projectCode:e.row.projectCode,projectId:e.row.projectId,appraisalId:e.row.appraisalId,groupId:e.row.groupId}})},"\u8BE6\u60C5",8,F))]),_:1},8,["column","data","total"])]),_:1})],64)}}});export{W as default};