Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

2 Zeilen
28KB

  1. import{g as ma}from"./formConfiguration.fe835af6.js";import{_ as Sa,d as Ba,x as Ra,y as Na,C as Ma,B as Ta,r as g,b as La,o as xa,L as Ae,c as M,e as P,f as Ce,g as i,u as z,h as f,i as l,t as Q,j as T,k as h,G as F,F as Oe,H as $a,a0 as Ea,a1 as qa,q as Ha}from"./index.88314652.js";import Ja from"./basicInfo.7bd461ea.js";import Va from"./plannedUseResources.a002ee48.js";import Ga from"./fundsInfo.3ea3ed2c.js";import Ya from"./fundsAllocation.d13e84c7.js";import za from"./annualPaymentPlan.725b620d.js";import Ua from"./coreBusiness.83415ba9.js";import Wa from"./safetyInput.b4359873.js";import Ka from"./projectImageProgress.16a3f13f.js";import Qa from"./accessory.64671479.js";import Xa from"./projectRemark.8f7a9d0e.js";import Za from"./newModuleForm.9e78e2ea.js";import et from"./applications.e6193e3c.js";import at from"./hiddenAppForm.bbdf3b5b.js";import tt from"./flowRecordDialog.37c57a3c.js";import{j as st,k as ot,d as rt,s as lt}from"./index.52f0c4e2.js";import{p as da}from"./projectStore.93a92252.js";import{a as it}from"./annualPlanStore.b9e0c4a7.js";import{r as pa,g as R}from"./uploadAction.a771741b.js";import{d as nt}from"./projectCollectionEnter.d9dae6a5.js";import ut from"./reviewCheck.c46796f6.js";import{g as ca}from"./getIsShowReviewCheck.40f08ac6.js";import"./index.ce78f549.js";import"./unitManage.f0f6d1ad.js";import"./userDialog.a43047d4.js";import"./relatedProjectDialog.1f9b88c5.js";import"./renewalProjectCapitalDeclare.923464d2.js";import"./projectContentDialog.4a315de8.js";import"./indicatorTemplate.d39a8306.js";import"./validate.e0f99e8b.js";import"./appBasicInfo.5a02976a.js";import"./appSafeInfo.79f66418.js";import"./appResourceInfo.ee3acc67.js";import"./applicationInfo.d51749a8.js";import"./flowRecord.d01efb9f.js";import"./index.b8af1d9b.js";import"./index.0c2b3f6e.js";import"./sjFlowRecord.8107ed99.js";const ft={class:"declarePage footerPage"},mt={key:0,class:"errorTip mb-16"},dt={class:"card-header"},pt={class:"flex justify-between items-center"},ct={class:"flex-1"},vt={class:"font-bold"},Dt={class:"mt-8 search"},yt={class:"p-24"},gt={class:"p-24"},_t={class:"p-24"},jt={class:"p-24"},bt={class:"p-24"},It={class:"p-24"},Pt={class:"p-24"},Ct={class:"p-24"},ht={class:"p-24"},kt={class:"p-24"},Ft={class:"collapse-title"},wt={class:"p-24"},At={class:"p-24"},Ot={class:"p-24"},St={class:"footer"},Bt=Ba({name:"declarePage"}),Rt=Object.assign(Bt,{setup(Nt){const{proxy:ge}=Ha(),m=Ra(),_e=Na(),L=Ma(Ta.userStore).userInfo||{},n=g({}),he=g(["1","2","3","4","5","6","7","8","9","10"]),a=g(),je=g(),D=g(),w=g(),c=g(),U=g(),Z=g(),be=g(),_=g(),ke=g(),ee=g({}),C=g(),Se=g(),Fe=g(),va=()=>{var e,u,p;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&&(D.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)=>{D.value.validForm(o=>{o&&t()})})),n.value.isCoreBusiness&&s.push(new Promise((t,r)=>{U.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&&(m.name==="declarePlan"||[10012,10013,10016].includes((u=d.value)==null?void 0:u.status))&&s.push(new Promise((t,r)=>{Fe.value.validForm(o=>{o&&t()})})),s.push(new Promise((t,r)=>{_.value.validForm(o=>{o&&t()})}));for(const t in ee.value)s.push(new Promise((r,o)=>{ee.value[t].validForm(j=>{j&&r()})}));C.value&&s.push(new Promise((t,r)=>{C.value.validForm(o=>{o&&t()})})),s.push(new Promise((t,r)=>{D.value.validForm(o=>{if(o){const j=Be([D.value.formData.declareHaveAmount,D.value.formData.declareGovOwnFinanceAmount,D.value.formData.declareGovSuperiorFinanceAmount,D.value.formData.declareBankLendingAmount,D.value.formData.declareOtherAmount]);D.value.formData.declareAmount>0&&D.value.formData.declareAmount===j?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 j=Be([w.value.formData.softwareDevelopmentAmount,w.value.formData.cloudHardwarePurchaseAmount,w.value.formData.thirdPartyAmount]);D.value.formData.declareAmount>0&&D.value.formData.declareAmount===j?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)=>{c.value.validForm(o=>{o&&t()})}))),((p=C.value)==null?void 0:p.formData.includeApplication)===1&&s.push(new Promise((t,r)=>{Se.value.validAllAppForm(o=>{o?t():r("\u8BF7\u5B8C\u5584\u5DF2\u6DFB\u52A0\u7684\u5E94\u7528\u4FE1\u606F")})})),je.value&&s.push(new Promise((t,r)=>{je.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((y,A)=>y+A.safetyInputAmount,0))/D.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)})},Be=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 p=0;return s.forEach(t=>{p+=t*u}),p/u},Da=async()=>{ae(2)},ya=s=>{var e,u,p,t,r,o,j;((e=C.value)==null?void 0:e.formData)&&((u=C.value)==null?void 0:u.formData.includeApplication)===1&&((r=(t=(p=C.value)==null?void 0:p.formData)==null?void 0:t.applicationList)==null?void 0:r.length)&&(C.value.formData.applicationList=(j=(o=C.value.formData)==null?void 0:o.applicationList)==null?void 0:j.map(y=>({...y,applicationName:s?y.applicationName:void 0,relatedExistsApplication:s?void 0:y.relatedExistsApplication,relatedExistsApplicationCode:s?void 0:y.relatedExistsApplication})))},Ie=g(!1),Pe=g(!1),ga=()=>{var s,e,u,p;if(((s=a.value.formData)==null?void 0:s.baseProjBasis)&&Array.isArray((e=a.value.formData)==null?void 0:e.baseProjBasis))return((p=(u=a.value.formData)==null?void 0:u.baseProjBasis.map(t=>t.value))==null?void 0:p.join("\uFF1B"))||void 0},_a=()=>{var s,e,u,p,t;if(((s=a.value.formData)==null?void 0:s.baseProjBasis)&&Array.isArray((e=a.value.formData)==null?void 0:e.baseProjBasis))return((t=(p=(u=a.value.formData)==null?void 0:u.baseProjBasis)==null?void 0:p.map(r=>r.fileList&&JSON.stringify(R(r.fileList))))==null?void 0:t.join("\uFF1B"))||""},ae=async s=>{var u,p,t,r,o,j,y,A,v,X,W,x,$,E,q,H,J,O,V,G,k,S,oe,re,le,ie,ne,ue,fe,me,de,pe,ce,ve,De,I,B,N,ye,Ne,Me,Te,Le,xe,$e,Ee,qe,He,Je,Ve,Ge,Ye,ze,Ue,We,Ke,Qe,Xe,Ze,ea,aa,ta,sa,oa,ra;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:m.query.id*1||void 0,baseProjIsConfidentiality:(p=a.value.formData)==null?void 0:p.baseProjIsConfidentiality,projectName:(t=a.value.formData)==null?void 0:t.projectName,projectType:(r=a.value.formData)==null?void 0:r.projectType,baseConstructionType:((j=(o=a.value.formData)==null?void 0:o.baseConstructionType)==null?void 0:j.join("\uFF1B"))||"",responsibleMan:(y=a.value.formData)==null?void 0:y.responsibleMan,responsibleManMobile:(A=a.value.formData)==null?void 0:A.responsibleManMobile,contactName:(v=a.value.formData)==null?void 0:v.contactName,contactPhone:(X=a.value.formData)==null?void 0:X.contactPhone,buildOrgName:(W=a.value.formData)==null?void 0:W.buildOrgName,orgCreditCode:(x=a.value.formData)==null?void 0:x.orgCreditCode,baseProvManDeprtType:a.value.formData.baseProvManDeprtType*1||void 0,higherSuperOrg:($=a.value.formData)==null?void 0:$.higherSuperOrg,higherSuperOrgCode:(E=a.value.formData)==null?void 0:E.higherSuperOrgCode,superOrg:(q=a.value.formData)==null?void 0:q.superOrg,superOrgCode:(H=a.value.formData)==null?void 0:H.superOrgCode,superOrgCreditCode:(J=a.value.formData)==null?void 0:J.superOrgCreditCode,projectYear:((O=a.value.formData)==null?void 0:O.projectYear)*1,declareAmount:(V=a.value.formData)==null?void 0:V.declareAmount,annualPlanAmount:(G=a.value.formData)==null?void 0:G.declareAmount};else if(console.log("zoudaozhelima "),console.log(D.value),e={isRemarks:n.value.isRemarks,isOpenCoreBusiness:n.value.isCoreBusiness,isOpenSafetyInput:n.value.isSafetyInput,isEngineeringSpeed:n.value.isProjectImageProgress,isReviewChecklist:n.value.isReviewChecklist,id:m.query.id*1||void 0,...a.value.formData,...D.value.formData,baseBasisAmountOri:((k=D.value)==null?void 0:k.formData.declareOtherAmount)>0&&((S=D.value.formData)==null?void 0:S.baseBasisAmountOri)||"",consultancy:((oe=D.value)==null?void 0:oe.formData.declareAmount)>400&&((re=D.value.formData)==null?void 0:re.consultancy)||"",...(le=je.value)==null?void 0:le.formData,baseConstructionType:((ne=(ie=a.value.formData)==null?void 0:ie.baseConstructionType)==null?void 0:ne.join("\uFF1B"))||"",baseProvManDeprtType:a.value.formData.baseProvManDeprtType*1||void 0,projectYear:((ue=a.value.formData)==null?void 0:ue.projectYear)*1,beginTime:((me=(fe=a.value.formData)==null?void 0:fe.buildDuration)==null?void 0:me.length)&&a.value.formData.buildDuration[0],endTime:((pe=(de=a.value.formData)==null?void 0:de.buildDuration)==null?void 0:pe.length)&&a.value.formData.buildDuration[1],buildDuration:void 0,lowestLevel:!(((ve=(ce=a.value.formData)==null?void 0:ce.baseConstructionType)==null?void 0:ve.includes("03"))&&!((I=(De=a.value.formData)==null?void 0:De.baseConstructionType)!=null&&I.includes("01")))&&((B=a.value.formData)==null?void 0:B.lowestLevel)||"",baseHistorProjId:((Ne=(ye=(N=a.value.formData)==null?void 0:N.baseHistorProjs)==null?void 0:ye.map(b=>b.baseProjId))==null?void 0:Ne.join("\uFF1B"))||"",baseHistorProjName:((Le=(Te=(Me=a.value.formData)==null?void 0:Me.baseHistorProjs)==null?void 0:Te.map(b=>b.baseProjName))==null?void 0:Le.join("\uFF1B"))||"",baseHistorProjYear:((Ee=($e=(xe=a.value.formData)==null?void 0:xe.baseHistorProjs)==null?void 0:$e.map(b=>b.baseProjSetYear))==null?void 0:Ee.join("\uFF1B"))||"",baseHistorProjs:void 0,beseExpectedResults:((He=(qe=a.value.formData)==null?void 0:qe.beseExpectedResults)==null?void 0:He.length)&&JSON.stringify(a.value.formData.beseExpectedResults)||"",...(Je=C.value)==null?void 0:Je.formData,..._.value.formData,constructionPlanFile:((Ve=_.value.formData)==null?void 0:Ve.constructionPlanFile)&&JSON.stringify(R(_.value.formData.constructionPlanFile)),preliminaryPlanFile:((Ge=_.value.formData)==null?void 0:Ge.preliminaryPlanFile)&&JSON.stringify(R(_.value.formData.preliminaryPlanFile)),mainResponsibilitiesApplicantFile:((Ye=_.value.formData)==null?void 0:Ye.mainResponsibilitiesApplicantFile)&&JSON.stringify(R(_.value.formData.mainResponsibilitiesApplicantFile)),supportingMaterialsFile:((ze=_.value.formData)==null?void 0:ze.supportingMaterialsFile)&&JSON.stringify(R(_.value.formData.supportingMaterialsFile)),calculationTotalInvestmentFile:((Ue=_.value.formData)==null?void 0:Ue.calculationTotalInvestmentFile)&&JSON.stringify(R(_.value.formData.calculationTotalInvestmentFile)),projectApplicationForm:((We=_.value.formData)==null?void 0:We.projectApplicationForm)&&JSON.stringify(R(_.value.formData.projectApplicationForm))||"",baseResearchReportFile:((Ke=_.value.formData)==null?void 0:Ke.baseResearchReportFile)&&JSON.stringify(R(_.value.formData.baseResearchReportFile))||"",operationPlan:(a.value.formData.projectType==="04"||a.value.formData.projectType==="05")&&((Qe=_.value.formData)==null?void 0:Qe.operationPlan)&&JSON.stringify(R(_.value.formData.operationPlan))||"",baseProjOtherFile:((Xe=_.value.formData)==null?void 0:Xe.baseProjOtherFile)&&JSON.stringify(R(_.value.formData.baseProjOtherFile)),reviewChecklist:((ea=(Ze=Fe.value)==null?void 0:Ze.formData)==null?void 0:ea.reviewChecklist)||void 0},e.baseProjBasis=ga(),e.baseProjBasisFile=_a(),a.value.formData.projectType!=="04"&&a.value.formData.projectType!=="05"&&(e=Object.assign(e,{...w==null?void 0:w.value.formData,...c==null?void 0:c.value.formData})),n.value.isCoreBusiness&&(e=Object.assign(e,{...U.value.formData,coreBusiness:U.value.formData.coreBusiness&&JSON.stringify(U.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,{...ke.value.formData})),((ta=(aa=C.value)==null?void 0:aa.formData)==null?void 0:ta.includeApplication)&&((oa=(sa=C.value)==null?void 0:sa.formData.applicationList)==null?void 0:oa.length)&&(e.applicationList=C.value.formData.applicationList.map(b=>{var K,Y,la,ia,na;return{...b,isFirst:(K=a.value.formData)!=null&&K.isFirst?1:0,relatedExistsApplication:(!((Y=a.value.formData)!=null&&Y.isFirst)&&L.value.regionCode==="331123"||L.regionCode!=="331123")&&((la=b.relatedExistsApplication)==null?void 0:la.applicationName)||void 0,relatedExistsApplicationCode:(!((ia=a.value.formData)!=null&&ia.isFirst)&&L.value.regionCode==="331123"||L.regionCode!=="331123")&&b.relatedExistsApplicationCode||void 0,applicationName:((na=a.value.formData)==null?void 0:na.isFirst)&&L.regionCode==="331123"&&b.applicationName||void 0,coreBusinessList:b.coreBusinessList.map(Oa=>{var ua,fa;return{...Oa,projectId:((ua=d.value)==null?void 0:ua.projectId)||void 0,projectCode:((fa=d.value)==null?void 0:fa.projectCode)||void 0}})}})),(ra=n.value.safetyInputModular)!=null&&ra.length){e.safetyInputModular=[];for(const K in ee.value)e.safetyInputModular.push(ee.value[K].formData);const b=e.safetyInputModular.map(K=>({...K,formList:K.formList.map(Y=>({...Y,value:Y.value?Y.props.type==="\u6587\u4EF6\u4E0A\u4F20"?R(Y.value):Y.value:void 0}))}));e.safetyInputModular=JSON.stringify(b)}else e.safetyInputModular=void 0;if(s===1){Pe.value=!0;try{const b={projectInfo:{...e,id:m.query.isDraft?void 0:e.id,draftId:m.query.isDraft?m.query.id*1:void 0}};m.name==="declarePage"?await ot(!m.query.isDraft&&m.query.id?2:1,b):m.name==="planEdit"?await it(b.projectInfo):m.name==="handleAfterGiveBack"?await Ea({...b,projectId:m.query.id,instanceId:m.query.instanceId,taskId:m.query.taskId}):m.name==="declarePlan"&&await rt(b),ge.$message.success("\u63D0\u4EA4\u6210\u529F"),Pe.value=!1,m.name==="projectDeclare"?_e.push({name:"projectDeclare"}):_e.go(-1)}catch{Pe.value=!1}}else if(s===2){Ie.value=!0;try{await lt({projectInfo:{...e},user:L.value}),ge.$message.success("\u4FDD\u5B58\u6210\u529F"),Ie.value=!1,_e.go(-1)}catch{Ie.value=!1}}},d=g({}),we=()=>{var s;a.value.setFormData(d.value),D.value.setFormData(d.value),w==null||w.value.setFormData(d.value),c==null||c.value.setFormData(d.value),n.value.isCoreBusiness&&U.value.setFormData(d.value),n.value.isSafetyInput&&Z.value.setFormData(d.value),n.value.isProjectImageProgress&&be.value.setFormData(d.value),_.value.setFormData(d.value),n.value.isRemark&&ke.value.setFormData(d.value),(s=C.value)==null||s.setFormData(d.value),setTimeout(()=>{})},te=g({processProgressVo:{progressInfo:[]}}),ja=g(),ba=async()=>{var e,u;const s=await qa({instanceId:m.query.instanceId,projectId:m.query.id,nodeId:m.query.nodeId});te.value={...s.data,processProgressVo:{...s.data.processProgressVo,progressInfo:Pa(s.data.processProgressVo.progressInfo)}},ja.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=La({visible:!1,flowData:void 0}),Ia=s=>{se.visible=!0,se.flowData=te.value.processProgressVo.progressInfo},Pa=s=>(s.forEach(e=>{if(e.children){const u=[],p=[];e.children.forEach(t=>{u.includes(t.nodeId)?(p.find(r=>r.nodeId===t.nodeId).list.push(t),p.find(r=>r.nodeId===t.nodeId).userIds.push(t.userId)):(u.push(t.nodeId),p.push({nodeId:t.nodeId,approvalMode:t.approvalMode,name:t.name,taskId:t.taskId,nodeType:t.nodeType,list:[{...t}],userIds:[t.userId]}))}),e.children=p}else e.userIds=[e.userId]}),s),Ca=()=>{se.visible=!1},Re=g([]),ha=g(),ka=s=>{ha.value=s};xa(async()=>{Re.value=(await nt()).data,Fa()});async function Fa(){var t,r,o,j;if(m.query.id){var s={},e={},u=[],p=!1;(t=m.query)!=null&&t.isDraft?s=await st({id:m.query.id}):(s=await da(m.query.id),e=await ma({regionCode:L.value.regionCode}),(m.name==="declarePlan"||[10012,10013,10016].includes((r=d.value)==null?void 0:r.status))&&(p=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)||[])),d.value={...s.data,reviewChecklist:s.data.reviewChecklist?JSON.parse(s.data.reviewChecklist):void 0};const y=s.data.safetyInputModular&&JSON.parse(s.data.safetyInputModular).map(A=>({...A,formList:A.formList.map(v=>({...v,value:v.value?v.props.type==="\u6587\u4EF6\u4E0A\u4F20"?pa(v.value):v.value:void 0}))}));n.value={isCoreBusiness:s.data.isOpenCoreBusiness,isProjectImageProgress:s.data.isEngineeringSpeed,isRemark:s.data.isRemark,isSafetyInput:s.data.isOpenSafetyInput,safetyInputModular:y||[],isReviewChecklist:p,reviewChecklist:u},Ae(()=>{we()}),m.name==="handleAfterGiveBack"&&ba()}else{const y=await ma({regionCode:L.value.regionCode});n.value={isCoreBusiness:y.data.isCoreBusiness,isProjectImageProgress:y.data.isProjectImageProgress,isRemark:y.data.isRemark,isSafetyInput:y.data.isSafetyInput,safetyInputModular:y.data.safetyInputModular||[]}}if((j=n.value.safetyInputModular)!=null&&j.length){let y=11;n.value.safetyInputModular.forEach(A=>{he.value.push(y+++"")})}}async function wa(s){var x,$,E,q,H,J,O,V,G;const e=s.baseProjId,u=await da(e),p=a.value.formData.projectType,t=a.value.formData.projectName,r=a.value.formData.buildOrgName,o=a.value.formData.orgCreditCode,j=((E=($=(x=a.value.formData)==null?void 0:x.baseHistorProjs)==null?void 0:$.map(k=>k.baseProjId))==null?void 0:E.join("\uFF1B"))||"",y=((J=(H=(q=a.value.formData)==null?void 0:q.baseHistorProjs)==null?void 0:H.map(k=>k.baseProjName))==null?void 0:J.join("\uFF1B"))||"",A=((G=(V=(O=a.value.formData)==null?void 0:O.baseHistorProjs)==null?void 0:V.map(k=>k.baseProjSetYear))==null?void 0:G.join("\uFF1B"))||"",v=a.value.formData.projectYear,X={annualPlanAmount:c==null?void 0:c.value.formData.annualPlanAmount,annualPlanHaveAmount:c==null?void 0:c.value.formData.annualPlanHaveAmount,annualPlanGovOwnFinanceAmount:c==null?void 0:c.value.formData.annualPlanGovOwnFinanceAmount,annualPlanGovSuperiorFinanceAmount:c==null?void 0:c.value.formData.annualPlanGovSuperiorFinanceAmount,annualPlanBankLendingAmount:c==null?void 0:c.value.formData.annualPlanBankLendingAmount,annualPlanOtherAmount:c==null?void 0:c.value.formData.annualPlanOtherAmount};d.value={...u.data,projectType:p,baseHistorProjId:j,baseHistorProjName:y,baseHistorProjYear:A,projectYear:v,projectName:t,buildOrgName:r,orgCreditCode:o,...X,baseProjIsConfidentiality:"02",baseConstructionType:"",status:void 0};const W=u.data.safetyInputModular&&JSON.parse(u.data.safetyInputModular).map(k=>({...k,formList:k.formList.map(S=>({...S,value:S.value?S.props.type==="\u6587\u4EF6\u4E0A\u4F20"?pa(S.value):S.value:void 0}))}));n.value={isCoreBusiness:u.data.isOpenCoreBusiness,isProjectImageProgress:u.data.isEngineeringSpeed,isRemark:u.data.isRemark,isSafetyInput:u.data.isOpenSafetyInput,safetyInputModular:W||[]},Ae(()=>{we()}),setTimeout(()=>{Ae(()=>{we()})},300)}function Aa(){location.reload()}return(s,e)=>{var W,x,$,E,q,H,J;const u=M("Warning"),p=M("el-icon"),t=M("el-button"),r=M("el-form-item"),o=M("el-col"),j=M("el-row"),y=M("el-form"),A=M("el-card"),v=M("el-collapse-item"),X=M("el-collapse");return P(),Ce(Oe,null,[i("div",ft,[z(m).name==="handleAfterGiveBack"?(P(),Ce("div",mt,[f(p,{class:"icon"},{default:l(()=>[f(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((W=d.value)==null?void 0:W.projectName)+"\u7684"+Q(($=(x=te.value)==null?void 0:x.processProgressVo)==null?void 0:$.processDefName)+"\u88AB\u9000\u56DE\uFF0C\u8BF7\u6839\u636E\u5BA1\u6838\u8BB0\u5F55\u8C03\u6574\u9879\u76EE\u4FE1\u606F",1),f(t,{type:"primary",plain:"",size:"small",class:"ml-16",onClick:Ia},{default:l(()=>e[2]||(e[2]=[T("\u67E5\u770B\u5BA1\u6838\u8BB0\u5F55 ")])),_:1})])])])):h("",!0),z(m).name==="declarePlan"?(P(),F(A,{key:1,shadow:"never",class:"mb-16"},{default:l(()=>[i("div",dt,[i("div",pt,[i("div",ct,[i("p",vt,Q(d.value.projectName),1),i("div",Dt,[f(y,{"label-suffix":":"},{default:l(()=>[f(j,{gutter:24},{default:l(()=>[f(o,{span:6},{default:l(()=>[f(r,{label:"\u7533\u62A5\u5355\u4F4D"},{default:l(()=>[T(Q(d.value.buildOrgName||"-"),1)]),_:1})]),_:1}),f(o,{span:6},{default:l(()=>[f(r,{label:"\u4E3B\u7BA1\u5355\u4F4D"},{default:l(()=>[T(Q(d.value.superOrg||"-"),1)]),_:1})]),_:1}),f(o,{span:6},{default:l(()=>[f(r,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:l(()=>[T(Q(d.value.createOn||"-"),1)]),_:1})]),_:1})]),_:1})]),_:1})])])])])]),_:1})):h("",!0),f(j,null,{default:l(()=>[f(o,{class:"leftCol",span:24},{default:l(()=>[f(X,{modelValue:he.value,"onUpdate:modelValue":e[0]||(e[0]=O=>he.value=O)},{default:l(()=>{var O,V,G,k,S,oe,re,le,ie,ne,ue,fe,me,de,pe,ce,ve,De;return[f(v,{name:"1",class:"mb-16"},{title:l(()=>e[4]||(e[4]=[i("div",{class:"collapse-title"},"\u57FA\u672C\u4FE1\u606F",-1)])),default:l(()=>{var I;return[i("div",yt,[f(Ja,{ref_key:"basicInfoRef",ref:a,"detail-data":d.value,"dictionary-list":Re.value,"declare-amount":(I=D.value)==null?void 0:I.formData.declareAmount,onReuseItem:wa,onChangeIsFirst:ya,onChangeProjectTypeResetForm:Aa,onGetBasicInfoData:ka},null,8,["detail-data","dictionary-list","declare-amount"])])]}),_:1}),((V=(O=a.value)==null?void 0:O.formData)==null?void 0:V.baseProjIsConfidentiality)==="01"?(P(),Ce(Oe,{key:0},[((k=(G=a.value)==null?void 0:G.formData)==null?void 0:k.baseProjIsConfidentiality)==="01"?(P(),F(v,{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",gt,[f(Ga,{ref_key:"fundsInfoRef",ref:D,"detail-data":d.value},null,8,["detail-data"])])]),_:1})):h("",!0),((oe=(S=a.value)==null?void 0:S.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(v,{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",_t,[f(Ya,{ref_key:"fundsAllocationRef",ref:w},null,512)])]),_:1})):h("",!0),((fe=(ue=a.value)==null?void 0:ue.formData)==null?void 0:fe.baseProjIsConfidentiality)==="01"&&((de=(me=a.value)==null?void 0:me.formData)==null?void 0:de.projectType)!=="04"&&((ce=(pe=a.value)==null?void 0:pe.formData)==null?void 0:ce.projectType)!=="05"?(P(),F(v,{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",jt,[f(za,{ref_key:"annualPaymentPlanRef",ref:c},null,512)])]),_:1})):h("",!0),n.value.isCoreBusiness?(P(),F(v,{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 I;return[i("div",bt,[f(Ua,{ref_key:"coreBusinessRef",ref:U,"basic-info-data":(I=a.value)==null?void 0:I.formData},null,8,["basic-info-data"])])]}),_:1})):h("",!0),n.value.isSafetyInput?(P(),F(v,{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",It,[f(Wa,{ref_key:"safetyInputRef",ref:Z},null,512)])]),_:1})):h("",!0),n.value.isProjectImageProgress?(P(),F(v,{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",Pt,[f(Ka,{ref_key:"projectImageProgressRef",ref:be},null,512)])]),_:1})):h("",!0),z(ca)()&&n.value.isReviewChecklist&&(s.$route.name==="declarePlan"||[10012,10013,10016].includes((ve=d.value)==null?void 0:ve.status))?(P(),F(v,{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",Ct,[f(ut,{ref_key:"reviewCheckRef",ref:Fe,"detail-data":d.value,data:d.value.reviewChecklist||n.value.reviewChecklist},null,8,["detail-data","data"])])]),_:1})):h("",!0),f(v,{name:"8",class:"mb-16"},{title:l(()=>e[12]||(e[12]=[i("div",{class:"collapse-title"},"\u9644\u4EF6",-1)])),default:l(()=>{var I,B,N;return[i("div",ht,[f(Qa,{ref_key:"accessoryRef",ref:_,"detail-data":d.value,"project-type":(B=(I=a.value)==null?void 0:I.formData)==null?void 0:B.projectType,"declare-amount":(N=D.value)==null?void 0:N.formData.declareAmount},null,8,["detail-data","project-type","declare-amount"])])]}),_:1}),n.value.isRemark?(P(),F(v,{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",kt,[f(Xa,{ref_key:"projectRemarkRef",ref:ke},null,512)])]),_:1})):h("",!0),(De=n.value.safetyInputModular)!=null&&De.length?(P(!0),Ce(Oe,{key:8},$a(n.value.safetyInputModular,(I,B)=>(P(),F(v,{key:B,name:11+B+"",class:"mb-16"},{title:l(()=>[i("div",Ft,Q(I.moduleName),1)]),default:l(()=>[i("div",wt,[f(Za,{ref_for:!0,ref:N=>{ee.value[I.id]=N},data:I},null,8,["data"])])]),_:2},1032,["name"]))),128)):h("",!0),s.$route.name==="declarePlan"||[10012,10016,10013].includes(d.value.status)?(P(),F(v,{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 I,B,N,ye;return[i("div",At,[f(et,{ref_key:"applicationsRef",ref:C,"is-first":(B=(I=a.value)==null?void 0:I.formData)==null?void 0:B.isFirst,"core-business":(ye=(N=U.value)==null?void 0:N.formData)==null?void 0:ye.coreBusiness},null,8,["is-first","core-business"])])]}),_:1})):h("",!0),s.$route.name==="declarePlan"||[10012,10016,10013].includes(d.value.status)?(P(),F(v,{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",Ot,[f(Va,{ref_key:"planndedUseResourcesRef",ref:je,"detail-data":d.value},null,8,["detail-data"])])]),_:1})):h("",!0)],64)):h("",!0)]}),_:1},8,["modelValue"])]),_:1})]),_:1}),f(at,{ref_key:"hiddenAppFormRef",ref:Se,"application-list":(q=(E=C.value)==null?void 0:E.formData)==null?void 0:q.applicationList,"is-first":(J=(H=a.value)==null?void 0:H.formData)==null?void 0:J.isFirst},null,8,["application-list","is-first"]),i("div",St,[f(t,{onClick:e[1]||(e[1]=O=>z(_e).go(-1))},{default:l(()=>e[16]||(e[16]=[T(" \u8FD4\u56DE")])),_:1}),z(m).name==="declarePage"&&(!z(m).query.id||z(m).query.id&&z(m).query.isDraft)?(P(),F(t,{key:0,plain:"",type:"primary",loading:Ie.value,onClick:Da},{default:l(()=>e[17]||(e[17]=[T(" \u6682 \u5B58 ")])),_:1},8,["loading"])):h("",!0),f(t,{type:"primary",loading:Pe.value,onClick:va},{default:l(()=>e[18]||(e[18]=[T(" \u63D0\u4EA4\u5BA1\u6838")])),_:1},8,["loading"])])]),f(tt,{visible:se.visible,"flow-data":se.flowData,onClose:Ca},null,8,["visible","flow-data"])],64)}}}),js=Sa(Rt,[["__scopeId","data-v-1620c62f"]]);export{js as default};