|
- import{g as ba}from"./formConfiguration.433baed0.js";import{_ as $a,d as qa,z as Ja,A as Va,G as Ha,D as Ga,r as v,b as Ya,o as Ua,N as ja,c as O,e as P,f as ye,g as l,u as x,h as c,i,t as $,j as S,k as j,I as C,F as Pe,J as za,a2 as Wa,a3 as Ka,q as Qa,s as Xa,x as Za}from"./index.8d65dd27.js";import et from"./basicInfo.7e0949f6.js";import at from"./plannedUseResources.c0bbd86f.js";import tt from"./fundsInfo.ab1caee7.js";import st from"./fundsAllocation.4d29b4aa.js";import ot from"./annualPaymentPlan.086a7a26.js";import rt from"./coreBusiness.ce0e6f79.js";import it from"./safetyInput.3d122e5a.js";import lt from"./projectImageProgress.afbfc2c5.js";import nt from"./accessory.91562139.js";import ut from"./projectRemark.a86c88a0.js";import ft from"./newModuleForm.1cefc9d1.js";import ct from"./applications.4df85bc4.js";import dt from"./hiddenAppForm.a2b24e22.js";import mt from"./flowRecordDialog.fb41d98d.js";import{j as pt,k as vt,d as _t,s as Dt}from"./index.0cd97fe2.js";import{p as Ca}from"./projectStore.eaae545e.js";import{a as yt}from"./annualPlanStore.60a4ad9c.js";import{r as ka,g as F}from"./uploadAction.1ee5b723.js";import{d as gt}from"./projectCollectionEnter.a7fbe5f9.js";import ht from"./reviewCheck.75522eea.js";import{g as wa}from"./getIsShowReviewCheck.a73a14fd.js";import"./index.e40e8eca.js";import"./unitManage.96f59ba2.js";import"./userDialog.2185c4ab.js";import"./relatedProjectDialog.fd7aa56e.js";import"./renewalProjectCapitalDeclare.fe6605cb.js";import"./projectContentDialog.d7aa4601.js";import"./indicatorTemplate.6a45107e.js";import"./appBasicInfo.cbe0a8f4.js";import"./appSafeInfo.d7ef5407.js";import"./appResourceInfo.fd414dab.js";import"./applicationInfo.df8a43f5.js";import"./flowRecord.54b61c88.js";import"./index.1476e65f.js";import"./index.f2948841.js";import"./sjFlowRecord.e3a51314.js";const k=ue=>(Qa("data-v-3ec1a5f1"),ue=ue(),Xa(),ue),It={class:"declarePage footerPage"},Pt={key:0,class:"errorTip mb-16"},bt=k(()=>l("p",{class:"title"},"\u6D41\u7A0B\u88AB\u9000\u56DE",-1)),jt={class:"card-header"},Ct={class:"flex justify-between items-center"},kt={class:"flex-1"},wt={class:"font-bold"},Ft={class:"mt-8 search"},Rt=k(()=>l("div",{class:"collapse-title"},"\u57FA\u672C\u4FE1\u606F",-1)),At={class:"p-24"},Ot=k(()=>l("div",{class:"collapse-title"},[l("span",null,"\u8D44\u91D1\u7533\u62A5\u60C5\u51B5\uFF08\u5355\u4F4D\uFF1A\u4E07\u5143\uFF09"),l("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=k(()=>l("div",{class:"collapse-title"},[S(" \u8D44\u91D1\u5206\u914D\u60C5\u51B5\uFF08\u5355\u4F4D\uFF1A\u4E07\u5143\uFF09 "),l("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=k(()=>l("div",{class:"collapse-title"},[S(" \u5E74\u5EA6\u652F\u4ED8\u8BA1\u5212\uFF08\u5355\u4F4D\uFF1A\u4E07\u5143\uFF09 "),l("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=k(()=>l("div",{class:"collapse-title"},"\u6838\u5FC3\u4E1A\u52A1",-1)),Lt={class:"p-24"},Et=k(()=>l("div",{class:"collapse-title"},"\u5B89\u5168\u6295\u5165",-1)),$t={class:"p-24"},qt=k(()=>l("div",{class:"collapse-title"},"\u5DE5\u7A0B\u5F62\u8C61\u8FDB\u5EA6",-1)),Jt={class:"p-24"},Vt=k(()=>l("div",{class:"collapse-title"},"\u5BA1\u67E5\u6E05\u5355",-1)),Ht={class:"p-24"},Gt=k(()=>l("div",{class:"collapse-title"},"\u9644\u4EF6",-1)),Yt={class:"p-24"},Ut=k(()=>l("div",{class:"collapse-title"},"\u5907\u6CE8",-1)),zt={class:"p-24"},Wt={class:"collapse-title"},Kt={class:"p-24"},Qt=k(()=>l("div",{class:"collapse-title"},"\u5E94\u7528\u4FE1\u606F",-1)),Xt={class:"p-24"},Zt=k(()=>l("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(ue){const{proxy:fe}=Za(),d=Ja(),ce=Va(),M=Ha(Ga.userStore).userInfo||{},n=v({}),ge=v(["1","2","3","4","5","6","7","8","9","10"]),a=v(),de=v(),p=v(),N=v(),be=v(),me=v(),L=v(),q=v(),pe=v(),D=v(),he=v(),J=v({}),b=v(),je=v(),Ie=v(),Fa=()=>{var s,f,_;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)=>{N.value.validForm(o=>{o&&e()})})),t.push(new Promise((e,r)=>{me.value.validForm(o=>{o&&e()})})),n.value.isCoreBusiness&&t.push(new Promise((e,r)=>{L.value.validForm(o=>{o&&e()})})),n.value.isSafetyInput&&t.push(new Promise((e,r)=>{q.value.validForm(o=>{o&&e()})})),n.value.isProjectImageProgress&&t.push(new Promise((e,r)=>{pe.value.validForm(o=>{o&&e()})})),wa()&&n.value.isReviewChecklist&&(d.name==="declarePlan"||[10012,10013,10016].includes((f=u.value)==null?void 0:f.status))&&t.push(new Promise((e,r)=>{Ie.value.validForm(o=>{o&&e()})})),t.push(new Promise((e,r)=>{D.value.validForm(o=>{o&&e()})}));for(const e in J.value)t.push(new Promise((r,o)=>{J.value[e].validForm(h=>{h&&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 h=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===h?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)=>{N.value.validForm(o=>{if(o){const h=Ce([N.value.formData.softwareDevelopmentAmount,N.value.formData.cloudHardwarePurchaseAmount,N.value.formData.thirdPartyAmount]);p.value.formData.declareAmount>0&&p.value.formData.declareAmount===h?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")})})),de.value&&t.push(new Promise((e,r)=>{de.value.validForm(o=>{o&&e()})}))}Promise.all([...t]).then(async()=>{var e,r;((e=a.value.formData)==null?void 0:e.baseProjIsConfidentiality)==="02"?V(1):n.value.isSafetyInput&&((r=q.value)==null?void 0:r.formData.safetyInput.reduce((g,R)=>g+R.safetyInputAmount,0))/p.value.formData.declareAmount*100<5?fe.$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()=>{V(1)}):V(1)}).catch(e=>{e&&fe.$message.warning(e)})},Ce=t=>{const s=[];t.forEach(e=>{try{s.push(e.toString().split(".")[1].length)}catch{s.push(0)}});const f=Math.pow(10,Math.max(...s));let _=0;return t.forEach(e=>{_+=e*f}),_/f},Ra=async()=>{V(2)},Aa=t=>{var s,f,_,e,r,o,h;((s=b.value)==null?void 0:s.formData)&&((f=b.value)==null?void 0:f.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=(h=(o=b.value.formData)==null?void 0:o.applicationList)==null?void 0:h.map(g=>({...g,applicationName:t?g.applicationName:void 0,relatedExistsApplication:t?void 0:g.relatedExistsApplication,relatedExistsApplicationCode:t?void 0:g.relatedExistsApplication})))},ve=v(!1),_e=v(!1),V=async t=>{var f,_,e,r,o,h,g,R,y,De,Y,U,z,W,K,Q,X,B,Z,ee,ae,te,se,oe,re,ie,le,I,w,A,ne,Fe,Re,Ae,Oe,Se,Me,Ne,Be,Te,xe,Le,Ee,$e,qe,Je,Ve,He,Ge,Ye,Ue,ze,We,Ke,Qe,Xe,Ze,ea,aa,ta,sa,oa,ra,ia,la,na,ua,fa,ca,da,ma,pa,va,_a,Da;var s={};if(((f=a.value.formData)==null?void 0:f.baseProjIsConfidentiality)==="02")s={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:(e=a.value.formData)==null?void 0:e.projectName,projectType:(r=a.value.formData)==null?void 0:r.projectType,baseConstructionType:((h=(o=a.value.formData)==null?void 0:o.baseConstructionType)==null?void 0:h.join("\uFF1B"))||"",responsibleMan:(g=a.value.formData)==null?void 0:g.responsibleMan,responsibleManMobile:(R=a.value.formData)==null?void 0:R.responsibleManMobile,contactName:(y=a.value.formData)==null?void 0:y.contactName,contactPhone:(De=a.value.formData)==null?void 0:De.contactPhone,buildOrgName:(Y=a.value.formData)==null?void 0:Y.buildOrgName,orgCreditCode:(U=a.value.formData)==null?void 0:U.orgCreditCode,baseProvManDeprtType:a.value.formData.baseProvManDeprtType*1||void 0,higherSuperOrg:(z=a.value.formData)==null?void 0:z.higherSuperOrg,higherSuperOrgCode:(W=a.value.formData)==null?void 0:W.higherSuperOrgCode,superOrg:(K=a.value.formData)==null?void 0:K.superOrg,superOrgCode:(Q=a.value.formData)==null?void 0:Q.superOrgCode,superOrgCreditCode:(X=a.value.formData)==null?void 0:X.superOrgCreditCode,projectYear:((B=a.value.formData)==null?void 0:B.projectYear)*1,declareAmount:(Z=a.value.formData)==null?void 0:Z.declareAmount,annualPlanAmount:(ee=a.value.formData)==null?void 0:ee.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:d.query.id*1||void 0,...a.value.formData,...p.value.formData,...N.value.formData,...(ae=de.value)==null?void 0:ae.formData,baseConstructionType:((se=(te=a.value.formData)==null?void 0:te.baseConstructionType)==null?void 0:se.join("\uFF1B"))||"",baseProvManDeprtType:a.value.formData.baseProvManDeprtType*1||void 0,projectYear:((oe=a.value.formData)==null?void 0:oe.projectYear)*1,beginTime:((ie=(re=a.value.formData)==null?void 0:re.buildDuration)==null?void 0:ie.length)&&a.value.formData.buildDuration[0],endTime:((I=(le=a.value.formData)==null?void 0:le.buildDuration)==null?void 0:I.length)&&a.value.formData.buildDuration[1],buildDuration:void 0,lowestLevel:!(((A=(w=a.value.formData)==null?void 0:w.baseConstructionType)==null?void 0:A.includes("03"))&&!((Fe=(ne=a.value.formData)==null?void 0:ne.baseConstructionType)!=null&&Fe.includes("01")))&&((Re=a.value.formData)==null?void 0:Re.lowestLevel)||"",baseProjBasis:((Se=(Oe=(Ae=a.value.formData)==null?void 0:Ae.baseProjBasis)==null?void 0:Oe.map(m=>m.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(m=>m.fileList&&JSON.stringify(F(m.fileList))))==null?void 0:Be.join("\uFF1B"))||"",baseHistorProjId:((Le=(xe=(Te=a.value.formData)==null?void 0:Te.baseHistorProjs)==null?void 0:xe.map(m=>m.baseProjId))==null?void 0:Le.join("\uFF1B"))||"",baseHistorProjName:((qe=($e=(Ee=a.value.formData)==null?void 0:Ee.baseHistorProjs)==null?void 0:$e.map(m=>m.baseProjName))==null?void 0:qe.join("\uFF1B"))||"",baseHistorProjYear:((He=(Ve=(Je=a.value.formData)==null?void 0:Je.baseHistorProjs)==null?void 0:Ve.map(m=>m.baseProjSetYear))==null?void 0:He.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,...me.value.formData,...D.value.formData,constructionPlanFile:((Ze=D.value.formData)==null?void 0:Ze.constructionPlanFile)&&JSON.stringify(F(D.value.formData.constructionPlanFile)),preliminaryPlanFile:((ea=D.value.formData)==null?void 0:ea.preliminaryPlanFile)&&JSON.stringify(F(D.value.formData.preliminaryPlanFile)),mainResponsibilitiesApplicantFile:((aa=D.value.formData)==null?void 0:aa.mainResponsibilitiesApplicantFile)&&JSON.stringify(F(D.value.formData.mainResponsibilitiesApplicantFile)),supportingMaterialsFile:((ta=D.value.formData)==null?void 0:ta.supportingMaterialsFile)&&JSON.stringify(F(D.value.formData.supportingMaterialsFile)),calculationTotalInvestmentFile:((sa=D.value.formData)==null?void 0:sa.calculationTotalInvestmentFile)&&JSON.stringify(F(D.value.formData.calculationTotalInvestmentFile)),projectApplicationForm:((oa=a.value.formData)==null?void 0:oa.projectType)!=="03"&&((ra=D.value.formData)==null?void 0:ra.projectApplicationForm)&&JSON.stringify(F(D.value.formData.projectApplicationForm))||"",baseResearchReportFile:((ia=a.value.formData)==null?void 0:ia.projectType)!=="03"&&((la=D.value.formData)==null?void 0:la.baseResearchReportFile)&&JSON.stringify(F(D.value.formData.baseResearchReportFile))||"",baseProjOtherFile:((na=D.value.formData)==null?void 0:na.baseProjOtherFile)&&JSON.stringify(F(D.value.formData.baseProjOtherFile)),mainAccusationDoc:((ua=p.value)==null?void 0:ua.formData.declareAmount)>=1e3&&((fa=D.value.formData)==null?void 0:fa.mainAccusationDoc)&&JSON.stringify(F(D.value.formData.mainAccusationDoc))||"",reviewChecklist:((da=(ca=Ie.value)==null?void 0:ca.formData)==null?void 0:da.reviewChecklist)||void 0},n.value.isCoreBusiness&&(s=Object.assign(s,{...L.value.formData,coreBusiness:L.value.formData.coreBusiness&&JSON.stringify(L.value.formData.coreBusiness)})),n.value.isSafetyInput&&(s=Object.assign(s,{safetyInputDescribe:JSON.stringify(q.value.formData.safetyInput)})),n.value.isProjectImageProgress&&(s=Object.assign(s,{...pe.value.formData})),n.value.isRemark&&(s=Object.assign(s,{...he.value.formData})),((pa=(ma=b.value)==null?void 0:ma.formData)==null?void 0:pa.includeApplication)&&((_a=(va=b.value)==null?void 0:va.formData.applicationList)==null?void 0:_a.length)&&(s.applicationList=b.value.formData.applicationList.map(m=>{var E,T,ya,ga,ha;return{...m,isFirst:(E=a.value.formData)!=null&&E.isFirst?1:0,relatedExistsApplication:(!((T=a.value.formData)!=null&&T.isFirst)&&M.value.regionCode==="331123"||M.regionCode!=="331123")&&((ya=m.relatedExistsApplication)==null?void 0:ya.applicationName)||void 0,relatedExistsApplicationCode:(!((ga=a.value.formData)!=null&&ga.isFirst)&&M.value.regionCode==="331123"||M.regionCode!=="331123")&&m.relatedExistsApplicationCode||void 0,applicationName:((ha=a.value.formData)==null?void 0:ha.isFirst)&&M.regionCode==="331123"&&m.applicationName||void 0,coreBusinessList:m.coreBusinessList.map(Ea=>{var Ia,Pa;return{...Ea,projectId:((Ia=u.value)==null?void 0:Ia.projectId)||void 0,projectCode:((Pa=u.value)==null?void 0:Pa.projectCode)||void 0}})}})),(Da=n.value.safetyInputModular)!=null&&Da.length){s.safetyInputModular=[];for(const E in J.value)s.safetyInputModular.push(J.value[E].formData);const m=s.safetyInputModular.map(E=>({...E,formList:E.formList.map(T=>({...T,value:T.value?T.props.type==="\u6587\u4EF6\u4E0A\u4F20"?F(T.value):T.value:void 0}))}));s.safetyInputModular=JSON.stringify(m)}else s.safetyInputModular=void 0;if(t===1){_e.value=!0;try{const m={projectInfo:{...s,id:d.query.isDraft?void 0:s.id,draftId:d.query.isDraft?d.query.id*1:void 0}};d.name==="declarePage"?await vt(!d.query.isDraft&&d.query.id?2:1,m):d.name==="planEdit"?await yt(m.projectInfo):d.name==="handleAfterGiveBack"?await Wa({...m,projectId:d.query.id,instanceId:d.query.instanceId,taskId:d.query.taskId}):d.name==="declarePlan"&&await _t(m),fe.$message.success("\u63D0\u4EA4\u6210\u529F"),_e.value=!1,d.name==="projectDeclare"?ce.push({name:"projectDeclare"}):ce.go(-1)}catch{_e.value=!1}}else if(t===2){ve.value=!0;try{await Dt({projectInfo:{...s},user:M.value}),fe.$message.success("\u4FDD\u5B58\u6210\u529F"),ve.value=!1,ce.go(-1)}catch{ve.value=!1}}},u=v({}),ke=()=>{var t,s;a.value.setFormData(u.value),((t=u.value)==null?void 0:t.baseProjIsConfidentiality)!=="02"&&(p.value.setFormData(u.value),N.value.setFormData(u.value),me.value.setFormData(u.value),n.value.isCoreBusiness&&L.value.setFormData(u.value),n.value.isSafetyInput&&q.value.setFormData(u.value),n.value.isProjectImageProgress&&pe.value.setFormData(u.value),D.value.setFormData(u.value),n.value.isRemark&&he.value.setFormData(u.value),(s=b.value)==null||s.setFormData(u.value),setTimeout(()=>{var f;(f=be.value)==null||f.setFormData(u.value)}))},H=v({processProgressVo:{progressInfo:[]}}),Oa=v(),Sa=async()=>{var s,f;const t=await Ka({instanceId:d.query.instanceId,projectId:d.query.id,nodeId:d.query.nodeId});H.value={...t.data,processProgressVo:{...t.data.processProgressVo,progressInfo:Na(t.data.processProgressVo.progressInfo)}},Oa.value=((f=(s=H.value.processProgressVo.progressInfo.slice(-1)[0])==null?void 0:s.children)==null?void 0:f.slice(-1)[0])||H.value.processProgressVo.progressInfo.slice(-1)[0]},G=Ya({visible:!1,flowData:void 0}),Ma=t=>{G.visible=!0,G.flowData=H.value.processProgressVo.progressInfo},Na=t=>(t.forEach(s=>{if(s.children){const f=[],_=[];s.children.forEach(e=>{f.includes(e.nodeId)?(_.find(r=>r.nodeId===e.nodeId).list.push(e),_.find(r=>r.nodeId===e.nodeId).userIds.push(e.userId)):(f.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=()=>{G.visible=!1},we=v([]),Ta=v(),xa=t=>{Ta.value=t};Ua(async()=>{var e,r,o,h;if(we.value=(await gt()).data,d.query.id){var t={},s={},f=[],_=!1;(e=d.query)!=null&&e.isDraft?t=await pt({id:d.query.id}):(t=await Ca(d.query.id),s=await ba({regionCode:M.value.regionCode}),(d.name==="declarePlan"||[10012,10013,10016].includes((r=u.value)==null?void 0:r.status))&&(_=t.data.reviewChecklist&&((o=JSON.parse(t.data.reviewChecklist))==null?void 0:o.length)?!0:s.data.isReviewChecklist,f=s.data.reviewChecklist&&JSON.parse(s.data.reviewChecklist)||[])),u.value={...t.data,reviewChecklist:t.data.reviewChecklist?JSON.parse(t.data.reviewChecklist):void 0};const g=t.data.safetyInputModular&&JSON.parse(t.data.safetyInputModular).map(R=>({...R,formList:R.formList.map(y=>({...y,value:y.value?y.props.type==="\u6587\u4EF6\u4E0A\u4F20"?ka(y.value):y.value:void 0}))}));n.value={isCoreBusiness:t.data.isOpenCoreBusiness,isProjectImageProgress:t.data.isEngineeringSpeed,isRemark:t.data.isRemark,isSafetyInput:t.data.isOpenSafetyInput,safetyInputModular:g||[],isReviewChecklist:_,reviewChecklist:f},ja(()=>{ke()}),d.name==="handleAfterGiveBack"&&Sa()}else{const g=await ba({regionCode:M.value.regionCode});n.value={isCoreBusiness:g.data.isCoreBusiness,isProjectImageProgress:g.data.isProjectImageProgress,isRemark:g.data.isRemark,isSafetyInput:g.data.isSafetyInput,safetyInputModular:g.data.safetyInputModular||[]}}if((h=n.value.safetyInputModular)!=null&&h.length){let g=11;n.value.safetyInputModular.forEach(R=>{ge.value.push(g+++"")})}});async function La(t){const s=t.baseProjId,f=await Ca(s),_=u.value.projectType;u.value={...f.data,projectType:_};const e=f.data.safetyInputModular&&JSON.parse(f.data.safetyInputModular).map(r=>({...r,formList:r.formList.map(o=>({...o,value:o.value?o.props.type==="\u6587\u4EF6\u4E0A\u4F20"?ka(o.value):o.value:void 0}))}));n.value={isCoreBusiness:f.data.isOpenCoreBusiness,isProjectImageProgress:f.data.isEngineeringSpeed,isRemark:f.data.isRemark,isSafetyInput:f.data.isOpenSafetyInput,safetyInputModular:e||[]},ja(()=>{ke()})}return(t,s)=>{var Y,U,z,W,K,Q,X;const f=O("Warning"),_=O("el-icon"),e=O("el-button"),r=O("el-form-item"),o=O("el-col"),h=O("el-row"),g=O("el-form"),R=O("el-card"),y=O("el-collapse-item"),De=O("el-collapse");return P(),ye(Pe,null,[l("div",It,[x(d).name==="handleAfterGiveBack"?(P(),ye("div",Pt,[c(_,{class:"icon"},{default:i(()=>[c(f)]),_:1}),l("div",null,[bt,l("p",null,[l("span",null,$((Y=u.value)==null?void 0:Y.projectName)+"\u7684"+$((z=(U=H.value)==null?void 0:U.processProgressVo)==null?void 0:z.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:Ma},{default:i(()=>[S("\u67E5\u770B\u5BA1\u6838\u8BB0\u5F55")]),_:1})])])])):j("",!0),x(d).name==="declarePlan"?(P(),C(R,{key:1,shadow:"never",class:"mb-16"},{default:i(()=>[l("div",jt,[l("div",Ct,[l("div",kt,[l("p",wt,$(u.value.projectName),1),l("div",Ft,[c(g,{"label-suffix":":"},{default:i(()=>[c(h,{gutter:24},{default:i(()=>[c(o,{span:6},{default:i(()=>[c(r,{label:"\u7533\u62A5\u5355\u4F4D"},{default:i(()=>[S($(u.value.buildOrgName||"-"),1)]),_:1})]),_:1}),c(o,{span:6},{default:i(()=>[c(r,{label:"\u4E3B\u7BA1\u5355\u4F4D"},{default:i(()=>[S($(u.value.superOrg||"-"),1)]),_:1})]),_:1}),c(o,{span:6},{default:i(()=>[c(r,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:i(()=>[S($(u.value.createOn||"-"),1)]),_:1})]),_:1})]),_:1})]),_:1})])])])])]),_:1})):j("",!0),c(h,null,{default:i(()=>[c(o,{class:"leftCol",span:24},{default:i(()=>[c(De,{modelValue:ge.value,"onUpdate:modelValue":s[0]||(s[0]=B=>ge.value=B)},{default:i(()=>{var B,Z,ee,ae,te,se,oe,re,ie,le;return[c(y,{name:"1",class:"mb-16"},{title:i(()=>[Rt]),default:i(()=>{var I;return[l("div",At,[c(et,{ref_key:"basicInfoRef",ref:a,"detail-data":u.value,"dictionary-list":we.value,"declare-amount":(I=p.value)==null?void 0:I.formData.declareAmount,onReuseItem:La,onChangeIsFirst:Aa,onGetBasicInfoData:xa},null,8,["detail-data","dictionary-list","declare-amount"])])]}),_:1}),((Z=(B=a.value)==null?void 0:B.formData)==null?void 0:Z.baseProjIsConfidentiality)==="01"?(P(),ye(Pe,{key:0},[((ae=(ee=a.value)==null?void 0:ee.formData)==null?void 0:ae.baseProjIsConfidentiality)==="01"?(P(),C(y,{key:0,name:"2",class:"mb-16"},{title:i(()=>[Ot]),default:i(()=>[l("div",St,[c(tt,{ref_key:"fundsInfoRef",ref:p,"detail-data":u.value},null,8,["detail-data"])])]),_:1})):j("",!0),((se=(te=a.value)==null?void 0:te.formData)==null?void 0:se.baseProjIsConfidentiality)==="01"?(P(),C(y,{key:1,name:"3",class:"mb-16"},{title:i(()=>[Mt]),default:i(()=>[l("div",Nt,[c(st,{ref_key:"fundsAllocationRef",ref:N},null,512)])]),_:1})):j("",!0),((re=(oe=a.value)==null?void 0:oe.formData)==null?void 0:re.baseProjIsConfidentiality)==="01"?(P(),C(y,{key:2,name:"4",class:"mb-16"},{title:i(()=>[Bt]),default:i(()=>[l("div",Tt,[c(ot,{ref_key:"annualPaymentPlanRef",ref:me},null,512)])]),_:1})):j("",!0),n.value.isCoreBusiness?(P(),C(y,{key:3,name:"5",class:"mb-16"},{title:i(()=>[xt]),default:i(()=>{var I;return[l("div",Lt,[c(rt,{ref_key:"coreBusinessRef",ref:L,"basic-info-data":(I=a.value)==null?void 0:I.formData},null,8,["basic-info-data"])])]}),_:1})):j("",!0),n.value.isSafetyInput?(P(),C(y,{key:4,name:"6",class:"mb-16"},{title:i(()=>[Et]),default:i(()=>[l("div",$t,[c(it,{ref_key:"safetyInputRef",ref:q},null,512)])]),_:1})):j("",!0),n.value.isProjectImageProgress?(P(),C(y,{key:5,name:"7",class:"mb-16"},{title:i(()=>[qt]),default:i(()=>[l("div",Jt,[c(lt,{ref_key:"projectImageProgressRef",ref:pe},null,512)])]),_:1})):j("",!0),x(wa)()&&n.value.isReviewChecklist&&(t.$route.name==="declarePlan"||[10012,10013,10016].includes((ie=u.value)==null?void 0:ie.status))?(P(),C(y,{key:6,name:"8",class:"mb-16"},{title:i(()=>[Vt]),default:i(()=>[l("div",Ht,[c(ht,{ref_key:"reviewCheckRef",ref:Ie,"detail-data":u.value,data:u.value.reviewChecklist||n.value.reviewChecklist},null,8,["detail-data","data"])])]),_:1})):j("",!0),c(y,{name:"8",class:"mb-16"},{title:i(()=>[Gt]),default:i(()=>{var I,w,A;return[l("div",Yt,[c(nt,{ref_key:"accessoryRef",ref:D,"detail-data":u.value,"project-type":(w=(I=a.value)==null?void 0:I.formData)==null?void 0:w.projectType,"declare-amount":(A=p.value)==null?void 0:A.formData.declareAmount},null,8,["detail-data","project-type","declare-amount"])])]}),_:1}),n.value.isRemark?(P(),C(y,{key:7,name:"9",class:"mb-16"},{title:i(()=>[Ut]),default:i(()=>[l("div",zt,[c(ut,{ref_key:"projectRemarkRef",ref:he},null,512)])]),_:1})):j("",!0),(le=n.value.safetyInputModular)!=null&&le.length?(P(!0),ye(Pe,{key:8},za(n.value.safetyInputModular,(I,w)=>(P(),C(y,{key:w,name:11+w+"",class:"mb-16"},{title:i(()=>[l("div",Wt,$(I.moduleName),1)]),default:i(()=>[l("div",Kt,[c(ft,{ref_for:!0,ref:A=>{J.value[I.id]=A},data:I},null,8,["data"])])]),_:2},1032,["name"]))),128)):j("",!0),t.$route.name==="declarePlan"||[10012,10016,10013].includes(u.value.status)?(P(),C(y,{key:9,name:"4",class:"mb-16"},{title:i(()=>[Qt]),default:i(()=>{var I,w,A,ne;return[l("div",Xt,[c(ct,{ref_key:"applicationsRef",ref:b,"is-first":(w=(I=a.value)==null?void 0:I.formData)==null?void 0:w.isFirst,"core-business":(ne=(A=L.value)==null?void 0:A.formData)==null?void 0:ne.coreBusiness},null,8,["is-first","core-business"])])]}),_:1})):j("",!0),t.$route.name==="declarePlan"||[10012,10016,10013].includes(u.value.status)?(P(),C(y,{key:10,name:"1",class:"mb-16"},{title:i(()=>[Zt]),default:i(()=>[l("div",es,[c(at,{ref_key:"planndedUseResourcesRef",ref:de,"detail-data":u.value},null,8,["detail-data"])])]),_:1})):j("",!0)],64)):j("",!0)]}),_:1},8,["modelValue"])]),_:1})]),_:1}),c(dt,{ref_key:"hiddenAppFormRef",ref:je,"application-list":(K=(W=b.value)==null?void 0:W.formData)==null?void 0:K.applicationList,"is-first":(X=(Q=a.value)==null?void 0:Q.formData)==null?void 0:X.isFirst},null,8,["application-list","is-first"]),l("div",as,[c(e,{onClick:s[1]||(s[1]=B=>x(ce).go(-1))},{default:i(()=>[S(" \u8FD4\u56DE ")]),_:1}),x(d).name==="declarePage"&&(!x(d).query.id||x(d).query.id&&x(d).query.isDraft)?(P(),C(e,{key:0,plain:"",type:"primary",loading:ve.value,onClick:Ra},{default:i(()=>[S(" \u6682 \u5B58 ")]),_:1},8,["loading"])):j("",!0),c(e,{type:"primary",loading:_e.value,onClick:Fa},{default:i(()=>[S(" \u63D0\u4EA4\u5BA1\u6838 ")]),_:1},8,["loading"])])]),c(mt,{visible:G.visible,"flow-data":G.flowData,onClose:Ba},null,8,["visible","flow-data"])],64)}}}),Js=$a(ss,[["__scopeId","data-v-3ec1a5f1"]]);export{Js as default};
|