您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

2 行
28KB

  1. import{g as Ia}from"./formConfiguration.e878f151.js";import{_ as xa,d as La,x as Ea,y as $a,C as qa,B as Ja,r as g,b as Ha,o as Va,L as ba,c as B,e as P,f as Ce,g as i,u as U,h as m,i as l,t as Q,j as T,k,G as F,F as we,H as Ga,a0 as Ya,a1 as Ua,q as Wa}from"./index.2dada31c.js";import za from"./basicInfo.440c9768.js";import Ka from"./plannedUseResources.c61ca3d7.js";import Qa from"./fundsInfo.5fe259ba.js";import Xa from"./fundsAllocation.2b5cd0e6.js";import Za from"./annualPaymentPlan.7dbe45ee.js";import et from"./coreBusiness.bba20ad1.js";import at from"./safetyInput.28edcf90.js";import tt from"./projectImageProgress.2bae8482.js";import st from"./accessory.219030ee.js";import ot from"./projectRemark.e4bae186.js";import rt from"./newModuleForm.f93f4c30.js";import lt from"./applications.c5caa62f.js";import it from"./hiddenAppForm.a638930b.js";import nt from"./flowRecordDialog.faf97279.js";import{j as ut,k as mt,d as ft,s as dt}from"./index.101b6644.js";import{p as ja}from"./projectStore.0dd65f8f.js";import{a as pt}from"./annualPlanStore.5d9e4993.js";import{r as Pa,g as O}from"./uploadAction.a9f1fcc6.js";import{d as ct}from"./projectCollectionEnter.f85e3382.js";import vt from"./reviewCheck.f38d2862.js";import{g as Ca}from"./getIsShowReviewCheck.628a247c.js";import"./index.0aeece77.js";import"./unitManage.dfd535d3.js";import"./userDialog.929cb59d.js";import"./relatedProjectDialog.0f3c42cc.js";import"./renewalProjectCapitalDeclare.bc27de1d.js";import"./projectContentDialog.9984217a.js";import"./indicatorTemplate.2e739183.js";import"./validate.e0f99e8b.js";import"./appBasicInfo.389b7618.js";import"./appSafeInfo.89762f0e.js";import"./appResourceInfo.2f0e5850.js";import"./applicationInfo.dfeed1c8.js";import"./flowRecord.e2ecca50.js";import"./index.820387e5.js";import"./index.2f8f59eb.js";import"./sjFlowRecord.2f574027.js";const Dt={class:"declarePage footerPage"},yt={key:0,class:"errorTip mb-16"},gt={class:"card-header"},_t={class:"flex justify-between items-center"},It={class:"flex-1"},bt={class:"font-bold"},jt={class:"mt-8 search"},Pt={class:"p-24"},Ct={class:"p-24"},kt={class:"p-24"},ht={class:"p-24"},Ft={class:"p-24"},wt={class:"p-24"},At={class:"p-24"},Ot={class:"p-24"},St={class:"p-24"},Nt={class:"p-24"},Rt={class:"collapse-title"},Mt={class:"p-24"},Bt={class:"p-24"},Tt={class:"p-24"},xt={class:"footer"},Lt=La({name:"declarePage"}),Et=Object.assign(Lt,{setup($t){const{proxy:ge}=Wa(),d=Ea(),_e=$a(),x=qa(Ja.userStore).userInfo||{},n=g({}),ke=g(["1","2","3","4","5","6","7","8","9","10"]),a=g(),Ie=g(),v=g(),w=g(),Ae=g(),p=g(),W=g(),Z=g(),be=g(),D=g(),he=g(),ee=g({}),C=g(),Oe=g(),Fe=g(),ka=()=>{var e,u,_;const s=[];if(((e=a.value.formData)==null?void 0:e.baseProjIsConfidentiality)==="02")s.push(new Promise((t,r)=>{a.value.validForm(o=>{o&&t()})}));else{s.push(new Promise((t,r)=>{a.value.validForm(o=>{o&&(v.value.formData.declareAmount>=1e3&&a.value.formData.baseProvManDeprtType==="2"?(a.value.formData.baseProvManDeprtType="",r("\u6839\u636E\u300A\u6D59\u6C5F\u7701\u7535\u5B50\u653F\u52A1\u91CD\u5927\u5E94\u7528\u9879\u76EE\u8054\u5BA1\u300B\u8981\u6C42\uFF1A\u5927\u4E8E1000\u4E07\u5143\u7684\u91CD\u5927\u9879\u76EE\u5C06\u7531\u7701\u7EA7\u6570\u6539\u7275\u5934\u90E8\u95E8\u53CA\u4E1A\u52A1\u4E3B\u7BA1\u5355\u4F4D\u8FDB\u884C\u8054\u5BA1\uFF0C\u8BF7\u5C06\u4E0A\u7EA7\u4E3B\u7BA1\u5355\u4F4D\u4FEE\u6539\u4E3A\u60A8\u5BF9\u5E94\u6761\u7EBF\u7684\u7701\u7EA7\u4E3B\u7BA1\u5355\u4F4D\u3002")):t())})})),s.push(new Promise((t,r)=>{v.value.validForm(o=>{o&&t()})})),n.value.isCoreBusiness&&s.push(new Promise((t,r)=>{W.value.validForm(o=>{o&&t()})})),n.value.isSafetyInput&&s.push(new Promise((t,r)=>{Z.value.validForm(o=>{o&&t()})})),n.value.isProjectImageProgress&&s.push(new Promise((t,r)=>{be.value.validForm(o=>{o&&t()})})),Ca()&&n.value.isReviewChecklist&&(d.name==="declarePlan"||[10012,10013,10016].includes((u=f.value)==null?void 0:u.status))&&s.push(new Promise((t,r)=>{Fe.value.validForm(o=>{o&&t()})})),s.push(new Promise((t,r)=>{D.value.validForm(o=>{o&&t()})}));for(const t in ee.value)s.push(new Promise((r,o)=>{ee.value[t].validForm(b=>{b&&r()})}));C.value&&s.push(new Promise((t,r)=>{C.value.validForm(o=>{o&&t()})})),s.push(new Promise((t,r)=>{v.value.validForm(o=>{if(o){const b=Se([v.value.formData.declareHaveAmount,v.value.formData.declareGovOwnFinanceAmount,v.value.formData.declareGovSuperiorFinanceAmount,v.value.formData.declareBankLendingAmount,v.value.formData.declareOtherAmount]);v.value.formData.declareAmount>0&&v.value.formData.declareAmount===b?t():r("\u8D44\u91D1\u7533\u62A5\u60C5\u51B5\uFF1A5\u7C7B\u8D44\u91D1\u603B\u548C\u5FC5\u987B\u7B49\u4E8E\u7533\u62A5\u91D1\u989D")}})})),(a==null?void 0:a.value.formData.projectType)!=="04"&&(a==null?void 0:a.value.formData.projectType)!=="05"&&(s.push(new Promise((t,r)=>{w.value.validForm(o=>{o&&t()})})),s.push(new Promise((t,r)=>{w.value.validForm(o=>{if(o){const b=Se([w.value.formData.softwareDevelopmentAmount,w.value.formData.cloudHardwarePurchaseAmount,w.value.formData.thirdPartyAmount]);v.value.formData.declareAmount>0&&v.value.formData.declareAmount===b?t():r("\u8D44\u91D1\u5206\u914D\u60C5\u51B5\uFF1A3\u7C7B\u8D44\u91D1\u603B\u548C\u5FC5\u987B\u7B49\u4E8E\u7533\u62A5\u91D1\u989D")}})})),s.push(new Promise((t,r)=>{p.value.validForm(o=>{o&&t()})}))),((_=C.value)==null?void 0:_.formData.includeApplication)===1&&s.push(new Promise((t,r)=>{Oe.value.validAllAppForm(o=>{o?t():r("\u8BF7\u5B8C\u5584\u5DF2\u6DFB\u52A0\u7684\u5E94\u7528\u4FE1\u606F")})})),Ie.value&&s.push(new Promise((t,r)=>{Ie.value.validForm(o=>{o&&t()})}))}Promise.all([...s]).then(async()=>{var t,r;((t=a.value.formData)==null?void 0:t.baseProjIsConfidentiality)==="02"?ae(1):n.value.isSafetyInput&&((r=Z.value)==null?void 0:r.formData.safetyInput.reduce((I,A)=>I+A.safetyInputAmount,0))/v.value.formData.declareAmount*100<5?ge.$messageBox.confirm("\u5F53\u524D\u5B89\u5168\u6295\u5165\u5360\u6BD4\u4F4E\u4E8E5%\uFF0C\u786E\u8BA4\u8981\u63D0\u4EA4\u5417?","\u786E\u8BA4\u8981\u63D0\u4EA4\u5417\uFF1F",{type:"warning"}).then(async()=>{ae(1)}):ae(1)}).catch(t=>{t&&ge.$message.warning(t)})},Se=s=>{const e=[];s.forEach(t=>{try{e.push(t.toString().split(".")[1].length)}catch{e.push(0)}});const u=Math.pow(10,Math.max(...e));let _=0;return s.forEach(t=>{_+=t*u}),_/u},ha=async()=>{ae(2)},Fa=s=>{var e,u,_,t,r,o,b;((e=C.value)==null?void 0:e.formData)&&((u=C.value)==null?void 0:u.formData.includeApplication)===1&&((r=(t=(_=C.value)==null?void 0:_.formData)==null?void 0:t.applicationList)==null?void 0:r.length)&&(C.value.formData.applicationList=(b=(o=C.value.formData)==null?void 0:o.applicationList)==null?void 0:b.map(I=>({...I,applicationName:s?I.applicationName:void 0,relatedExistsApplication:s?void 0:I.relatedExistsApplication,relatedExistsApplicationCode:s?void 0:I.relatedExistsApplication})))},je=g(!1),Pe=g(!1),ae=async s=>{var u,_,t,r,o,b,I,A,y,X,z,L,E,$,q,J,H,S,V,G,h,N,oe,re,le,ie,ne,ue,me,fe,de,pe,ce,ve,De,j,R,M,ye,Me,Be,Te,xe,Le,Ee,$e,qe,Je,He,Ve,Ge,Ye,Ue,We,ze,Ke,Qe,Xe,Ze,ea,aa,ta,sa,oa,ra,la,ia,na,ua,ma,fa,da,pa,ca;var e={};if(((u=a.value.formData)==null?void 0:u.baseProjIsConfidentiality)==="02")e={isRemarks:n.value.isRemarks,isOpenCoreBusiness:n.value.isCoreBusiness,isOpenSafetyInput:n.value.isSafetyInput,isEngineeringSpeed:n.value.isProjectImageProgress,isReviewChecklist:n.value.isReviewChecklist,id:d.query.id*1||void 0,baseProjIsConfidentiality:(_=a.value.formData)==null?void 0:_.baseProjIsConfidentiality,projectName:(t=a.value.formData)==null?void 0:t.projectName,projectType:(r=a.value.formData)==null?void 0:r.projectType,baseConstructionType:((b=(o=a.value.formData)==null?void 0:o.baseConstructionType)==null?void 0:b.join("\uFF1B"))||"",responsibleMan:(I=a.value.formData)==null?void 0:I.responsibleMan,responsibleManMobile:(A=a.value.formData)==null?void 0:A.responsibleManMobile,contactName:(y=a.value.formData)==null?void 0:y.contactName,contactPhone:(X=a.value.formData)==null?void 0:X.contactPhone,buildOrgName:(z=a.value.formData)==null?void 0:z.buildOrgName,orgCreditCode:(L=a.value.formData)==null?void 0:L.orgCreditCode,baseProvManDeprtType:a.value.formData.baseProvManDeprtType*1||void 0,higherSuperOrg:(E=a.value.formData)==null?void 0:E.higherSuperOrg,higherSuperOrgCode:($=a.value.formData)==null?void 0:$.higherSuperOrgCode,superOrg:(q=a.value.formData)==null?void 0:q.superOrg,superOrgCode:(J=a.value.formData)==null?void 0:J.superOrgCode,superOrgCreditCode:(H=a.value.formData)==null?void 0:H.superOrgCreditCode,projectYear:((S=a.value.formData)==null?void 0:S.projectYear)*1,declareAmount:(V=a.value.formData)==null?void 0:V.declareAmount,annualPlanAmount:(G=a.value.formData)==null?void 0:G.declareAmount};else if(e={isRemarks:n.value.isRemarks,isOpenCoreBusiness:n.value.isCoreBusiness,isOpenSafetyInput:n.value.isSafetyInput,isEngineeringSpeed:n.value.isProjectImageProgress,isReviewChecklist:n.value.isReviewChecklist,id:d.query.id*1||void 0,...a.value.formData,...v.value.formData,...(h=Ie.value)==null?void 0:h.formData,baseConstructionType:((oe=(N=a.value.formData)==null?void 0:N.baseConstructionType)==null?void 0:oe.join("\uFF1B"))||"",baseProvManDeprtType:a.value.formData.baseProvManDeprtType*1||void 0,projectYear:((re=a.value.formData)==null?void 0:re.projectYear)*1,beginTime:((ie=(le=a.value.formData)==null?void 0:le.buildDuration)==null?void 0:ie.length)&&a.value.formData.buildDuration[0],endTime:((ue=(ne=a.value.formData)==null?void 0:ne.buildDuration)==null?void 0:ue.length)&&a.value.formData.buildDuration[1],buildDuration:void 0,lowestLevel:!(((fe=(me=a.value.formData)==null?void 0:me.baseConstructionType)==null?void 0:fe.includes("03"))&&!((pe=(de=a.value.formData)==null?void 0:de.baseConstructionType)!=null&&pe.includes("01")))&&((ce=a.value.formData)==null?void 0:ce.lowestLevel)||"",baseProjBasis:((j=(De=(ve=a.value.formData)==null?void 0:ve.baseProjBasis)==null?void 0:De.map(c=>c.value))==null?void 0:j.join("\uFF1B"))||void 0,baseProjBasisFile:((ye=(M=(R=a.value.formData)==null?void 0:R.baseProjBasis)==null?void 0:M.map(c=>c.fileList&&JSON.stringify(O(c.fileList))))==null?void 0:ye.join("\uFF1B"))||"",baseHistorProjId:((Te=(Be=(Me=a.value.formData)==null?void 0:Me.baseHistorProjs)==null?void 0:Be.map(c=>c.baseProjId))==null?void 0:Te.join("\uFF1B"))||"",baseHistorProjName:((Ee=(Le=(xe=a.value.formData)==null?void 0:xe.baseHistorProjs)==null?void 0:Le.map(c=>c.baseProjName))==null?void 0:Ee.join("\uFF1B"))||"",baseHistorProjYear:((Je=(qe=($e=a.value.formData)==null?void 0:$e.baseHistorProjs)==null?void 0:qe.map(c=>c.baseProjSetYear))==null?void 0:Je.join("\uFF1B"))||"",baseHistorProjs:void 0,beseExpectedResults:((Ve=(He=a.value.formData)==null?void 0:He.beseExpectedResults)==null?void 0:Ve.length)&&JSON.stringify(a.value.formData.beseExpectedResults)||"",baseBasisAmountOri:((Ge=v.value)==null?void 0:Ge.formData.declareOtherAmount)>0&&((Ye=v.value.formData)==null?void 0:Ye.baseBasisAmountOri)||"",consultancy:((Ue=v.value)==null?void 0:Ue.formData.declareAmount)>400&&((We=v.value.formData)==null?void 0:We.consultancy)||"",operationManageUnit:((ze=v.value)==null?void 0:ze.formData.declareAmount)>=1e3&&Ae.value.formData.operationManageUnit||void 0,...(Ke=C.value)==null?void 0:Ke.formData,...D.value.formData,constructionPlanFile:((Qe=D.value.formData)==null?void 0:Qe.constructionPlanFile)&&JSON.stringify(O(D.value.formData.constructionPlanFile)),preliminaryPlanFile:((Xe=D.value.formData)==null?void 0:Xe.preliminaryPlanFile)&&JSON.stringify(O(D.value.formData.preliminaryPlanFile)),mainResponsibilitiesApplicantFile:((Ze=D.value.formData)==null?void 0:Ze.mainResponsibilitiesApplicantFile)&&JSON.stringify(O(D.value.formData.mainResponsibilitiesApplicantFile)),supportingMaterialsFile:((ea=D.value.formData)==null?void 0:ea.supportingMaterialsFile)&&JSON.stringify(O(D.value.formData.supportingMaterialsFile)),calculationTotalInvestmentFile:((aa=D.value.formData)==null?void 0:aa.calculationTotalInvestmentFile)&&JSON.stringify(O(D.value.formData.calculationTotalInvestmentFile)),projectApplicationForm:((ta=D.value.formData)==null?void 0:ta.projectApplicationForm)&&JSON.stringify(O(D.value.formData.projectApplicationForm))||"",baseResearchReportFile:((sa=D.value.formData)==null?void 0:sa.baseResearchReportFile)&&JSON.stringify(O(D.value.formData.baseResearchReportFile))||"",operationPlan:((oa=D.value.formData)==null?void 0:oa.operationPlan)&&JSON.stringify(O(D.value.formData.operationPlan))||"",baseProjOtherFile:((ra=D.value.formData)==null?void 0:ra.baseProjOtherFile)&&JSON.stringify(O(D.value.formData.baseProjOtherFile)),mainAccusationDoc:((la=v.value)==null?void 0:la.formData.declareAmount)>=1e3&&((ia=D.value.formData)==null?void 0:ia.mainAccusationDoc)&&JSON.stringify(O(D.value.formData.mainAccusationDoc))||"",reviewChecklist:((ua=(na=Fe.value)==null?void 0:na.formData)==null?void 0:ua.reviewChecklist)||void 0},a.value.formData.projectType!=="04"&&a.value.formData.projectType!=="05"&&(e=Object.assign(e,{...w==null?void 0:w.value.formData,...p==null?void 0:p.value.formData})),n.value.isCoreBusiness&&(e=Object.assign(e,{...W.value.formData,coreBusiness:W.value.formData.coreBusiness&&JSON.stringify(W.value.formData.coreBusiness)})),n.value.isSafetyInput&&(e=Object.assign(e,{safetyInputDescribe:JSON.stringify(Z.value.formData.safetyInput)})),n.value.isProjectImageProgress&&(e=Object.assign(e,{...be.value.formData})),n.value.isRemark&&(e=Object.assign(e,{...he.value.formData})),((fa=(ma=C.value)==null?void 0:ma.formData)==null?void 0:fa.includeApplication)&&((pa=(da=C.value)==null?void 0:da.formData.applicationList)==null?void 0:pa.length)&&(e.applicationList=C.value.formData.applicationList.map(c=>{var K,Y,va,Da,ya;return{...c,isFirst:(K=a.value.formData)!=null&&K.isFirst?1:0,relatedExistsApplication:(!((Y=a.value.formData)!=null&&Y.isFirst)&&x.value.regionCode==="331123"||x.regionCode!=="331123")&&((va=c.relatedExistsApplication)==null?void 0:va.applicationName)||void 0,relatedExistsApplicationCode:(!((Da=a.value.formData)!=null&&Da.isFirst)&&x.value.regionCode==="331123"||x.regionCode!=="331123")&&c.relatedExistsApplicationCode||void 0,applicationName:((ya=a.value.formData)==null?void 0:ya.isFirst)&&x.regionCode==="331123"&&c.applicationName||void 0,coreBusinessList:c.coreBusinessList.map(Ta=>{var ga,_a;return{...Ta,projectId:((ga=f.value)==null?void 0:ga.projectId)||void 0,projectCode:((_a=f.value)==null?void 0:_a.projectCode)||void 0}})}})),(ca=n.value.safetyInputModular)!=null&&ca.length){e.safetyInputModular=[];for(const K in ee.value)e.safetyInputModular.push(ee.value[K].formData);const c=e.safetyInputModular.map(K=>({...K,formList:K.formList.map(Y=>({...Y,value:Y.value?Y.props.type==="\u6587\u4EF6\u4E0A\u4F20"?O(Y.value):Y.value:void 0}))}));e.safetyInputModular=JSON.stringify(c)}else e.safetyInputModular=void 0;if(s===1){Pe.value=!0;try{const c={projectInfo:{...e,id:d.query.isDraft?void 0:e.id,draftId:d.query.isDraft?d.query.id*1:void 0}};d.name==="declarePage"?await mt(!d.query.isDraft&&d.query.id?2:1,c):d.name==="planEdit"?await pt(c.projectInfo):d.name==="handleAfterGiveBack"?await Ya({...c,projectId:d.query.id,instanceId:d.query.instanceId,taskId:d.query.taskId}):d.name==="declarePlan"&&await ft(c),ge.$message.success("\u63D0\u4EA4\u6210\u529F"),Pe.value=!1,d.name==="projectDeclare"?_e.push({name:"projectDeclare"}):_e.go(-1)}catch{Pe.value=!1}}else if(s===2){je.value=!0;try{await dt({projectInfo:{...e},user:x.value}),ge.$message.success("\u4FDD\u5B58\u6210\u529F"),je.value=!1,_e.go(-1)}catch{je.value=!1}}},f=g({}),Ne=()=>{var s,e;a.value.setFormData(f.value),((s=f.value)==null?void 0:s.baseProjIsConfidentiality)!=="02"&&(v.value.setFormData(f.value),w==null||w.value.setFormData(f.value),p==null||p.value.setFormData(f.value),n.value.isCoreBusiness&&W.value.setFormData(f.value),n.value.isSafetyInput&&Z.value.setFormData(f.value),n.value.isProjectImageProgress&&be.value.setFormData(f.value),D.value.setFormData(f.value),n.value.isRemark&&he.value.setFormData(f.value),(e=C.value)==null||e.setFormData(f.value),setTimeout(()=>{var u;(u=Ae.value)==null||u.setFormData(f.value)}))},te=g({processProgressVo:{progressInfo:[]}}),wa=g(),Aa=async()=>{var e,u;const s=await Ua({instanceId:d.query.instanceId,projectId:d.query.id,nodeId:d.query.nodeId});te.value={...s.data,processProgressVo:{...s.data.processProgressVo,progressInfo:Sa(s.data.processProgressVo.progressInfo)}},wa.value=((u=(e=te.value.processProgressVo.progressInfo.slice(-1)[0])==null?void 0:e.children)==null?void 0:u.slice(-1)[0])||te.value.processProgressVo.progressInfo.slice(-1)[0]},se=Ha({visible:!1,flowData:void 0}),Oa=s=>{se.visible=!0,se.flowData=te.value.processProgressVo.progressInfo},Sa=s=>(s.forEach(e=>{if(e.children){const u=[],_=[];e.children.forEach(t=>{u.includes(t.nodeId)?(_.find(r=>r.nodeId===t.nodeId).list.push(t),_.find(r=>r.nodeId===t.nodeId).userIds.push(t.userId)):(u.push(t.nodeId),_.push({nodeId:t.nodeId,approvalMode:t.approvalMode,name:t.name,taskId:t.taskId,nodeType:t.nodeType,list:[{...t}],userIds:[t.userId]}))}),e.children=_}else e.userIds=[e.userId]}),s),Na=()=>{se.visible=!1},Re=g([]),Ra=g(),Ma=s=>{Ra.value=s};Va(async()=>{var t,r,o,b;if(Re.value=(await ct()).data,d.query.id){var s={},e={},u=[],_=!1;(t=d.query)!=null&&t.isDraft?s=await ut({id:d.query.id}):(s=await ja(d.query.id),e=await Ia({regionCode:x.value.regionCode}),(d.name==="declarePlan"||[10012,10013,10016].includes((r=f.value)==null?void 0:r.status))&&(_=s.data.reviewChecklist&&((o=JSON.parse(s.data.reviewChecklist))==null?void 0:o.length)?!0:e.data.isReviewChecklist,u=e.data.reviewChecklist&&JSON.parse(e.data.reviewChecklist)||[])),f.value={...s.data,reviewChecklist:s.data.reviewChecklist?JSON.parse(s.data.reviewChecklist):void 0};const I=s.data.safetyInputModular&&JSON.parse(s.data.safetyInputModular).map(A=>({...A,formList:A.formList.map(y=>({...y,value:y.value?y.props.type==="\u6587\u4EF6\u4E0A\u4F20"?Pa(y.value):y.value:void 0}))}));n.value={isCoreBusiness:s.data.isOpenCoreBusiness,isProjectImageProgress:s.data.isEngineeringSpeed,isRemark:s.data.isRemark,isSafetyInput:s.data.isOpenSafetyInput,safetyInputModular:I||[],isReviewChecklist:_,reviewChecklist:u},ba(()=>{Ne()}),d.name==="handleAfterGiveBack"&&Aa()}else{const I=await Ia({regionCode:x.value.regionCode});n.value={isCoreBusiness:I.data.isCoreBusiness,isProjectImageProgress:I.data.isProjectImageProgress,isRemark:I.data.isRemark,isSafetyInput:I.data.isSafetyInput,safetyInputModular:I.data.safetyInputModular||[]}}if((b=n.value.safetyInputModular)!=null&&b.length){let I=11;n.value.safetyInputModular.forEach(A=>{ke.value.push(I+++"")})}});async function Ba(s){var L,E,$,q,J,H,S,V,G;const e=s.baseProjId,u=await ja(e),_=a.value.formData.projectType,t=a.value.formData.projectName,r=a.value.formData.buildOrgName,o=a.value.formData.orgCreditCode,b=(($=(E=(L=a.value.formData)==null?void 0:L.baseHistorProjs)==null?void 0:E.map(h=>h.baseProjId))==null?void 0:$.join("\uFF1B"))||"",I=((H=(J=(q=a.value.formData)==null?void 0:q.baseHistorProjs)==null?void 0:J.map(h=>h.baseProjName))==null?void 0:H.join("\uFF1B"))||"",A=((G=(V=(S=a.value.formData)==null?void 0:S.baseHistorProjs)==null?void 0:V.map(h=>h.baseProjSetYear))==null?void 0:G.join("\uFF1B"))||"",y=a.value.formData.projectYear,X={annualPlanAmount:p==null?void 0:p.value.formData.annualPlanAmount,annualPlanHaveAmount:p==null?void 0:p.value.formData.annualPlanHaveAmount,annualPlanGovOwnFinanceAmount:p==null?void 0:p.value.formData.annualPlanGovOwnFinanceAmount,annualPlanGovSuperiorFinanceAmount:p==null?void 0:p.value.formData.annualPlanGovSuperiorFinanceAmount,annualPlanBankLendingAmount:p==null?void 0:p.value.formData.annualPlanBankLendingAmount,annualPlanOtherAmount:p==null?void 0:p.value.formData.annualPlanOtherAmount};f.value={...u.data,projectType:_,baseHistorProjId:b,baseHistorProjName:I,baseHistorProjYear:A,projectYear:y,projectName:t,buildOrgName:r,orgCreditCode:o,...X,status:void 0};const z=u.data.safetyInputModular&&JSON.parse(u.data.safetyInputModular).map(h=>({...h,formList:h.formList.map(N=>({...N,value:N.value?N.props.type==="\u6587\u4EF6\u4E0A\u4F20"?Pa(N.value):N.value:void 0}))}));n.value={isCoreBusiness:u.data.isOpenCoreBusiness,isProjectImageProgress:u.data.isEngineeringSpeed,isRemark:u.data.isRemark,isSafetyInput:u.data.isOpenSafetyInput,safetyInputModular:z||[]},ba(()=>{Ne()})}return(s,e)=>{var z,L,E,$,q,J,H;const u=B("Warning"),_=B("el-icon"),t=B("el-button"),r=B("el-form-item"),o=B("el-col"),b=B("el-row"),I=B("el-form"),A=B("el-card"),y=B("el-collapse-item"),X=B("el-collapse");return P(),Ce(we,null,[i("div",Dt,[U(d).name==="handleAfterGiveBack"?(P(),Ce("div",yt,[m(_,{class:"icon"},{default:l(()=>[m(u)]),_:1}),i("div",null,[e[3]||(e[3]=i("p",{class:"title"},"\u6D41\u7A0B\u88AB\u9000\u56DE",-1)),i("p",null,[i("span",null,Q((z=f.value)==null?void 0:z.projectName)+"\u7684"+Q((E=(L=te.value)==null?void 0:L.processProgressVo)==null?void 0:E.processDefName)+"\u88AB\u9000\u56DE\uFF0C\u8BF7\u6839\u636E\u5BA1\u6838\u8BB0\u5F55\u8C03\u6574\u9879\u76EE\u4FE1\u606F",1),m(t,{type:"primary",plain:"",size:"small",class:"ml-16",onClick:Oa},{default:l(()=>e[2]||(e[2]=[T("\u67E5\u770B\u5BA1\u6838\u8BB0\u5F55 ")])),_:1})])])])):k("",!0),U(d).name==="declarePlan"?(P(),F(A,{key:1,shadow:"never",class:"mb-16"},{default:l(()=>[i("div",gt,[i("div",_t,[i("div",It,[i("p",bt,Q(f.value.projectName),1),i("div",jt,[m(I,{"label-suffix":":"},{default:l(()=>[m(b,{gutter:24},{default:l(()=>[m(o,{span:6},{default:l(()=>[m(r,{label:"\u7533\u62A5\u5355\u4F4D"},{default:l(()=>[T(Q(f.value.buildOrgName||"-"),1)]),_:1})]),_:1}),m(o,{span:6},{default:l(()=>[m(r,{label:"\u4E3B\u7BA1\u5355\u4F4D"},{default:l(()=>[T(Q(f.value.superOrg||"-"),1)]),_:1})]),_:1}),m(o,{span:6},{default:l(()=>[m(r,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:l(()=>[T(Q(f.value.createOn||"-"),1)]),_:1})]),_:1})]),_:1})]),_:1})])])])])]),_:1})):k("",!0),m(b,null,{default:l(()=>[m(o,{class:"leftCol",span:24},{default:l(()=>[m(X,{modelValue:ke.value,"onUpdate:modelValue":e[0]||(e[0]=S=>ke.value=S)},{default:l(()=>{var S,V,G,h,N,oe,re,le,ie,ne,ue,me,fe,de,pe,ce,ve,De;return[m(y,{name:"1",class:"mb-16"},{title:l(()=>e[4]||(e[4]=[i("div",{class:"collapse-title"},"\u57FA\u672C\u4FE1\u606F",-1)])),default:l(()=>{var j;return[i("div",Pt,[m(za,{ref_key:"basicInfoRef",ref:a,"detail-data":f.value,"dictionary-list":Re.value,"declare-amount":(j=v.value)==null?void 0:j.formData.declareAmount,onReuseItem:Ba,onChangeIsFirst:Fa,onGetBasicInfoData:Ma},null,8,["detail-data","dictionary-list","declare-amount"])])]}),_:1}),((V=(S=a.value)==null?void 0:S.formData)==null?void 0:V.baseProjIsConfidentiality)==="01"?(P(),Ce(we,{key:0},[((h=(G=a.value)==null?void 0:G.formData)==null?void 0:h.baseProjIsConfidentiality)==="01"?(P(),F(y,{key:0,name:"2",class:"mb-16"},{title:l(()=>e[5]||(e[5]=[i("div",{class:"collapse-title"},[i("span",null,"\u8D44\u91D1\u7533\u62A5\u60C5\u51B5\uFF08\u5355\u4F4D\uFF1A\u4E07\u5143\uFF09"),i("span",{class:"text-info"},"\u7533\u62A5\u91D1\u989D = \u81EA\u6709\u8D44\u91D1 + \u653F\u5E9C\u6295\u8D44-\u672C\u7EA7\u8D22\u653F\u8D44\u91D1 + \u653F\u5E9C\u6295\u8D44-\u4E0A\u7EA7\u8865\u52A9\u8D44\u91D1 + \u94F6\u884C\u8D37\u6B3E + \u5176\u4ED6\u8D44\u91D1")],-1)])),default:l(()=>[i("div",Ct,[m(Qa,{ref_key:"fundsInfoRef",ref:v,"detail-data":f.value},null,8,["detail-data"])])]),_:1})):k("",!0),((oe=(N=a.value)==null?void 0:N.formData)==null?void 0:oe.baseProjIsConfidentiality)==="01"&&((le=(re=a.value)==null?void 0:re.formData)==null?void 0:le.projectType)!=="04"&&((ne=(ie=a.value)==null?void 0:ie.formData)==null?void 0:ne.projectType)!=="05"?(P(),F(y,{key:1,name:"3",class:"mb-16"},{title:l(()=>e[6]||(e[6]=[i("div",{class:"collapse-title"},[T(" \u8D44\u91D1\u5206\u914D\u60C5\u51B5\uFF08\u5355\u4F4D\uFF1A\u4E07\u5143\uFF09 "),i("span",{class:"text-info"},"\u8F6F\u4EF6\u5F00\u53D1 + \u4E91\u8D44\u6E90\u3001\u786C\u4EF6\u914D\u7F6E + \u7B2C\u4E09\u65B9\u670D\u52A1 = \u7533\u62A5\u91D1\u989D")],-1)])),default:l(()=>[i("div",kt,[m(Xa,{ref_key:"fundsAllocationRef",ref:w},null,512)])]),_:1})):k("",!0),((me=(ue=a.value)==null?void 0:ue.formData)==null?void 0:me.baseProjIsConfidentiality)==="01"&&((de=(fe=a.value)==null?void 0:fe.formData)==null?void 0:de.projectType)!=="04"&&((ce=(pe=a.value)==null?void 0:pe.formData)==null?void 0:ce.projectType)!=="05"?(P(),F(y,{key:2,name:"4",class:"mb-16"},{title:l(()=>e[7]||(e[7]=[i("div",{class:"collapse-title"},[T(" \u5E74\u5EA6\u652F\u4ED8\u8BA1\u5212\uFF08\u5355\u4F4D\uFF1A\u4E07\u5143\uFF09 "),i("span",{class:"text-info"},"\u5E74\u5EA6\u652F\u4ED8\u91D1\u989D = \u81EA\u6709\u8D44\u91D1 + \u653F\u5E9C\u6295\u8D44-\u672C\u7EA7\u8D22\u653F\u8D44\u91D1 + \u653F\u5E9C\u6295\u8D44-\u4E0A\u7EA7\u8865\u52A9\u8D44\u91D1 + \u94F6\u884C\u8D37\u6B3E + \u5176\u4ED6\u8D44\u91D1")],-1)])),default:l(()=>[i("div",ht,[m(Za,{ref_key:"annualPaymentPlanRef",ref:p},null,512)])]),_:1})):k("",!0),n.value.isCoreBusiness?(P(),F(y,{key:3,name:"5",class:"mb-16"},{title:l(()=>e[8]||(e[8]=[i("div",{class:"collapse-title"},"\u6838\u5FC3\u4E1A\u52A1",-1)])),default:l(()=>{var j;return[i("div",Ft,[m(et,{ref_key:"coreBusinessRef",ref:W,"basic-info-data":(j=a.value)==null?void 0:j.formData},null,8,["basic-info-data"])])]}),_:1})):k("",!0),n.value.isSafetyInput?(P(),F(y,{key:4,name:"6",class:"mb-16"},{title:l(()=>e[9]||(e[9]=[i("div",{class:"collapse-title"},"\u5B89\u5168\u6295\u5165",-1)])),default:l(()=>[i("div",wt,[m(at,{ref_key:"safetyInputRef",ref:Z},null,512)])]),_:1})):k("",!0),n.value.isProjectImageProgress?(P(),F(y,{key:5,name:"7",class:"mb-16"},{title:l(()=>e[10]||(e[10]=[i("div",{class:"collapse-title"},"\u5DE5\u7A0B\u5F62\u8C61\u8FDB\u5EA6",-1)])),default:l(()=>[i("div",At,[m(tt,{ref_key:"projectImageProgressRef",ref:be},null,512)])]),_:1})):k("",!0),U(Ca)()&&n.value.isReviewChecklist&&(s.$route.name==="declarePlan"||[10012,10013,10016].includes((ve=f.value)==null?void 0:ve.status))?(P(),F(y,{key:6,name:"8",class:"mb-16"},{title:l(()=>e[11]||(e[11]=[i("div",{class:"collapse-title"},"\u5BA1\u67E5\u6E05\u5355",-1)])),default:l(()=>[i("div",Ot,[m(vt,{ref_key:"reviewCheckRef",ref:Fe,"detail-data":f.value,data:f.value.reviewChecklist||n.value.reviewChecklist},null,8,["detail-data","data"])])]),_:1})):k("",!0),m(y,{name:"8",class:"mb-16"},{title:l(()=>e[12]||(e[12]=[i("div",{class:"collapse-title"},"\u9644\u4EF6",-1)])),default:l(()=>{var j,R,M;return[i("div",St,[m(st,{ref_key:"accessoryRef",ref:D,"detail-data":f.value,"project-type":(R=(j=a.value)==null?void 0:j.formData)==null?void 0:R.projectType,"declare-amount":(M=v.value)==null?void 0:M.formData.declareAmount},null,8,["detail-data","project-type","declare-amount"])])]}),_:1}),n.value.isRemark?(P(),F(y,{key:7,name:"9",class:"mb-16"},{title:l(()=>e[13]||(e[13]=[i("div",{class:"collapse-title"},"\u5907\u6CE8",-1)])),default:l(()=>[i("div",Nt,[m(ot,{ref_key:"projectRemarkRef",ref:he},null,512)])]),_:1})):k("",!0),(De=n.value.safetyInputModular)!=null&&De.length?(P(!0),Ce(we,{key:8},Ga(n.value.safetyInputModular,(j,R)=>(P(),F(y,{key:R,name:11+R+"",class:"mb-16"},{title:l(()=>[i("div",Rt,Q(j.moduleName),1)]),default:l(()=>[i("div",Mt,[m(rt,{ref_for:!0,ref:M=>{ee.value[j.id]=M},data:j},null,8,["data"])])]),_:2},1032,["name"]))),128)):k("",!0),s.$route.name==="declarePlan"||[10012,10016,10013].includes(f.value.status)?(P(),F(y,{key:9,name:"4",class:"mb-16"},{title:l(()=>e[14]||(e[14]=[i("div",{class:"collapse-title"},"\u5E94\u7528\u4FE1\u606F",-1)])),default:l(()=>{var j,R,M,ye;return[i("div",Bt,[m(lt,{ref_key:"applicationsRef",ref:C,"is-first":(R=(j=a.value)==null?void 0:j.formData)==null?void 0:R.isFirst,"core-business":(ye=(M=W.value)==null?void 0:M.formData)==null?void 0:ye.coreBusiness},null,8,["is-first","core-business"])])]}),_:1})):k("",!0),s.$route.name==="declarePlan"||[10012,10016,10013].includes(f.value.status)?(P(),F(y,{key:10,name:"1",class:"mb-16"},{title:l(()=>e[15]||(e[15]=[i("div",{class:"collapse-title"},"\u8BA1\u5212\u4F7F\u7528\u8D44\u6E90",-1)])),default:l(()=>[i("div",Tt,[m(Ka,{ref_key:"planndedUseResourcesRef",ref:Ie,"detail-data":f.value},null,8,["detail-data"])])]),_:1})):k("",!0)],64)):k("",!0)]}),_:1},8,["modelValue"])]),_:1})]),_:1}),m(it,{ref_key:"hiddenAppFormRef",ref:Oe,"application-list":(q=($=C.value)==null?void 0:$.formData)==null?void 0:q.applicationList,"is-first":(H=(J=a.value)==null?void 0:J.formData)==null?void 0:H.isFirst},null,8,["application-list","is-first"]),i("div",xt,[m(t,{onClick:e[1]||(e[1]=S=>U(_e).go(-1))},{default:l(()=>e[16]||(e[16]=[T(" \u8FD4\u56DE")])),_:1}),U(d).name==="declarePage"&&(!U(d).query.id||U(d).query.id&&U(d).query.isDraft)?(P(),F(t,{key:0,plain:"",type:"primary",loading:je.value,onClick:ha},{default:l(()=>e[17]||(e[17]=[T(" \u6682 \u5B58 ")])),_:1},8,["loading"])):k("",!0),m(t,{type:"primary",loading:Pe.value,onClick:ka},{default:l(()=>e[18]||(e[18]=[T(" \u63D0\u4EA4\u5BA1\u6838")])),_:1},8,["loading"])])]),m(nt,{visible:se.visible,"flow-data":se.flowData,onClose:Na},null,8,["visible","flow-data"])],64)}}}),hs=xa(Et,[["__scopeId","data-v-95e0dfcc"]]);export{hs as default};