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.

index.788ac2ce.js 28KB

1
  1. import{g as Ia}from"./formConfiguration.2e3b43b9.js";import{_ as La,d as Ea,x as $a,y as qa,C as Ha,B as Ja,r as D,b as Va,o as Ga,L as ba,c as M,e as b,f as De,g as i,u as U,h as f,i as l,t as Q,j as B,k as C,G as h,F as _e,H as Ya,a0 as Ua,a1 as Wa,q as za}from"./index.a2494fc2.js";import Ka from"./basicInfo.e840da90.js";import Qa from"./plannedUseResources.3bd6d5db.js";import Xa from"./fundsInfo.95bbea4d.js";import Za from"./fundsAllocation.f21ec719.js";import et from"./annualPaymentPlan.1f92d420.js";import at from"./coreBusiness.9f601cca.js";import tt from"./safetyInput.83c0f6d7.js";import st from"./projectImageProgress.4bf56282.js";import ot from"./accessory.0e7801e3.js";import rt from"./projectRemark.968ad0f9.js";import lt from"./newModuleForm.7b0236e8.js";import it from"./applications.22e74a5a.js";import nt from"./hiddenAppForm.2bb19c77.js";import ut from"./flowRecordDialog.a84b629b.js";import{j as ft,k as mt,d as dt,s as pt}from"./index.7c249f3d.js";import{p as ja}from"./projectStore.3d75a461.js";import{a as ct}from"./annualPlanStore.a72df6b3.js";import{r as Ca,g as O}from"./uploadAction.0eabe13b.js";import{d as vt}from"./projectCollectionEnter.417bcc1b.js";import Dt from"./reviewCheck.f704a14a.js";import{g as ka}from"./getIsShowReviewCheck.eaffc5c3.js";import"./index.9a76b4bf.js";import"./unitManage.98e613d0.js";import"./userDialog.ab9d0da1.js";import"./relatedProjectDialog.d7cc7ea2.js";import"./renewalProjectCapitalDeclare.a4b663cc.js";import"./projectContentDialog.fc798897.js";import"./indicatorTemplate.6dbb281e.js";import"./appBasicInfo.07413940.js";import"./appSafeInfo.32f933ff.js";import"./appResourceInfo.f4ba0f10.js";import"./applicationInfo.6930bb89.js";import"./flowRecord.d9a3f7fe.js";import"./index.8851030e.js";import"./index.82fd4159.js";import"./sjFlowRecord.e3c7eb73.js";const yt={class:"declarePage footerPage"},gt={key:0,class:"errorTip mb-16"},Pt={class:"card-header"},_t={class:"flex justify-between items-center"},It={class:"flex-1"},bt={class:"font-bold"},jt={class:"mt-8 search"},Ct={class:"p-24"},kt={class:"p-24"},ht={class:"p-24"},Ft={class:"p-24"},wt={class:"p-24"},At={class:"p-24"},Rt={class:"p-24"},Ot={class:"p-24"},St={class:"p-24"},Nt={class:"p-24"},Mt={class:"collapse-title"},Bt={class:"p-24"},Tt={class:"p-24"},xt={class:"p-24"},Lt={class:"footer"},Et=Ea({name:"declarePage"}),$t=Object.assign(Et,{setup(qt){const{proxy:fe}=za(),d=$a(),me=qa(),T=Ha(Ja.userStore).userInfo||{},n=D({}),ye=D(["1","2","3","4","5","6","7","8","9","10"]),t=D(),de=D(),c=D(),x=D(),Ie=D(),S=D(),W=D(),Z=D(),pe=D(),P=D(),ge=D(),ee=D({}),j=D(),be=D(),Pe=D(),ha=()=>{var e,u,y;const s=[];if(((e=t.value.formData)==null?void 0:e.baseProjIsConfidentiality)==="02")s.push(new Promise((a,r)=>{t.value.validForm(o=>{o&&a()})}));else{s.push(new Promise((a,r)=>{t.value.validForm(o=>{o&&(c.value.formData.declareAmount>=1e3&&t.value.formData.baseProvManDeprtType==="2"?(t.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")):a())})})),s.push(new Promise((a,r)=>{c.value.validForm(o=>{o&&a()})})),s.push(new Promise((a,r)=>{x.value.validForm(o=>{o&&a()})})),s.push(new Promise((a,r)=>{S.value.validForm(o=>{o&&a()})})),n.value.isCoreBusiness&&s.push(new Promise((a,r)=>{W.value.validForm(o=>{o&&a()})})),n.value.isSafetyInput&&s.push(new Promise((a,r)=>{Z.value.validForm(o=>{o&&a()})})),n.value.isProjectImageProgress&&s.push(new Promise((a,r)=>{pe.value.validForm(o=>{o&&a()})})),ka()&&n.value.isReviewChecklist&&(d.name==="declarePlan"||[10012,10013,10016].includes((u=m.value)==null?void 0:u.status))&&s.push(new Promise((a,r)=>{Pe.value.validForm(o=>{o&&a()})})),s.push(new Promise((a,r)=>{P.value.validForm(o=>{o&&a()})}));for(const a in ee.value)s.push(new Promise((r,o)=>{ee.value[a].validForm(_=>{_&&r()})}));j.value&&s.push(new Promise((a,r)=>{j.value.validForm(o=>{o&&a()})})),s.push(new Promise((a,r)=>{c.value.validForm(o=>{if(o){const _=je([c.value.formData.declareHaveAmount,c.value.formData.declareGovOwnFinanceAmount,c.value.formData.declareGovSuperiorFinanceAmount,c.value.formData.declareBankLendingAmount,c.value.formData.declareOtherAmount]);c.value.formData.declareAmount>0&&c.value.formData.declareAmount===_?a():r("\u8D44\u91D1\u7533\u62A5\u60C5\u51B5\uFF1A5\u7C7B\u8D44\u91D1\u603B\u548C\u5FC5\u987B\u7B49\u4E8E\u7533\u62A5\u91D1\u989D")}})})),s.push(new Promise((a,r)=>{x.value.validForm(o=>{if(o){const _=je([x.value.formData.softwareDevelopmentAmount,x.value.formData.cloudHardwarePurchaseAmount,x.value.formData.thirdPartyAmount]);c.value.formData.declareAmount>0&&c.value.formData.declareAmount===_?a():r("\u8D44\u91D1\u5206\u914D\u60C5\u51B5\uFF1A3\u7C7B\u8D44\u91D1\u603B\u548C\u5FC5\u987B\u7B49\u4E8E\u7533\u62A5\u91D1\u989D")}})})),((y=j.value)==null?void 0:y.formData.includeApplication)===1&&s.push(new Promise((a,r)=>{be.value.validAllAppForm(o=>{o?a():r("\u8BF7\u5B8C\u5584\u5DF2\u6DFB\u52A0\u7684\u5E94\u7528\u4FE1\u606F")})})),de.value&&s.push(new Promise((a,r)=>{de.value.validForm(o=>{o&&a()})}))}Promise.all([...s]).then(async()=>{var a,r;((a=t.value.formData)==null?void 0:a.baseProjIsConfidentiality)==="02"?ae(1):n.value.isSafetyInput&&((r=Z.value)==null?void 0:r.formData.safetyInput.reduce((g,F)=>g+F.safetyInputAmount,0))/c.value.formData.declareAmount*100<5?fe.$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(a=>{a&&fe.$message.warning(a)})},je=s=>{const e=[];s.forEach(a=>{try{e.push(a.toString().split(".")[1].length)}catch{e.push(0)}});const u=Math.pow(10,Math.max(...e));let y=0;return s.forEach(a=>{y+=a*u}),y/u},Fa=async()=>{ae(2)},wa=s=>{var e,u,y,a,r,o,_;((e=j.value)==null?void 0:e.formData)&&((u=j.value)==null?void 0:u.formData.includeApplication)===1&&((r=(a=(y=j.value)==null?void 0:y.formData)==null?void 0:a.applicationList)==null?void 0:r.length)&&(j.value.formData.applicationList=(_=(o=j.value.formData)==null?void 0:o.applicationList)==null?void 0:_.map(g=>({...g,applicationName:s?g.applicationName:void 0,relatedExistsApplication:s?void 0:g.relatedExistsApplication,relatedExistsApplicationCode:s?void 0:g.relatedExistsApplication})))},ce=D(!1),ve=D(!1),ae=async s=>{var u,y,a,r,o,_,g,F,v,X,z,L,E,$,q,H,J,w,V,G,k,A,oe,re,le,ie,ne,I,R,N,ue,he,Fe,we,Ae,Re,Oe,Se,Ne,Me,Be,Te,xe,Le,Ee,$e,qe,He,Je,Ve,Ge,Ye,Ue,We,ze,Ke,Qe,Xe,Ze,ea,aa,ta,sa,oa,ra,la,ia,na,ua,fa,ma,da,pa,ca,va;var e={};if(((u=t.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:(y=t.value.formData)==null?void 0:y.baseProjIsConfidentiality,projectName:(a=t.value.formData)==null?void 0:a.projectName,projectType:(r=t.value.formData)==null?void 0:r.projectType,baseConstructionType:((_=(o=t.value.formData)==null?void 0:o.baseConstructionType)==null?void 0:_.join("\uFF1B"))||"",responsibleMan:(g=t.value.formData)==null?void 0:g.responsibleMan,responsibleManMobile:(F=t.value.formData)==null?void 0:F.responsibleManMobile,contactName:(v=t.value.formData)==null?void 0:v.contactName,contactPhone:(X=t.value.formData)==null?void 0:X.contactPhone,buildOrgName:(z=t.value.formData)==null?void 0:z.buildOrgName,orgCreditCode:(L=t.value.formData)==null?void 0:L.orgCreditCode,baseProvManDeprtType:t.value.formData.baseProvManDeprtType*1||void 0,higherSuperOrg:(E=t.value.formData)==null?void 0:E.higherSuperOrg,higherSuperOrgCode:($=t.value.formData)==null?void 0:$.higherSuperOrgCode,superOrg:(q=t.value.formData)==null?void 0:q.superOrg,superOrgCode:(H=t.value.formData)==null?void 0:H.superOrgCode,superOrgCreditCode:(J=t.value.formData)==null?void 0:J.superOrgCreditCode,projectYear:((w=t.value.formData)==null?void 0:w.projectYear)*1,declareAmount:(V=t.value.formData)==null?void 0:V.declareAmount,annualPlanAmount:(G=t.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,...t.value.formData,...c.value.formData,...x.value.formData,...(k=de.value)==null?void 0:k.formData,baseConstructionType:((oe=(A=t.value.formData)==null?void 0:A.baseConstructionType)==null?void 0:oe.join("\uFF1B"))||"",baseProvManDeprtType:t.value.formData.baseProvManDeprtType*1||void 0,projectYear:((re=t.value.formData)==null?void 0:re.projectYear)*1,beginTime:((ie=(le=t.value.formData)==null?void 0:le.buildDuration)==null?void 0:ie.length)&&t.value.formData.buildDuration[0],endTime:((I=(ne=t.value.formData)==null?void 0:ne.buildDuration)==null?void 0:I.length)&&t.value.formData.buildDuration[1],buildDuration:void 0,lowestLevel:!(((N=(R=t.value.formData)==null?void 0:R.baseConstructionType)==null?void 0:N.includes("03"))&&!((he=(ue=t.value.formData)==null?void 0:ue.baseConstructionType)!=null&&he.includes("01")))&&((Fe=t.value.formData)==null?void 0:Fe.lowestLevel)||"",baseProjBasis:((Re=(Ae=(we=t.value.formData)==null?void 0:we.baseProjBasis)==null?void 0:Ae.map(p=>p.value))==null?void 0:Re.join("\uFF1B"))||void 0,baseProjBasisFile:((Ne=(Se=(Oe=t.value.formData)==null?void 0:Oe.baseProjBasis)==null?void 0:Se.map(p=>p.fileList&&JSON.stringify(O(p.fileList))))==null?void 0:Ne.join("\uFF1B"))||"",baseHistorProjId:((Te=(Be=(Me=t.value.formData)==null?void 0:Me.baseHistorProjs)==null?void 0:Be.map(p=>p.baseProjId))==null?void 0:Te.join("\uFF1B"))||"",baseHistorProjName:((Ee=(Le=(xe=t.value.formData)==null?void 0:xe.baseHistorProjs)==null?void 0:Le.map(p=>p.baseProjName))==null?void 0:Ee.join("\uFF1B"))||"",baseHistorProjYear:((He=(qe=($e=t.value.formData)==null?void 0:$e.baseHistorProjs)==null?void 0:qe.map(p=>p.baseProjSetYear))==null?void 0:He.join("\uFF1B"))||"",baseHistorProjs:void 0,beseExpectedResults:((Ve=(Je=t.value.formData)==null?void 0:Je.beseExpectedResults)==null?void 0:Ve.length)&&JSON.stringify(t.value.formData.beseExpectedResults)||"",baseBasisAmountOri:((Ge=c.value)==null?void 0:Ge.formData.declareOtherAmount)>0&&((Ye=c.value.formData)==null?void 0:Ye.baseBasisAmountOri)||"",consultancy:((Ue=c.value)==null?void 0:Ue.formData.declareAmount)>400&&((We=c.value.formData)==null?void 0:We.consultancy)||"",operationManageUnit:((ze=c.value)==null?void 0:ze.formData.declareAmount)>=1e3&&Ie.value.formData.operationManageUnit||void 0,...(Ke=j.value)==null?void 0:Ke.formData,...S.value.formData,...P.value.formData,constructionPlanFile:((Qe=P.value.formData)==null?void 0:Qe.constructionPlanFile)&&JSON.stringify(O(P.value.formData.constructionPlanFile)),preliminaryPlanFile:((Xe=P.value.formData)==null?void 0:Xe.preliminaryPlanFile)&&JSON.stringify(O(P.value.formData.preliminaryPlanFile)),mainResponsibilitiesApplicantFile:((Ze=P.value.formData)==null?void 0:Ze.mainResponsibilitiesApplicantFile)&&JSON.stringify(O(P.value.formData.mainResponsibilitiesApplicantFile)),supportingMaterialsFile:((ea=P.value.formData)==null?void 0:ea.supportingMaterialsFile)&&JSON.stringify(O(P.value.formData.supportingMaterialsFile)),calculationTotalInvestmentFile:((aa=P.value.formData)==null?void 0:aa.calculationTotalInvestmentFile)&&JSON.stringify(O(P.value.formData.calculationTotalInvestmentFile)),projectApplicationForm:((ta=t.value.formData)==null?void 0:ta.projectType)!=="03"&&((sa=P.value.formData)==null?void 0:sa.projectApplicationForm)&&JSON.stringify(O(P.value.formData.projectApplicationForm))||"",baseResearchReportFile:((oa=t.value.formData)==null?void 0:oa.projectType)!=="03"&&((ra=P.value.formData)==null?void 0:ra.baseResearchReportFile)&&JSON.stringify(O(P.value.formData.baseResearchReportFile))||"",baseProjOtherFile:((la=P.value.formData)==null?void 0:la.baseProjOtherFile)&&JSON.stringify(O(P.value.formData.baseProjOtherFile)),mainAccusationDoc:((ia=c.value)==null?void 0:ia.formData.declareAmount)>=1e3&&((na=P.value.formData)==null?void 0:na.mainAccusationDoc)&&JSON.stringify(O(P.value.formData.mainAccusationDoc))||"",reviewChecklist:((fa=(ua=Pe.value)==null?void 0:ua.formData)==null?void 0:fa.reviewChecklist)||void 0},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,{...pe.value.formData})),n.value.isRemark&&(e=Object.assign(e,{...ge.value.formData})),((da=(ma=j.value)==null?void 0:ma.formData)==null?void 0:da.includeApplication)&&((ca=(pa=j.value)==null?void 0:pa.formData.applicationList)==null?void 0:ca.length)&&(e.applicationList=j.value.formData.applicationList.map(p=>{var K,Y,Da,ya,ga;return{...p,isFirst:(K=t.value.formData)!=null&&K.isFirst?1:0,relatedExistsApplication:(!((Y=t.value.formData)!=null&&Y.isFirst)&&T.value.regionCode==="331123"||T.regionCode!=="331123")&&((Da=p.relatedExistsApplication)==null?void 0:Da.applicationName)||void 0,relatedExistsApplicationCode:(!((ya=t.value.formData)!=null&&ya.isFirst)&&T.value.regionCode==="331123"||T.regionCode!=="331123")&&p.relatedExistsApplicationCode||void 0,applicationName:((ga=t.value.formData)==null?void 0:ga.isFirst)&&T.regionCode==="331123"&&p.applicationName||void 0,coreBusinessList:p.coreBusinessList.map(xa=>{var Pa,_a;return{...xa,projectId:((Pa=m.value)==null?void 0:Pa.projectId)||void 0,projectCode:((_a=m.value)==null?void 0:_a.projectCode)||void 0}})}})),(va=n.value.safetyInputModular)!=null&&va.length){e.safetyInputModular=[];for(const K in ee.value)e.safetyInputModular.push(ee.value[K].formData);const p=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(p)}else e.safetyInputModular=void 0;if(s===1){ve.value=!0;try{const p={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,p):d.name==="planEdit"?await ct(p.projectInfo):d.name==="handleAfterGiveBack"?await Ua({...p,projectId:d.query.id,instanceId:d.query.instanceId,taskId:d.query.taskId}):d.name==="declarePlan"&&await dt(p),fe.$message.success("\u63D0\u4EA4\u6210\u529F"),ve.value=!1,d.name==="projectDeclare"?me.push({name:"projectDeclare"}):me.go(-1)}catch{ve.value=!1}}else if(s===2){ce.value=!0;try{await pt({projectInfo:{...e},user:T.value}),fe.$message.success("\u4FDD\u5B58\u6210\u529F"),ce.value=!1,me.go(-1)}catch{ce.value=!1}}},m=D({}),Ce=()=>{var s,e;t.value.setFormData(m.value),((s=m.value)==null?void 0:s.baseProjIsConfidentiality)!=="02"&&(c.value.setFormData(m.value),x.value.setFormData(m.value),S.value.setFormData(m.value),n.value.isCoreBusiness&&W.value.setFormData(m.value),n.value.isSafetyInput&&Z.value.setFormData(m.value),n.value.isProjectImageProgress&&pe.value.setFormData(m.value),P.value.setFormData(m.value),n.value.isRemark&&ge.value.setFormData(m.value),(e=j.value)==null||e.setFormData(m.value),setTimeout(()=>{var u;(u=Ie.value)==null||u.setFormData(m.value)}))},te=D({processProgressVo:{progressInfo:[]}}),Aa=D(),Ra=async()=>{var e,u;const s=await Wa({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)}},Aa.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=Va({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=[],y=[];e.children.forEach(a=>{u.includes(a.nodeId)?(y.find(r=>r.nodeId===a.nodeId).list.push(a),y.find(r=>r.nodeId===a.nodeId).userIds.push(a.userId)):(u.push(a.nodeId),y.push({nodeId:a.nodeId,approvalMode:a.approvalMode,name:a.name,taskId:a.taskId,nodeType:a.nodeType,list:[{...a}],userIds:[a.userId]}))}),e.children=y}else e.userIds=[e.userId]}),s),Na=()=>{se.visible=!1},ke=D([]),Ma=D(),Ba=s=>{Ma.value=s};Ga(async()=>{var a,r,o,_;if(ke.value=(await vt()).data,d.query.id){var s={},e={},u=[],y=!1;(a=d.query)!=null&&a.isDraft?s=await ft({id:d.query.id}):(s=await ja(d.query.id),e=await Ia({regionCode:T.value.regionCode}),(d.name==="declarePlan"||[10012,10013,10016].includes((r=m.value)==null?void 0:r.status))&&(y=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)||[])),m.value={...s.data,reviewChecklist:s.data.reviewChecklist?JSON.parse(s.data.reviewChecklist):void 0};const g=s.data.safetyInputModular&&JSON.parse(s.data.safetyInputModular).map(F=>({...F,formList:F.formList.map(v=>({...v,value:v.value?v.props.type==="\u6587\u4EF6\u4E0A\u4F20"?Ca(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:g||[],isReviewChecklist:y,reviewChecklist:u},ba(()=>{Ce()}),d.name==="handleAfterGiveBack"&&Ra()}else{const g=await Ia({regionCode:T.value.regionCode});n.value={isCoreBusiness:g.data.isCoreBusiness,isProjectImageProgress:g.data.isProjectImageProgress,isRemark:g.data.isRemark,isSafetyInput:g.data.isSafetyInput,safetyInputModular:g.data.safetyInputModular||[]}}if((_=n.value.safetyInputModular)!=null&&_.length){let g=11;n.value.safetyInputModular.forEach(F=>{ye.value.push(g+++"")})}});async function Ta(s){var L,E,$,q,H,J,w,V,G;const e=s.baseProjId,u=await ja(e),y=t.value.formData.projectType,a=t.value.formData.projectName,r=t.value.formData.buildOrgName,o=t.value.formData.orgCreditCode,_=(($=(E=(L=t.value.formData)==null?void 0:L.baseHistorProjs)==null?void 0:E.map(k=>k.baseProjId))==null?void 0:$.join("\uFF1B"))||"",g=((J=(H=(q=t.value.formData)==null?void 0:q.baseHistorProjs)==null?void 0:H.map(k=>k.baseProjName))==null?void 0:J.join("\uFF1B"))||"",F=((G=(V=(w=t.value.formData)==null?void 0:w.baseHistorProjs)==null?void 0:V.map(k=>k.baseProjSetYear))==null?void 0:G.join("\uFF1B"))||"",v=t.value.formData.projectYear,X={annualPlanAmount:S.value.formData.annualPlanAmount,annualPlanHaveAmount:S.value.formData.annualPlanHaveAmount,annualPlanGovOwnFinanceAmount:S.value.formData.annualPlanGovOwnFinanceAmount,annualPlanGovSuperiorFinanceAmount:S.value.formData.annualPlanGovSuperiorFinanceAmount,annualPlanBankLendingAmount:S.value.formData.annualPlanBankLendingAmount,annualPlanOtherAmount:S.value.formData.annualPlanOtherAmount};m.value={...u.data,projectType:y,baseHistorProjId:_,baseHistorProjName:g,baseHistorProjYear:F,projectYear:v,projectName:a,buildOrgName:r,orgCreditCode:o,...X,status:void 0};const z=u.data.safetyInputModular&&JSON.parse(u.data.safetyInputModular).map(k=>({...k,formList:k.formList.map(A=>({...A,value:A.value?A.props.type==="\u6587\u4EF6\u4E0A\u4F20"?Ca(A.value):A.value:void 0}))}));n.value={isCoreBusiness:u.data.isOpenCoreBusiness,isProjectImageProgress:u.data.isEngineeringSpeed,isRemark:u.data.isRemark,isSafetyInput:u.data.isOpenSafetyInput,safetyInputModular:z||[]},ba(()=>{Ce()})}return(s,e)=>{var z,L,E,$,q,H,J;const u=M("Warning"),y=M("el-icon"),a=M("el-button"),r=M("el-form-item"),o=M("el-col"),_=M("el-row"),g=M("el-form"),F=M("el-card"),v=M("el-collapse-item"),X=M("el-collapse");return b(),De(_e,null,[i("div",yt,[U(d).name==="handleAfterGiveBack"?(b(),De("div",gt,[f(y,{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((z=m.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),f(a,{type:"primary",plain:"",size:"small",class:"ml-16",onClick:Oa},{default:l(()=>e[2]||(e[2]=[B("\u67E5\u770B\u5BA1\u6838\u8BB0\u5F55")])),_:1})])])])):C("",!0),U(d).name==="declarePlan"?(b(),h(F,{key:1,shadow:"never",class:"mb-16"},{default:l(()=>[i("div",Pt,[i("div",_t,[i("div",It,[i("p",bt,Q(m.value.projectName),1),i("div",jt,[f(g,{"label-suffix":":"},{default:l(()=>[f(_,{gutter:24},{default:l(()=>[f(o,{span:6},{default:l(()=>[f(r,{label:"\u7533\u62A5\u5355\u4F4D"},{default:l(()=>[B(Q(m.value.buildOrgName||"-"),1)]),_:1})]),_:1}),f(o,{span:6},{default:l(()=>[f(r,{label:"\u4E3B\u7BA1\u5355\u4F4D"},{default:l(()=>[B(Q(m.value.superOrg||"-"),1)]),_:1})]),_:1}),f(o,{span:6},{default:l(()=>[f(r,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:l(()=>[B(Q(m.value.createOn||"-"),1)]),_:1})]),_:1})]),_:1})]),_:1})])])])])]),_:1})):C("",!0),f(_,null,{default:l(()=>[f(o,{class:"leftCol",span:24},{default:l(()=>[f(X,{modelValue:ye.value,"onUpdate:modelValue":e[0]||(e[0]=w=>ye.value=w)},{default:l(()=>{var w,V,G,k,A,oe,re,le,ie,ne;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",Ct,[f(Ka,{ref_key:"basicInfoRef",ref:t,"detail-data":m.value,"dictionary-list":ke.value,"declare-amount":(I=c.value)==null?void 0:I.formData.declareAmount,onReuseItem:Ta,onChangeIsFirst:wa,onGetBasicInfoData:Ba},null,8,["detail-data","dictionary-list","declare-amount"])])]}),_:1}),((V=(w=t.value)==null?void 0:w.formData)==null?void 0:V.baseProjIsConfidentiality)==="01"?(b(),De(_e,{key:0},[((k=(G=t.value)==null?void 0:G.formData)==null?void 0:k.baseProjIsConfidentiality)==="01"?(b(),h(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",kt,[f(Xa,{ref_key:"fundsInfoRef",ref:c,"detail-data":m.value},null,8,["detail-data"])])]),_:1})):C("",!0),((oe=(A=t.value)==null?void 0:A.formData)==null?void 0:oe.baseProjIsConfidentiality)==="01"?(b(),h(v,{key:1,name:"3",class:"mb-16"},{title:l(()=>e[6]||(e[6]=[i("div",{class:"collapse-title"},[B(" \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",ht,[f(Za,{ref_key:"fundsAllocationRef",ref:x},null,512)])]),_:1})):C("",!0),((le=(re=t.value)==null?void 0:re.formData)==null?void 0:le.baseProjIsConfidentiality)==="01"?(b(),h(v,{key:2,name:"4",class:"mb-16"},{title:l(()=>e[7]||(e[7]=[i("div",{class:"collapse-title"},[B(" \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",Ft,[f(et,{ref_key:"annualPaymentPlanRef",ref:S},null,512)])]),_:1})):C("",!0),n.value.isCoreBusiness?(b(),h(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",wt,[f(at,{ref_key:"coreBusinessRef",ref:W,"basic-info-data":(I=t.value)==null?void 0:I.formData},null,8,["basic-info-data"])])]}),_:1})):C("",!0),n.value.isSafetyInput?(b(),h(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",At,[f(tt,{ref_key:"safetyInputRef",ref:Z},null,512)])]),_:1})):C("",!0),n.value.isProjectImageProgress?(b(),h(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",Rt,[f(st,{ref_key:"projectImageProgressRef",ref:pe},null,512)])]),_:1})):C("",!0),U(ka)()&&n.value.isReviewChecklist&&(s.$route.name==="declarePlan"||[10012,10013,10016].includes((ie=m.value)==null?void 0:ie.status))?(b(),h(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",Ot,[f(Dt,{ref_key:"reviewCheckRef",ref:Pe,"detail-data":m.value,data:m.value.reviewChecklist||n.value.reviewChecklist},null,8,["detail-data","data"])])]),_:1})):C("",!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,R,N;return[i("div",St,[f(ot,{ref_key:"accessoryRef",ref:P,"detail-data":m.value,"project-type":(R=(I=t.value)==null?void 0:I.formData)==null?void 0:R.projectType,"declare-amount":(N=c.value)==null?void 0:N.formData.declareAmount},null,8,["detail-data","project-type","declare-amount"])])]}),_:1}),n.value.isRemark?(b(),h(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",Nt,[f(rt,{ref_key:"projectRemarkRef",ref:ge},null,512)])]),_:1})):C("",!0),(ne=n.value.safetyInputModular)!=null&&ne.length?(b(!0),De(_e,{key:8},Ya(n.value.safetyInputModular,(I,R)=>(b(),h(v,{key:R,name:11+R+"",class:"mb-16"},{title:l(()=>[i("div",Mt,Q(I.moduleName),1)]),default:l(()=>[i("div",Bt,[f(lt,{ref_for:!0,ref:N=>{ee.value[I.id]=N},data:I},null,8,["data"])])]),_:2},1032,["name"]))),128)):C("",!0),s.$route.name==="declarePlan"||[10012,10016,10013].includes(m.value.status)?(b(),h(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,R,N,ue;return[i("div",Tt,[f(it,{ref_key:"applicationsRef",ref:j,"is-first":(R=(I=t.value)==null?void 0:I.formData)==null?void 0:R.isFirst,"core-business":(ue=(N=W.value)==null?void 0:N.formData)==null?void 0:ue.coreBusiness},null,8,["is-first","core-business"])])]}),_:1})):C("",!0),s.$route.name==="declarePlan"||[10012,10016,10013].includes(m.value.status)?(b(),h(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",xt,[f(Qa,{ref_key:"planndedUseResourcesRef",ref:de,"detail-data":m.value},null,8,["detail-data"])])]),_:1})):C("",!0)],64)):C("",!0)]}),_:1},8,["modelValue"])]),_:1})]),_:1}),f(nt,{ref_key:"hiddenAppFormRef",ref:be,"application-list":(q=($=j.value)==null?void 0:$.formData)==null?void 0:q.applicationList,"is-first":(J=(H=t.value)==null?void 0:H.formData)==null?void 0:J.isFirst},null,8,["application-list","is-first"]),i("div",Lt,[f(a,{onClick:e[1]||(e[1]=w=>U(me).go(-1))},{default:l(()=>e[16]||(e[16]=[B(" \u8FD4\u56DE ")])),_:1}),U(d).name==="declarePage"&&(!U(d).query.id||U(d).query.id&&U(d).query.isDraft)?(b(),h(a,{key:0,plain:"",type:"primary",loading:ce.value,onClick:Fa},{default:l(()=>e[17]||(e[17]=[B(" \u6682 \u5B58 ")])),_:1},8,["loading"])):C("",!0),f(a,{type:"primary",loading:ve.value,onClick:ha},{default:l(()=>e[18]||(e[18]=[B(" \u63D0\u4EA4\u5BA1\u6838 ")])),_:1},8,["loading"])])]),f(ut,{visible:se.visible,"flow-data":se.flowData,onClose:Na},null,8,["visible","flow-data"])],64)}}}),hs=La($t,[["__scopeId","data-v-0acf55ca"]]);export{hs as default};