|
- import{d as re,h as se}from"./evaluationPlan-d9bddf0a.js";import{E as oe,x as ue,a as D,$ as k,r as c,o as pe,b as v,c as d,d as w,e as j,f as a,h as e,i,t as s,n as ie,L as b,j as g,u as B,F as L,H as M,k as ne,s as de}from"./index-dd5fae99.js";import{a as fe,d as P}from"./performanceApprove-75a10e75.js";import{t as me}from"./indicatorTemplate-ca1642c9.js";const ce={class:"footerPage"},_e={key:0},ve={key:1},ye=["onClick"],be=["onClick"],ge={key:0,class:"footer"},ke={class:"flex justify-center"},je=ne({name:"planDetail"}),xe=Object.assign(je,{setup(we){const{operationTypeOptions:F,projectTypeOptions:E}=oe.dictStore.globalDicts||{},{proxy:T}=de(),y=ue(),z=D([{label:"序号",type:"index",width:"80"},{label:"项目名称",key:"projectName",prop:"projectName",minWidth:"200",showOverflowTooltip:!0},{label:"预算年度",key:"projectYear",prop:"projectYear",width:80},{label:"项目金额",key:"declareAmount",prop:"declareAmount"},{label:"申报单位",key:"buildOrgName",prop:"buildOrgName"},{label:"项目类型",key:"projectType",prop:"projectType",render:r=>k("span",E[r.projectType]||"-"),width:80},{label:"模板类型",key:"templateType",prop:"templateType",render:r=>{var l,t;return k("span",((t=(l=q.value)==null?void 0:l.find(u=>u.id===r.templateType))==null?void 0:t.name)||"-")}},{label:"是否复评",key:"isReAppraisal",prop:"isReAppraisal",render:r=>k("span",r.isReAppraisal?"是":"否"),width:80}]),W=D([{label:"序号",type:"index",width:"80"},{label:"应用名称",key:"relatedExistsApplication",prop:"relatedExistsApplication",minWidth:150,render:r=>k("span",r.relatedExistsApplication||r.applicationName),showOverflowTooltip:!0},{label:"申报单位",key:"buildOrgName",prop:"buildOrgName"},{label:"应用类型",key:"applicationType",prop:"applicationType"},{label:"应用领域",key:"bizDomain",prop:"bizDomain"},{label:"发布端",key:"publishSide",prop:"publishSide"}]),G=D([{label:"序号",type:"index",width:"80"},{label:"分组名称",key:"name",prop:"name",render:r=>k("span",r.name)},{label:"复评人员",key:"reAppraisalUsers",prop:"reAppraisalUsers",render:r=>k("span",r.reAppraisalUsers.map(l=>l.username).join("、"))},{label:"核查人员",key:"verificationUsers",prop:"verificationUsers",render:r=>k("span",r.verificationUsers.map(l=>l.username).join("、"))},{label:"创建时间",key:"createOn",prop:"createOn"},{label:"操作",slot:"action",fixed:"right"}]),H=D([{label:"序号",type:"index",width:"80"},{label:"项目名称",key:"projectName",prop:"projectName"},{label:"项目类型",key:"projectTypeName",prop:"projectTypeName"},{label:"申报金额(万元)",key:"declareAmount",prop:"declareAmount",width:"140"},{label:"预算年度",key:"projectYear",prop:"projectYear"}]),O=c(),J=c(),p=c({}),K=c(),n=c({}),R=async()=>{var r,l;if(y.name==="planApproveDetail"||y.query.auditId){const t=await fe(y.name==="planApproveDetail"?y.query.id:y.query.auditId);n.value={...t.data},p.value={...(r=t.data)==null?void 0:r.appraisalDetail,target:(l=t.data)==null?void 0:l.appraisalDetail.target.split(",")}}else{const t=await re(y.query.id);n.value={...t.data.auditInfo},p.value={...t.data,target:t.data.target.split(",")}}},Q={1:"项目",2:"应用"},C=c(!1),_=c({}),X=async r=>{if(r!=null&&r.id){const l=await se(r.id);_.value={...l.data,reAppraisalUsers:l.data.reAppraisalUsers.map(t=>({...t,name:t.username,phoneNo:t.mobile,orgName:t.empPosUnitName})),verificationUsers:l.data.verificationUsers.map(t=>({...t,name:t.username,phoneNo:t.mobile,orgName:t.empPosUnitName}))}}C.value=!0},Z=()=>{T.$messageBox.confirm("是否确认审核通过?","提示!",{type:"warning"}).then(async()=>{await P({id:y.query.id*1,auditStatus:2}),T.$message.success("提交成功!"),R()})},A=c(!1),N=c(),$=c(),ee=()=>{A.value=!0,N.value={auditMessage:""}},ae=async r=>{r&&r.validate(async l=>{l&&(await P({id:y.query.id*1,auditStatus:3,...N.value}),T.$message.success("提交成功!"),R(),A.value=!1)})},q=c(),te=async()=>{const r=await me();q.value=r.data};return pe(()=>{te(),R()}),(r,l)=>{const t=v("el-form-item"),u=v("el-col"),m=v("el-row"),h=v("el-form"),I=v("el-card"),U=v("table-list"),x=v("el-button"),S=v("el-tag"),Y=v("el-dialog"),le=v("el-input");return d(),w(L,null,[j("div",ce,[a(I,{header:"审核信息",class:"mb-16 search",shadow:"never"},{default:e(()=>[a(h,{"label-position":"right","label-width":"","label-suffix":":"},{default:e(()=>[a(m,{gutter:24},{default:e(()=>[a(u,{span:12},{default:e(()=>[a(t,{label:"配置人员"},{default:e(()=>[i(s(n.value.createBy||"-"),1)]),_:1})]),_:1}),a(u,{span:12},{default:e(()=>[a(t,{label:"审核状态"},{default:e(()=>[j("span",{class:ie(`${n.value.auditStatus===1?"text-warning":n.value.auditStatus===2?"text-success":"text-danger"}`)},s(n.value.auditStatusName||"-"),3)]),_:1})]),_:1}),n.value.auditStatus!==1&&n.value.auditMessage?(d(),b(u,{key:0,span:24},{default:e(()=>[a(t,{label:"驳回原因"},{default:e(()=>[i(s(n.value.auditMessage||"-"),1)]),_:1})]),_:1})):g("",!0),a(u,{span:12},{default:e(()=>[a(t,{label:"审核操作"},{default:e(()=>[i(s(B(F)[n.value.operationType]||"-"),1)]),_:1})]),_:1}),n.value.auditStatus!==1?(d(),b(u,{key:1,span:12},{default:e(()=>[a(t,{label:"审核人员"},{default:e(()=>[i(s(n.value.auditBy||"-"),1)]),_:1})]),_:1})):g("",!0),a(u,{span:12},{default:e(()=>[a(t,{label:"提交审核时间"},{default:e(()=>[i(s(n.value.createOn||"-"),1)]),_:1})]),_:1}),n.value.auditStatus!==1?(d(),b(u,{key:2,span:12},{default:e(()=>[a(t,{label:"审核时间"},{default:e(()=>[i(s(n.value.auditOn||"-"),1)]),_:1})]),_:1})):g("",!0)]),_:1})]),_:1})]),_:1}),a(I,{header:"评价计划信息",shadow:"never"},{default:e(()=>[a(h,{ref_key:"fromRef",ref:K,model:p.value,"label-position":"right","label-width":"","label-suffix":":"},{default:e(()=>[a(m,{gutter:24},{default:e(()=>[a(u,{span:12},{default:e(()=>[a(t,{label:"计划名称",prop:"name"},{default:e(()=>[i(s(p.value.name),1)]),_:1})]),_:1})]),_:1}),a(m,{gutter:24},{default:e(()=>[a(u,{span:12},{default:e(()=>[a(t,{label:"自评时间"},{default:e(()=>[i(" 项目终验后"+s(p.value.startSelfDays)+"天后开始自评,"+s(p.value.completeSelfDays)+"天内完成自评 ",1)]),_:1})]),_:1})]),_:1}),a(m,null,{default:e(()=>[a(u,{span:12},{default:e(()=>[a(t,{label:"评价对象"},{default:e(()=>{var o;return[i(s((o=p.value.target)==null?void 0:o.map(f=>Q[f]).join("、")),1)]}),_:1})]),_:1})]),_:1}),p.value.projects?(d(),b(m,{key:0,gutter:24},{default:e(()=>[a(u,{span:24},{default:e(()=>[a(t,{label:"预算年度"},{default:e(()=>{var o,f;return[p.value.projectYear.split?(d(),w("span",_e,s((o=p.value.projectYear.split(","))==null?void 0:o[0])+" ~ "+s((f=p.value.projectYear.split(","))==null?void 0:f[p.value.projectYear.split(",").length-1]),1)):(d(),w("span",ve,"-"))]}),_:1})]),_:1}),a(u,{span:24},{default:e(()=>[a(t,{label:"项目金额(范围)"},{default:e(()=>[i(s(p.value.startAmount)+"万元 ≤ 项目金额 < "+s(p.value.endAmount)+"万元 ",1)]),_:1})]),_:1}),a(u,{span:24},{default:e(()=>[a(t,{label:"项目复评占比"},{default:e(()=>[i(s(p.value.reAppraisalRate)+"% ",1)]),_:1})]),_:1}),a(u,{span:24},{default:e(()=>[a(t,{label:"最终评分公式"},{default:e(()=>[i(s(p.value.selfAppraisalScoreRate)+"%自评分+"+s(p.value.reAppraisalScoreRate)+"%复评分 ",1)]),_:1})]),_:1}),a(u,{span:24},{default:e(()=>[a(t,{label:"评价项目",prop:"projects"},{default:e(()=>[a(U,{ref_key:"tableListRef",ref:O,column:z,pagination:!1,data:p.value.projects,"empty-temp":!1,class:"flex-1"},{projectName:e(({scope:o})=>[j("a",{onClick:f=>r.$router.push({name:"scoreDetail",query:{projectId:o.row.projectId,projectCode:o.row.projectCode,appraisalId:B(y).query.id}})},s(o.row.projectName),9,ye)]),_:1},8,["column","data"])]),_:1})]),_:1})]),_:1})):g("",!0),p.value.applications?(d(),b(m,{key:1,gutter:24},{default:e(()=>[a(u,{span:24},{default:e(()=>[a(t,{label:"评价应用",prop:"applications"},{default:e(()=>[a(U,{ref_key:"tableListRef1",ref:J,column:W,pagination:!1,data:p.value.applications,"empty-temp":!1,class:"flex-1"},null,8,["column","data"])]),_:1})]),_:1})]),_:1})):g("",!0),a(m,null,{default:e(()=>[a(u,{span:24},{default:e(()=>[a(t,{label:"备注"},{default:e(()=>[i(s(p.value.remark||"-"),1)]),_:1})]),_:1})]),_:1}),p.value.groups?(d(),b(m,{key:2,gutter:24},{default:e(()=>[a(u,{span:24},{default:e(()=>[a(t,{label:"项目分组",prop:"groups"},{default:e(()=>[a(U,{ref:"tableListRef2",column:G,pagination:!1,data:p.value.groups,"empty-temp":!1,class:"flex-1"},{action:e(({scope:o})=>[j("a",{onClick:f=>X(o.row)},"详情",8,be)]),_:1},8,["column","data"])]),_:1})]),_:1})]),_:1})):g("",!0)]),_:1},8,["model"])]),_:1}),r.$route.name==="planApproveDetail"&&n.value.auditStatus===1?(d(),w("div",ge,[a(x,{onClick:l[0]||(l[0]=o=>r.$router.go(-1))},{default:e(()=>l[6]||(l[6]=[i(" 返回 ")])),_:1}),a(x,{type:"primary",onClick:Z},{default:e(()=>l[7]||(l[7]=[i(" 审核通过 ")])),_:1}),a(x,{type:"danger",onClick:ee},{default:e(()=>l[8]||(l[8]=[i(" 驳回 ")])),_:1})])):g("",!0)]),a(Y,{modelValue:C.value,"onUpdate:modelValue":l[1]||(l[1]=o=>C.value=o),title:"分组详情",width:"59%"},{default:e(()=>[a(h,{ref:"formRef",model:p.value,rules:r.rules,"label-position":"right","label-width":"","label-suffix":":"},{default:e(()=>[a(m,{gutter:4},{default:e(()=>[a(u,{span:12},{default:e(()=>[a(t,{label:"分组名称",prop:"name"},{default:e(()=>[j("span",null,s(_.value.name),1)]),_:1})]),_:1})]),_:1}),a(m,{gutter:4},{default:e(()=>[a(u,{span:24},{default:e(()=>[a(t,{label:"评价项目",prop:"projects"},{default:e(()=>[a(U,{ref_key:"tableListRef",ref:O,column:H,pagination:!1,data:_.value.projects,class:"w-full","empty-temp":!1},null,8,["column","data"]),l[9]||(l[9]=j("div",null,null,-1))]),_:1})]),_:1})]),_:1}),a(m,{gutter:4},{default:e(()=>[a(u,{span:24},{default:e(()=>[a(t,{label:"复评人员",prop:"reAppraisalUsers"},{default:e(()=>{var o;return[(o=_.value.reAppraisalUsers)!=null&&o.length?(d(!0),w(L,{key:0},M(_.value.reAppraisalUsers,(f,V)=>(d(),b(S,{key:V,class:"mr-4 mb-8"},{default:e(()=>[i(s(f.username)+" | "+s(f.empPosUnitName)+" | "+s(f.mobile),1)]),_:2},1024))),128)):g("",!0)]}),_:1})]),_:1})]),_:1}),a(m,{gutter:4},{default:e(()=>[a(u,{span:12},{default:e(()=>[a(t,{label:"核查人员",prop:"verificationUsers"},{default:e(()=>{var o;return[(o=_.value.verificationUsers)!=null&&o.length?(d(!0),w(L,{key:0},M(_.value.verificationUsers,(f,V)=>(d(),b(S,{key:V,class:"mr-4 mb-8"},{default:e(()=>[i(s(f.username)+" | "+s(f.empPosUnitName)+" | "+s(f.mobile),1)]),_:2},1024))),128)):g("",!0)]}),_:1})]),_:1}),a(u,{span:12},{default:e(()=>[a(t,{label:"核查组长"},{default:e(()=>[(d(),b(S,{key:r.index},{default:e(()=>[i(s(_.value.verifyLeader.username)+" | "+s(_.value.verifyLeader.empPosUnitName)+" | "+s(_.value.verifyLeader.mobile),1)]),_:1}))]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"]),a(Y,{modelValue:A.value,"onUpdate:modelValue":l[4]||(l[4]=o=>A.value=o),title:"驳回",onClose:l[5]||(l[5]=o=>A.value=!1)},{footer:e(()=>[j("div",ke,[a(x,{type:"primary",onClick:l[3]||(l[3]=o=>ae($.value))},{default:e(()=>l[10]||(l[10]=[i(" 确认 ")])),_:1})])]),default:e(()=>[a(h,{ref_key:"auditFormRef",ref:$,model:N.value},{default:e(()=>[a(t,{label:"驳回原因",prop:"auditMessage",rules:[{required:!0,message:"请输入"}]},{default:e(()=>[a(le,{modelValue:N.value.auditMessage,"onUpdate:modelValue":l[2]||(l[2]=o=>N.value.auditMessage=o),type:"textarea",placeholder:"请输入驳回原因"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])],64)}}});export{xe as default};
|