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 line
4.9KB

  1. import O from"./basicInfo.36e7fe07.js";import N from"./fundsInfo.65ac922e.js";import F from"./investmentInfo.f1bbff50.js";import S from"./engineeringInfo.4e066700.js";import C from"./safeInfo.17e9be79.js";import _ from"./businessInfo.57dd31fc.js";import j from"./yearPayPlanInfo.bd37cfcd.js";import B from"./filesInfo.96ed11c2.js";import J from"./remarkInfo.85f5e786.js";import V from"./applications.dd9c1555.js";import x from"./customModule.8c53f766.js";import A from"./provincialInfo.001bf189.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.d340e473.js";import"./index.79d05d9e.js";import"./indicatorTemplate.b913f726.js";import"./index.cf3ded3c.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};