|
- import{g as ba}from"./formConfiguration.be6c8956.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 z,h as c,i as l,t as X,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.622ee9e7.js";import et from"./basicInfo.bf9b65d3.js";import at from"./plannedUseResources.26fc722c.js";import tt from"./fundsInfo.727f0e77.js";import st from"./fundsAllocation.9cb3354d.js";import ot from"./annualPaymentPlan.761e15af.js";import rt from"./coreBusiness.88bcc8a6.js";import lt from"./safetyInput.2545c3a0.js";import it from"./projectImageProgress.e79c3a76.js";import nt from"./accessory.8dd7574f.js";import ut from"./projectRemark.439d483f.js";import ct from"./newModuleForm.cf3d6348.js";import ft from"./applications.7dcea21f.js";import mt from"./hiddenAppForm.b6199ae2.js";import dt from"./flowRecordDialog.a4a56df5.js";import{j as pt,k as vt,d as Dt,s as _t}from"./index.7cf53a4d.js";import{p as Ca}from"./projectStore.4992a39c.js";import{a as yt}from"./annualPlanStore.132e0dc0.js";import{r as ka,g as S}from"./uploadAction.44c3f16c.js";import{d as gt}from"./projectCollectionEnter.57868123.js";import Pt from"./reviewCheck.b5a0db0a.js";import{g as Fa}from"./getIsShowReviewCheck.653f7eca.js";import"./index.d00dc96d.js";import"./unitManage.0d5b7fa6.js";import"./userDialog.f90501cc.js";import"./relatedProjectDialog.bdef2a17.js";import"./renewalProjectCapitalDeclare.a2b753c6.js";import"./projectContentDialog.cffe974e.js";import"./indicatorTemplate.5a807688.js";import"./appBasicInfo.4d2c4e99.js";import"./appSafeInfo.2b94050c.js";import"./appResourceInfo.4e2d34da.js";import"./applicationInfo.420c10cf.js";import"./flowRecord.1de3cc6f.js";import"./index.f85fe99a.js";import"./index.d88afaaf.js";import"./sjFlowRecord.c4c12416.js";const F=fe=>(Qa("data-v-0acf55ca"),fe=fe(),Xa(),fe),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"},Nt=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)),Mt={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(fe){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(),N=D(),W=D(),ee=D(),ve=D(),g=D(),Pe=D(),ae=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)=>{N.value.validForm(o=>{o&&e()})})),n.value.isCoreBusiness&&t.push(new Promise((e,r)=>{W.value.validForm(o=>{o&&e()})})),n.value.isSafetyInput&&t.push(new Promise((e,r)=>{ee.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=f.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 ae.value)t.push(new Promise((r,o)=>{ae.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"?te(1):n.value.isSafetyInput&&((r=ee.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()=>{te(1)}):te(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()=>{te(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),te=async t=>{var u,_,e,r,o,P,y,w,v,Z,K,E,$,q,J,H,V,A,G,Y,C,R,re,le,ie,ne,ue,h,O,M,ce,we,Ae,Re,Oe,Se,Ne,Me,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,ca,fa,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:(Z=a.value.formData)==null?void 0:Z.contactPhone,buildOrgName:(K=a.value.formData)==null?void 0:K.buildOrgName,orgCreditCode:(E=a.value.formData)==null?void 0:E.orgCreditCode,baseProvManDeprtType:a.value.formData.baseProvManDeprtType*1||void 0,higherSuperOrg:($=a.value.formData)==null?void 0:$.higherSuperOrg,higherSuperOrgCode:(q=a.value.formData)==null?void 0:q.higherSuperOrgCode,superOrg:(J=a.value.formData)==null?void 0:J.superOrg,superOrgCode:(H=a.value.formData)==null?void 0:H.superOrgCode,superOrgCreditCode:(V=a.value.formData)==null?void 0:V.superOrgCreditCode,projectYear:((A=a.value.formData)==null?void 0:A.projectYear)*1,declareAmount:(G=a.value.formData)==null?void 0:G.declareAmount,annualPlanAmount:(Y=a.value.formData)==null?void 0:Y.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,...(C=pe.value)==null?void 0:C.formData,baseConstructionType:((re=(R=a.value.formData)==null?void 0:R.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:!(((M=(O=a.value.formData)==null?void 0:O.baseConstructionType)==null?void 0:M.includes("03"))&&!((we=(ce=a.value.formData)==null?void 0:ce.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=(Me=(Ne=a.value.formData)==null?void 0:Ne.baseProjBasis)==null?void 0:Me.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,...N.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&&((ca=g.value.formData)==null?void 0:ca.mainAccusationDoc)&&JSON.stringify(S(g.value.formData.mainAccusationDoc))||"",reviewChecklist:((ma=(fa=he.value)==null?void 0:fa.formData)==null?void 0:ma.reviewChecklist)||void 0},n.value.isCoreBusiness&&(s=Object.assign(s,{...W.value.formData,coreBusiness:W.value.formData.coreBusiness&&JSON.stringify(W.value.formData.coreBusiness)})),n.value.isSafetyInput&&(s=Object.assign(s,{safetyInputDescribe:JSON.stringify(ee.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 Q,U,ya,ga,Pa;return{...d,isFirst:(Q=a.value.formData)!=null&&Q.isFirst?1:0,relatedExistsApplication:(!((U=a.value.formData)!=null&&U.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=f.value)==null?void 0:ha.projectId)||void 0,projectCode:((Ia=f.value)==null?void 0:Ia.projectCode)||void 0}})}})),(_a=n.value.safetyInputModular)!=null&&_a.length){s.safetyInputModular=[];for(const Q in ae.value)s.safetyInputModular.push(ae.value[Q].formData);const d=s.safetyInputModular.map(Q=>({...Q,formList:Q.formList.map(U=>({...U,value:U.value?U.props.type==="\u6587\u4EF6\u4E0A\u4F20"?S(U.value):U.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}}},f=D({}),ke=()=>{var t,s;a.value.setFormData(f.value),((t=f.value)==null?void 0:t.baseProjIsConfidentiality)!=="02"&&(p.value.setFormData(f.value),L.value.setFormData(f.value),N.value.setFormData(f.value),n.value.isCoreBusiness&&W.value.setFormData(f.value),n.value.isSafetyInput&&ee.value.setFormData(f.value),n.value.isProjectImageProgress&&ve.value.setFormData(f.value),g.value.setFormData(f.value),n.value.isRemark&&Pe.value.setFormData(f.value),(s=b.value)==null||s.setFormData(f.value),setTimeout(()=>{var u;(u=be.value)==null||u.setFormData(f.value)}))},se=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});se.value={...t.data,processProgressVo:{...t.data.processProgressVo,progressInfo:Ma(t.data.processProgressVo.progressInfo)}},Oa.value=((u=(s=se.value.processProgressVo.progressInfo.slice(-1)[0])==null?void 0:s.children)==null?void 0:u.slice(-1)[0])||se.value.processProgressVo.progressInfo.slice(-1)[0]},oe=Ya({visible:!1,flowData:void 0}),Na=t=>{oe.visible=!0,oe.flowData=se.value.processProgressVo.progressInfo},Ma=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=()=>{oe.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=f.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)||[])),f.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 E,$,q,J,H,V,A,G,Y;const s=t.baseProjId,u=await Ca(s),_=a.value.formData.projectType,e=a.value.formData.projectName,r=a.value.formData.buildOrgName,o=a.value.formData.orgCreditCode,P=((q=($=(E=a.value.formData)==null?void 0:E.baseHistorProjs)==null?void 0:$.map(C=>C.baseProjId))==null?void 0:q.join("\uFF1B"))||"",y=((V=(H=(J=a.value.formData)==null?void 0:J.baseHistorProjs)==null?void 0:H.map(C=>C.baseProjName))==null?void 0:V.join("\uFF1B"))||"",w=((Y=(G=(A=a.value.formData)==null?void 0:A.baseHistorProjs)==null?void 0:G.map(C=>C.baseProjSetYear))==null?void 0:Y.join("\uFF1B"))||"",v=a.value.formData.projectYear,Z={annualPlanAmount:N.value.formData.annualPlanAmount,annualPlanHaveAmount:N.value.formData.annualPlanHaveAmount,annualPlanGovOwnFinanceAmount:N.value.formData.annualPlanGovOwnFinanceAmount,annualPlanGovSuperiorFinanceAmount:N.value.formData.annualPlanGovSuperiorFinanceAmount,annualPlanBankLendingAmount:N.value.formData.annualPlanBankLendingAmount,annualPlanOtherAmount:N.value.formData.annualPlanOtherAmount};f.value={...u.data,projectType:_,baseHistorProjId:P,baseHistorProjName:y,baseHistorProjYear:w,projectYear:v,projectName:e,buildOrgName:r,orgCreditCode:o,...Z,status:void 0};const K=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:K||[]},ja(()=>{ke()})}return(t,s)=>{var K,E,$,q,J,H,V;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"),Z=B("el-collapse");return I(),ye(Ie,null,[i("div",ht,[z(m).name==="handleAfterGiveBack"?(I(),ye("div",It,[c(_,{class:"icon"},{default:l(()=>[c(u)]),_:1}),i("div",null,[bt,i("p",null,[i("span",null,X((K=f.value)==null?void 0:K.projectName)+"\u7684"+X(($=(E=se.value)==null?void 0:E.processProgressVo)==null?void 0:$.processDefName)+"\u88AB\u9000\u56DE\uFF0C\u8BF7\u6839\u636E\u5BA1\u6838\u8BB0\u5F55\u8C03\u6574\u9879\u76EE\u4FE1\u606F",1),c(e,{type:"primary",plain:"",size:"small",class:"ml-16",onClick:Na},{default:l(()=>[T("\u67E5\u770B\u5BA1\u6838\u8BB0\u5F55")]),_:1})])])])):j("",!0),z(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,X(f.value.projectName),1),i("div",wt,[c(y,{"label-suffix":":"},{default:l(()=>[c(P,{gutter:24},{default:l(()=>[c(o,{span:6},{default:l(()=>[c(r,{label:"\u7533\u62A5\u5355\u4F4D"},{default:l(()=>[T(X(f.value.buildOrgName||"-"),1)]),_:1})]),_:1}),c(o,{span:6},{default:l(()=>[c(r,{label:"\u4E3B\u7BA1\u5355\u4F4D"},{default:l(()=>[T(X(f.value.superOrg||"-"),1)]),_:1})]),_:1}),c(o,{span:6},{default:l(()=>[c(r,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:l(()=>[T(X(f.value.createOn||"-"),1)]),_:1})]),_:1})]),_:1})]),_:1})])])])])]),_:1})):j("",!0),c(P,null,{default:l(()=>[c(o,{class:"leftCol",span:24},{default:l(()=>[c(Z,{modelValue:ge.value,"onUpdate:modelValue":s[0]||(s[0]=A=>ge.value=A)},{default:l(()=>{var A,G,Y,C,R,re,le,ie,ne,ue;return[c(v,{name:"1",class:"mb-16"},{title:l(()=>[At]),default:l(()=>{var h;return[i("div",Rt,[c(et,{ref_key:"basicInfoRef",ref:a,"detail-data":f.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}),((G=(A=a.value)==null?void 0:A.formData)==null?void 0:G.baseProjIsConfidentiality)==="01"?(I(),ye(Ie,{key:0},[((C=(Y=a.value)==null?void 0:Y.formData)==null?void 0:C.baseProjIsConfidentiality)==="01"?(I(),k(v,{key:0,name:"2",class:"mb-16"},{title:l(()=>[Ot]),default:l(()=>[i("div",St,[c(tt,{ref_key:"fundsInfoRef",ref:p,"detail-data":f.value},null,8,["detail-data"])])]),_:1})):j("",!0),((re=(R=a.value)==null?void 0:R.formData)==null?void 0:re.baseProjIsConfidentiality)==="01"?(I(),k(v,{key:1,name:"3",class:"mb-16"},{title:l(()=>[Nt]),default:l(()=>[i("div",Mt,[c(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,[c(ot,{ref_key:"annualPaymentPlanRef",ref:N},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,[c(rt,{ref_key:"coreBusinessRef",ref:W,"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,[c(lt,{ref_key:"safetyInputRef",ref:ee},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,[c(it,{ref_key:"projectImageProgressRef",ref:ve},null,512)])]),_:1})):j("",!0),z(Fa)()&&n.value.isReviewChecklist&&(t.$route.name==="declarePlan"||[10012,10013,10016].includes((ne=f.value)==null?void 0:ne.status))?(I(),k(v,{key:6,name:"8",class:"mb-16"},{title:l(()=>[Ht]),default:l(()=>[i("div",Vt,[c(Pt,{ref_key:"reviewCheckRef",ref:he,"detail-data":f.value,data:f.value.reviewChecklist||n.value.reviewChecklist},null,8,["detail-data","data"])])]),_:1})):j("",!0),c(v,{name:"8",class:"mb-16"},{title:l(()=>[Gt]),default:l(()=>{var h,O,M;return[i("div",Yt,[c(nt,{ref_key:"accessoryRef",ref:g,"detail-data":f.value,"project-type":(O=(h=a.value)==null?void 0:h.formData)==null?void 0:O.projectType,"declare-amount":(M=p.value)==null?void 0:M.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,[c(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,X(h.moduleName),1)]),default:l(()=>[i("div",Kt,[c(ct,{ref_for:!0,ref:M=>{ae.value[h.id]=M},data:h},null,8,["data"])])]),_:2},1032,["name"]))),128)):j("",!0),t.$route.name==="declarePlan"||[10012,10016,10013].includes(f.value.status)?(I(),k(v,{key:9,name:"4",class:"mb-16"},{title:l(()=>[Qt]),default:l(()=>{var h,O,M,ce;return[i("div",Xt,[c(ft,{ref_key:"applicationsRef",ref:b,"is-first":(O=(h=a.value)==null?void 0:h.formData)==null?void 0:O.isFirst,"core-business":(ce=(M=W.value)==null?void 0:M.formData)==null?void 0:ce.coreBusiness},null,8,["is-first","core-business"])])]}),_:1})):j("",!0),t.$route.name==="declarePlan"||[10012,10016,10013].includes(f.value.status)?(I(),k(v,{key:10,name:"1",class:"mb-16"},{title:l(()=>[Zt]),default:l(()=>[i("div",es,[c(at,{ref_key:"planndedUseResourcesRef",ref:pe,"detail-data":f.value},null,8,["detail-data"])])]),_:1})):j("",!0)],64)):j("",!0)]}),_:1},8,["modelValue"])]),_:1})]),_:1}),c(mt,{ref_key:"hiddenAppFormRef",ref:je,"application-list":(J=(q=b.value)==null?void 0:q.formData)==null?void 0:J.applicationList,"is-first":(V=(H=a.value)==null?void 0:H.formData)==null?void 0:V.isFirst},null,8,["application-list","is-first"]),i("div",as,[c(e,{onClick:s[1]||(s[1]=A=>z(de).go(-1))},{default:l(()=>[T(" \u8FD4\u56DE ")]),_:1}),z(m).name==="declarePage"&&(!z(m).query.id||z(m).query.id&&z(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),c(e,{type:"primary",loading:_e.value,onClick:wa},{default:l(()=>[T(" \u63D0\u4EA4\u5BA1\u6838 ")]),_:1},8,["loading"])])]),c(dt,{visible:oe.visible,"flow-data":oe.flowData,onClose:Ba},null,8,["visible","flow-data"])],64)}}}),Js=$a(ss,[["__scopeId","data-v-0acf55ca"]]);export{Js as default};
|