|
- import O from"./basicInfo.f176adfe.js";import N from"./fundsInfo.1b8d8580.js";import F from"./investmentInfo.79a10754.js";import S from"./engineeringInfo.0c00115c.js";import C from"./safeInfo.3286a52b.js";import _ from"./businessInfo.1bcc7297.js";import j from"./yearPayPlanInfo.dc70ad24.js";import B from"./filesInfo.cdae37e6.js";import J from"./remarkInfo.307303e9.js";import V from"./applications.3c85e421.js";import x from"./customModule.28c6f0b7.js";import A from"./provincialInfo.78300962.js";import{d as E,r as L,O as P,L as R,o as T,c as y,e as l,I as d,i as D,h as U,f as p,F as $,J as g,k as n}from"./index.32e76bb0.js";import"./index.0788e65a.js";import"./indicatorTemplate.828abb67.js";import"./index.1291dcda.js";const q=E({name:"projectInfo"}),na=Object.assign(q,{props:{detailData:Object,isDownLoadFile:{type:Boolean,default:!0},dictionaryList:{type:Array,default:()=>[]}},setup(e,{expose:I}){const u=e,i=L("\u57FA\u672C\u4FE1\u606F"),a=L(["\u57FA\u672C\u4FE1\u606F","\u8D44\u91D1\u7533\u62A5\u60C5\u51B5","\u6295\u8D44\u5206\u914D\u60C5\u51B5","\u5E74\u5EA6\u652F\u4ED8\u8BA1\u5212"]),M=P(()=>{const o=[];for(let t=0;t<a.value.length;t++)a.value[t]!=="\u57FA\u672C\u4FE1\u606F"&&a.value[t]!=="\u8D44\u91D1\u7533\u62A5\u60C5\u51B5"&&a.value[t]!=="\u6295\u8D44\u5206\u914D\u60C5\u51B5"&&a.value[t]!=="\u5E74\u5EA6\u652F\u4ED8\u8BA1\u5212"&&a.value[t]!=="\u6838\u5FC3\u4E1A\u52A1"&&a.value[t]!=="\u5B89\u5168\u6295\u5165"&&a.value[t]!=="\u5DE5\u7A0B\u5F62\u8C61\u8FDB\u5EA6"&&a.value[t]!=="\u9644\u4EF6"&&a.value[t]!=="\u5EFA\u8BBE\u65B9\u6848"&&a.value[t]!=="\u5907\u6CE8"&&o.push(a.value[t]);return o}),k=()=>{var o,t,m,f,c,s,r,h,w,b;if(((o=u.detailData)==null?void 0:o.baseProjIsConfidentiality)==="02")a.value=["\u57FA\u672C\u4FE1\u606F"];else{if(((t=u.detailData)==null?void 0:t.declareAmount)>=1e3&&a.value.push("\u91CD\u5927\u9879\u76EE\u7701\u7EA7\u8054\u5BA1\u4FE1\u606F"),(m=u.detailData)!=null&&m.isOpenCoreBusiness&&a.value.push("\u6838\u5FC3\u4E1A\u52A1"),(f=u.detailData)!=null&&f.isOpenSafetyInput&&a.value.push("\u5B89\u5168\u6295\u5165"),(c=u.detailData)!=null&&c.isEngineeringSpeed&&a.value.push("\u5DE5\u7A0B\u5F62\u8C61\u8FDB\u5EA6"),a.value.push("\u9644\u4EF6"),(s=u.detailData)!=null&&s.isRemarks&&a.value.push("\u5907\u6CE8"),(h=(r=u.detailData)==null?void 0:r.projectApplications)!=null&&h.length&&a.value.push("\u5E94\u7528\u4FE1\u606F"),((w=u.detailData)==null?void 0:w.safetyInputModular)&&((b=JSON.parse(u.detailData.safetyInputModular))==null?void 0:b.length))for(let v=0;v<JSON.parse(u.detailData.safetyInputModular).length;v++)a.value.push(JSON.parse(u.detailData.safetyInputModular)[v].moduleName);a.value=[...new Set(a.value)]}};return R(()=>u.detailData,async o=>{o!=null&&o.id&&k()},{deep:!0}),T(async()=>{console.log("customModuletabList",M)}),I({getTabs:k}),(o,t)=>{const m=y("el-tab-pane"),f=y("el-tabs"),c=y("el-card");return l(),d(c,{shadow:"never",class:"tab-card"},{header:D(()=>[U(f,{modelValue:i.value,"onUpdate:modelValue":t[0]||(t[0]=s=>i.value=s)},{default:D(()=>[(l(!0),p($,null,g(a.value,(s,r)=>(l(),d(m,{key:r,label:s,name:s},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])]),default:D(()=>[i.value==="\u57FA\u672C\u4FE1\u606F"?(l(),d(O,{key:0,"detail-data":e.detailData,"is-down-load-file":e.isDownLoadFile,"dictionary-list":e.dictionaryList},null,8,["detail-data","is-down-load-file","dictionary-list"])):n("",!0),i.value==="\u8D44\u91D1\u7533\u62A5\u60C5\u51B5"?(l(),d(N,{key:1,"detail-data":e.detailData},null,8,["detail-data"])):n("",!0),i.value==="\u6295\u8D44\u5206\u914D\u60C5\u51B5"?(l(),d(F,{key:2,"detail-data":e.detailData},null,8,["detail-data"])):n("",!0),i.value==="\u91CD\u5927\u9879\u76EE\u7701\u7EA7\u8054\u5BA1\u4FE1\u606F"?(l(),d(A,{key:3,"detail-data":e.detailData},null,8,["detail-data"])):n("",!0),i.value==="\u5E74\u5EA6\u652F\u4ED8\u8BA1\u5212"?(l(),d(j,{key:4,"detail-data":e.detailData},null,8,["detail-data"])):n("",!0),i.value==="\u6838\u5FC3\u4E1A\u52A1"?(l(),d(_,{key:5,"detail-data":e.detailData},null,8,["detail-data"])):n("",!0),i.value==="\u5B89\u5168\u6295\u5165"?(l(),d(C,{key:6,"detail-data":e.detailData},null,8,["detail-data"])):n("",!0),i.value==="\u5DE5\u7A0B\u5F62\u8C61\u8FDB\u5EA6"?(l(),d(S,{key:7,"detail-data":e.detailData},null,8,["detail-data"])):n("",!0),i.value==="\u9644\u4EF6"?(l(),d(B,{key:8,"detail-data":e.detailData,"is-down-load-file":e.isDownLoadFile},null,8,["detail-data","is-down-load-file"])):n("",!0),i.value==="\u5907\u6CE8"?(l(),d(J,{key:9,"detail-data":e.detailData},null,8,["detail-data"])):n("",!0),i.value==="\u5E94\u7528\u4FE1\u606F"?(l(),d(V,{key:10,"detail-data":e.detailData,"is-down-load-file":e.isDownLoadFile},null,8,["detail-data","is-down-load-file"])):n("",!0),(l(!0),p($,null,g(e.detailData.safetyInputModular&&JSON.parse(e.detailData.safetyInputModular),(s,r)=>(l(),p("div",{key:r},[i.value===s.moduleName?(l(),d(x,{key:0,data:s,"module-num":r,"is-down-load-file":e.isDownLoadFile},null,8,["data","module-num","is-down-load-file"])):n("",!0)]))),128))]),_:1})}}});export{na as default};
|