Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

2 wiersze
28KB

  1. import{g as ba}from"./formConfiguration.fdd9d586.js";import{_ as $a,d as qa,z as Ja,A as Ha,G as Va,D as Ga,r as D,b as Ya,o as Ua,N as ja,c as B,e as I,f as ye,g as i,u as U,h as f,i as l,t as Q,j as T,k as j,I as k,F as Ie,J as za,a2 as Wa,a3 as Ka,q as Qa,s as Xa,x as Za}from"./index.0b616ce3.js";import et from"./basicInfo.96256e9d.js";import at from"./plannedUseResources.87810b5e.js";import tt from"./fundsInfo.ad2f686c.js";import st from"./fundsAllocation.a8631f79.js";import ot from"./annualPaymentPlan.d2e06159.js";import rt from"./coreBusiness.b734387c.js";import lt from"./safetyInput.905184ae.js";import it from"./projectImageProgress.f03cb8e7.js";import nt from"./accessory.3cdba5ea.js";import ut from"./projectRemark.818eab28.js";import ft from"./newModuleForm.c119b871.js";import ct from"./applications.e3bcb300.js";import mt from"./hiddenAppForm.69aeed75.js";import dt from"./flowRecordDialog.8c75cfb0.js";import{j as pt,k as vt,d as Dt,s as _t}from"./index.8c2e9fca.js";import{p as Ca}from"./projectStore.f34a5291.js";import{a as yt}from"./annualPlanStore.83637aad.js";import{r as ka,g as S}from"./uploadAction.0353e8a4.js";import{d as gt}from"./projectCollectionEnter.6a23e013.js";import Pt from"./reviewCheck.1ee89f1f.js";import{g as Fa}from"./getIsShowReviewCheck.7b0f62e2.js";import"./index.10708b3b.js";import"./unitManage.4583e397.js";import"./userDialog.bd69785d.js";import"./relatedProjectDialog.75172c08.js";import"./renewalProjectCapitalDeclare.9593ed20.js";import"./projectContentDialog.417bfc98.js";import"./indicatorTemplate.faa3384f.js";import"./appBasicInfo.f0eb1a97.js";import"./appSafeInfo.2a878e87.js";import"./appResourceInfo.74701f30.js";import"./applicationInfo.3e5b9937.js";import"./flowRecord.ee81cfbb.js";import"./index.ca326906.js";import"./index.6c5e9add.js";import"./sjFlowRecord.b1900afd.js";const F=ce=>(Qa("data-v-572e3407"),ce=ce(),Xa(),ce),ht={class:"declarePage footerPage"},It={key:0,class:"errorTip mb-16"},bt=F(()=>i("p",{class:"title"},"\u6D41\u7A0B\u88AB\u9000\u56DE",-1)),jt={class:"card-header"},Ct={class:"flex justify-between items-center"},kt={class:"flex-1"},Ft={class:"font-bold"},wt={class:"mt-8 search"},At=F(()=>i("div",{class:"collapse-title"},"\u57FA\u672C\u4FE1\u606F",-1)),Rt={class:"p-24"},Ot=F(()=>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)),St={class:"p-24"},Mt=F(()=>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)),Nt={class:"p-24"},Bt=F(()=>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)),Tt={class:"p-24"},xt=F(()=>i("div",{class:"collapse-title"},"\u6838\u5FC3\u4E1A\u52A1",-1)),Lt={class:"p-24"},Et=F(()=>i("div",{class:"collapse-title"},"\u5B89\u5168\u6295\u5165",-1)),$t={class:"p-24"},qt=F(()=>i("div",{class:"collapse-title"},"\u5DE5\u7A0B\u5F62\u8C61\u8FDB\u5EA6",-1)),Jt={class:"p-24"},Ht=F(()=>i("div",{class:"collapse-title"},"\u5BA1\u67E5\u6E05\u5355",-1)),Vt={class:"p-24"},Gt=F(()=>i("div",{class:"collapse-title"},"\u9644\u4EF6",-1)),Yt={class:"p-24"},Ut=F(()=>i("div",{class:"collapse-title"},"\u5907\u6CE8",-1)),zt={class:"p-24"},Wt={class:"collapse-title"},Kt={class:"p-24"},Qt=F(()=>i("div",{class:"collapse-title"},"\u5E94\u7528\u4FE1\u606F",-1)),Xt={class:"p-24"},Zt=F(()=>i("div",{class:"collapse-title"},"\u8BA1\u5212\u4F7F\u7528\u8D44\u6E90",-1)),es={class:"p-24"},as={class:"footer"},ts=qa({name:"declarePage"}),ss=Object.assign(ts,{setup(ce){const{proxy:me}=Za(),m=Ja(),de=Ha(),x=Va(Ga.userStore).userInfo||{},n=D({}),ge=D(["1","2","3","4","5","6","7","8","9","10"]),a=D(),pe=D(),p=D(),L=D(),be=D(),M=D(),z=D(),X=D(),ve=D(),g=D(),Pe=D(),Z=D({}),b=D(),je=D(),he=D(),wa=()=>{var s,u,_;const t=[];if(((s=a.value.formData)==null?void 0:s.baseProjIsConfidentiality)==="02")t.push(new Promise((e,r)=>{a.value.validForm(o=>{o&&e()})}));else{t.push(new Promise((e,r)=>{a.value.validForm(o=>{o&&(p.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")):e())})})),t.push(new Promise((e,r)=>{p.value.validForm(o=>{o&&e()})})),t.push(new Promise((e,r)=>{L.value.validForm(o=>{o&&e()})})),t.push(new Promise((e,r)=>{M.value.validForm(o=>{o&&e()})})),n.value.isCoreBusiness&&t.push(new Promise((e,r)=>{z.value.validForm(o=>{o&&e()})})),n.value.isSafetyInput&&t.push(new Promise((e,r)=>{X.value.validForm(o=>{o&&e()})})),n.value.isProjectImageProgress&&t.push(new Promise((e,r)=>{ve.value.validForm(o=>{o&&e()})})),Fa()&&n.value.isReviewChecklist&&(m.name==="declarePlan"||[10012,10013,10016].includes((u=c.value)==null?void 0:u.status))&&t.push(new Promise((e,r)=>{he.value.validForm(o=>{o&&e()})})),t.push(new Promise((e,r)=>{g.value.validForm(o=>{o&&e()})}));for(const e in Z.value)t.push(new Promise((r,o)=>{Z.value[e].validForm(P=>{P&&r()})}));b.value&&t.push(new Promise((e,r)=>{b.value.validForm(o=>{o&&e()})})),t.push(new Promise((e,r)=>{p.value.validForm(o=>{if(o){const P=Ce([p.value.formData.declareHaveAmount,p.value.formData.declareGovOwnFinanceAmount,p.value.formData.declareGovSuperiorFinanceAmount,p.value.formData.declareBankLendingAmount,p.value.formData.declareOtherAmount]);p.value.formData.declareAmount>0&&p.value.formData.declareAmount===P?e():r("\u8D44\u91D1\u7533\u62A5\u60C5\u51B5\uFF1A5\u7C7B\u8D44\u91D1\u603B\u548C\u5FC5\u987B\u7B49\u4E8E\u7533\u62A5\u91D1\u989D")}})})),t.push(new Promise((e,r)=>{L.value.validForm(o=>{if(o){const P=Ce([L.value.formData.softwareDevelopmentAmount,L.value.formData.cloudHardwarePurchaseAmount,L.value.formData.thirdPartyAmount]);p.value.formData.declareAmount>0&&p.value.formData.declareAmount===P?e():r("\u8D44\u91D1\u5206\u914D\u60C5\u51B5\uFF1A3\u7C7B\u8D44\u91D1\u603B\u548C\u5FC5\u987B\u7B49\u4E8E\u7533\u62A5\u91D1\u989D")}})})),((_=b.value)==null?void 0:_.formData.includeApplication)===1&&t.push(new Promise((e,r)=>{je.value.validAllAppForm(o=>{o?e():r("\u8BF7\u5B8C\u5584\u5DF2\u6DFB\u52A0\u7684\u5E94\u7528\u4FE1\u606F")})})),pe.value&&t.push(new Promise((e,r)=>{pe.value.validForm(o=>{o&&e()})}))}Promise.all([...t]).then(async()=>{var e,r;((e=a.value.formData)==null?void 0:e.baseProjIsConfidentiality)==="02"?ee(1):n.value.isSafetyInput&&((r=X.value)==null?void 0:r.formData.safetyInput.reduce((y,w)=>y+w.safetyInputAmount,0))/p.value.formData.declareAmount*100<5?me.$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()=>{ee(1)}):ee(1)}).catch(e=>{e&&me.$message.warning(e)})},Ce=t=>{const s=[];t.forEach(e=>{try{s.push(e.toString().split(".")[1].length)}catch{s.push(0)}});const u=Math.pow(10,Math.max(...s));let _=0;return t.forEach(e=>{_+=e*u}),_/u},Aa=async()=>{ee(2)},Ra=t=>{var s,u,_,e,r,o,P;((s=b.value)==null?void 0:s.formData)&&((u=b.value)==null?void 0:u.formData.includeApplication)===1&&((r=(e=(_=b.value)==null?void 0:_.formData)==null?void 0:e.applicationList)==null?void 0:r.length)&&(b.value.formData.applicationList=(P=(o=b.value.formData)==null?void 0:o.applicationList)==null?void 0:P.map(y=>({...y,applicationName:t?y.applicationName:void 0,relatedExistsApplication:t?void 0:y.relatedExistsApplication,relatedExistsApplicationCode:t?void 0:y.relatedExistsApplication})))},De=D(!1),_e=D(!1),ee=async t=>{var u,_,e,r,o,P,y,w,v,W,E,$,q,J,H,V,G,A,C,R,se,oe,re,le,ie,ne,ue,h,O,N,fe,we,Ae,Re,Oe,Se,Me,Ne,Be,Te,xe,Le,Ee,$e,qe,Je,He,Ve,Ge,Ye,Ue,ze,We,Ke,Qe,Xe,Ze,ea,aa,ta,sa,oa,ra,la,ia,na,ua,fa,ca,ma,da,pa,va,Da,_a;var s={};if(((u=a.value.formData)==null?void 0:u.baseProjIsConfidentiality)==="02")s={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:(e=a.value.formData)==null?void 0:e.projectName,projectType:(r=a.value.formData)==null?void 0:r.projectType,baseConstructionType:((P=(o=a.value.formData)==null?void 0:o.baseConstructionType)==null?void 0:P.join("\uFF1B"))||"",responsibleMan:(y=a.value.formData)==null?void 0:y.responsibleMan,responsibleManMobile:(w=a.value.formData)==null?void 0:w.responsibleManMobile,contactName:(v=a.value.formData)==null?void 0:v.contactName,contactPhone:(W=a.value.formData)==null?void 0:W.contactPhone,buildOrgName:(E=a.value.formData)==null?void 0:E.buildOrgName,orgCreditCode:($=a.value.formData)==null?void 0:$.orgCreditCode,baseProvManDeprtType:a.value.formData.baseProvManDeprtType*1||void 0,higherSuperOrg:(q=a.value.formData)==null?void 0:q.higherSuperOrg,higherSuperOrgCode:(J=a.value.formData)==null?void 0:J.higherSuperOrgCode,superOrg:(H=a.value.formData)==null?void 0:H.superOrg,superOrgCode:(V=a.value.formData)==null?void 0:V.superOrgCode,superOrgCreditCode:(G=a.value.formData)==null?void 0:G.superOrgCreditCode,projectYear:((A=a.value.formData)==null?void 0:A.projectYear)*1,declareAmount:(C=a.value.formData)==null?void 0:C.declareAmount,annualPlanAmount:(R=a.value.formData)==null?void 0:R.declareAmount};else if(s={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,...p.value.formData,...L.value.formData,...(se=pe.value)==null?void 0:se.formData,baseConstructionType:((re=(oe=a.value.formData)==null?void 0:oe.baseConstructionType)==null?void 0:re.join("\uFF1B"))||"",baseProvManDeprtType:a.value.formData.baseProvManDeprtType*1||void 0,projectYear:((le=a.value.formData)==null?void 0:le.projectYear)*1,beginTime:((ne=(ie=a.value.formData)==null?void 0:ie.buildDuration)==null?void 0:ne.length)&&a.value.formData.buildDuration[0],endTime:((h=(ue=a.value.formData)==null?void 0:ue.buildDuration)==null?void 0:h.length)&&a.value.formData.buildDuration[1],buildDuration:void 0,lowestLevel:!(((N=(O=a.value.formData)==null?void 0:O.baseConstructionType)==null?void 0:N.includes("03"))&&!((we=(fe=a.value.formData)==null?void 0:fe.baseConstructionType)!=null&&we.includes("01")))&&((Ae=a.value.formData)==null?void 0:Ae.lowestLevel)||"",baseProjBasis:((Se=(Oe=(Re=a.value.formData)==null?void 0:Re.baseProjBasis)==null?void 0:Oe.map(d=>d.value))==null?void 0:Se.join("\uFF1B"))||void 0,baseProjBasisFile:((Be=(Ne=(Me=a.value.formData)==null?void 0:Me.baseProjBasis)==null?void 0:Ne.map(d=>d.fileList&&JSON.stringify(S(d.fileList))))==null?void 0:Be.join("\uFF1B"))||"",baseHistorProjId:((Le=(xe=(Te=a.value.formData)==null?void 0:Te.baseHistorProjs)==null?void 0:xe.map(d=>d.baseProjId))==null?void 0:Le.join("\uFF1B"))||"",baseHistorProjName:((qe=($e=(Ee=a.value.formData)==null?void 0:Ee.baseHistorProjs)==null?void 0:$e.map(d=>d.baseProjName))==null?void 0:qe.join("\uFF1B"))||"",baseHistorProjYear:((Ve=(He=(Je=a.value.formData)==null?void 0:Je.baseHistorProjs)==null?void 0:He.map(d=>d.baseProjSetYear))==null?void 0:Ve.join("\uFF1B"))||"",baseHistorProjs:void 0,beseExpectedResults:((Ye=(Ge=a.value.formData)==null?void 0:Ge.beseExpectedResults)==null?void 0:Ye.length)&&JSON.stringify(a.value.formData.beseExpectedResults)||"",baseBasisAmountOri:((Ue=p.value)==null?void 0:Ue.formData.declareOtherAmount)>0&&((ze=p.value.formData)==null?void 0:ze.baseBasisAmountOri)||"",consultancy:((We=p.value)==null?void 0:We.formData.declareAmount)>400&&((Ke=p.value.formData)==null?void 0:Ke.consultancy)||"",operationManageUnit:((Qe=p.value)==null?void 0:Qe.formData.declareAmount)>=1e3&&be.value.formData.operationManageUnit||void 0,...(Xe=b.value)==null?void 0:Xe.formData,...M.value.formData,...g.value.formData,constructionPlanFile:((Ze=g.value.formData)==null?void 0:Ze.constructionPlanFile)&&JSON.stringify(S(g.value.formData.constructionPlanFile)),preliminaryPlanFile:((ea=g.value.formData)==null?void 0:ea.preliminaryPlanFile)&&JSON.stringify(S(g.value.formData.preliminaryPlanFile)),mainResponsibilitiesApplicantFile:((aa=g.value.formData)==null?void 0:aa.mainResponsibilitiesApplicantFile)&&JSON.stringify(S(g.value.formData.mainResponsibilitiesApplicantFile)),supportingMaterialsFile:((ta=g.value.formData)==null?void 0:ta.supportingMaterialsFile)&&JSON.stringify(S(g.value.formData.supportingMaterialsFile)),calculationTotalInvestmentFile:((sa=g.value.formData)==null?void 0:sa.calculationTotalInvestmentFile)&&JSON.stringify(S(g.value.formData.calculationTotalInvestmentFile)),projectApplicationForm:((oa=a.value.formData)==null?void 0:oa.projectType)!=="03"&&((ra=g.value.formData)==null?void 0:ra.projectApplicationForm)&&JSON.stringify(S(g.value.formData.projectApplicationForm))||"",baseResearchReportFile:((la=a.value.formData)==null?void 0:la.projectType)!=="03"&&((ia=g.value.formData)==null?void 0:ia.baseResearchReportFile)&&JSON.stringify(S(g.value.formData.baseResearchReportFile))||"",baseProjOtherFile:((na=g.value.formData)==null?void 0:na.baseProjOtherFile)&&JSON.stringify(S(g.value.formData.baseProjOtherFile)),mainAccusationDoc:((ua=p.value)==null?void 0:ua.formData.declareAmount)>=1e3&&((fa=g.value.formData)==null?void 0:fa.mainAccusationDoc)&&JSON.stringify(S(g.value.formData.mainAccusationDoc))||"",reviewChecklist:((ma=(ca=he.value)==null?void 0:ca.formData)==null?void 0:ma.reviewChecklist)||void 0},n.value.isCoreBusiness&&(s=Object.assign(s,{...z.value.formData,coreBusiness:z.value.formData.coreBusiness&&JSON.stringify(z.value.formData.coreBusiness)})),n.value.isSafetyInput&&(s=Object.assign(s,{safetyInputDescribe:JSON.stringify(X.value.formData.safetyInput)})),n.value.isProjectImageProgress&&(s=Object.assign(s,{...ve.value.formData})),n.value.isRemark&&(s=Object.assign(s,{...Pe.value.formData})),((pa=(da=b.value)==null?void 0:da.formData)==null?void 0:pa.includeApplication)&&((Da=(va=b.value)==null?void 0:va.formData.applicationList)==null?void 0:Da.length)&&(s.applicationList=b.value.formData.applicationList.map(d=>{var K,Y,ya,ga,Pa;return{...d,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")&&((ya=d.relatedExistsApplication)==null?void 0:ya.applicationName)||void 0,relatedExistsApplicationCode:(!((ga=a.value.formData)!=null&&ga.isFirst)&&x.value.regionCode==="331123"||x.regionCode!=="331123")&&d.relatedExistsApplicationCode||void 0,applicationName:((Pa=a.value.formData)==null?void 0:Pa.isFirst)&&x.regionCode==="331123"&&d.applicationName||void 0,coreBusinessList:d.coreBusinessList.map(Ea=>{var ha,Ia;return{...Ea,projectId:((ha=c.value)==null?void 0:ha.projectId)||void 0,projectCode:((Ia=c.value)==null?void 0:Ia.projectCode)||void 0}})}})),(_a=n.value.safetyInputModular)!=null&&_a.length){s.safetyInputModular=[];for(const K in Z.value)s.safetyInputModular.push(Z.value[K].formData);const d=s.safetyInputModular.map(K=>({...K,formList:K.formList.map(Y=>({...Y,value:Y.value?Y.props.type==="\u6587\u4EF6\u4E0A\u4F20"?S(Y.value):Y.value:void 0}))}));s.safetyInputModular=JSON.stringify(d)}else s.safetyInputModular=void 0;if(t===1){_e.value=!0;try{const d={projectInfo:{...s,id:m.query.isDraft?void 0:s.id,draftId:m.query.isDraft?m.query.id*1:void 0}};m.name==="declarePage"?await vt(!m.query.isDraft&&m.query.id?2:1,d):m.name==="planEdit"?await yt(d.projectInfo):m.name==="handleAfterGiveBack"?await Wa({...d,projectId:m.query.id,instanceId:m.query.instanceId,taskId:m.query.taskId}):m.name==="declarePlan"&&await Dt(d),me.$message.success("\u63D0\u4EA4\u6210\u529F"),_e.value=!1,m.name==="projectDeclare"?de.push({name:"projectDeclare"}):de.go(-1)}catch{_e.value=!1}}else if(t===2){De.value=!0;try{await _t({projectInfo:{...s},user:x.value}),me.$message.success("\u4FDD\u5B58\u6210\u529F"),De.value=!1,de.go(-1)}catch{De.value=!1}}},c=D({}),ke=()=>{var t,s;a.value.setFormData(c.value),((t=c.value)==null?void 0:t.baseProjIsConfidentiality)!=="02"&&(p.value.setFormData(c.value),L.value.setFormData(c.value),M.value.setFormData(c.value),n.value.isCoreBusiness&&z.value.setFormData(c.value),n.value.isSafetyInput&&X.value.setFormData(c.value),n.value.isProjectImageProgress&&ve.value.setFormData(c.value),g.value.setFormData(c.value),n.value.isRemark&&Pe.value.setFormData(c.value),(s=b.value)==null||s.setFormData(c.value),setTimeout(()=>{var u;(u=be.value)==null||u.setFormData(c.value)}))},ae=D({processProgressVo:{progressInfo:[]}}),Oa=D(),Sa=async()=>{var s,u;const t=await Ka({instanceId:m.query.instanceId,projectId:m.query.id,nodeId:m.query.nodeId});ae.value={...t.data,processProgressVo:{...t.data.processProgressVo,progressInfo:Na(t.data.processProgressVo.progressInfo)}},Oa.value=((u=(s=ae.value.processProgressVo.progressInfo.slice(-1)[0])==null?void 0:s.children)==null?void 0:u.slice(-1)[0])||ae.value.processProgressVo.progressInfo.slice(-1)[0]},te=Ya({visible:!1,flowData:void 0}),Ma=t=>{te.visible=!0,te.flowData=ae.value.processProgressVo.progressInfo},Na=t=>(t.forEach(s=>{if(s.children){const u=[],_=[];s.children.forEach(e=>{u.includes(e.nodeId)?(_.find(r=>r.nodeId===e.nodeId).list.push(e),_.find(r=>r.nodeId===e.nodeId).userIds.push(e.userId)):(u.push(e.nodeId),_.push({nodeId:e.nodeId,approvalMode:e.approvalMode,name:e.name,taskId:e.taskId,nodeType:e.nodeType,list:[{...e}],userIds:[e.userId]}))}),s.children=_}else s.userIds=[s.userId]}),t),Ba=()=>{te.visible=!1},Fe=D([]),Ta=D(),xa=t=>{Ta.value=t};Ua(async()=>{var e,r,o,P;if(Fe.value=(await gt()).data,m.query.id){var t={},s={},u=[],_=!1;(e=m.query)!=null&&e.isDraft?t=await pt({id:m.query.id}):(t=await Ca(m.query.id),s=await ba({regionCode:x.value.regionCode}),(m.name==="declarePlan"||[10012,10013,10016].includes((r=c.value)==null?void 0:r.status))&&(_=t.data.reviewChecklist&&((o=JSON.parse(t.data.reviewChecklist))==null?void 0:o.length)?!0:s.data.isReviewChecklist,u=s.data.reviewChecklist&&JSON.parse(s.data.reviewChecklist)||[])),c.value={...t.data,reviewChecklist:t.data.reviewChecklist?JSON.parse(t.data.reviewChecklist):void 0};const y=t.data.safetyInputModular&&JSON.parse(t.data.safetyInputModular).map(w=>({...w,formList:w.formList.map(v=>({...v,value:v.value?v.props.type==="\u6587\u4EF6\u4E0A\u4F20"?ka(v.value):v.value:void 0}))}));n.value={isCoreBusiness:t.data.isOpenCoreBusiness,isProjectImageProgress:t.data.isEngineeringSpeed,isRemark:t.data.isRemark,isSafetyInput:t.data.isOpenSafetyInput,safetyInputModular:y||[],isReviewChecklist:_,reviewChecklist:u},ja(()=>{ke()}),m.name==="handleAfterGiveBack"&&Sa()}else{const y=await ba({regionCode:x.value.regionCode});n.value={isCoreBusiness:y.data.isCoreBusiness,isProjectImageProgress:y.data.isProjectImageProgress,isRemark:y.data.isRemark,isSafetyInput:y.data.isSafetyInput,safetyInputModular:y.data.safetyInputModular||[]}}if((P=n.value.safetyInputModular)!=null&&P.length){let y=11;n.value.safetyInputModular.forEach(w=>{ge.value.push(y+++"")})}});async function La(t){var W,E,$,q,J,H,V,G,A;const s=t.baseProjId,u=await Ca(s),_=a.value.formData.projectType,e=a.value.formData.projectName,r=(($=(E=(W=a.value.formData)==null?void 0:W.baseHistorProjs)==null?void 0:E.map(C=>C.baseProjId))==null?void 0:$.join("\uFF1B"))||"",o=((H=(J=(q=a.value.formData)==null?void 0:q.baseHistorProjs)==null?void 0:J.map(C=>C.baseProjName))==null?void 0:H.join("\uFF1B"))||"",P=((A=(G=(V=a.value.formData)==null?void 0:V.baseHistorProjs)==null?void 0:G.map(C=>C.baseProjSetYear))==null?void 0:A.join("\uFF1B"))||"",y=a.value.formData.projectYear,w={annualPlanAmount:M.value.formData.annualPlanAmount,annualPlanHaveAmount:M.value.formData.annualPlanHaveAmount,annualPlanGovOwnFinanceAmount:M.value.formData.annualPlanGovOwnFinanceAmount,annualPlanGovSuperiorFinanceAmount:M.value.formData.annualPlanGovSuperiorFinanceAmount,annualPlanBankLendingAmount:M.value.formData.annualPlanBankLendingAmount,annualPlanOtherAmount:M.value.formData.annualPlanOtherAmount};c.value={...u.data,projectType:_,baseHistorProjId:r,baseHistorProjName:o,baseHistorProjYear:P,projectYear:y,projectName:e,...w,status:void 0};const v=u.data.safetyInputModular&&JSON.parse(u.data.safetyInputModular).map(C=>({...C,formList:C.formList.map(R=>({...R,value:R.value?R.props.type==="\u6587\u4EF6\u4E0A\u4F20"?ka(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:v||[]},ja(()=>{ke()})}return(t,s)=>{var E,$,q,J,H,V,G;const u=B("Warning"),_=B("el-icon"),e=B("el-button"),r=B("el-form-item"),o=B("el-col"),P=B("el-row"),y=B("el-form"),w=B("el-card"),v=B("el-collapse-item"),W=B("el-collapse");return I(),ye(Ie,null,[i("div",ht,[U(m).name==="handleAfterGiveBack"?(I(),ye("div",It,[f(_,{class:"icon"},{default:l(()=>[f(u)]),_:1}),i("div",null,[bt,i("p",null,[i("span",null,Q((E=c.value)==null?void 0:E.projectName)+"\u7684"+Q((q=($=ae.value)==null?void 0:$.processProgressVo)==null?void 0:q.processDefName)+"\u88AB\u9000\u56DE\uFF0C\u8BF7\u6839\u636E\u5BA1\u6838\u8BB0\u5F55\u8C03\u6574\u9879\u76EE\u4FE1\u606F",1),f(e,{type:"primary",plain:"",size:"small",class:"ml-16",onClick:Ma},{default:l(()=>[T("\u67E5\u770B\u5BA1\u6838\u8BB0\u5F55")]),_:1})])])])):j("",!0),U(m).name==="declarePlan"?(I(),k(w,{key:1,shadow:"never",class:"mb-16"},{default:l(()=>[i("div",jt,[i("div",Ct,[i("div",kt,[i("p",Ft,Q(c.value.projectName),1),i("div",wt,[f(y,{"label-suffix":":"},{default:l(()=>[f(P,{gutter:24},{default:l(()=>[f(o,{span:6},{default:l(()=>[f(r,{label:"\u7533\u62A5\u5355\u4F4D"},{default:l(()=>[T(Q(c.value.buildOrgName||"-"),1)]),_:1})]),_:1}),f(o,{span:6},{default:l(()=>[f(r,{label:"\u4E3B\u7BA1\u5355\u4F4D"},{default:l(()=>[T(Q(c.value.superOrg||"-"),1)]),_:1})]),_:1}),f(o,{span:6},{default:l(()=>[f(r,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:l(()=>[T(Q(c.value.createOn||"-"),1)]),_:1})]),_:1})]),_:1})]),_:1})])])])])]),_:1})):j("",!0),f(P,null,{default:l(()=>[f(o,{class:"leftCol",span:24},{default:l(()=>[f(W,{modelValue:ge.value,"onUpdate:modelValue":s[0]||(s[0]=A=>ge.value=A)},{default:l(()=>{var A,C,R,se,oe,re,le,ie,ne,ue;return[f(v,{name:"1",class:"mb-16"},{title:l(()=>[At]),default:l(()=>{var h;return[i("div",Rt,[f(et,{ref_key:"basicInfoRef",ref:a,"detail-data":c.value,"dictionary-list":Fe.value,"declare-amount":(h=p.value)==null?void 0:h.formData.declareAmount,onReuseItem:La,onChangeIsFirst:Ra,onGetBasicInfoData:xa},null,8,["detail-data","dictionary-list","declare-amount"])])]}),_:1}),((C=(A=a.value)==null?void 0:A.formData)==null?void 0:C.baseProjIsConfidentiality)==="01"?(I(),ye(Ie,{key:0},[((se=(R=a.value)==null?void 0:R.formData)==null?void 0:se.baseProjIsConfidentiality)==="01"?(I(),k(v,{key:0,name:"2",class:"mb-16"},{title:l(()=>[Ot]),default:l(()=>[i("div",St,[f(tt,{ref_key:"fundsInfoRef",ref:p,"detail-data":c.value},null,8,["detail-data"])])]),_:1})):j("",!0),((re=(oe=a.value)==null?void 0:oe.formData)==null?void 0:re.baseProjIsConfidentiality)==="01"?(I(),k(v,{key:1,name:"3",class:"mb-16"},{title:l(()=>[Mt]),default:l(()=>[i("div",Nt,[f(st,{ref_key:"fundsAllocationRef",ref:L},null,512)])]),_:1})):j("",!0),((ie=(le=a.value)==null?void 0:le.formData)==null?void 0:ie.baseProjIsConfidentiality)==="01"?(I(),k(v,{key:2,name:"4",class:"mb-16"},{title:l(()=>[Bt]),default:l(()=>[i("div",Tt,[f(ot,{ref_key:"annualPaymentPlanRef",ref:M},null,512)])]),_:1})):j("",!0),n.value.isCoreBusiness?(I(),k(v,{key:3,name:"5",class:"mb-16"},{title:l(()=>[xt]),default:l(()=>{var h;return[i("div",Lt,[f(rt,{ref_key:"coreBusinessRef",ref:z,"basic-info-data":(h=a.value)==null?void 0:h.formData},null,8,["basic-info-data"])])]}),_:1})):j("",!0),n.value.isSafetyInput?(I(),k(v,{key:4,name:"6",class:"mb-16"},{title:l(()=>[Et]),default:l(()=>[i("div",$t,[f(lt,{ref_key:"safetyInputRef",ref:X},null,512)])]),_:1})):j("",!0),n.value.isProjectImageProgress?(I(),k(v,{key:5,name:"7",class:"mb-16"},{title:l(()=>[qt]),default:l(()=>[i("div",Jt,[f(it,{ref_key:"projectImageProgressRef",ref:ve},null,512)])]),_:1})):j("",!0),U(Fa)()&&n.value.isReviewChecklist&&(t.$route.name==="declarePlan"||[10012,10013,10016].includes((ne=c.value)==null?void 0:ne.status))?(I(),k(v,{key:6,name:"8",class:"mb-16"},{title:l(()=>[Ht]),default:l(()=>[i("div",Vt,[f(Pt,{ref_key:"reviewCheckRef",ref:he,"detail-data":c.value,data:c.value.reviewChecklist||n.value.reviewChecklist},null,8,["detail-data","data"])])]),_:1})):j("",!0),f(v,{name:"8",class:"mb-16"},{title:l(()=>[Gt]),default:l(()=>{var h,O,N;return[i("div",Yt,[f(nt,{ref_key:"accessoryRef",ref:g,"detail-data":c.value,"project-type":(O=(h=a.value)==null?void 0:h.formData)==null?void 0:O.projectType,"declare-amount":(N=p.value)==null?void 0:N.formData.declareAmount},null,8,["detail-data","project-type","declare-amount"])])]}),_:1}),n.value.isRemark?(I(),k(v,{key:7,name:"9",class:"mb-16"},{title:l(()=>[Ut]),default:l(()=>[i("div",zt,[f(ut,{ref_key:"projectRemarkRef",ref:Pe},null,512)])]),_:1})):j("",!0),(ue=n.value.safetyInputModular)!=null&&ue.length?(I(!0),ye(Ie,{key:8},za(n.value.safetyInputModular,(h,O)=>(I(),k(v,{key:O,name:11+O+"",class:"mb-16"},{title:l(()=>[i("div",Wt,Q(h.moduleName),1)]),default:l(()=>[i("div",Kt,[f(ft,{ref_for:!0,ref:N=>{Z.value[h.id]=N},data:h},null,8,["data"])])]),_:2},1032,["name"]))),128)):j("",!0),t.$route.name==="declarePlan"||[10012,10016,10013].includes(c.value.status)?(I(),k(v,{key:9,name:"4",class:"mb-16"},{title:l(()=>[Qt]),default:l(()=>{var h,O,N,fe;return[i("div",Xt,[f(ct,{ref_key:"applicationsRef",ref:b,"is-first":(O=(h=a.value)==null?void 0:h.formData)==null?void 0:O.isFirst,"core-business":(fe=(N=z.value)==null?void 0:N.formData)==null?void 0:fe.coreBusiness},null,8,["is-first","core-business"])])]}),_:1})):j("",!0),t.$route.name==="declarePlan"||[10012,10016,10013].includes(c.value.status)?(I(),k(v,{key:10,name:"1",class:"mb-16"},{title:l(()=>[Zt]),default:l(()=>[i("div",es,[f(at,{ref_key:"planndedUseResourcesRef",ref:pe,"detail-data":c.value},null,8,["detail-data"])])]),_:1})):j("",!0)],64)):j("",!0)]}),_:1},8,["modelValue"])]),_:1})]),_:1}),f(mt,{ref_key:"hiddenAppFormRef",ref:je,"application-list":(H=(J=b.value)==null?void 0:J.formData)==null?void 0:H.applicationList,"is-first":(G=(V=a.value)==null?void 0:V.formData)==null?void 0:G.isFirst},null,8,["application-list","is-first"]),i("div",as,[f(e,{onClick:s[1]||(s[1]=A=>U(de).go(-1))},{default:l(()=>[T(" \u8FD4\u56DE ")]),_:1}),U(m).name==="declarePage"&&(!U(m).query.id||U(m).query.id&&U(m).query.isDraft)?(I(),k(e,{key:0,plain:"",type:"primary",loading:De.value,onClick:Aa},{default:l(()=>[T(" \u6682 \u5B58 ")]),_:1},8,["loading"])):j("",!0),f(e,{type:"primary",loading:_e.value,onClick:wa},{default:l(()=>[T(" \u63D0\u4EA4\u5BA1\u6838 ")]),_:1},8,["loading"])])]),f(dt,{visible:te.visible,"flow-data":te.flowData,onClose:Ba},null,8,["visible","flow-data"])],64)}}}),Js=$a(ss,[["__scopeId","data-v-572e3407"]]);export{Js as default};