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

2 рядки
6.8KB

  1. import{_ as O}from"./index-33a0e6e3.js";import{r as v,o as U,b as E,c as o,L,h as n,f as i,i as f,t as r,d as u,j as A,F as S,H as g,k as Y}from"./index-dd5fae99.js";const H={key:0},$={key:1},G={key:0},K={key:1},M={key:1},q={key:1},z=Y({name:"applyInfo"}),X=Object.assign(z,{props:{detailData:{type:Object,default:()=>{}},basicInfoData:{type:Object,default:()=>{}},dictionaryList:Array},setup(a){const F=a,I=[{label:"序号",type:"index",width:60},{label:"项目名称",prop:"baseProjName",key:"baseProjName"},{label:"预算年度",prop:"baseProjSetYear",key:"baseProjSetYear"}],J=[{label:"项目主要内容",prop:"mainContent",key:"mainContent"},{label:"业务对象",prop:"businessObject",key:"businessObject"}],x=[{label:"序号",type:"index",width:60},{label:"依据项",key:"title",prop:"title"},{label:"依据文件名",slot:"fileName"},{label:"文件(支持word、pdf格式)",slot:"action",width:300}],T=v([]),V=v();return U(()=>{var C,R,s;T.value=(s=(R=(C=F.detailData)==null?void 0:C.baseProjBasis)==null?void 0:R.split(";"))==null?void 0:s.map((m,B)=>{var D,j,P,h,k;const N=`[${(D=F.detailData)==null?void 0:D.baseProjBasisFile.replace(/}];/g,"}],")}]`;return{title:(h=(P=(j=F.dictionaryList)==null?void 0:j.filter(y=>y.type==="PROJECT_BASIS"))==null?void 0:P.find(y=>y.value===m))==null?void 0:h.label,fileList:(k=F.detailData)!=null&&k.baseProjBasisFile?JSON.parse(N)[B]:[],value:m}})}),(C,R)=>{const s=E("el-descriptions-item"),m=E("table-list"),B=E("el-descriptions");return o(),L(B,{column:2,border:""},{default:n(()=>{var N,D,j,P,h,k,y,w;return[i(s,{label:"发改编码"},{default:n(()=>{var e;return[f(r(((e=a.detailData)==null?void 0:e.baseDevelopCode)||"-"),1)]}),_:1}),i(s,{label:"财政编码"},{default:n(()=>{var e;return[f(r(((e=a.detailData)==null?void 0:e.setProjCodeFinan)||"-"),1)]}),_:1}),i(s,{label:"项目起止时间"},{default:n(()=>{var e,t,l,d,c,b;return[(e=a.detailData)!=null&&e.baseProjStartTime&&((t=a.detailData)!=null&&t.baseProjEndTime)?(o(),u("span",H,r((d=(l=a.detailData)==null?void 0:l.baseProjStartTime)==null?void 0:d.split(" ")[0])+" ~ "+r((b=(c=a.detailData)==null?void 0:c.baseProjEndTime)==null?void 0:b.split(" ")[0]),1)):(o(),u("span",$,"-"))]}),_:1}),i(s,{label:"预算年度"},{default:n(()=>{var e;return[f(r(((e=a.detailData)==null?void 0:e.baseProjSetYear)||"-"),1)]}),_:1}),i(s,{label:"项目总投资"},{default:n(()=>{var e;return[f(r(((e=a.detailData)==null?void 0:e.baseProjTotalAmount)||"-")+"万元 ",1)]}),_:1}),i(s,{label:"申报年度预算"},{default:n(()=>{var e;return[f(r(((e=a.detailData)==null?void 0:e.baseProjDeclAmount)||"-")+"万元 ",1)]}),_:1}),i(s,{label:"建设层级"},{default:n(()=>{var e,t;return[f(r(((t=(e=a.dictionaryList)==null?void 0:e.filter(l=>l.type==="BUILD_LEVEL").find(l=>{var d;return l.value===((d=a.detailData)==null?void 0:d.baseProjConsClass)}))==null?void 0:t.label)||"-"),1)]}),_:1}),(j=(D=(N=a.basicInfoData)==null?void 0:N.baseConstructionType)==null?void 0:D.split(";"))!=null&&j.includes("03")&&!((k=(h=(P=a.basicInfoData)==null?void 0:P.baseConstructionType)==null?void 0:h.split(";"))!=null&&k.includes("01"))?A("",!0):(o(),L(s,{key:0,label:"贯通层级"},{default:n(()=>{var e,t;return[f(r(((t=(e=a.dictionaryList)==null?void 0:e.filter(l=>l.type==="LINK_UP_LEVEL").find(l=>{var d;return l.value===((d=a.detailData)==null?void 0:d.baseLowestLevel)}))==null?void 0:t.label)||"-"),1)]}),_:1})),i(s,{label:"历年项目名称",span:2},{default:n(()=>[a.detailData.missing?(o(),u("span",G,"缺失")):(o(),L(m,{key:1,pagination:!1,style:{width:"100%"},column:I,data:a.detailData.baseHistorProjs,"empty-temp":!1},null,8,["data"]))]),_:1}),i(s,{label:"预算来源",span:2},{default:n(()=>{var e,t;return[f(r(((t=(e=a.detailData)==null?void 0:e.baseProjAmountOri)==null?void 0:t.split(";").map(l=>{var d,c;return(c=(d=a.dictionaryList)==null?void 0:d.filter(b=>b.type==="BUDGET_SOURCE").find(b=>b.value===l))==null?void 0:c.label}).join("、"))||"-"),1)]}),_:1}),i(s,{label:"预算来源说明",span:2},{default:n(()=>{var e;return[f(r(((e=a.detailData)==null?void 0:e.baseBasisAmountOri)||"-"),1)]}),_:1}),i(s,{label:"立项依据",span:2},{default:n(()=>[i(m,{ref_key:"tableListRef",ref:V,pagination:!1,style:{width:"100%"},column:x,data:T.value},{fileName:n(({scope:e})=>[f(r(e.row.fileList[0].originalFileName),1)]),action:n(({scope:e})=>[(o(!0),u(S,null,g(e.row.fileList,(t,l)=>(o(),u("p",{key:l,class:"mb-4"},[i(O,{"file-name":t.originalFileName,"file-id":t.id},null,8,["file-name","file-id"])]))),128))]),_:1},8,["data"])]),_:1}),i(s,{label:"立项依据说明",span:2},{default:n(()=>{var e;return[f(r(((e=a.detailData)==null?void 0:e.baseBasisEstablish)||"-"),1)]}),_:1}),i(s,{label:"项目概述",span:2},{default:n(()=>{var e;return[f(r(((e=a.detailData)==null?void 0:e.baseProjIntro)||"-"),1)]}),_:1}),i(s,{label:"项目内容与预期成效",span:2},{default:n(()=>{var e,t;return[i(m,{pagination:!1,style:{width:"100%"},column:J,data:((e=a.detailData)==null?void 0:e.beseExpectedResults)&&JSON.parse((t=a.detailData)==null?void 0:t.beseExpectedResults),"empty-temp":!1},null,8,["data"])]}),_:1}),i(s,{label:"项目申报书",span:2},{default:n(()=>{var e,t,l,d,c;return[(e=a.detailData)!=null&&e.baseProjApplyFile&&((l=JSON.parse((t=a.detailData)==null?void 0:t.baseProjApplyFile))!=null&&l.length)?(o(!0),u(S,{key:0},g(((d=a.detailData)==null?void 0:d.baseProjApplyFile)&&JSON.parse((c=a.detailData)==null?void 0:c.baseProjApplyFile),(b,p)=>(o(),u("p",{key:p,class:"mb-4"},[i(O,{"file-name":b.originalFileName,"file-id":b.id},null,8,["file-name","file-id"])]))),128)):(o(),u("span",K,"-"))]}),_:1}),((y=a.basicInfoData)==null?void 0:y.baseProjType)==="01"||((w=a.basicInfoData)==null?void 0:w.baseProjType)==="02"?(o(),L(s,{key:1,label:"可行性研究报告",span:2},{default:n(()=>{var e,t,l,d,c;return[(e=a.detailData)!=null&&e.baseResearchReportFile&&((l=JSON.parse((t=a.detailData)==null?void 0:t.baseResearchReportFile))!=null&&l.length)?(o(!0),u(S,{key:0},g(((d=a.detailData)==null?void 0:d.baseResearchReportFile)&&JSON.parse((c=a.detailData)==null?void 0:c.baseResearchReportFile),(b,p)=>(o(),u("p",{key:p,class:"mb-4"},[i(O,{"file-name":b.originalFileName,"file-id":b.id},null,8,["file-name","file-id"])]))),128)):(o(),u("span",M,"-"))]}),_:1})):A("",!0),i(s,{label:"其他附件",span:2},{default:n(()=>{var e,t,l,d,c;return[(e=a.detailData)!=null&&e.baseProjOtherFile&&((l=JSON.parse((t=a.detailData)==null?void 0:t.baseProjOtherFile))!=null&&l.length)?(o(!0),u(S,{key:0},g(((d=a.detailData)==null?void 0:d.baseProjOtherFile)&&JSON.parse((c=a.detailData)==null?void 0:c.baseProjOtherFile),(b,p)=>(o(),u("p",{key:p,class:"mb-4"},[i(O,{"file-name":b.originalFileName,"file-id":b.id},null,8,["file-name","file-id"])]))),128)):(o(),u("span",q,"-"))]}),_:1}),i(s,{label:"备注",span:2},{default:n(()=>{var e;return[f(r(((e=a.detailData)==null?void 0:e.baseProjRemark)||"-"),1)]}),_:1})]}),_:1})}}});export{X as default};