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
5.1KB

  1. import g from"./basicInfo.012c8d60.js";import I from"./fundsInfo.9393452e.js";import x from"./investmentInfo.c621d7f4.js";import N from"./engineeringInfo.9a6025f2.js";import F from"./safeInfo.a64ff6c1.js";import S from"./businessInfo.01b9f953.js";import j from"./yearPayPlanInfo.16cd0fbb.js";import C from"./filesInfo.3a5c0b21.js";import _ from"./remarkInfo.eace38b3.js";import B from"./applications.eca3c90c.js";import J from"./customModule.de4dad4a.js";import V from"./provincialInfo.d7725741.js";import{d as T,r as b,M as A,J as E,o as G,c as y,e as l,G as d,i as D,h as H,f as p,F as $,H as L,k as n}from"./index.2dada31c.js";import"./index.820387e5.js";import"./indicatorTemplate.2e739183.js";import"./index.101b6644.js";const P=T({name:"projectInfo"}),ua=Object.assign(P,{props:{detailData:Object,isDownLoadFile:{type:Boolean,default:!0},dictionaryList:{type:Array,default:()=>[]}},setup(e,{expose:M}){const u=e,i=b("\u57FA\u672C\u4FE1\u606F"),a=b(["\u57FA\u672C\u4FE1\u606F","\u8D44\u91D1\u7533\u62A5\u60C5\u51B5","\u6295\u8D44\u5206\u914D\u60C5\u51B5","\u5E74\u5EA6\u652F\u4ED8\u8BA1\u5212"]),O=A(()=>{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,f,c,v,s,r,w;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"),(f=u.detailData)!=null&&f.isOpenCoreBusiness&&a.value.push("\u6838\u5FC3\u4E1A\u52A1"),(c=u.detailData)!=null&&c.isOpenSafetyInput&&a.value.push("\u5B89\u5168\u6295\u5165"),(v=u.detailData)!=null&&v.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"),a.value.push("\u5E94\u7528\u4FE1\u606F"),((r=u.detailData)==null?void 0:r.safetyInputModular)&&((w=JSON.parse(u.detailData.safetyInputModular))==null?void 0:w.length))for(let m=0;m<JSON.parse(u.detailData.safetyInputModular).length;m++)a.value.push(JSON.parse(u.detailData.safetyInputModular)[m].moduleName);if(a.value=[...new Set(a.value)],u.detailData.projectType==="04"||u.detailData.projectType==="05"){const m=a.value.indexOf("\u5E74\u5EA6\u652F\u4ED8\u8BA1\u5212");m>-1&&a.value.splice(m,1);const h=a.value.indexOf("\u6295\u8D44\u5206\u914D\u60C5\u51B5");h>-1&&a.value.splice(h,1)}}};return E(()=>u.detailData,async o=>{o!=null&&o.id&&k()},{deep:!0}),G(async()=>{console.log("customModuletabList",O)}),M({getTabs:k}),(o,t)=>{const f=y("el-tab-pane"),c=y("el-tabs"),v=y("el-card");return l(),d(v,{shadow:"never",class:"tab-card"},{header:D(()=>[H(c,{modelValue:i.value,"onUpdate:modelValue":t[0]||(t[0]=s=>i.value=s)},{default:D(()=>[(l(!0),p($,null,L(a.value,(s,r)=>(l(),d(f,{key:r,label:s,name:s},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])]),default:D(()=>[i.value==="\u57FA\u672C\u4FE1\u606F"?(l(),d(g,{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(I,{key:1,"detail-data":e.detailData},null,8,["detail-data"])):n("",!0),i.value==="\u6295\u8D44\u5206\u914D\u60C5\u51B5"?(l(),d(x,{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(V,{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(S,{key:5,"detail-data":e.detailData},null,8,["detail-data"])):n("",!0),i.value==="\u5B89\u5168\u6295\u5165"?(l(),d(F,{key:6,"detail-data":e.detailData},null,8,["detail-data"])):n("",!0),i.value==="\u5DE5\u7A0B\u5F62\u8C61\u8FDB\u5EA6"?(l(),d(N,{key:7,"detail-data":e.detailData},null,8,["detail-data"])):n("",!0),i.value==="\u9644\u4EF6"?(l(),d(C,{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(_,{key:9,"detail-data":e.detailData},null,8,["detail-data"])):n("",!0),i.value==="\u5E94\u7528\u4FE1\u606F"?(l(),d(B,{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,L(e.detailData.safetyInputModular&&JSON.parse(e.detailData.safetyInputModular),(s,r)=>(l(),p("div",{key:r},[i.value===s.moduleName?(l(),d(J,{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{ua as default};