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

  1. import{g as ba}from"./formConfiguration.04efdbd3.js";import{_ as Ea,d as $a,x as qa,y as Ja,C as Ha,B as Va,r as g,b as Ga,o as Ya,L as Ae,c as B,e as P,f as Ce,g as i,u as U,h as u,i as l,t as Q,j as T,k as h,G as F,F as Oe,H as Ua,a0 as Wa,a1 as za,q as Ka}from"./index.13afb401.js";import Qa from"./basicInfo.ed237f83.js";import Xa from"./plannedUseResources.c9481044.js";import Za from"./fundsInfo.5b0d310e.js";import et from"./fundsAllocation.7f045672.js";import at from"./annualPaymentPlan.46a9c250.js";import tt from"./coreBusiness.01f73ec9.js";import st from"./safetyInput.218975df.js";import ot from"./projectImageProgress.d3bdf31c.js";import rt from"./accessory.6377c761.js";import lt from"./projectRemark.cca00615.js";import it from"./newModuleForm.a19e6937.js";import nt from"./applications.6c27af96.js";import ut from"./hiddenAppForm.865c820b.js";import mt from"./flowRecordDialog.7d2f37e1.js";import{j as ft,k as dt,d as pt,s as ct}from"./index.ac30d658.js";import{p as ja}from"./projectStore.a20d15a1.js";import{a as vt}from"./annualPlanStore.21df4c3f.js";import{r as Pa,g as O}from"./uploadAction.d6d53fa7.js";import{d as Dt}from"./projectCollectionEnter.de5eee00.js";import yt from"./reviewCheck.aa511ebc.js";import{g as Ca}from"./getIsShowReviewCheck.597ecd91.js";import"./index.a25aaacc.js";import"./unitManage.81e63b6a.js";import"./userDialog.5de43da4.js";import"./relatedProjectDialog.d97d89c9.js";import"./renewalProjectCapitalDeclare.aac1ff09.js";import"./projectContentDialog.9e6aa366.js";import"./indicatorTemplate.336c9f47.js";import"./validate.e0f99e8b.js";import"./appBasicInfo.0e6409e2.js";import"./appSafeInfo.ce9a3e70.js";import"./appResourceInfo.e052fd72.js";import"./applicationInfo.06a2d11a.js";import"./flowRecord.3841f7cb.js";import"./index.47dddef0.js";import"./index.815b0e75.js";import"./sjFlowRecord.14e4b649.js";const gt={class:"declarePage footerPage"},_t={key:0,class:"errorTip mb-16"},It={class:"card-header"},bt={class:"flex justify-between items-center"},jt={class:"flex-1"},Pt={class:"font-bold"},Ct={class:"mt-8 search"},ht={class:"p-24"},kt={class:"p-24"},Ft={class:"p-24"},wt={class:"p-24"},At={class:"p-24"},Ot={class:"p-24"},St={class:"p-24"},Rt={class:"p-24"},Nt={class:"p-24"},Mt={class:"p-24"},Bt={class:"collapse-title"},Tt={class:"p-24"},xt={class:"p-24"},Lt={class:"p-24"},Et={class:"footer"},$t=$a({name:"declarePage"}),qt=Object.assign($t,{setup(Jt){const{proxy:ge}=Ka(),m=qa(),_e=Ja(),x=Ha(Va.userStore).userInfo||{},n=g({}),he=g(["1","2","3","4","5","6","7","8","9","10"]),a=g(),Ie=g(),v=g(),w=g(),Se=g(),p=g(),W=g(),Z=g(),be=g(),D=g(),ke=g(),ee=g({}),C=g(),Re=g(),Fe=g(),ha=()=>{var e,d,_;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&&(m.name==="declarePlan"||[10012,10013,10016].includes((d=f.value)==null?void 0:d.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=Ne([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=Ne([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)=>{Re.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)})},Ne=s=>{const e=[];s.forEach(t=>{try{e.push(t.toString().split(".")[1].length)}catch{e.push(0)}});const d=Math.pow(10,Math.max(...e));let _=0;return s.forEach(t=>{_+=t*d}),_/d},ka=async()=>{ae(2)},Fa=s=>{var e,d,_,t,r,o,b;((e=C.value)==null?void 0:e.formData)&&((d=C.value)==null?void 0:d.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 d,_,t,r,o,b,I,A,y,X,z,L,E,$,q,J,H,S,V,G,k,R,oe,re,le,ie,ne,ue,me,fe,de,pe,ce,ve,De,j,N,M,ye,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,va;var e={};if(((d=a.value.formData)==null?void 0:d.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:(_=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:m.query.id*1||void 0,...a.value.formData,...v.value.formData,...(k=Ie.value)==null?void 0:k.formData,baseConstructionType:((oe=(R=a.value.formData)==null?void 0:R.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(O(c.fileList))))==null?void 0:ye.join("\uFF1B"))||"",baseHistorProjId:((xe=(Te=(Be=a.value.formData)==null?void 0:Be.baseHistorProjs)==null?void 0:Te.map(c=>c.baseProjId))==null?void 0:xe.join("\uFF1B"))||"",baseHistorProjName:(($e=(Ee=(Le=a.value.formData)==null?void 0:Le.baseHistorProjs)==null?void 0:Ee.map(c=>c.baseProjName))==null?void 0:$e.join("\uFF1B"))||"",baseHistorProjYear:((He=(Je=(qe=a.value.formData)==null?void 0:qe.baseHistorProjs)==null?void 0:Je.map(c=>c.baseProjSetYear))==null?void 0:He.join("\uFF1B"))||"",baseHistorProjs:void 0,beseExpectedResults:((Ge=(Ve=a.value.formData)==null?void 0:Ve.beseExpectedResults)==null?void 0:Ge.length)&&JSON.stringify(a.value.formData.beseExpectedResults)||"",baseBasisAmountOri:((Ye=v.value)==null?void 0:Ye.formData.declareOtherAmount)>0&&((Ue=v.value.formData)==null?void 0:Ue.baseBasisAmountOri)||"",consultancy:((We=v.value)==null?void 0:We.formData.declareAmount)>400&&((ze=v.value.formData)==null?void 0:ze.consultancy)||"",operationManageUnit:((Ke=v.value)==null?void 0:Ke.formData.declareAmount)>=1e3&&Se.value.formData.operationManageUnit||void 0,...(Qe=C.value)==null?void 0:Qe.formData,...D.value.formData,constructionPlanFile:((Xe=D.value.formData)==null?void 0:Xe.constructionPlanFile)&&JSON.stringify(O(D.value.formData.constructionPlanFile)),preliminaryPlanFile:((Ze=D.value.formData)==null?void 0:Ze.preliminaryPlanFile)&&JSON.stringify(O(D.value.formData.preliminaryPlanFile)),mainResponsibilitiesApplicantFile:((ea=D.value.formData)==null?void 0:ea.mainResponsibilitiesApplicantFile)&&JSON.stringify(O(D.value.formData.mainResponsibilitiesApplicantFile)),supportingMaterialsFile:((aa=D.value.formData)==null?void 0:aa.supportingMaterialsFile)&&JSON.stringify(O(D.value.formData.supportingMaterialsFile)),calculationTotalInvestmentFile:((ta=D.value.formData)==null?void 0:ta.calculationTotalInvestmentFile)&&JSON.stringify(O(D.value.formData.calculationTotalInvestmentFile)),projectApplicationForm:((sa=D.value.formData)==null?void 0:sa.projectApplicationForm)&&JSON.stringify(O(D.value.formData.projectApplicationForm))||"",baseResearchReportFile:((oa=D.value.formData)==null?void 0:oa.baseResearchReportFile)&&JSON.stringify(O(D.value.formData.baseResearchReportFile))||"",operationPlan:(a.value.formData.projectType==="04"||a.value.formData.projectType==="05")&&((ra=D.value.formData)==null?void 0:ra.operationPlan)&&JSON.stringify(O(D.value.formData.operationPlan))||"",baseProjOtherFile:((la=D.value.formData)==null?void 0:la.baseProjOtherFile)&&JSON.stringify(O(D.value.formData.baseProjOtherFile)),mainAccusationDoc:((ia=v.value)==null?void 0:ia.formData.declareAmount)>=1e3&&((na=D.value.formData)==null?void 0:na.mainAccusationDoc)&&JSON.stringify(O(D.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,{...ke.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(La=>{var _a,Ia;return{...La,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"?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:m.query.isDraft?void 0:e.id,draftId:m.query.isDraft?m.query.id*1:void 0}};m.name==="declarePage"?await dt(!m.query.isDraft&&m.query.id?2:1,c):m.name==="planEdit"?await vt(c.projectInfo):m.name==="handleAfterGiveBack"?await Wa({...c,projectId:m.query.id,instanceId:m.query.instanceId,taskId:m.query.taskId}):m.name==="declarePlan"&&await pt(c),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){je.value=!0;try{await ct({projectInfo:{...e},user:x.value}),ge.$message.success("\u4FDD\u5B58\u6210\u529F"),je.value=!1,_e.go(-1)}catch{je.value=!1}}},f=g({}),we=()=>{var s;a.value.setFormData(f.value),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&&ke.value.setFormData(f.value),(s=C.value)==null||s.setFormData(f.value),setTimeout(()=>{var e;(e=Se.value)==null||e.setFormData(f.value)})},te=g({processProgressVo:{progressInfo:[]}}),wa=g(),Aa=async()=>{var e,d;const s=await za({instanceId:m.query.instanceId,projectId:m.query.id,nodeId:m.query.nodeId});te.value={...s.data,processProgressVo:{...s.data.processProgressVo,progressInfo:Sa(s.data.processProgressVo.progressInfo)}},wa.value=((d=(e=te.value.processProgressVo.progressInfo.slice(-1)[0])==null?void 0:e.children)==null?void 0:d.slice(-1)[0])||te.value.processProgressVo.progressInfo.slice(-1)[0]},se=Ga({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 d=[],_=[];e.children.forEach(t=>{d.includes(t.nodeId)?(_.find(r=>r.nodeId===t.nodeId).list.push(t),_.find(r=>r.nodeId===t.nodeId).userIds.push(t.userId)):(d.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),Ra=()=>{se.visible=!1},Me=g([]),Na=g(),Ma=s=>{Na.value=s};Ya(async()=>{Me.value=(await Dt()).data,Ba()});async function Ba(){var t,r,o,b;if(m.query.id){var s={},e={},d=[],_=!1;(t=m.query)!=null&&t.isDraft?s=await ft({id:m.query.id}):(s=await ja(m.query.id),e=await ba({regionCode:x.value.regionCode}),(m.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,d=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:d},Ae(()=>{we()}),m.name==="handleAfterGiveBack"&&Aa()}else{const I=await ba({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=>{he.value.push(I+++"")})}}async function Ta(s){var L,E,$,q,J,H,S,V,G;const e=s.baseProjId,d=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(k=>k.baseProjId))==null?void 0:$.join("\uFF1B"))||"",I=((H=(J=(q=a.value.formData)==null?void 0:q.baseHistorProjs)==null?void 0:J.map(k=>k.baseProjName))==null?void 0:H.join("\uFF1B"))||"",A=((G=(V=(S=a.value.formData)==null?void 0:S.baseHistorProjs)==null?void 0:V.map(k=>k.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={...d.data,projectType:_,baseHistorProjId:b,baseHistorProjName:I,baseHistorProjYear:A,projectYear:y,projectName:t,buildOrgName:r,orgCreditCode:o,...X,baseProjIsConfidentiality:"02",status:void 0};const z=d.data.safetyInputModular&&JSON.parse(d.data.safetyInputModular).map(k=>({...k,formList:k.formList.map(R=>({...R,value:R.value?R.props.type==="\u6587\u4EF6\u4E0A\u4F20"?Pa(R.value):R.value:void 0}))}));n.value={isCoreBusiness:d.data.isOpenCoreBusiness,isProjectImageProgress:d.data.isEngineeringSpeed,isRemark:d.data.isRemark,isSafetyInput:d.data.isOpenSafetyInput,safetyInputModular:z||[]},Ae(()=>{we()}),setTimeout(()=>{Ae(()=>{we()})},200)}function xa(){location.reload()}return(s,e)=>{var z,L,E,$,q,J,H;const d=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(Oe,null,[i("div",gt,[U(m).name==="handleAfterGiveBack"?(P(),Ce("div",_t,[u(_,{class:"icon"},{default:l(()=>[u(d)]),_: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),u(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})])])])):h("",!0),U(m).name==="declarePlan"?(P(),F(A,{key:1,shadow:"never",class:"mb-16"},{default:l(()=>[i("div",It,[i("div",bt,[i("div",jt,[i("p",Pt,Q(f.value.projectName),1),i("div",Ct,[u(I,{"label-suffix":":"},{default:l(()=>[u(b,{gutter:24},{default:l(()=>[u(o,{span:6},{default:l(()=>[u(r,{label:"\u7533\u62A5\u5355\u4F4D"},{default:l(()=>[T(Q(f.value.buildOrgName||"-"),1)]),_:1})]),_:1}),u(o,{span:6},{default:l(()=>[u(r,{label:"\u4E3B\u7BA1\u5355\u4F4D"},{default:l(()=>[T(Q(f.value.superOrg||"-"),1)]),_:1})]),_:1}),u(o,{span:6},{default:l(()=>[u(r,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:l(()=>[T(Q(f.value.createOn||"-"),1)]),_:1})]),_:1})]),_:1})]),_:1})])])])])]),_:1})):h("",!0),u(b,null,{default:l(()=>[u(o,{class:"leftCol",span:24},{default:l(()=>[u(X,{modelValue:he.value,"onUpdate:modelValue":e[0]||(e[0]=S=>he.value=S)},{default:l(()=>{var S,V,G,k,R,oe,re,le,ie,ne,ue,me,fe,de,pe,ce,ve,De;return[u(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",ht,[u(Qa,{ref_key:"basicInfoRef",ref:a,"detail-data":f.value,"dictionary-list":Me.value,"declare-amount":(j=v.value)==null?void 0:j.formData.declareAmount,onReuseItem:Ta,onChangeIsFirst:Fa,onChangeProjectTypeResetForm:xa,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(Oe,{key:0},[((k=(G=a.value)==null?void 0:G.formData)==null?void 0:k.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",kt,[u(Za,{ref_key:"fundsInfoRef",ref:v,"detail-data":f.value},null,8,["detail-data"])])]),_:1})):h("",!0),((oe=(R=a.value)==null?void 0:R.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",Ft,[u(et,{ref_key:"fundsAllocationRef",ref:w},null,512)])]),_:1})):h("",!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",wt,[u(at,{ref_key:"annualPaymentPlanRef",ref:p},null,512)])]),_:1})):h("",!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",At,[u(tt,{ref_key:"coreBusinessRef",ref:W,"basic-info-data":(j=a.value)==null?void 0:j.formData},null,8,["basic-info-data"])])]}),_:1})):h("",!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",Ot,[u(st,{ref_key:"safetyInputRef",ref:Z},null,512)])]),_:1})):h("",!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",St,[u(ot,{ref_key:"projectImageProgressRef",ref:be},null,512)])]),_:1})):h("",!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",Rt,[u(yt,{ref_key:"reviewCheckRef",ref:Fe,"detail-data":f.value,data:f.value.reviewChecklist||n.value.reviewChecklist},null,8,["detail-data","data"])])]),_:1})):h("",!0),u(y,{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,[u(rt,{ref_key:"accessoryRef",ref:D,"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(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",Mt,[u(lt,{ref_key:"projectRemarkRef",ref:ke},null,512)])]),_:1})):h("",!0),(De=n.value.safetyInputModular)!=null&&De.length?(P(!0),Ce(Oe,{key:8},Ua(n.value.safetyInputModular,(j,N)=>(P(),F(y,{key:N,name:11+N+"",class:"mb-16"},{title:l(()=>[i("div",Bt,Q(j.moduleName),1)]),default:l(()=>[i("div",Tt,[u(it,{ref_for:!0,ref:M=>{ee.value[j.id]=M},data:j},null,8,["data"])])]),_:2},1032,["name"]))),128)):h("",!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,N,M,ye;return[i("div",xt,[u(nt,{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})):h("",!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",Lt,[u(Xa,{ref_key:"planndedUseResourcesRef",ref:Ie,"detail-data":f.value},null,8,["detail-data"])])]),_:1})):h("",!0)],64)):h("",!0)]}),_:1},8,["modelValue"])]),_:1})]),_:1}),u(ut,{ref_key:"hiddenAppFormRef",ref:Re,"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",Et,[u(t,{onClick:e[1]||(e[1]=S=>U(_e).go(-1))},{default:l(()=>e[16]||(e[16]=[T(" \u8FD4\u56DE")])),_:1}),U(m).name==="declarePage"&&(!U(m).query.id||U(m).query.id&&U(m).query.isDraft)?(P(),F(t,{key:0,plain:"",type:"primary",loading:je.value,onClick:ka},{default:l(()=>e[17]||(e[17]=[T(" \u6682 \u5B58 ")])),_:1},8,["loading"])):h("",!0),u(t,{type:"primary",loading:Pe.value,onClick:ha},{default:l(()=>e[18]||(e[18]=[T(" \u63D0\u4EA4\u5BA1\u6838")])),_:1},8,["loading"])])]),u(mt,{visible:se.visible,"flow-data":se.flowData,onClose:Ra},null,8,["visible","flow-data"])],64)}}}),ws=Ea(qt,[["__scopeId","data-v-064298c5"]]);export{ws as default};