|
- import I from"./basicInfo-a9e63be2.js";import O from"./fundsInfo-b40bfd53.js";import j from"./investmentInfo-541823a6.js";import N from"./engineeringInfo-7b6186f4.js";import F from"./safeInfo-46b78c1a.js";import S from"./businessInfo-b9baabf4.js";import x from"./yearPayPlanInfo-f46da80b.js";import B from"./filesInfo-f47f5193.js";import C from"./remarkInfo-ec2d850a.js";import _ from"./applications-ab573670.js";import T from"./customModule-67b8bece.js";import V from"./provincialInfo-27af6620.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-18a362db.js";import"./index-bdf4e4be.js";import"./indicatorTemplate-b003afad.js";import"./index-7f1623a1.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};
|