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.4fc04d62.js 29KB

3 kuukautta sitten
1
  1. import{g as Ia}from"./formConfiguration.511b1921.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 ba,c as B,e as P,f as Ce,g as i,u as U,h as m,i as l,t as Q,j as T,k as h,G as F,F as we,H as Ua,a0 as Wa,a1 as za,q as Ka}from"./index.55251523.js";import Qa from"./basicInfo.3822ec62.js";import Xa from"./plannedUseResources.310b1fe2.js";import Za from"./fundsInfo.5bb5ec95.js";import et from"./fundsAllocation.629ab012.js";import at from"./annualPaymentPlan.44d73844.js";import tt from"./coreBusiness.1de76cc0.js";import st from"./safetyInput.31bde38c.js";import ot from"./projectImageProgress.ac9fd164.js";import rt from"./accessory.35b943e4.js";import lt from"./projectRemark.53b3c86b.js";import it from"./newModuleForm.9f7a06ea.js";import nt from"./applications.449c95a2.js";import ut from"./hiddenAppForm.d5c880d6.js";import mt from"./flowRecordDialog.e046888f.js";import{j as ft,k as dt,d as pt,s as ct}from"./index.8a59d8d8.js";import{p as ja}from"./projectStore.aceb2df8.js";import{a as vt}from"./annualPlanStore.bf18f6f7.js";import{r as Pa,g as O}from"./uploadAction.6ab57011.js";import{d as Dt}from"./projectCollectionEnter.a9815778.js";import yt from"./reviewCheck.5dc2fb92.js";import{g as Ca}from"./getIsShowReviewCheck.5dda2d05.js";import"./index.f5b34f1e.js";import"./unitManage.0cc696d7.js";import"./userDialog.3e8e122a.js";import"./relatedProjectDialog.92241468.js";import"./renewalProjectCapitalDeclare.a1792d1e.js";import"./projectContentDialog.7baa1045.js";import"./indicatorTemplate.9bceab62.js";import"./validate.e0f99e8b.js";import"./appBasicInfo.be76dcd8.js";import"./appSafeInfo.93617344.js";import"./appResourceInfo.ee1bf164.js";import"./applicationInfo.ea55b309.js";import"./flowRecord.1092ea73.js";import"./index.8fabbc4d.js";import"./index.ae3f62a1.js";import"./sjFlowRecord.46bf6420.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(),d=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(),Ae=g(),p=g(),W=g(),Z=g(),be=g(),D=g(),ke=g(),ee=g({}),C=g(),Oe=g(),Fe=g(),ha=()=>{var e,u,_;const s=[];if(((e=a.value.formData)==null?void 0:e.baseProjIsConfidentiality)==="02")s.push(new Promise((t,r)=>{a.value.validForm(o=>{o&&t()})}));else{s.push(new Promise((t,r)=>{a.value.validForm(o=>{o&&(v.value.formData.declareAmount>=1e3&&a.value.formData.baseProvManDeprtType==="2"?(a.value.formData.baseProvManDeprtType="",r("\u6839\u636E\u300A\u6D59\u6C5F\u7701\u7535\u5B50\u653F\u52A1\u91CD\u5927\u5E94\u7528\u9879\u76EE\u8054\u5BA1\u300B\u8981\u6C42\uFF1A\u5927\u4E8E1000\u4E07\u5143\u7684\u91CD\u5927\u9879\u76EE\u5C06\u7531\u7701\u7EA7\u6570\u6539\u7275\u5934\u90E8\u95E8\u53CA\u4E1A\u52A1\u4E3B\u7BA1\u5355\u4F4D\u8FDB\u884C\u8054\u5BA1\uFF0C\u8BF7\u5C06\u4E0A\u7EA7\u4E3B\u7BA1\u5355\u4F4D\u4FEE\u6539\u4E3A\u60A8\u5BF9\u5E94\u6761\u7EBF\u7684\u7701\u7EA7\u4E3B\u7BA1\u5355\u4F4D\u3002")):t())})})),s.push(new Promise((t,r)=>{v.value.validForm(o=>{o&&t()})})),n.value.isCoreBusiness&&s.push(new Promise((t,r)=>{W.value.validForm(o=>{o&&t()})})),n.value.isSafetyInput&&s.push(new Promise((t,r)=>{Z.value.validForm(o=>{o&&t()})})),n.value.isProjectImageProgress&&s.push(new Promise((t,r)=>{be.value.validForm(o=>{o&&t()})})),Ca()&&n.value.isReviewChecklist&&(d.name==="declarePlan"||[10012,10013,10016].includes((u=f.value)==null?void 0:u.status))&&s.push(new Promise((t,r)=>{Fe.value.validForm(o=>{o&&t()})})),s.push(new Promise((t,r)=>{D.value.validForm(o=>{o&&t()})}));for(const t in ee.value)s.push(new Promise((r,o)=>{ee.value[t].validForm(b=>{b&&r()})}));C.value&&s.push(new Promise((t,r)=>{C.value.validForm(o=>{o&&t()})})),s.push(new Promise((t,r)=>{v.value.validForm(o=>{if(o){const b=Se([v.value.formData.declareHaveAmount,v.value.formData.declareGovOwnFinanceAmount,v.value.formData.declareGovSuperiorFinanceAmount,v.value.formData.declareBankLendingAmount,v.value.formData.declareOtherAmount]);v.value.formData.declareAmount>0&&v.value.formData.declareAmount===b?t():r("\u8D44\u91D1\u7533\u62A5\u60C5\u51B5\uFF1A5\u7C7B\u8D44\u91D1\u603B\u548C\u5FC5\u987B\u7B49\u4E8E\u7533\u62A5\u91D1\u989D")}})})),(a==null?void 0:a.value.formData.projectType)!=="04"&&(a==null?void 0:a.value.formData.projectType)!=="05"&&(s.push(new Promise((t,r)=>{w.value.validForm(o=>{o&&t()})})),s.push(new Promise((t,r)=>{w.value.validForm(o=>{if(o){const b=Se([w.value.formData.softwareDevelopmentAmount,w.value.formData.cloudHardwarePurchaseAmount,w.value.formData.thirdPartyAmount]);v.value.formData.declareAmount>0&&v.value.formData.declareAmount===b?t():r("\u8D44\u91D1\u5206\u914D\u60C5\u51B5\uFF1A3\u7C7B\u8D44\u91D1\u603B\u548C\u5FC5\u987B\u7B49\u4E8E\u7533\u62A5\u91D1\u989D")}})})),s.push(new Promise((t,r)=>{p.value.validForm(o=>{o&&t()})}))),((_=C.value)==null?void 0:_.formData.includeApplication)===1&&s.push(new Promise((t,r)=>{Oe.value.validAllAppForm(o=>{o?t():r("\u8BF7\u5B8C\u5584\u5DF2\u6DFB\u52A0\u7684\u5E94\u7528\u4FE1\u606F")})})),Ie.value&&s.push(new Promise((t,r)=>{Ie.value.validForm(o=>{o&&t()})}))}Promise.all([...s]).then(async()=>{var t,r;((t=a.value.formData)==null?void 0:t.baseProjIsConfidentiality)==="02"?ae(1):n.value.isSafetyInput&&((r=Z.value)==null?void 0:r.formData.safetyInput.reduce((I,A)=>I+A.safetyInputAmount,0))/v.value.formData.declareAmount*100<5?ge.$messageBox.confirm("\u5F53\u524D\u5B89\u5168\u6295\u5165\u5360\u6BD4\u4F4E\u4E8E5%\uFF0C\u786E\u8BA4\u8981\u63D0\u4EA4\u5417?","\u786E\u8BA4\u8981\u63D0\u4EA4\u5417\uFF1F",{type:"warning"}).then(async()=>{ae(1)}):ae(1)}).catch(t=>{t&&ge.$message.warning(t)})},Se=s=>{const e=[];s.forEach(t=>{try{e.push(t.toString().split(".")[1].length)}catch{e.push(0)}});const u=Math.pow(10,Math.max(...e));let _=0;return s.forEach(t=>{_+=t*u}),_/u},ka=async()=>{ae(2)},Fa=s=>{var e,u,_,t,r,o,b;((e=C.value)==null?void 0:e.formData)&&((u=C.value)==null?void 0:u.formData.includeApplication)===1&&((r=(t=(_=C.value)==null?void 0:_.formData)==null?void 0:t.applicationList)==null?void 0:r.length)&&(C.value.formData.applicationList=(b=(o=C.value.formData)==null?void 0:o.applicationList)==null?void 0:b.map(I=>({...I,applicationName:s?I.applicationName:void 0,relatedExistsApplication:s?void 0:I.relatedExistsApplication,relatedExistsApplicationCode:s?void 0:I.relatedExistsApplication})))},je=g(!1),Pe=g(!1),ae=async s=>{var u,_,t,r,o,b,I,A,y,X,z,L,E,$,q,J,H,S,V,G,k,R,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,Je,He,Ve,Ge,Ye,Ue,We,ze,Ke,Qe,Xe,Ze,ea,aa,ta,sa,oa,ra,la,ia,na,ua,ma,fa,da,pa,ca;var e={};if(((u=a.value.formData)==null?void 0:u.baseProjIsConfidentiality)==="02")e={isRemarks:n.value.isRemarks,isOpenCoreBusiness:n.value.isCoreBusiness,isOpenSafetyInput:n.value.isSafetyInput,isEngineeringSpeed:n.value.isProjectImageProgress,isReviewChecklist:n.value.isReviewChecklist,id:d.query.id*1||void 0,baseProjIsConfidentiality:(_=a.value.formData)==null?void 0:_.baseProjIsConfidentiality,projectName:(t=a.value.formData)==null?void 0:t.projectName,projectType:(r=a.value.formData)==null?void 0:r.projectType,baseConstructionType:((b=(o=a.value.formData)==null?void 0:o.baseConstructionType)==null?void 0:b.join("\uFF1B"))||"",responsibleMan:(I=a.value.formData)==null?void 0:I.responsibleMan,responsibleManMobile:(A=a.value.formData)==null?void 0:A.responsibleManMobile,contactName:(y=a.value.formData)==null?void 0:y.contactName,contactPhone:(X=a.value.formData)==null?void 0:X.contactPhone,buildOrgName:(z=a.value.formData)==null?void 0:z.buildOrgName,orgCreditCode:(L=a.value.formData)==null?void 0:L.orgCreditCode,baseProvManDeprtType:a.value.formData.baseProvManDeprtType*1||void 0,higherSuperOrg:(E=a.value.formData)==null?void 0:E.higherSuperOrg,higherSuperOrgCode:($=a.value.formData)==null?void 0:$.higherSuperOrgCode,superOrg:(q=a.value.formData)==null?void 0:q.superOrg,superOrgCode:(J=a.value.formData)==null?void 0:J.superOrgCode,superOrgCreditCode:(H=a.value.formData)==null?void 0:H.superOrgCreditCode,projectYear:((S=a.value.formData)==null?void 0:S.projectYear)*1,declareAmount:(V=a.value.formData)==null?void 0:V.declareAmount,annualPlanAmount:(G=a.value.formData)==null?void 0:G.declareAmount};else if(e={isRemarks:n.value.isRemarks,isOpenCoreBusiness:n.value.isCoreBusiness,isOpenSafetyInput:n.value.isSafetyInput,isEngineeringSpeed:n.value.isProjectImageProgress,isReviewChecklist:n.value.isReviewChecklist,id:d.query.id*1||void 0,...a.value.formData,...v.value.formData,...(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:((Te=(Be=(Me=a.value.formData)==null?void 0:Me.baseHistorProjs)==null?void 0:Be.map(c=>c.baseProjId))==null?void 0:Te.join("\uFF1B"))||"",baseHistorProjName:((Ee=(Le=(xe=a.value.formData)==null?void 0:xe.baseHistorProjs)==null?void 0:Le.map(c=>c.baseProjName))==null?void 0:Ee.join("\uFF1B"))||"",baseHistorProjYear:((Je=(qe=($e=a.value.formData)==null?void 0:$e.baseHistorProjs)==null?void 0:qe.map(c=>c.baseProjSetYear))==null?void 0:Je.join("\uFF1B"))||"",baseHistorProjs:void 0,beseExpectedResults:((Ve=(He=a.value.formData)==null?void 0:He.beseExpectedResults)==null?void 0:Ve.length)&&JSON.stringify(a.value.formData.beseExpectedResults)||"",baseBasisAmountOri:((Ge=v.value)==null?void 0:Ge.formData.declareOtherAmount)>0&&((Ye=v.value.formData)==null?void 0:Ye.baseBasisAmountOri)||"",consultancy:((Ue=v.value)==null?void 0:Ue.formData.declareAmount)>400&&((We=v.value.formData)==null?void 0:We.consultancy)||"",operationManageUnit:((ze=v.value)==null?void 0:ze.formData.declareAmount)>=1e3&&Ae.value.formData.operationManageUnit||void 0,...(Ke=C.value)==null?void 0:Ke.formData,...D.value.formData,constructionPlanFile:((Qe=D.value.formData)==null?void 0:Qe.constructionPlanFile)&&JSON.stringify(O(D.value.formData.constructionPlanFile)),preliminaryPlanFile:((Xe=D.value.formData)==null?void 0:Xe.preliminaryPlanFile)&&JSON.stringify(O(D.value.formData.preliminaryPlanFile)),mainResponsibilitiesApplicantFile:((Ze=D.value.formData)==null?void 0:Ze.mainResponsibilitiesApplicantFile)&&JSON.stringify(O(D.value.formData.mainResponsibilitiesApplicantFile)),supportingMaterialsFile:((ea=D.value.formData)==null?void 0:ea.supportingMaterialsFile)&&JSON.stringify(O(D.value.formData.supportingMaterialsFile)),calculationTotalInvestmentFile:((aa=D.value.formData)==null?void 0:aa.calculationTotalInvestmentFile)&&JSON.stringify(O(D.value.formData.calculationTotalInvestmentFile)),projectApplicationForm:((ta=D.value.formData)==null?void 0:ta.projectApplicationForm)&&JSON.stringify(O(D.value.formData.projectApplicationForm))||"",baseResearchReportFile:((sa=D.value.formData)==null?void 0:sa.baseResearchReportFile)&&JSON.stringify(O(D.value.formData.baseResearchReportFile))||"",operationPlan:(a.value.formData.projectType==="04"||a.value.formData.projectType==="05")&&((oa=D.value.formData)==null?void 0:oa.operationPlan)&&JSON.stringify(O(D.value.formData.operationPlan))||"",baseProjOtherFile:((ra=D.value.formData)==null?void 0:ra.baseProjOtherFile)&&JSON.stringify(O(D.value.formData.baseProjOtherFile)),mainAccusationDoc:((la=v.value)==null?void 0:la.formData.declareAmount)>=1e3&&((ia=D.value.formData)==null?void 0:ia.mainAccusationDoc)&&JSON.stringify(O(D.value.formData.mainAccusationDoc))||"",reviewChecklist:((ua=(na=Fe.value)==null?void 0:na.formData)==null?void 0:ua.reviewChecklist)||void 0},a.value.formData.projectType!=="04"&&a.value.formData.projectType!=="05"&&(e=Object.assign(e,{...w==null?void 0:w.value.formData,...p==null?void 0:p.value.formData})),n.value.isCoreBusiness&&(e=Object.assign(e,{...W.value.formData,coreBusiness:W.value.formData.coreBusiness&&JSON.stringify(W.value.formData.coreBusiness)})),n.value.isSafetyInput&&(e=Object.assign(e,{safetyInputDescribe:JSON.stringify(Z.value.formData.safetyInput)})),n.value.isProjectImageProgress&&(e=Object.assign(e,{...be.value.formData})),n.value.isRemark&&(e=Object.assign(e,{...ke.value.formData})),((fa=(ma=C.value)==null?void 0:ma.formData)==null?void 0:fa.includeApplication)&&((pa=(da=C.value)==null?void 0:da.formData.applicationList)==null?void 0:pa.length)&&(e.applicationList=C.value.formData.applicationList.map(c=>{var K,Y,va,Da,ya;return{...c,isFirst:(K=a.value.formData)!=null&&K.isFirst?1:0,relatedExistsApplication:(!((Y=a.value.formData)!=null&&Y.isFirst)&&x.value.regionCode==="331123"||x.regionCode!=="331123")&&((va=c.relatedExistsApplication)==null?void 0:va.applicationName)||void 0,relatedExistsApplicationCode:(!((Da=a.value.formData)!=null&&Da.isFirst)&&x.value.regionCode==="331123"||x.regionCode!=="331123")&&c.relatedExistsApplicationCode||void 0,applicationName:((ya=a.value.formData)==null?void 0:ya.isFirst)&&x.regionCode==="331123"&&c.applicationName||void 0,coreBusinessList:c.coreBusinessList.map(La=>{var ga,_a;return{...La,projectId:((ga=f.value)==null?void 0:ga.projectId)||void 0,projectCode:((_a=f.value)==null?void 0:_a.projectCode)||void 0}})}})),(ca=n.value.safetyInputModular)!=null&&ca.length){e.safetyInputModular=[];for(const K in ee.value)e.safetyInputModular.push(ee.value[K].formData);const c=e.safetyInputModular.map(K=>({...K,formList:K.formList.map(Y=>({...Y,value:Y.value?Y.props.type==="\u6587\u4EF6\u4E0A\u4F20"?O(Y.value):Y.value:void 0}))}));e.safetyInputModular=JSON.stringify(c)}else e.safetyInputModular=void 0;if(s===1){Pe.value=!0;try{const c={projectInfo:{...e,id:d.query.isDraft?void 0:e.id,draftId:d.query.isDraft?d.query.id*1:void 0}};d.name==="declarePage"?await dt(!d.query.isDraft&&d.query.id?2:1,c):d.name==="planEdit"?await vt(c.projectInfo):d.name==="handleAfterGiveBack"?await Wa({...c,projectId:d.query.id,instanceId:d.query.instanceId,taskId:d.query.taskId}):d.name==="declarePlan"&&await pt(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 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({}),Re=()=>{var s,e;a.value.setFormData(f.value),((s=f.value)==null?void 0:s.baseProjIsConfidentiality)!=="02"&&(v.value.setFormData(f.value),w==null||w.value.setFormData(f.value),p==null||p.value.setFormData(f.value),n.value.isCoreBusiness&&W.value.setFormData(f.value),n.value.isSafetyInput&&Z.value.setFormData(f.value),n.value.isProjectImageProgress&&be.value.setFormData(f.value),D.value.setFormData(f.value),n.value.isRemark&&ke.value.setFormData(f.value),(e=C.value)==null||e.setFormData(f.value),setTimeout(()=>{var u;(u=Ae.value)==null||u.setFormData(f.value)}))},te=g({processProgressVo:{progressInfo:[]}}),wa=g(),Aa=async()=>{var e,u;const s=await za({instanceId:d.query.instanceId,projectId:d.query.id,nodeId:d.query.nodeId});te.value={...s.data,processProgressVo:{...s.data.processProgressVo,progressInfo:Sa(s.data.processProgressVo.progressInfo)}},wa.value=((u=(e=te.value.processProgressVo.progressInfo.slice(-1)[0])==null?void 0:e.children)==null?void 0:u.slice(-1)[0])||te.value.processProgressVo.progressInfo.slice(-1)[0]},se=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 u=[],_=[];e.children.forEach(t=>{u.includes(t.nodeId)?(_.find(r=>r.nodeId===t.nodeId).list.push(t),_.find(r=>r.nodeId===t.nodeId).userIds.push(t.userId)):(u.push(t.nodeId),_.push({nodeId:t.nodeId,approvalMode:t.approvalMode,name:t.name,taskId:t.taskId,nodeType:t.nodeType,list:[{...t}],userIds:[t.userId]}))}),e.children=_}else e.userIds=[e.userId]}),s),Ra=()=>{se.visible=!1},Ne=g([]),Na=g(),Ma=s=>{Na.value=s};Ya(async()=>{Ne.value=(await Dt()).data,Ba()});async function Ba(){var t,r,o,b;if(d.query.id){var s={},e={},u=[],_=!1;(t=d.query)!=null&&t.isDraft?s=await ft({id:d.query.id}):(s=await ja(d.query.id),e=await Ia({regionCode:x.value.regionCode}),(d.name==="declarePlan"||[10012,10013,10016].includes((r=f.value)==null?void 0:r.status))&&(_=s.data.reviewChecklist&&((o=JSON.parse(s.data.reviewChecklist))==null?void 0:o.length)?!0:e.data.isReviewChecklist,u=e.data.reviewChecklist&&JSON.parse(e.data.reviewChecklist)||[])),f.value={...s.data,reviewChecklist:s.data.reviewChecklist?JSON.parse(s.data.reviewChecklist):void 0};const I=s.data.safetyInputModular&&JSON.parse(s.data.safetyInputModular).map(A=>({...A,formList:A.formList.map(y=>({...y,value:y.value?y.props.type==="\u6587\u4EF6\u4E0A\u4F20"?Pa(y.value):y.value:void 0}))}));n.value={isCoreBusiness:s.data.isOpenCoreBusiness,isProjectImageProgress:s.data.isEngineeringSpeed,isRemark:s.data.isRemark,isSafetyInput:s.data.isOpenSafetyInput,safetyInputModular:I||[],isReviewChecklist:_,reviewChecklist:u},ba(()=>{Re()}),d.name==="handleAfterGiveBack"&&Aa()}else{const I=await Ia({regionCode:x.value.regionCode});n.value={isCoreBusiness:I.data.isCoreBusiness,isProjectImageProgress:I.data.isProjectImageProgress,isRemark:I.data.isRemark,isSafetyInput:I.data.isSafetyInput,safetyInputModular:I.data.safetyInputModular||[]}}if((b=n.value.safetyInputModular)!=null&&b.length){let I=11;n.value.safetyInputModular.forEach(A=>{he.value.push(I+++"")})}}async function Ta(s){var L,E,$,q,J,H,S,V,G;const e=s.baseProjId,u=await ja(e),_=a.value.formData.projectType,t=a.value.formData.projectName,r=a.value.formData.buildOrgName,o=a.value.formData.orgCreditCode,b=(($=(E=(L=a.value.formData)==null?void 0:L.baseHistorProjs)==null?void 0:E.map(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={...u.data,projectType:_,baseHistorProjId:b,baseHistorProjName:I,baseHistorProjYear:A,projectYear:y,projectName:t,buildOrgName:r,orgCreditCode:o,...X,status:void 0};const z=u.data.safetyInputModular&&JSON.parse(u.data.safetyInputModular).map(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:u.data.isOpenCoreBusiness,isProjectImageProgress:u.data.isEngineeringSpeed,isRemark:u.data.isRemark,isSafetyInput:u.data.isOpenSafetyInput,safetyInputModular:z||[]},ba(()=>{Re()})}function xa(){location.reload()}return(s,e)=>{var z,L,E,$,q,J,H;const u=B("Warning"),_=B("el-icon"),t=B("el-button"),r=B("el-form-item"),o=B("el-col"),b=B("el-row"),I=B("el-form"),A=B("el-card"),y=B("el-collapse-item"),X=B("el-collapse");return P(),Ce(we,null,[i("div",gt,[U(d).name==="handleAfterGiveBack"?(P(),Ce("div",_t,[m(_,{class:"icon"},{default:l(()=>[m(u)]),_:1}),i("div",null,[e[3]||(e[3]=i("p",{class:"title"},"\u6D41\u7A0B\u88AB\u9000\u56DE",-1)),i("p",null,[i("span",null,Q((z=f.value)==null?void 0:z.projectName)+"\u7684"+Q((E=(L=te.value)==null?void 0:L.processProgressVo)==null?void 0:E.processDefName)+"\u88AB\u9000\u56DE\uFF0C\u8BF7\u6839\u636E\u5BA1\u6838\u8BB0\u5F55\u8C03\u6574\u9879\u76EE\u4FE1\u606F",1),m(t,{type:"primary",plain:"",size:"small",class:"ml-16",onClick:Oa},{default:l(()=>e[2]||(e[2]=[T("\u67E5\u770B\u5BA1\u6838\u8BB0\u5F55 ")])),_:1})])])])):h("",!0),U(d).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,[m(I,{"label-suffix":":"},{default:l(()=>[m(b,{gutter:24},{default:l(()=>[m(o,{span:6},{default:l(()=>[m(r,{label:"\u7533\u62A5\u5355\u4F4D"},{default:l(()=>[T(Q(f.value.buildOrgName||"-"),1)]),_:1})]),_:1}),m(o,{span:6},{default:l(()=>[m(r,{label:"\u4E3B\u7BA1\u5355\u4F4D"},{default:l(()=>[T(Q(f.value.superOrg||"-"),1)]),_:1})]),_:1}),m(o,{span:6},{default:l(()=>[m(r,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:l(()=>[T(Q(f.value.createOn||"-"),1)]),_:1})]),_:1})]),_:1})]),_:1})])])])])]),_:1})):h("",!0),m(b,null,{default:l(()=>[m(o,{class:"leftCol",span:24},{default:l(()=>[m(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[m(y,{name:"1",class:"mb-16"},{title:l(()=>e[4]||(e[4]=[i("div",{class:"collapse-title"},"\u57FA\u672C\u4FE1\u606F",-1)])),default:l(()=>{var j;return[i("div",ht,[m(Qa,{ref_key:"basicInfoRef",ref:a,"detail-data":f.value,"dictionary-list":Ne.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(we,{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,[m(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,[m(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,[m(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,[m(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,[m(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,[m(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,[m(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),m(y,{name:"8",class:"mb-16"},{title:l(()=>e[12]||(e[12]=[i("div",{class:"collapse-title"},"\u9644\u4EF6",-1)])),default:l(()=>{var j,N,M;return[i("div",Nt,[m(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,[m(lt,{ref_key:"projectRemarkRef",ref:ke},null,512)])]),_:1})):h("",!0),(De=n.value.safetyInputModular)!=null&&De.length?(P(!0),Ce(we,{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,[m(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,[m(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,[m(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}),m(ut,{ref_key:"hiddenAppFormRef",ref:Oe,"application-list":(q=($=C.value)==null?void 0:$.formData)==null?void 0:q.applicationList,"is-first":(H=(J=a.value)==null?void 0:J.formData)==null?void 0:H.isFirst},null,8,["application-list","is-first"]),i("div",Et,[m(t,{onClick:e[1]||(e[1]=S=>U(_e).go(-1))},{default:l(()=>e[16]||(e[16]=[T(" \u8FD4\u56DE")])),_:1}),U(d).name==="declarePage"&&(!U(d).query.id||U(d).query.id&&U(d).query.isDraft)?(P(),F(t,{key:0,plain:"",type:"primary",loading:je.value,onClick:ka},{default:l(()=>e[17]||(e[17]=[T(" \u6682 \u5B58 ")])),_:1},8,["loading"])):h("",!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(mt,{visible:se.visible,"flow-data":se.flowData,onClose:Ra},null,8,["visible","flow-data"])],64)}}}),ws=Ea(qt,[["__scopeId","data-v-a5dcc7cd"]]);export{ws as default};