|
1 |
- import{E as z,a as x,r as S,B as G,o as K,b as F,c as s,L as b,h as t,f as a,i as n,t as d,u as R,j as m,d as N,F as O,e as J,H as P,k as Q}from"./index-dd5fae99.js";import{_ as B}from"./index-33a0e6e3.js";import{t as W}from"./indicatorTemplate-ca1642c9.js";const X={style:{"word-break":"break-all"}},Z={style:{"word-break":"break-all"}},_=Q({name:"basicInfo"}),le=Object.assign(_,{props:{detailData:Object,isDownLoadFile:{type:Boolean,default:!0},dictionaryList:{type:Array,default:()=>[]}},setup(e){const D=e;function A(f){if(f&&f instanceof Array){const w={1:"浙里办",2:"浙政钉",3:"其他",4:"无移动端"};return f.map(c=>w[c]).join(",")}return"-"}const{statusOptions:M,projectTypeOptions:V}=z.dictStore.globalDicts||{},E=x([{label:"序号",type:"index",width:"80"},{label:"依据项",slot:"title"},{label:"依据文件名",slot:"fileName"},{label:"附件",slot:"file"}]),Y=x([{label:"序号",type:"index",width:60},{label:"项目名称",prop:"baseProjName",key:"baseProjName"},{label:"预算年度",prop:"baseProjSetYear",key:"baseProjSetYear"}]),$=[{label:"项目主要内容",prop:"mainContent",key:"mainContent"},{label:"业务对象",prop:"businessObject",key:"businessObject"}],T=S([]),H=S(),U=S(),q=async()=>{const f=await W();U.value=f.data};return G(()=>D.detailData,f=>{var w,l,c;f&&(q(),T.value=(c=(l=(w=D.detailData)==null?void 0:w.baseProjBasis)==null?void 0:l.split(";"))==null?void 0:c.map((r,C)=>{var p,g,L,k,y;const h=`[${(p=D.detailData)==null?void 0:p.baseProjBasisFile.replace(/}];/g,"}],")}]`;return{title:(k=(L=(g=D.dictionaryList)==null?void 0:g.filter(i=>i.type==="PROJECT_BASIS"))==null?void 0:L.find(i=>i.value===r))==null?void 0:k.label,fileList:(y=D.detailData)!=null&&y.baseProjBasisFile?JSON.parse(h)[C]:[],value:r}}))}),K(()=>{var f,w,l;T.value=(l=(w=(f=D.detailData)==null?void 0:f.baseProjBasis)==null?void 0:w.split(";"))==null?void 0:l.map((c,r)=>{var h,p,g,L,k;const C=`[${(h=D.detailData)==null?void 0:h.baseProjBasisFile.replace(/}];/g,"}],")}]`;return{title:(L=(g=(p=D.dictionaryList)==null?void 0:p.filter(y=>y.type==="PROJECT_BASIS"))==null?void 0:g.find(y=>y.value===c))==null?void 0:L.label,fileList:(k=D.detailData)!=null&&k.baseProjBasisFile?JSON.parse(C)[r]:[],value:c}})}),(f,w)=>{const l=F("el-descriptions-item"),c=F("table-list"),r=F("el-table-column"),C=F("el-table"),h=F("el-descriptions");return s(),b(h,{column:2,border:""},{default:t(()=>{var p,g,L,k,y;return[a(l,{label:"项目ID"},{default:t(()=>[n(d(e.detailData.projectCode||"-"),1)]),_:1}),a(l,{label:"项目名称"},{default:t(()=>[n(d(e.detailData.projectName||"-"),1)]),_:1}),a(l,{label:"项目类型"},{default:t(()=>{var i,o;return[n(d(((i=e.detailData)==null?void 0:i.projectType)&&R(V)[(o=e.detailData)==null?void 0:o.projectType]),1)]}),_:1}),a(l,{label:"内容类别"},{default:t(()=>{var i,o;return[n(d(((o=(i=e.detailData)==null?void 0:i.baseConstructionType)==null?void 0:o.split(";").map(u=>{var j,I;return(I=(j=e.dictionaryList)==null?void 0:j.filter(v=>v.type==="CONTENT_TYPE").find(v=>v.value===u))==null?void 0:I.label}).join("、"))||"-"),1)]}),_:1}),((p=e.detailData)==null?void 0:p.baseProjIsConfidentiality)!=="02"?(s(),b(l,{key:0,label:"是否首次新建"},{default:t(()=>[n(d(e.detailData.isFirst?"是":"否"),1)]),_:1})):m("",!0),a(l,{label:"行政区划编码"},{default:t(()=>[n(d(e.detailData.areaCode||"-"),1)]),_:1}),a(l,{label:"行政区划名称"},{default:t(()=>[n(d(e.detailData.area||"-"),1)]),_:1}),a(l,{label:"项目负责人"},{default:t(()=>[n(d(e.detailData.responsibleMan||"-"),1)]),_:1}),a(l,{label:"项目负责人手机号码"},{default:t(()=>[n(d(e.detailData.responsibleManMobile||"-"),1)]),_:1}),a(l,{label:"项目联系人"},{default:t(()=>[n(d(e.detailData.contactName||"-"),1)]),_:1}),a(l,{label:"项目联系人手机号码"},{default:t(()=>[n(d(e.detailData.contactPhone||"-"),1)]),_:1}),a(l,{label:"上级业务主管单位"},{default:t(()=>[n(d(e.detailData.higherSuperOrg||"-"),1)]),_:1}),a(l,{label:"上级业务主管单位浙政钉ID"},{default:t(()=>[n(d(e.detailData.higherSuperOrgCode||"-"),1)]),_:1}),a(l,{label:"本级主管部门单位"},{default:t(()=>[n(d(e.detailData.superOrg||"-"),1)]),_:1}),a(l,{label:"本级主管单位浙政钉ID"},{default:t(()=>[n(d(e.detailData.superOrgCode||"-"),1)]),_:1}),a(l,{label:"本级主管单位统一社会信用代码"},{default:t(()=>[n(d(e.detailData.superOrgCreditCode||"-"),1)]),_:1}),a(l,{label:"建设单位:"},{default:t(()=>[n(d(e.detailData.buildOrgName||"-"),1)]),_:1}),a(l,{label:"建设单位浙政钉ID"},{default:t(()=>[n(d(e.detailData.buildOrgCode||"-"),1)]),_:1}),a(l,{label:"建设单位统一信用代码"},{default:t(()=>[n(d(e.detailData.orgCreditCode||"-"),1)]),_:1}),a(l,{label:"主管单位"},{default:t(()=>[n(d(e.detailData.superOrg||"-"),1)]),_:1}),a(l,{label:"上级主管单位类型"},{default:t(()=>[n(d(e.detailData.baseProvManDeprtType===1?"省级":e.detailData.baseProvManDeprtType===2?"非省级":"-"),1)]),_:1}),a(l,{label:"上级条线主管单位"},{default:t(()=>[n(d(e.detailData.higherSuperOrg||"-"),1)]),_:1}),a(l,{label:"项目状态"},{default:t(()=>{var i;return[n(d(((i=R(M)[e.detailData.status])==null?void 0:i.name)||"-"),1)]}),_:1}),a(l,{label:"预算年度"},{default:t(()=>[n(d(e.detailData.projectYear||"-"),1)]),_:1}),((g=e.detailData)==null?void 0:g.baseProjIsConfidentiality)!=="02"?(s(),N(O,{key:1},[a(l,{label:"建设起止年限"},{default:t(()=>[n(d(e.detailData.beginTime)+"~"+d(e.detailData.endTime),1)]),_:1}),a(l,{label:"建设层级"},{default:t(()=>{var i,o;return[n(d(((o=(i=e.dictionaryList)==null?void 0:i.filter(u=>u.type==="BUILD_LEVEL").find(u=>{var j;return u.value===((j=e.detailData)==null?void 0:j.buildLevel)}))==null?void 0:o.label)||"-"),1)]}),_:1}),a(l,{label:"贯通层级",span:"2"},{default:t(()=>{var i,o;return[n(d(((o=(i=e.dictionaryList)==null?void 0:i.filter(u=>u.type==="BUILD_LEVEL").find(u=>{var j;return u.value===((j=e.detailData)==null?void 0:j.lowestLevel)}))==null?void 0:o.label)||"-"),1)]}),_:1}),a(l,{label:"项目概述",span:"2"},{default:t(()=>[J("span",X,d(e.detailData.projectOverview||"-"),1)]),_:1}),e.detailData.buildBasis&&((L=JSON.parse(e.detailData.buildBasis))!=null&&L.length)?(s(),b(l,{key:0,label:"立项依据",span:"2"},{default:t(()=>[a(c,{column:E,data:e.detailData.buildBasis&&JSON.parse(e.detailData.buildBasis),pagination:!1,"empty-temp":!1,style:{width:"98%"}},{title:t(({scope:i})=>[n(d(i.row.title),1)]),fileName:t(({scope:i})=>[n(d(i.row.fileName),1)]),file:t(({scope:i})=>[(s(!0),N(O,null,P(i.row.fileList,(o,u)=>(s(),N("p",{key:u,class:"mb-4"},[a(B,{"file-name":o.originalFileName,"file-id":o.id,"is-down-load":e.isDownLoadFile},null,8,["file-name","file-id","is-down-load"])]))),128))]),_:1},8,["column","data"])]),_:1})):(s(),b(l,{key:1,label:"立项依据",span:2},{default:t(()=>[a(c,{ref_key:"tableListRef",ref:H,pagination:!1,style:{width:"100%"},column:E,data:T.value},{title:t(({scope:i})=>[n(d(i.row.title),1)]),fileName:t(({scope:i})=>[n(d(i.row.fileList[0].originalFileName),1)]),file:t(({scope:i})=>[(s(!0),N(O,null,P(i.row.fileList,(o,u)=>(s(),N("p",{key:u,class:"mb-4"},[a(B,{"file-name":o.originalFileName,"file-id":o.id},null,8,["file-name","file-id"])]))),128))]),_:1},8,["column","data"])]),_:1})),a(l,{label:"立项依据说明",span:"2"},{default:t(()=>[J("span",Z,d(e.detailData.baseBasisEstablish||"-"),1)]),_:1}),a(l,{label:"历年项目名称",span:2},{default:t(()=>{var i;return[a(c,{column:Y,data:((i=e.detailData)==null?void 0:i.baseHistorProjs)||[],pagination:!1,"empty-temp":!1,style:{width:"98%"}},null,8,["column","data"])]}),_:1}),a(l,{label:"是否临时增补项目",span:2},{default:t(()=>[n(d(e.detailData.isTemporaryAugment?"是":"否"),1)]),_:1}),e.detailData.status>10011&&e.detailData.projectType!=="04"&&e.detailData.projectType!=="05"?(s(),N(O,{key:2},[a(l,{label:"项目内容与预期成效",span:2},{default:t(()=>{var i,o;return[a(c,{ref:"tableList2",pagination:!1,style:{width:"100%"},column:$,data:((i=e.detailData)==null?void 0:i.beseExpectedResults)&&JSON.parse((o=e.detailData)==null?void 0:o.beseExpectedResults),"empty-temp":!1},null,8,["data"])]}),_:1}),a(l,{label:"移动端入口",span:2},{default:t(()=>[n(d(A(e.detailData.mobileTerminalEntry)),1)]),_:1}),a(l,{label:"是否使用云资源",span:2},{default:t(()=>[n(d(e.detailData.isCloudResource===1?"是":"否"),1)]),_:1}),e.detailData.isCloudResource===1?(s(),b(l,{key:0,label:"云资源",span:2},{default:t(()=>[a(C,{data:e.detailData.cloudResource,style:{width:"100%"}},{default:t(()=>[a(r,{prop:"cloudResourceType",label:"云资源类型"}),a(r,{prop:"baseSpecification",label:"基础规格"}),a(r,{prop:"serversCount",label:"台数"}),a(r,{prop:"description",label:"描述"})]),_:1},8,["data"])]),_:1})):m("",!0),a(l,{label:"是否产生数据",span:2},{default:t(()=>[n(d(e.detailData.isProduceData===1?"是":"否"),1)]),_:1}),e.detailData.isProduceData===1?(s(),b(l,{key:1,label:"数据列表",span:2},{default:t(()=>[a(C,{data:e.detailData.produceData,style:{width:"100%"}},{default:t(()=>[a(r,{prop:"dataDirectoryName",label:"数据目录名称"}),a(r,{prop:"dataItem",label:"数据项"})]),_:1},8,["data"])]),_:1})):m("",!0),a(l,{label:"是否使用公共组件",span:2},{default:t(()=>[n(d(e.detailData.isCommonComponent===1?"是":"否"),1)]),_:1}),e.detailData.isCommonComponent===1?(s(),b(l,{key:2,label:"公共组件列表",span:2},{default:t(()=>[a(C,{data:e.detailData.commonComponent,style:{width:"100%"}},{default:t(()=>[a(r,{prop:"componentName",label:"公共组件名称"}),a(r,{prop:"componentType",label:"公共组件类型"})]),_:1},8,["data"])]),_:1})):m("",!0)],64)):m("",!0),(k=e.detailData)!=null&&k.projectApplicationForm&&((y=JSON.parse(e.detailData.projectApplicationForm))!=null&&y.length)?(s(),b(l,{key:3,label:"项目申报书"},{default:t(()=>[(s(!0),N(O,null,P(e.detailData.projectApplicationForm&&JSON.parse(e.detailData.projectApplicationForm),(i,o)=>(s(),N("p",{key:o,class:"mb-4"},[a(B,{"file-name":i.originalFileName,"file-id":i.id,"is-down-load":e.isDownLoadFile},null,8,["file-name","file-id","is-down-load"])]))),128))]),_:1})):m("",!0),e.detailData.pretrialFileId?(s(),b(l,{key:4,label:"预审申请单",span:"2"},{default:t(()=>[a(B,{"file-name":e.detailData.pretrialFileName,"file-id":e.detailData.pretrialFileId,"is-down-load":e.isDownLoadFile},null,8,["file-name","file-id","is-down-load"])]),_:1})):m("",!0),m("",!0),e.detailData.constructFileId?(s(),b(l,{key:6,label:"建设方案审查意见文件",span:"2"},{default:t(()=>[a(B,{"file-name":e.detailData.constructFileName,"file-id":e.detailData.constructFileId,"is-down-load":e.isDownLoadFile},null,8,["file-name","file-id","is-down-load"])]),_:1})):m("",!0)],64)):m("",!0)]}),_:1})}}});export{le as default};
|