|
- import I from"./basicInfo-488e3f63.js";import O from"./fundsInfo-0025a720.js";import j from"./investmentInfo-99515460.js";import N from"./engineeringInfo-7968d3c7.js";import F from"./safeInfo-bfc18b84.js";import S from"./businessInfo-60a6ce72.js";import x from"./yearPayPlanInfo-0f01ce30.js";import B from"./filesInfo-65b81a59.js";import C from"./remarkInfo-2ef1c52e.js";import _ from"./applications-6819ef49.js";import T from"./customModule-ed9bfcef.js";import V from"./provincialInfo-d875a4e9.js";import{r as h,A as J,B as A,o as E,b as D,c as l,L as u,h as p,f as H,d as k,F as L,H as $,j as o,k as P}from"./index-dd5fae99.js";import"./index-33a0e6e3.js";import"./indicatorTemplate-ca1642c9.js";import"./index-b6aa4cff.js";const R=P({name:"projectInfo"}),ua=Object.assign(R,{props:{detailData:Object,isDownLoadFile:{type:Boolean,default:!0},dictionaryList:{type:Array,default:()=>[]}},setup(t,{expose:M}){const i=t,d=h("基本信息"),a=h(["基本信息","资金申报情况","投资分配情况","年度支付计划"]),g=J(()=>{const n=[];for(let e=0;e<a.value.length;e++)a.value[e]!=="基本信息"&&a.value[e]!=="资金申报情况"&&a.value[e]!=="投资分配情况"&&a.value[e]!=="年度支付计划"&&a.value[e]!=="核心业务"&&a.value[e]!=="安全投入"&&a.value[e]!=="工程形象进度"&&a.value[e]!=="附件"&&a.value[e]!=="建设方案"&&a.value[e]!=="备注"&&n.push(a.value[e]);return n}),b=()=>{var n,e,f,c,v,s,r,w;if(((n=i.detailData)==null?void 0:n.baseProjIsConfidentiality)==="02")a.value=["基本信息"];else{if(((e=i.detailData)==null?void 0:e.declareAmount)>=1e3&&a.value.push("重大项目省级联审信息"),(f=i.detailData)!=null&&f.isOpenCoreBusiness&&a.value.push("核心业务"),(c=i.detailData)!=null&&c.isOpenSafetyInput&&a.value.push("安全投入"),(v=i.detailData)!=null&&v.isEngineeringSpeed&&a.value.push("工程形象进度"),a.value.push("附件"),(s=i.detailData)!=null&&s.isRemarks&&a.value.push("备注"),a.value.push("应用信息"),(r=i.detailData)!=null&&r.safetyInputModular&&((w=JSON.parse(i.detailData.safetyInputModular))!=null&&w.length))for(let y=0;y<JSON.parse(i.detailData.safetyInputModular).length;y++)a.value.push(JSON.parse(i.detailData.safetyInputModular)[y].moduleName);a.value=[...new Set(a.value)],(i.detailData.projectType==="04"||i.detailData.projectType==="05")&&(m("年度支付计划"),m("投资分配情况"),m("应用信息")),i.detailData.projectType==="03"&&m("应用信息")}};function m(n){const e=a.value.indexOf(n);e>-1&&a.value.splice(e,1)}return A(()=>i.detailData,async n=>{n!=null&&n.id&&b()},{deep:!0}),E(async()=>{console.log("customModuletabList",g)}),M({getTabs:b}),(n,e)=>{const f=D("el-tab-pane"),c=D("el-tabs"),v=D("el-card");return l(),u(v,{shadow:"never",class:"tab-card"},{header:p(()=>[H(c,{modelValue:d.value,"onUpdate:modelValue":e[0]||(e[0]=s=>d.value=s)},{default:p(()=>[(l(!0),k(L,null,$(a.value,(s,r)=>(l(),u(f,{key:r,label:s,name:s},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])]),default:p(()=>[d.value==="基本信息"?(l(),u(I,{key:0,"detail-data":t.detailData,"is-down-load-file":t.isDownLoadFile,"dictionary-list":t.dictionaryList},null,8,["detail-data","is-down-load-file","dictionary-list"])):o("",!0),d.value==="资金申报情况"?(l(),u(O,{key:1,"detail-data":t.detailData},null,8,["detail-data"])):o("",!0),d.value==="投资分配情况"?(l(),u(j,{key:2,"detail-data":t.detailData},null,8,["detail-data"])):o("",!0),d.value==="重大项目省级联审信息"?(l(),u(V,{key:3,"detail-data":t.detailData},null,8,["detail-data"])):o("",!0),d.value==="年度支付计划"?(l(),u(x,{key:4,"detail-data":t.detailData},null,8,["detail-data"])):o("",!0),d.value==="核心业务"?(l(),u(S,{key:5,"detail-data":t.detailData},null,8,["detail-data"])):o("",!0),d.value==="安全投入"?(l(),u(F,{key:6,"detail-data":t.detailData},null,8,["detail-data"])):o("",!0),d.value==="工程形象进度"?(l(),u(N,{key:7,"detail-data":t.detailData},null,8,["detail-data"])):o("",!0),d.value==="附件"?(l(),u(B,{key:8,"detail-data":t.detailData,"is-down-load-file":t.isDownLoadFile},null,8,["detail-data","is-down-load-file"])):o("",!0),d.value==="备注"?(l(),u(C,{key:9,"detail-data":t.detailData},null,8,["detail-data"])):o("",!0),d.value==="应用信息"?(l(),u(_,{key:10,"detail-data":t.detailData,"is-down-load-file":t.isDownLoadFile},null,8,["detail-data","is-down-load-file"])):o("",!0),(l(!0),k(L,null,$(t.detailData.safetyInputModular&&JSON.parse(t.detailData.safetyInputModular),(s,r)=>(l(),k("div",{key:r},[d.value===s.moduleName?(l(),u(T,{key:0,data:s,"module-num":r,"is-down-load-file":t.isDownLoadFile},null,8,["data","module-num","is-down-load-file"])):o("",!0)]))),128))]),_:1})}}});export{ua as default};
|