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

  1. import{g as ba}from"./formConfiguration.56dbabd9.js";import{_ as La,d as Ea,x as $a,y as qa,C as Ha,B as Ja,r as y,b as Va,o as Ga,L as ja,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 Ya,a0 as Ua,a1 as Wa,q as za}from"./index.149277cd.js";import Ka from"./basicInfo.1ddc3801.js";import Qa from"./plannedUseResources.620648ad.js";import Xa from"./fundsInfo.a7e1450f.js";import Za from"./fundsAllocation.adaf58d7.js";import et from"./annualPaymentPlan.a2fed1f4.js";import at from"./coreBusiness.48584bdf.js";import tt from"./safetyInput.372a0201.js";import st from"./projectImageProgress.6b05d440.js";import ot from"./accessory.448a87b6.js";import rt from"./projectRemark.ce7ba54c.js";import lt from"./newModuleForm.530c8ead.js";import it from"./applications.8849df66.js";import nt from"./hiddenAppForm.ec37c2f1.js";import ut from"./flowRecordDialog.eaa28c19.js";import{j as mt,k as ft,d as dt,s as pt}from"./index.b88ae75b.js";import{p as Pa}from"./projectStore.ccee2ad6.js";import{a as ct}from"./annualPlanStore.bbf22d74.js";import{r as Ca,g as R}from"./uploadAction.da8c1cf8.js";import{d as vt}from"./projectCollectionEnter.3a55517f.js";import Dt from"./reviewCheck.11a61ec2.js";import{g as ka}from"./getIsShowReviewCheck.21ba148b.js";import"./index.c31c2933.js";import"./unitManage.e6941394.js";import"./userDialog.9ce3f947.js";import"./relatedProjectDialog.696a0b0f.js";import"./renewalProjectCapitalDeclare.62631add.js";import"./projectContentDialog.b5a4c65b.js";import"./indicatorTemplate.dbdf3fbe.js";import"./validate.e0f99e8b.js";import"./appBasicInfo.af799eb7.js";import"./appSafeInfo.561e28dd.js";import"./appResourceInfo.2147cbd9.js";import"./applicationInfo.7a4dad02.js";import"./flowRecord.4c153e86.js";import"./index.b5d9b033.js";import"./index.0161f563.js";import"./sjFlowRecord.f8ff6ee2.js";const yt={class:"declarePage footerPage"},gt={key:0,class:"errorTip mb-16"},_t={class:"card-header"},It={class:"flex justify-between items-center"},bt={class:"flex-1"},jt={class:"font-bold"},Pt={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"},Ot={class:"p-24"},St={class:"p-24"},Nt={class:"p-24"},Rt={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:ge}=za(),d=$a(),_e=qa(),x=Ha(Ja.userStore).userInfo||{},n=y({}),ke=y(["1","2","3","4","5","6","7","8","9","10"]),a=y(),Ie=y(),v=y(),w=y(),Ae=y(),p=y(),W=y(),Z=y(),be=y(),I=y(),he=y(),ee=y({}),C=y(),Oe=y(),Fe=y(),ha=()=>{var e,u,g;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()})})),ka()&&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)=>{I.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()})}))),((g=C.value)==null?void 0:g.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((_,A)=>_+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 g=0;return s.forEach(t=>{g+=t*u}),g/u},Fa=async()=>{ae(2)},wa=s=>{var e,u,g,t,r,o,b;((e=C.value)==null?void 0:e.formData)&&((u=C.value)==null?void 0:u.formData.includeApplication)===1&&((r=(t=(g=C.value)==null?void 0:g.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(_=>({..._,applicationName:s?_.applicationName:void 0,relatedExistsApplication:s?void 0:_.relatedExistsApplication,relatedExistsApplicationCode:s?void 0:_.relatedExistsApplication})))},je=y(!1),Pe=y(!1),ae=async s=>{var u,g,t,r,o,b,_,A,D,X,z,L,E,$,q,H,J,O,V,G,h,S,oe,re,le,ie,ne,ue,me,fe,de,pe,ce,ve,De,j,N,M,ye,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,ma,fa,da,pa,ca,va;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:(g=a.value.formData)==null?void 0:g.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:(_=a.value.formData)==null?void 0:_.responsibleMan,responsibleManMobile:(A=a.value.formData)==null?void 0:A.responsibleManMobile,contactName:(D=a.value.formData)==null?void 0:D.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:(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(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=(S=a.value.formData)==null?void 0:S.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=(N=a.value.formData)==null?void 0:N.baseProjBasis)==null?void 0:M.map(c=>c.fileList&&JSON.stringify(R(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:((He=(qe=($e=a.value.formData)==null?void 0:$e.baseHistorProjs)==null?void 0:qe.map(c=>c.baseProjSetYear))==null?void 0:He.join("\uFF1B"))||"",baseHistorProjs:void 0,beseExpectedResults:((Ve=(Je=a.value.formData)==null?void 0:Je.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,...I.value.formData,constructionPlanFile:((Qe=I.value.formData)==null?void 0:Qe.constructionPlanFile)&&JSON.stringify(R(I.value.formData.constructionPlanFile)),preliminaryPlanFile:((Xe=I.value.formData)==null?void 0:Xe.preliminaryPlanFile)&&JSON.stringify(R(I.value.formData.preliminaryPlanFile)),mainResponsibilitiesApplicantFile:((Ze=I.value.formData)==null?void 0:Ze.mainResponsibilitiesApplicantFile)&&JSON.stringify(R(I.value.formData.mainResponsibilitiesApplicantFile)),supportingMaterialsFile:((ea=I.value.formData)==null?void 0:ea.supportingMaterialsFile)&&JSON.stringify(R(I.value.formData.supportingMaterialsFile)),calculationTotalInvestmentFile:((aa=I.value.formData)==null?void 0:aa.calculationTotalInvestmentFile)&&JSON.stringify(R(I.value.formData.calculationTotalInvestmentFile)),projectApplicationForm:((ta=a.value.formData)==null?void 0:ta.projectType)!=="03"&&((sa=I.value.formData)==null?void 0:sa.projectApplicationForm)&&JSON.stringify(R(I.value.formData.projectApplicationForm))||"",baseResearchReportFile:((oa=a.value.formData)==null?void 0:oa.projectType)!=="03"&&((ra=I.value.formData)==null?void 0:ra.baseResearchReportFile)&&JSON.stringify(R(I.value.formData.baseResearchReportFile))||"",baseProjOtherFile:((la=I.value.formData)==null?void 0:la.baseProjOtherFile)&&JSON.stringify(R(I.value.formData.baseProjOtherFile)),mainAccusationDoc:((ia=v.value)==null?void 0:ia.formData.declareAmount)>=1e3&&((na=I.value.formData)==null?void 0:na.mainAccusationDoc)&&JSON.stringify(R(I.value.formData.mainAccusationDoc))||"",reviewChecklist:((ma=(ua=Fe.value)==null?void 0:ua.formData)==null?void 0:ma.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})),((da=(fa=C.value)==null?void 0:fa.formData)==null?void 0:da.includeApplication)&&((ca=(pa=C.value)==null?void 0:pa.formData.applicationList)==null?void 0:ca.length)&&(e.applicationList=C.value.formData.applicationList.map(c=>{var K,Y,Da,ya,ga;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")&&((Da=c.relatedExistsApplication)==null?void 0:Da.applicationName)||void 0,relatedExistsApplicationCode:(!((ya=a.value.formData)!=null&&ya.isFirst)&&x.value.regionCode==="331123"||x.regionCode!=="331123")&&c.relatedExistsApplicationCode||void 0,applicationName:((ga=a.value.formData)==null?void 0:ga.isFirst)&&x.regionCode==="331123"&&c.applicationName||void 0,coreBusinessList:c.coreBusinessList.map(xa=>{var _a,Ia;return{...xa,projectId:((_a=f.value)==null?void 0:_a.projectId)||void 0,projectCode:((Ia=f.value)==null?void 0:Ia.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 c=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(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 ft(!d.query.isDraft&&d.query.id?2:1,c):d.name==="planEdit"?await ct(c.projectInfo):d.name==="handleAfterGiveBack"?await Ua({...c,projectId:d.query.id,instanceId:d.query.instanceId,taskId:d.query.taskId}):d.name==="declarePlan"&&await dt(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 pt({projectInfo:{...e},user:x.value}),ge.$message.success("\u4FDD\u5B58\u6210\u529F"),je.value=!1,_e.go(-1)}catch{je.value=!1}}},f=y({}),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),I.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=y({processProgressVo:{progressInfo:[]}}),Aa=y(),Oa=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:Na(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}),Sa=s=>{se.visible=!0,se.flowData=te.value.processProgressVo.progressInfo},Na=s=>(s.forEach(e=>{if(e.children){const u=[],g=[];e.children.forEach(t=>{u.includes(t.nodeId)?(g.find(r=>r.nodeId===t.nodeId).list.push(t),g.find(r=>r.nodeId===t.nodeId).userIds.push(t.userId)):(u.push(t.nodeId),g.push({nodeId:t.nodeId,approvalMode:t.approvalMode,name:t.name,taskId:t.taskId,nodeType:t.nodeType,list:[{...t}],userIds:[t.userId]}))}),e.children=g}else e.userIds=[e.userId]}),s),Ra=()=>{se.visible=!1},Re=y([]),Ma=y(),Ba=s=>{Ma.value=s};Ga(async()=>{var t,r,o,b;if(Re.value=(await vt()).data,d.query.id){var s={},e={},u=[],g=!1;(t=d.query)!=null&&t.isDraft?s=await mt({id:d.query.id}):(s=await Pa(d.query.id),e=await ba({regionCode:x.value.regionCode}),(d.name==="declarePlan"||[10012,10013,10016].includes((r=f.value)==null?void 0:r.status))&&(g=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 _=s.data.safetyInputModular&&JSON.parse(s.data.safetyInputModular).map(A=>({...A,formList:A.formList.map(D=>({...D,value:D.value?D.props.type==="\u6587\u4EF6\u4E0A\u4F20"?Ca(D.value):D.value:void 0}))}));n.value={isCoreBusiness:s.data.isOpenCoreBusiness,isProjectImageProgress:s.data.isEngineeringSpeed,isRemark:s.data.isRemark,isSafetyInput:s.data.isOpenSafetyInput,safetyInputModular:_||[],isReviewChecklist:g,reviewChecklist:u},ja(()=>{Ne()}),d.name==="handleAfterGiveBack"&&Oa()}else{const _=await ba({regionCode:x.value.regionCode});n.value={isCoreBusiness:_.data.isCoreBusiness,isProjectImageProgress:_.data.isProjectImageProgress,isRemark:_.data.isRemark,isSafetyInput:_.data.isSafetyInput,safetyInputModular:_.data.safetyInputModular||[]}}if((b=n.value.safetyInputModular)!=null&&b.length){let _=11;n.value.safetyInputModular.forEach(A=>{ke.value.push(_+++"")})}});async function Ta(s){var L,E,$,q,H,J,O,V,G;const e=s.baseProjId,u=await Pa(e),g=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"))||"",_=((J=(H=(q=a.value.formData)==null?void 0:q.baseHistorProjs)==null?void 0:H.map(h=>h.baseProjName))==null?void 0:J.join("\uFF1B"))||"",A=((G=(V=(O=a.value.formData)==null?void 0:O.baseHistorProjs)==null?void 0:V.map(h=>h.baseProjSetYear))==null?void 0:G.join("\uFF1B"))||"",D=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:g,baseHistorProjId:b,baseHistorProjName:_,baseHistorProjYear:A,projectYear:D,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(S=>({...S,value:S.value?S.props.type==="\u6587\u4EF6\u4E0A\u4F20"?Ca(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:z||[]},ja(()=>{Ne()})}return(s,e)=>{var z,L,E,$,q,H,J;const u=B("Warning"),g=B("el-icon"),t=B("el-button"),r=B("el-form-item"),o=B("el-col"),b=B("el-row"),_=B("el-form"),A=B("el-card"),D=B("el-collapse-item"),X=B("el-collapse");return P(),Ce(we,null,[i("div",yt,[U(d).name==="handleAfterGiveBack"?(P(),Ce("div",gt,[m(g,{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:Sa},{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",_t,[i("div",It,[i("div",bt,[i("p",jt,Q(f.value.projectName),1),i("div",Pt,[m(_,{"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]=O=>ke.value=O)},{default:l(()=>{var O,V,G,h,S,oe,re,le,ie,ne,ue,me,fe,de,pe,ce,ve,De;return[m(D,{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",Ct,[m(Ka,{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:Ta,onChangeIsFirst:wa,onGetBasicInfoData:Ba},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(we,{key:0},[((h=(G=a.value)==null?void 0:G.formData)==null?void 0:h.baseProjIsConfidentiality)==="01"?(P(),F(D,{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,[m(Xa,{ref_key:"fundsInfoRef",ref:v,"detail-data":f.value},null,8,["detail-data"])])]),_:1})):k("",!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(D,{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",ht,[m(Za,{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(D,{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",Ft,[m(et,{ref_key:"annualPaymentPlanRef",ref:p},null,512)])]),_:1})):k("",!0),n.value.isCoreBusiness?(P(),F(D,{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",wt,[m(at,{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(D,{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,[m(tt,{ref_key:"safetyInputRef",ref:Z},null,512)])]),_:1})):k("",!0),n.value.isProjectImageProgress?(P(),F(D,{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",Ot,[m(st,{ref_key:"projectImageProgressRef",ref:be},null,512)])]),_:1})):k("",!0),U(ka)()&&n.value.isReviewChecklist&&(s.$route.name==="declarePlan"||[10012,10013,10016].includes((ve=f.value)==null?void 0:ve.status))?(P(),F(D,{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",St,[m(Dt,{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(D,{name:"8",class:"mb-16"},{title:l(()=>e[12]||(e[12]=[i("div",{class:"collapse-title"},"\u9644\u4EF6",-1)])),default:l(()=>{var j,N,M;return[i("div",Nt,[m(ot,{ref_key:"accessoryRef",ref:I,"detail-data":f.value,"project-type":(N=(j=a.value)==null?void 0:j.formData)==null?void 0:N.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(D,{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",Rt,[m(rt,{ref_key:"projectRemarkRef",ref:he},null,512)])]),_:1})):k("",!0),(De=n.value.safetyInputModular)!=null&&De.length?(P(!0),Ce(we,{key:8},Ya(n.value.safetyInputModular,(j,N)=>(P(),F(D,{key:N,name:11+N+"",class:"mb-16"},{title:l(()=>[i("div",Mt,Q(j.moduleName),1)]),default:l(()=>[i("div",Bt,[m(lt,{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(D,{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,N,M,ye;return[i("div",Tt,[m(it,{ref_key:"applicationsRef",ref:C,"is-first":(N=(j=a.value)==null?void 0:j.formData)==null?void 0:N.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(D,{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,[m(Qa,{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(nt,{ref_key:"hiddenAppFormRef",ref:Oe,"application-list":(q=($=C.value)==null?void 0:$.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",Lt,[m(t,{onClick:e[1]||(e[1]=O=>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:Fa},{default:l(()=>e[17]||(e[17]=[T(" \u6682 \u5B58 ")])),_:1},8,["loading"])):k("",!0),m(t,{type:"primary",loading:Pe.value,onClick:ha},{default:l(()=>e[18]||(e[18]=[T(" \u63D0\u4EA4\u5BA1\u6838")])),_:1},8,["loading"])])]),m(ut,{visible:se.visible,"flow-data":se.flowData,onClose:Ra},null,8,["visible","flow-data"])],64)}}}),Fs=La($t,[["__scopeId","data-v-6d3ce489"]]);export{Fs as default};