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
7.3KB

  1. import{_ as O}from"./index.3b212700.js";import{d as U,r as I,o as Y,c as E,e as o,I as L,i as n,h as i,j as f,t as r,f as u,k as v,F as S,J as g}from"./index.121be81f.js";const $={key:0},G={key:1},H={key:0},K={key:1},M={key:1},q={key:1},z=U({name:"applyInfo"}),X=Object.assign(z,{props:{detailData:{type:Object,default:()=>{}},basicInfoData:{type:Object,default:()=>{}},dictionaryList:Array},setup(a){const F=a,A=[{label:"\u5E8F\u53F7",type:"index",width:60},{label:"\u9879\u76EE\u540D\u79F0",prop:"baseProjName",key:"baseProjName"},{label:"\u9884\u7B97\u5E74\u5EA6",prop:"baseProjSetYear",key:"baseProjSetYear"}],J=[{label:"\u9879\u76EE\u4E3B\u8981\u5185\u5BB9",prop:"mainContent",key:"mainContent"},{label:"\u4E1A\u52A1\u5BF9\u8C61",prop:"businessObject",key:"businessObject"}],x=[{label:"\u5E8F\u53F7",type:"index",width:60},{label:"\u4F9D\u636E\u9879",key:"title",prop:"title"},{label:"\u4F9D\u636E\u6587\u4EF6\u540D",slot:"fileName"},{label:"\u6587\u4EF6\uFF08\u652F\u6301word\u3001pdf\u683C\u5F0F\uFF09",slot:"action",width:300}],T=I([]),V=I();return Y(()=>{var C,R,s;T.value=(s=(R=(C=F.detailData)==null?void 0:C.baseProjBasis)==null?void 0:R.split("\uFF1B"))==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:"\u53D1\u6539\u7F16\u7801"},{default:n(()=>{var e;return[f(r(((e=a.detailData)==null?void 0:e.baseDevelopCode)||"-"),1)]}),_:1}),i(s,{label:"\u8D22\u653F\u7F16\u7801"},{default:n(()=>{var e;return[f(r(((e=a.detailData)==null?void 0:e.setProjCodeFinan)||"-"),1)]}),_:1}),i(s,{label:"\u9879\u76EE\u8D77\u6B62\u65F6\u95F4"},{default:n(()=>{var e,t,l,d,c,b;return[((e=a.detailData)==null?void 0:e.baseProjStartTime)&&((t=a.detailData)==null?void 0:t.baseProjEndTime)?(o(),u("span",$,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",G,"-"))]}),_:1}),i(s,{label:"\u9884\u7B97\u5E74\u5EA6"},{default:n(()=>{var e;return[f(r(((e=a.detailData)==null?void 0:e.baseProjSetYear)||"-"),1)]}),_:1}),i(s,{label:"\u9879\u76EE\u603B\u6295\u8D44"},{default:n(()=>{var e;return[f(r(((e=a.detailData)==null?void 0:e.baseProjTotalAmount)||"-")+"\u4E07\u5143 ",1)]}),_:1}),i(s,{label:"\u7533\u62A5\u5E74\u5EA6\u9884\u7B97"},{default:n(()=>{var e;return[f(r(((e=a.detailData)==null?void 0:e.baseProjDeclAmount)||"-")+"\u4E07\u5143 ",1)]}),_:1}),i(s,{label:"\u5EFA\u8BBE\u5C42\u7EA7"},{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("\uFF1B"))==null?void 0:j.includes("03"))&&!((k=(h=(P=a.basicInfoData)==null?void 0:P.baseConstructionType)==null?void 0:h.split("\uFF1B"))!=null&&k.includes("01"))?v("",!0):(o(),L(s,{key:0,label:"\u8D2F\u901A\u5C42\u7EA7"},{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:"\u5386\u5E74\u9879\u76EE\u540D\u79F0",span:2},{default:n(()=>[a.detailData.missing?(o(),u("span",H,"\u7F3A\u5931")):(o(),L(m,{key:1,pagination:!1,style:{width:"100%"},column:A,data:a.detailData.baseHistorProjs,"empty-temp":!1},null,8,["data"]))]),_:1}),i(s,{label:"\u9884\u7B97\u6765\u6E90",span:2},{default:n(()=>{var e,t;return[f(r(((t=(e=a.detailData)==null?void 0:e.baseProjAmountOri)==null?void 0:t.split("\uFF1B").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("\u3001"))||"-"),1)]}),_:1}),i(s,{label:"\u9884\u7B97\u6765\u6E90\u8BF4\u660E",span:2},{default:n(()=>{var e;return[f(r(((e=a.detailData)==null?void 0:e.baseBasisAmountOri)||"-"),1)]}),_:1}),i(s,{label:"\u7ACB\u9879\u4F9D\u636E",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:"\u7ACB\u9879\u4F9D\u636E\u8BF4\u660E",span:2},{default:n(()=>{var e;return[f(r(((e=a.detailData)==null?void 0:e.baseBasisEstablish)||"-"),1)]}),_:1}),i(s,{label:"\u9879\u76EE\u6982\u8FF0",span:2},{default:n(()=>{var e;return[f(r(((e=a.detailData)==null?void 0:e.baseProjIntro)||"-"),1)]}),_:1}),i(s,{label:"\u9879\u76EE\u5185\u5BB9\u4E0E\u9884\u671F\u6210\u6548",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:"\u9879\u76EE\u7533\u62A5\u4E66",span:2},{default:n(()=>{var e,t,l,d,c;return[((e=a.detailData)==null?void 0:e.baseProjApplyFile)&&((l=JSON.parse((t=a.detailData)==null?void 0:t.baseProjApplyFile))==null?void 0: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:"\u53EF\u884C\u6027\u7814\u7A76\u62A5\u544A",span:2},{default:n(()=>{var e,t,l,d,c;return[((e=a.detailData)==null?void 0:e.baseResearchReportFile)&&((l=JSON.parse((t=a.detailData)==null?void 0:t.baseResearchReportFile))==null?void 0: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})):v("",!0),i(s,{label:"\u5176\u4ED6\u9644\u4EF6",span:2},{default:n(()=>{var e,t,l,d,c;return[((e=a.detailData)==null?void 0:e.baseProjOtherFile)&&((l=JSON.parse((t=a.detailData)==null?void 0:t.baseProjOtherFile))==null?void 0: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:"\u5907\u6CE8",span:2},{default:n(()=>{var e;return[f(r(((e=a.detailData)==null?void 0:e.baseProjRemark)||"-"),1)]}),_:1})]}),_:1})}}});export{X as default};