Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

2 рядки
4.3KB

  1. import{s as R,d as U,r as m,b as N,Z as T,x as E,o as W,c as r,e as i,f as p,h as a,i as l,j as I,g as S,n as V,t as x,k as $}from"./index.55251523.js";const Y={1:"/api/v1/self-appraisal/pending-list",2:"/api/v1/self-appraisal/to-confirm",3:"/api/v1/self-appraisal/confirmed"},F=(f,s)=>R.get(`${Y[f]}`,{params:s}),M={key:0,class:"flex items-center"},Z={key:1},H=["onClick"],J=["onClick"],K=["onClick"],Q=U({name:"unitSelfEvaluation"}),ee=Object.assign(Q,{setup(f){const s=m(),A=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:t=>T("span",t.selfAppraisalScoreTime?t.selfAppraisalTotalScore:"-")},{label:"\u6253\u5206\u65F6\u95F4",key:"selfAppraisalScoreTime",prop:"selfAppraisalScoreTime",width:"150",render:t=>T("span",t.selfAppraisalScoreTime||"-")},{label:"\u72B6\u6001",key:"status",slot:"status",width:120},{label:"\u64CD\u4F5C",slot:"action",width:130,fixed:"right"}]),b=m([]),w=m(0),d=N({projectName:void 0}),c=async(t=s.value.pageParams)=>{const o=await F(n.value,{...t,...d});b.value=o.data.records,w.value=o.data.total},O=()=>{s.value.pageParams.pageNumber=1,c()},v=()=>{d.projectName=void 0,s.value.pageParams.pageNumber=1,s.value.pageParams.pageSize=10,c()},n=m("1"),P=t=>{n.value=t,v()},q=E();return W(()=>{var t;n.value=((t=q.query)==null?void 0:t.tab)||"1",c()}),(t,o)=>{const D=r("el-input"),g=r("el-form-item"),h=r("el-col"),j=r("el-button"),z=r("el-row"),B=r("el-form"),k=r("el-card"),_=r("el-tab-pane"),G=r("el-tabs"),L=r("table-list");return i(),p("div",null,[a(k,{class:"search mb-16"},{default:l(()=>[a(B,{"label-suffix":":",model:d,size:"small"},{default:l(()=>[a(z,{gutter:16},{default:l(()=>[a(h,{span:8},{default:l(()=>[a(g,{label:"\u9879\u76EE\u540D\u79F0"},{default:l(()=>[a(D,{modelValue:d.projectName,"onUpdate:modelValue":o[0]||(o[0]=e=>d.projectName=e),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),a(h,{span:16},{default:l(()=>[a(g,{class:"btn"},{default:l(()=>[a(j,{type:"primary",onClick:O},{default:l(()=>o[2]||(o[2]=[I("\u67E5\u8BE2")])),_:1}),a(j,{onClick:v},{default:l(()=>o[3]||(o[3]=[I("\u91CD\u7F6E")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(k,{shadow:"never",class:"tab-card"},{header:l(()=>[a(G,{modelValue:n.value,"onUpdate:modelValue":o[1]||(o[1]=e=>n.value=e),onTabChange:P},{default:l(()=>[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:l(()=>[a(L,{ref_key:"tableListRef",ref:s,column:A,data:b.value,total:w.value,onGetTableData:c},{status:l(({scope:e})=>{var u,y,C;return[(u=e.row)!=null&&u.status?(i(),p("div",M,[S("span",{class:V(`dot mr-4 ${[1,2].includes((y=e.row)==null?void 0:y.status)?"bg-warning":e.row.status===3?"bg-success":"bg-danger"}`)},null,2),S("p",{class:V(`${[1,2].includes((C=e.row)==null?void 0:C.status)?"text-warning":e.row.status===3?"text-success":"text-danger"}`)},x(e.row.statusName),3)])):(i(),p("span",Z))]}),action:l(({scope:e})=>[n.value==="1"&&[1,2].includes(e.row.status)?(i(),p("a",{key:0,onClick:u=>t.$router.push({name:"selfGiveScore",query:{projectCode:e.row.projectCode,projectId:e.row.projectId,appraisalId:e.row.appraisalId,status:e.row.status}})},x(e.row.draftId?"\u7EE7\u7EED\u81EA\u8BC4":"\u81EA\u8BC4\u6253\u5206"),9,H)):[4].includes(e.row.status)?(i(),p("a",{key:1,onClick:u=>t.$router.push({name:"selfGiveScore",query:{projectCode:e.row.projectCode,projectId:e.row.projectId,appraisalId:e.row.appraisalId,status:e.row.status}})},"\u91CD\u65B0\u81EA\u8BC4",8,J)):$("",!0),n.value!=="1"?(i(),p("a",{key:2,onClick:u=>t.$router.push({name:"selfScoreDetail",query:{projectCode:e.row.projectCode,projectId:e.row.projectId,appraisalId:e.row.appraisalId,instanceId:e.row.instCode}})},"\u8BE6\u60C5",8,K)):$("",!0)]),_:1},8,["column","data","total"])]),_:1})])}}});export{ee as default};