You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
8.9KB

  1. import"./index-33a0e6e3.js";import{E as X,r as b,x as Z,o as ee,b as h,c as o,d as _,e as g,f as a,h as e,i as l,t as n,n as ae,L as N,j as D,u as le,F as y,H as k,k as te,s as de}from"./index-dd5fae99.js";import{d as ie}from"./projectCollectionEnter-718f1371.js";import{d as M,a as ne}from"./performanceApprove-75a10e75.js";import{t as se}from"./indicatorTemplate-ca1642c9.js";const ue={class:"footerPage indexConfigApproveDetail"},re={class:"module-box"},oe={class:"flex items-center"},pe={class:"module-box"},ce={class:"flex items-center"},_e={key:0,class:"footer"},fe={class:"flex justify-center"},me=te({name:"indexConfigApproveDetail"}),ke=Object.assign(me,{setup(ve){const{proxy:I}=de(),{operationTypeOptions:J}=X.dictStore.globalDicts||{},j=b([]),E=b(!1),R=()=>{I.$messageBox.confirm("是否确认审核通过?","提示!",{type:"warning"}).then(async()=>{await M({id:V.query.id*1,auditStatus:2}),I.$message.success("提交成功!"),O()})},S=b(!1),w=b(),$=b(),q=()=>{S.value=!0,w.value={auditMessage:""}},A=async m=>{m&&m.validate(async u=>{u&&(await M({id:V.query.id*1,auditStatus:3,...w.value}),I.$message.success("提交成功!"),O(),S.value=!1)})},V=Z(),c=b({}),i=b({}),O=async()=>{const m=await ne(V.query.id);c.value={...m.data},i.value=m.data.data?JSON.parse(m.data.data):{}},L=b(),P=async()=>{const m=await se();L.value=m.data};return ee(async()=>{j.value=(await ie()).data,P(),O()}),(m,u)=>{var U;const t=h("el-form-item"),d=h("el-col"),v=h("el-row"),F=h("el-form"),T=h("el-card"),Y=h("el-collapse-item"),z=h("el-collapse"),C=h("el-button"),H=h("el-input"),G=h("el-dialog");return o(),_(y,null,[g("div",ue,[a(T,{header:"审核信息",class:"mb-16 search",shadow:"never"},{default:e(()=>[a(F,{"label-position":"right","label-width":"","label-suffix":":"},{default:e(()=>[a(v,{gutter:24},{default:e(()=>[a(d,{span:12},{default:e(()=>[a(t,{label:"配置人员"},{default:e(()=>[l(n(c.value.createBy||"-"),1)]),_:1})]),_:1}),a(d,{span:12},{default:e(()=>[a(t,{label:"审核状态"},{default:e(()=>[g("span",{class:ae(`${c.value.auditStatus===1?"text-warning":c.value.auditStatus===2?"text-success":"text-danger"}`)},n(c.value.auditStatusName||"-"),3)]),_:1})]),_:1}),c.value.auditStatus!==1&&c.value.auditMessage?(o(),N(d,{key:0,span:12},{default:e(()=>[a(t,{label:"驳回原因"},{default:e(()=>[l(n(c.value.auditMessage||"-"),1)]),_:1})]),_:1})):D("",!0),a(d,{span:12},{default:e(()=>[a(t,{label:"审核操作"},{default:e(()=>[l(n(le(J)[c.value.operationType]||"-"),1)]),_:1})]),_:1}),c.value.auditStatus!==1?(o(),N(d,{key:1,span:12},{default:e(()=>[a(t,{label:"审核人员"},{default:e(()=>[l(n(c.value.auditBy||"-"),1)]),_:1})]),_:1})):D("",!0),a(d,{span:12},{default:e(()=>[a(t,{label:"提交审核时间"},{default:e(()=>[l(n(c.value.createOn||"-"),1)]),_:1})]),_:1}),c.value.auditStatus!==1?(o(),N(d,{key:2,span:12},{default:e(()=>[a(t,{label:"审核时间"},{default:e(()=>[l(n(c.value.auditOn||"-"),1)]),_:1})]),_:1})):D("",!0)]),_:1})]),_:1})]),_:1}),a(T,{header:"基本信息",shadow:"never",class:"mb-16 search"},{default:e(()=>[a(F,{model:c.value,"label-position":"right","label-width":"","label-suffix":":"},{default:e(()=>[a(v,{gutter:24},{default:e(()=>[a(d,{span:24},{default:e(()=>[a(t,{label:"模板名称"},{default:e(()=>[l(n(i.value.name),1)]),_:1})]),_:1}),a(d,{span:24},{default:e(()=>[D("",!0)]),_:1}),a(d,{span:24},{default:e(()=>[a(t,{label:"预算年度"},{default:e(()=>[l(n(i.value.projectYear),1)]),_:1})]),_:1}),a(d,{span:24},{default:e(()=>[a(t,{label:"指标模板类型"},{default:e(()=>{var f,x;return[l(n(((x=(f=L.value)==null?void 0:f.find(s=>s.id===i.value.templateType))==null?void 0:x.name)||"-"),1)]}),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(T,{header:"评价指标信息",shadow:"never"},{default:e(()=>[a(F,{ref:"formRef1","label-suffix":":",model:i.value},{default:e(()=>{var f;return[(o(!0),_(y,null,k(i.value.templateDetails,(x,s)=>(o(),_("div",{key:s},[g("div",re,[a(v,{class:"mb-16",gutter:16},{default:e(()=>[a(d,{span:12},{default:e(()=>[a(t,{label:"一级指标"},{default:e(()=>[l(n(i.value.templateDetails[s].name),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),(o(!0),_(y,null,k(x.children,(B,r)=>(o(),_("div",{key:r,class:"ml-8 pl-16 sub-item"},[a(v,{class:"mb-16",gutter:16},{default:e(()=>[a(d,{span:12},{default:e(()=>[a(t,{label:"二级指标"},{default:e(()=>[l(n(i.value.templateDetails[s].children[r].name),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),(o(!0),_(y,null,k(B.children,(K,p)=>(o(),_("div",{key:p,class:"pl-24 mb-16"},[a(v,{gutter:16},{default:e(()=>[a(d,{span:12},{default:e(()=>[a(t,{label:"三级指标"},{default:e(()=>[l(n(i.value.templateDetails[s].children[r].children[p].name),1)]),_:2},1024)]),_:2},1024),a(d,{span:8},{default:e(()=>[a(t,{label:"指标分值"},{default:e(()=>[l(n(i.value.templateDetails[s].children[r].children[p].indexScore),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),a(v,{gutter:16},{default:e(()=>[a(d,{span:12},{default:e(()=>[a(t,{label:"指标细则"},{default:e(()=>[l(n(i.value.templateDetails[s].children[r].children[p].indexDetail),1)]),_:2},1024)]),_:2},1024),a(d,{span:12},{default:e(()=>[a(t,{label:"评分细则"},{default:e(()=>[l(n(i.value.templateDetails[s].children[r].children[p].gradeDetail),1)]),_:2},1024)]),_:2},1024),a(d,{span:12},{default:e(()=>[g("div",oe,[a(t,{label:"是否上传佐证材料"},{default:e(()=>[l(n(i.value.templateDetails[s].children[r].children[p].isUploadSupportFile&&JSON.parse(i.value.templateDetails[s].children[r].children[p].isUploadSupportFile)?"是":"否"),1)]),_:2},1024)])]),_:2},1024),D("",!0),a(d,{span:12},{default:e(()=>[a(t,{label:"佐证材料"},{default:e(()=>[l(n(i.value.templateDetails[s].children[r].children[p].supportMaterial),1)]),_:2},1024)]),_:2},1024)]),_:2},1024)]))),128))]))),128))])]))),128)),(f=i.value.additionalIndexDetails)!=null&&f.length?(o(),N(z,{key:0},{default:e(()=>[a(Y,null,{title:e(()=>u[5]||(u[5]=[g("div",{class:"collapse-title"},"附加指标",-1)])),default:e(()=>[(o(!0),_(y,null,k(i.value.additionalIndexDetails,(x,s)=>(o(),_("div",{key:s},[g("div",pe,[a(v,{class:"mb-16",gutter:16},{default:e(()=>[a(d,{span:12},{default:e(()=>[a(t,{label:"一级指标"},{default:e(()=>[l(n(i.value.additionalIndexDetails[s].name),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),(o(!0),_(y,null,k(x.children,(B,r)=>(o(),_("div",{key:r,class:"ml-8 pl-16 sub-item"},[a(v,{class:"mb-16",gutter:16},{default:e(()=>[a(d,{span:12},{default:e(()=>[a(t,{label:"二级指标"},{default:e(()=>[l(n(i.value.additionalIndexDetails[s].children[r].name),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),(o(!0),_(y,null,k(B.children,(K,p)=>(o(),_("div",{key:p,class:"pl-24 mb-16"},[a(v,{gutter:16},{default:e(()=>[a(d,{span:12},{default:e(()=>[a(t,{label:"三级指标"},{default:e(()=>[l(n(i.value.additionalIndexDetails[s].children[r].children[p].name),1)]),_:2},1024)]),_:2},1024),a(d,{span:8},{default:e(()=>[a(t,{label:"指标分值"},{default:e(()=>[l(n(i.value.additionalIndexDetails[s].children[r].children[p].indexScore),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),a(v,{gutter:16},{default:e(()=>[a(d,{span:12},{default:e(()=>[a(t,{label:"指标细则"},{default:e(()=>[l(n(i.value.additionalIndexDetails[s].children[r].children[p].indexDetail),1)]),_:2},1024)]),_:2},1024),a(d,{span:12},{default:e(()=>[a(t,{label:"评分细则"},{default:e(()=>[l(n(i.value.additionalIndexDetails[s].children[r].children[p].gradeDetail),1)]),_:2},1024)]),_:2},1024),a(d,{span:12},{default:e(()=>[g("div",ce,[a(t,{label:"是否上传佐证材料"},{default:e(()=>[l(n(i.value.additionalIndexDetails[s].children[r].children[p].isUploadSupportFile&&JSON.parse(i.value.additionalIndexDetails[s].children[r].children[p].isUploadSupportFile)?"是":"否"),1)]),_:2},1024)])]),_:2},1024),D("",!0),a(d,{span:12},{default:e(()=>[a(t,{label:"佐证材料"},{default:e(()=>[l(n(i.value.additionalIndexDetails[s].children[r].children[p].supportMaterial),1)]),_:2},1024)]),_:2},1024)]),_:2},1024)]))),128))]))),128))])]))),128))]),_:1})]),_:1})):D("",!0)]}),_:1},8,["model"])]),_:1}),((U=c.value)==null?void 0:U.auditStatus)===1&&m.$route.name!=="templateDetail"?(o(),_("div",_e,[a(C,{onClick:u[0]||(u[0]=f=>m.$router.go(-1))},{default:e(()=>u[6]||(u[6]=[l(" 返回 ")])),_:1}),a(C,{type:"primary",loading:E.value,onClick:R},{default:e(()=>u[7]||(u[7]=[l(" 审核通过 ")])),_:1},8,["loading"]),a(C,{type:"danger",onClick:q},{default:e(()=>u[8]||(u[8]=[l(" 驳回 ")])),_:1})])):D("",!0)]),a(G,{modelValue:S.value,"onUpdate:modelValue":u[3]||(u[3]=f=>S.value=f),title:"驳回",onClose:u[4]||(u[4]=f=>S.value=!1)},{footer:e(()=>[g("div",fe,[a(C,{type:"primary",onClick:u[2]||(u[2]=f=>A($.value))},{default:e(()=>u[9]||(u[9]=[l(" 确认 ")])),_:1})])]),default:e(()=>[a(F,{ref_key:"auditFormRef",ref:$,model:w.value},{default:e(()=>[a(t,{label:"驳回原因",prop:"auditMessage",rules:[{required:!0,message:"请输入"}]},{default:e(()=>[a(H,{modelValue:w.value.auditMessage,"onUpdate:modelValue":u[1]||(u[1]=f=>w.value.auditMessage=f),type:"textarea",placeholder:"请输入驳回原因"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])],64)}}});export{ke as default};