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 lines
5.2KB

  1. import I from"./basicInfo.c3cc92c4.js";import O from"./fundsInfo.1b23f3c1.js";import N from"./investmentInfo.ae555d23.js";import j from"./engineeringInfo.d6676b4e.js";import F from"./safeInfo.b26182cb.js";import S from"./businessInfo.aab73f12.js";import x from"./yearPayPlanInfo.746a44dc.js";import C from"./filesInfo.4899abbe.js";import _ from"./remarkInfo.330fa8df.js";import B from"./applications.039de892.js";import J from"./customModule.0ff8ec4b.js";import T from"./provincialInfo.229be894.js";import{d as V,r as h,M as A,J as E,o as G,c as D,e as l,G as u,i as p,h as H,f as k,F as $,H as L,k as o}from"./index.88314652.js";import"./index.b8af1d9b.js";import"./indicatorTemplate.d39a8306.js";import"./index.52f0c4e2.js";const P=V({name:"projectInfo"}),ua=Object.assign(P,{props:{detailData:Object,isDownLoadFile:{type:Boolean,default:!0},dictionaryList:{type:Array,default:()=>[]}},setup(t,{expose:M}){const i=t,d=h("\u57FA\u672C\u4FE1\u606F"),a=h(["\u57FA\u672C\u4FE1\u606F","\u8D44\u91D1\u7533\u62A5\u60C5\u51B5","\u6295\u8D44\u5206\u914D\u60C5\u51B5","\u5E74\u5EA6\u652F\u4ED8\u8BA1\u5212"]),g=A(()=>{const n=[];for(let e=0;e<a.value.length;e++)a.value[e]!=="\u57FA\u672C\u4FE1\u606F"&&a.value[e]!=="\u8D44\u91D1\u7533\u62A5\u60C5\u51B5"&&a.value[e]!=="\u6295\u8D44\u5206\u914D\u60C5\u51B5"&&a.value[e]!=="\u5E74\u5EA6\u652F\u4ED8\u8BA1\u5212"&&a.value[e]!=="\u6838\u5FC3\u4E1A\u52A1"&&a.value[e]!=="\u5B89\u5168\u6295\u5165"&&a.value[e]!=="\u5DE5\u7A0B\u5F62\u8C61\u8FDB\u5EA6"&&a.value[e]!=="\u9644\u4EF6"&&a.value[e]!=="\u5EFA\u8BBE\u65B9\u6848"&&a.value[e]!=="\u5907\u6CE8"&&n.push(a.value[e]);return n}),w=()=>{var n,e,f,c,v,s,r,b;if(((n=i.detailData)==null?void 0:n.baseProjIsConfidentiality)==="02")a.value=["\u57FA\u672C\u4FE1\u606F"];else{if(((e=i.detailData)==null?void 0:e.declareAmount)>=1e3&&a.value.push("\u91CD\u5927\u9879\u76EE\u7701\u7EA7\u8054\u5BA1\u4FE1\u606F"),(f=i.detailData)!=null&&f.isOpenCoreBusiness&&a.value.push("\u6838\u5FC3\u4E1A\u52A1"),(c=i.detailData)!=null&&c.isOpenSafetyInput&&a.value.push("\u5B89\u5168\u6295\u5165"),(v=i.detailData)!=null&&v.isEngineeringSpeed&&a.value.push("\u5DE5\u7A0B\u5F62\u8C61\u8FDB\u5EA6"),a.value.push("\u9644\u4EF6"),(s=i.detailData)!=null&&s.isRemarks&&a.value.push("\u5907\u6CE8"),a.value.push("\u5E94\u7528\u4FE1\u606F"),((r=i.detailData)==null?void 0:r.safetyInputModular)&&((b=JSON.parse(i.detailData.safetyInputModular))==null?void 0:b.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("\u5E74\u5EA6\u652F\u4ED8\u8BA1\u5212"),m("\u6295\u8D44\u5206\u914D\u60C5\u51B5"),m("\u5E94\u7528\u4FE1\u606F")),i.detailData.projectType==="03"&&m("\u5E94\u7528\u4FE1\u606F")}};function m(n){const e=a.value.indexOf(n);e>-1&&a.value.splice(e,1)}return E(()=>i.detailData,async n=>{n!=null&&n.id&&w()},{deep:!0}),G(async()=>{console.log("customModuletabList",g)}),M({getTabs:w}),(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($,null,L(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==="\u57FA\u672C\u4FE1\u606F"?(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==="\u8D44\u91D1\u7533\u62A5\u60C5\u51B5"?(l(),u(O,{key:1,"detail-data":t.detailData},null,8,["detail-data"])):o("",!0),d.value==="\u6295\u8D44\u5206\u914D\u60C5\u51B5"?(l(),u(N,{key:2,"detail-data":t.detailData},null,8,["detail-data"])):o("",!0),d.value==="\u91CD\u5927\u9879\u76EE\u7701\u7EA7\u8054\u5BA1\u4FE1\u606F"?(l(),u(T,{key:3,"detail-data":t.detailData},null,8,["detail-data"])):o("",!0),d.value==="\u5E74\u5EA6\u652F\u4ED8\u8BA1\u5212"?(l(),u(x,{key:4,"detail-data":t.detailData},null,8,["detail-data"])):o("",!0),d.value==="\u6838\u5FC3\u4E1A\u52A1"?(l(),u(S,{key:5,"detail-data":t.detailData},null,8,["detail-data"])):o("",!0),d.value==="\u5B89\u5168\u6295\u5165"?(l(),u(F,{key:6,"detail-data":t.detailData},null,8,["detail-data"])):o("",!0),d.value==="\u5DE5\u7A0B\u5F62\u8C61\u8FDB\u5EA6"?(l(),u(j,{key:7,"detail-data":t.detailData},null,8,["detail-data"])):o("",!0),d.value==="\u9644\u4EF6"?(l(),u(C,{key:8,"detail-data":t.detailData,"is-down-load-file":t.isDownLoadFile},null,8,["detail-data","is-down-load-file"])):o("",!0),d.value==="\u5907\u6CE8"?(l(),u(_,{key:9,"detail-data":t.detailData},null,8,["detail-data"])):o("",!0),d.value==="\u5E94\u7528\u4FE1\u606F"?(l(),u(B,{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($,null,L(t.detailData.safetyInputModular&&JSON.parse(t.detailData.safetyInputModular),(s,r)=>(l(),k("div",{key:r},[d.value===s.moduleName?(l(),u(J,{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};