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.9ecfa235.js 29KB

1
  1. import{d as ca,B as We,C as pa,y as ba,x as ga,b as se,Z as I,r as j,o as Pa,c as v,e as O,f as V,g as p,G as E,k as X,h as l,i as n,u as ie,F as re,H as Ge,t as N,j as L,T as $,w as ja,v as fa,q as Sa}from"./index.55251523.js";import{l as ya,a as Fa,r as va,c as Aa}from"./renewalProjectCapitalDeclare.a1792d1e.js";import{d as Oa,a as Na,s as ha}from"./projectCollectionEnter.a9815778.js";import Ca from"./basicInfo.ca04f53a.js";import _a from"./projectDeclareInfo.d34b2ff9.js";import Ja from"./applicationInfo.691d5580.js";import wa from"./coreBusiness.0a4dd36e.js";import Ta from"./projectApprovalInfo.dd7b02d8.js";import Ya from"./purchaseInfo.048c0090.js";import Da from"./empMaterials.626979af.js";import{c as ka}from"./contractRecord.2823f007.js";import{g as m}from"./uploadAction.6ab57011.js";import"./index.f5b34f1e.js";import"./unitManage.0cc696d7.js";import"./userDialog.3e8e122a.js";import"./lineOrgDialog.febebe09.js";import"./index.8a59d8d8.js";import"./indicatorTemplate.9bceab62.js";import"./relatedProjectDialog.92241468.js";import"./projectContentDialog.7baa1045.js";const Ra={class:"footerPage"},La={class:"pb-24"},xa={class:"pb-24"},Ia={class:"pb-24"},Va={class:"pb-24"},Ea={class:"pb-24"},$a={class:"pb-24"},Ba={class:"pb-24"},Ma={class:"footer"},qa=ca({name:"renewalCapitalDeclare"}),ct=Object.assign(qa,{setup(Ua){const{proxy:ue}=Sa(),{statusOptions:h,statusGjOptions:x,projectTypeOptions:de}=We.dictStore.globalDicts||{},me=pa(We.userStore).userInfo||{},ce=ba(),Y=ga(),Ze=se([{type:"radio",key:"id",width:"50"},{label:"\u9879\u76EE\u540D\u79F0",key:"projectName",prop:"projectName",minWidth:"200",showOverflowTooltip:!0},{label:"\u9879\u76EE\u7C7B\u578B",key:"projectType",prop:"projectType",minWidth:"80",render:e=>I("span",de[e.projectType]||"-")},{label:"\u6279\u590D\u603B\u91D1\u989D\uFF08\u4E07\u5143\uFF09",key:"approvedAmount",prop:"approvedAmount",width:"180"},{label:"\u7D2F\u8BA1\u5E74\u5EA6\u6295\u8D44\u8D44\u91D1",key:"annualAccumulateAmountList",slot:"annualAccumulateAmountList",width:"180"},{label:"\u9879\u76EE\u72B6\u6001",key:"status",prop:"status",width:"180",render:e=>{var a,s,u,t,d,r,y,g;return[I("span",{class:["dot mr-4",`bg-${((a=h[e.status])==null?void 0:a.color)||((s=x[e.status])==null?void 0:s.color)}`]}),I("span",{class:`text-${((u=h[e.status])==null?void 0:u.color)||((t=x[e.status])==null?void 0:t.color)}`},e.status&&((d=h[e.stage])==null?void 0:d.name)?`${(r=h[e.stage])==null?void 0:r.name}-${(y=h[e.status])==null?void 0:y.name}`:((g=x[e.status])==null?void 0:g.name)||"-")]}}]),ze=se([{label:"\u9879\u76EE\u540D\u79F0",key:"projectName",prop:"projectName",minWidth:"200",showOverflowTooltip:!0},{label:"\u9879\u76EE\u7C7B\u578B",key:"projectType",prop:"projectType",minWidth:"80",render:e=>I("span",de[e.projectType]||"-")},{label:"\u6279\u590D\u603B\u91D1\u989D\uFF08\u4E07\u5143\uFF09",key:"approvalAmount",prop:"approvalAmount",width:150},{label:"\u7D2F\u8BA1\u5E74\u5EA6\u6295\u8D44\u8D44\u91D1",key:"annualAccumulateAmountList",slot:"annualAccumulateAmountList",width:150},{label:"\u9879\u76EE\u72B6\u6001",key:"status",prop:"status",width:"120",render:e=>{var a,s,u,t,d,r,y,g;return[I("span",{class:["dot mr-4",`bg-${((a=h[e.status])==null?void 0:a.color)||((s=x[e.status])==null?void 0:s.color)}`]}),I("span",{class:`text-${((u=h[e.status])==null?void 0:u.color)||((t=x[e.status])==null?void 0:t.color)}`},e.status&&((d=h[e.stage])==null?void 0:d.name)?`${(r=h[e.stage])==null?void 0:r.name}-${(y=h[e.status])==null?void 0:y.name}`:((g=x[e.status])==null?void 0:g.name)||"-")]}}]),pe=j(0),ee=j([]),B=j(),be=j(),ge=j(0),Pe=j(),Ke=e=>{var a,s,u;c.value.projectId=e.id,c.value.projectCode=e.projectCode,be.value=((a=e.annualAccumulateAmountList)==null?void 0:a.length)>1&&e.annualAccumulateAmountList.reduce((t,d)=>Math.max(t.projectYear,d.projectYear))||e.annualAccumulateAmountList[0].projectYear,ge.value=(u=(s=e.annualAccumulateAmountList)==null?void 0:s.map(t=>t.annualAmount))==null?void 0:u.reduce((t,d)=>t+d,0),Pe.value=e.approvedAmount,fe(e.id),ia(e.projectCode,e.fromType)},ne=se({projectName:void 0}),Qe=()=>{B.value.pageParams.pageNumber=1,le()},le=async(e=B.value.pageParams)=>{const a=await ya({...e,projectName:ne.projectName});ee.value=a.data.records.map(s=>{var u,t;return{...s,isRadioDisabled:((t=(u=s.annualAccumulateAmountList)==null?void 0:u.map(d=>d.annualAmount))==null?void 0:t.reduce((d,r)=>d+r,0))===s.approvedAmount}}),pe.value=a.data.total},je=j(),M=(e,a,s)=>{a||s(),/^\d+(\.\d{1,6})?$/.test(a)?a*1>=1e8?s("\u8BF7\u8F93\u5165\u6B63\u786E\u683C\u5F0F\uFF0C\u5C0F\u4E8E100000000"):s():s("\u8BF7\u8F93\u5165\u6B63\u786E\u683C\u5F0F\uFF0C\u6700\u591A\u4FDD\u7559\u516D\u4F4D\u5C0F\u6570")},Xe=(e,a,s)=>{var t;a||s(),/^\d+(\.\d{1,6})?$/.test(a)?a*1>=1e8&&s("\u8BF7\u8F93\u5165\u6B63\u786E\u683C\u5F0F\uFF0C\u5C0F\u4E8E100000000"):s("\u8BF7\u8F93\u5165\u6B63\u786E\u683C\u5F0F\uFF0C\u6700\u591A\u4FDD\u7559\u516D\u4F4D\u5C0F\u6570");let u=0;ae.value.forEach(d=>{new Date(d.paymentTime).getFullYear()<c.value.projectYear*1&&(u+=d.paymentAmount-d.actualPaymentAmount)}),u+=(t=ae.value.find(d=>new Date(d.paymentTime).getFullYear()===c.value.projectYear*1))==null?void 0:t.paymentAmount,a>u?s(`\u652F\u4ED8\u91D1\u989D\u6700\u5927\u4E0D\u80FD\u8D85\u8FC7${u}\u4E07\u5143`):s()},ea=e=>new Date(e).getFullYear()<=new Date().getFullYear(),aa=se({projectId:[{required:!0,message:"\u8BF7\u9009\u62E9\u5173\u8054\u9879\u76EE",trigger:"blur"}],projectYear:[{required:!0,message:"\u8BF7\u9009\u62E9\u9884\u7B97\u5E74\u5EA6",trigger:"blur"}],annualPaymentAmount:[{required:!0,message:"\u8BF7\u8F93\u5165\u5E74\u5EA6\u652F\u4ED8\u91D1\u989D",trigger:"blur"},{validator:Xe,trigger:"blur"}],haveAmount:[{required:!0,message:"\u8BF7\u8F93\u5165\u81EA\u6709\u8D44\u91D1\u91D1\u989D",trigger:"blur"},{validator:M,trigger:"blur"}],govOwnFinanceAmount:[{required:!0,message:"\u8BF7\u8F93\u5165\u653F\u5E9C\u6295\u8D44-\u672C\u7EA7\u8D22\u653F\u8D44\u91D1\u91D1\u989D",trigger:"blur"},{validator:M,trigger:"blur"}],govSuperiorFinanceAmount:[{required:!0,message:"\u8BF7\u8F93\u5165\u653F\u5E9C\u6295\u8D44-\u4E0A\u7EA7\u8865\u52A9\u8D44\u91D1\u91D1\u989D",trigger:"blur"},{validator:M,trigger:"blur"}],bankLendingAmount:[{required:!0,message:"\u8BF7\u8F93\u5165\u94F6\u884C\u8D37\u6B3E\u91D1\u989D",trigger:"blur"},{validator:M,trigger:"blur"}],otherAmount:[{required:!0,message:"\u8BF7\u8F93\u5165\u5176\u4ED6\u91D1\u989D",trigger:"blur"},{validator:M,trigger:"blur"}]}),c=j({id:Y.query.id||void 0,orgCode:me.empPosUnitCode,regionCode:me.regionCode}),ta=async e=>{!e||await e.validate(async(a,s)=>{if(a){if(oe.value){ue.$message.error(oe.value);return}if(!Y.query.id){const t=Object.values(b).map(async d=>(d==null?void 0:d.formRef)&&await d.formRef.validate());await Promise.all(t)}const u={...c.value,projectYear:c.value.projectYear*1};await Fa(u),!Y.query.id&&ma()}else console.log("error submit!",s)})},sa=async()=>{var a,s,u;const e=await va(Y.query.id);c.value={...e.data,projectYear:e.data.projectYear+""},ee.value=[{...e.data}],be.value=((a=e.data.annualAccumulateAmountList)==null?void 0:a.length)>1&&e.data.annualAccumulateAmountList.reduce((t,d)=>Math.max(t.projectYear,d.projectYear))||e.data.annualAccumulateAmountList[0].projectYear,ge.value=(u=(s=e.data.annualAccumulateAmountList)==null?void 0:s.map(t=>t.annualAmount))==null?void 0:u.reduce((t,d)=>t+d,0),Pe.value=e.data.approvalAmount,fe(e.data.projectId)},ra=[{label:"\u4ED8\u6B3E\u7B14\u6570",key:"number",slot:"number"},{label:"\u4ED8\u6B3E\u8BA1\u5212",key:"planAmount",slot:"planAmount"},{label:"\u4ED8\u6B3E\u6BD4\u4F8B\uFF08%\uFF09",key:"ratio",slot:"ratio"},{label:"\u4ED8\u6B3E\u91D1\u989D\uFF08\u4E07\u5143\uFF09",key:"paymentAmount",slot:"paymentAmount"},{label:"\u9884\u8BA1\u4ED8\u6B3E\u65F6\u95F4",key:"paymentTime",slot:"paymentTime"},{label:"\u5B9E\u9645\u652F\u4ED8\u91D1\u989D\uFF08\u4E07\u5143\uFF09",key:"actualPaymentAmount",slot:"actualPaymentAmount",width:180}],ae=j(),oe=j(""),fe=async e=>{var s;const a=await ka(e);ae.value=((s=a==null?void 0:a.data)==null?void 0:s.payments)||[],oe.value=""},b={},J=j(),C=j(),na=e=>{C.value=e},q=j(),te=j(),la=e=>{te.value=e},Se=j(),oa=e=>{Se.value=e},ye=j(),ia=async(e,a)=>{var u,t,d,r,y,g,A,_,F,D,k,R,i,f,S,w,T,P,U,H,W,G,Z,z,K,Q;let s={};a==="2"?s=await Na("1",e):s=await Aa(e),ye.value=s.data.baseinfo.baseProjName,J.value={...s.data,baseinfo:{...s.data.baseinfo,baseProjType:"03"},cimplement:{...s.data.cimplement,baseCheckFile:((u=s.data.cimplement)==null?void 0:u.baseCheckFile)&&JSON.stringify(m(JSON.parse((t=s.data.cimplement)==null?void 0:t.baseCheckFile)))||void 0,baseInitialOpinionFile:((d=s.data.cimplement)==null?void 0:d.baseInitialOpinionFile)&&JSON.stringify(m(JSON.parse((r=s.data.cimplement)==null?void 0:r.baseInitialOpinionFile)))||void 0,baseEstaSummFile:((y=s.data.cimplement)==null?void 0:y.baseEstaSummFile)&&JSON.stringify(m(JSON.parse((g=s.data.cimplement)==null?void 0:g.baseEstaSummFile)))||void 0,baseSummReportFile:((A=s.data.cimplement)==null?void 0:A.baseEstaSummFile)&&JSON.stringify(m(JSON.parse((_=s.data.cimplement)==null?void 0:_.baseSummReportFile)))||void 0,baseThirdAcceptFile:((F=s.data.cimplement)==null?void 0:F.baseEstaSummFile)&&JSON.stringify(m(JSON.parse((D=s.data.cimplement)==null?void 0:D.baseThirdAcceptFile)))||void 0,baseInforLevelFile:((k=s.data.cimplement)==null?void 0:k.baseInforLevelFile)&&JSON.stringify(m(JSON.parse((R=s.data.cimplement)==null?void 0:R.baseInforLevelFile)))||void 0,basePasswAssessFile:((i=s.data.cimplement)==null?void 0:i.basePasswAssessFile)&&JSON.stringify(m(JSON.parse((f=s.data.cimplement)==null?void 0:f.basePasswAssessFile)))||void 0,baseFinanlAuditFile:((S=s.data.cimplement)==null?void 0:S.baseFinanlAuditFile)&&JSON.stringify(m(JSON.parse((w=s.data.cimplement)==null?void 0:w.baseFinanlAuditFile)))||void 0,baseUserConsFile:((T=s.data.cimplement)==null?void 0:T.baseUserConsFile)&&JSON.stringify(m(JSON.parse((P=s.data.cimplement)==null?void 0:P.baseUserConsFile)))||void 0,baseFinalExpertOpinionFile:((U=s.data.cimplement)==null?void 0:U.baseFinalExpertOpinionFile)&&JSON.stringify(m(JSON.parse((H=s.data.cimplement)==null?void 0:H.baseFinalExpertOpinionFile)))||void 0,baseEngineerPostpoFile:((W=s.data.cimplement)==null?void 0:W.baseEngineerPostpoFile)&&JSON.stringify(m(JSON.parse((G=s.data.cimplement)==null?void 0:G.baseEngineerPostpoFile)))||void 0,baseChangeFormFile:((Z=s.data.cimplement)==null?void 0:Z.baseChangeFormFile)&&JSON.stringify(m(JSON.parse((z=s.data.cimplement)==null?void 0:z.baseChangeFormFile)))||void 0,baseChanFile:((K=s.data.cimplement)==null?void 0:K.baseChanFile)&&JSON.stringify(m(JSON.parse((Q=s.data.cimplement)==null?void 0:Q.baseChanFile)))||void 0}}},ua=()=>{J.value.baseinfo.baseProjName=ye.value+`\uFF08${c.value.projectYear}\uFF09`},da=()=>{var y,g,A,_,F,D,k,R,i,f,S,w,T,P,U,H,W,G,Z,z,K,Q,Fe,ve,Ae,Oe,Ne,he,Ce,_e,Je,we,Te,Ye,De,ke,Re,Le,xe,Ie,Ve,Ee,$e,Be,Me;const e=JSON.parse(JSON.stringify(b.baseinfo.formData)),a=JSON.parse(JSON.stringify(b.apply.formData)),s=b.application&&JSON.parse(JSON.stringify(b.application.formData))||{},u=b.baseCore&&JSON.parse(JSON.stringify(b.baseCore.formData))||{},t=b.approve&&JSON.parse(JSON.stringify(b.approve.formData))||{},d=b.procures&&JSON.parse(JSON.stringify(b.procures.formData))||[],r=b.cimplement&&JSON.parse(JSON.stringify(b.cimplement.formData))||[];return{baseProjId:"",baseinfo:{...e,baseProvManDeprtType:(e==null?void 0:e.baseProvManDeprtType)*1||void 0,baseConstructionType:(y=e==null?void 0:e.baseConstructionType)==null?void 0:y.join("\uFF1B")},apply:{...a,baseProjStartTime:(g=a==null?void 0:a.baseProjTime)!=null&&g.length?(a==null?void 0:a.baseProjTime[0])+" 00:00:00":void 0,baseProjEndTime:(A=a==null?void 0:a.baseProjTime)!=null&&A.length?(a==null?void 0:a.baseProjTime[1])+" 00:00:00":void 0,baseProjTime:void 0,baseHistorProjId:(a==null?void 0:a.missing)||(e==null?void 0:e.baseProjType)==="01"?"":(F=(_=a==null?void 0:a.baseHistorProjs)==null?void 0:_.map(o=>o.baseProjId))==null?void 0:F.join("\uFF1B"),baseHistorProjName:(a==null?void 0:a.missing)||(e==null?void 0:e.baseProjType)==="01"?"":(k=(D=a==null?void 0:a.baseHistorProjs)==null?void 0:D.map(o=>o.baseProjName))==null?void 0:k.join("\uFF1B"),baseHistorProjYear:(a==null?void 0:a.missing)||(e==null?void 0:e.baseProjType)==="01"?"":(i=(R=a==null?void 0:a.baseHistorProjs)==null?void 0:R.map(o=>o.baseProjSetYear))==null?void 0:i.join("\uFF1B"),baseProjAmountOri:((f=a==null?void 0:a.baseProjAmountOri)==null?void 0:f.join("\uFF1B"))||void 0,baseProjBasis:((w=(S=a==null?void 0:a.baseProjBasis)==null?void 0:S.map(o=>o.value))==null?void 0:w.join("\uFF1B"))||void 0,baseProjBasisFile:((P=(T=a==null?void 0:a.baseProjBasis)==null?void 0:T.map(o=>o.fileList&&JSON.stringify(m(o.fileList))))==null?void 0:P.join("\uFF1B"))||"",beseExpectedResults:((U=a==null?void 0:a.beseExpectedResults)==null?void 0:U.length)&&JSON.stringify(a.beseExpectedResults)||"",baseProjApplyFile:(["01","02","04","05"].includes(e==null?void 0:e.baseProjType)&&(a==null?void 0:a.baseProjSetYear)*1>=2023||(a==null?void 0:a.baseProjSetYear)*1<2023)&&((H=a==null?void 0:a.baseProjApplyFile)==null?void 0:H.length)?JSON.stringify(m(a==null?void 0:a.baseProjApplyFile)):"",baseResearchReportFile:((e==null?void 0:e.baseProjType)==="01"||(e==null?void 0:e.baseProjType)==="02")&&((W=a==null?void 0:a.baseResearchReportFile)==null?void 0:W.length)?JSON.stringify(m(a==null?void 0:a.baseResearchReportFile)):"",baseProjOtherFile:(G=a==null?void 0:a.baseProjOtherFile)!=null&&G.length?JSON.stringify(m(a==null?void 0:a.baseProjOtherFile)):"",baseHistorProjs:void 0,...s,baseProjSysCode:((Z=s==null?void 0:s.applications)==null?void 0:Z.map(o=>o.application.applicationCode).join("\uFF1B"))||"",baseProjSys:((z=s==null?void 0:s.applications)==null?void 0:z.map(o=>o.application.applicationName).join("\uFF1B"))||"",baseAccountAppName:((K=s==null?void 0:s.applications)==null?void 0:K.map(o=>o.baseAccountAppName).join("\uFF1B"))||"",baseBrainName:((Q=s==null?void 0:s.applications)==null?void 0:Q.map(o=>o.baseBrainName).join("\uFF1B"))||"",applications:void 0,...u,baseCoreBusinessCode:((Fe=u==null?void 0:u.coreBusiness)==null?void 0:Fe.map(o=>o.id).join("\uFF1B"))||"",baseCoreBusiness:((ve=u==null?void 0:u.coreBusiness)==null?void 0:ve.map(o=>o.matterName).join("\uFF1B"))||"",baseCoreBusinessOrg:((Ae=u==null?void 0:u.coreBusiness)==null?void 0:Ae.map(o=>o.orgName).join("\uFF1B"))||"",coreBusiness:void 0,baseProjId:""},approve:{...t,baseReviewResults:(e==null?void 0:e.baseProjSetProg)!=="01"?t==null?void 0:t.baseReviewResults:"",baseReviewOpinion:(e==null?void 0:e.baseProjSetProg)!=="01"?t==null?void 0:t.baseReviewOpinion:"",baseReviewCommentsFile:(e==null?void 0:e.baseProjSetProg)!=="01"?((Oe=t==null?void 0:t.baseReviewCommentsFile)==null?void 0:Oe.length)&&JSON.stringify(m(t==null?void 0:t.baseReviewCommentsFile)):"",equalProtectionLevel:(e==null?void 0:e.baseProjIsConfidentiality)==="01"&&!["01","02","03"].includes(e==null?void 0:e.baseProjSetProg)?t==null?void 0:t.equalProtectionLevel:"",approvalFile:["01","02","03"].includes(e==null?void 0:e.baseProjSetProg)?"":((Ne=t==null?void 0:t.approvalFile)==null?void 0:Ne.length)&&JSON.stringify(m(t==null?void 0:t.approvalFile)),baseExpertTotalMoney:["01","03"].includes(e==null?void 0:e.baseProjSetProg)?"":t==null?void 0:t.baseExpertTotalMoney,baseExpertYearMoney:["01","03"].includes(e==null?void 0:e.baseProjSetProg)?"":t==null?void 0:t.baseExpertYearMoney,baseInitialReviewTotalMoney:["01","02","03"].includes(e==null?void 0:e.baseProjSetProg)?"":t==null?void 0:t.baseInitialReviewTotalMoney,baseProjReplyAmount:["01","02","03"].includes(e==null?void 0:e.baseProjSetProg)?"":t==null?void 0:t.baseProjReplyAmount,releaseYearMoney:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)?t==null?void 0:t.releaseYearMoney:"",preliminaryDesignScheme:(t==null?void 0:t.baseProjReplyAmount)>=5e3&&["04","05","06","07","00"].includes(e.baseProjSetProg)?((he=t==null?void 0:t.preliminaryDesignScheme)==null?void 0:he.length)&&JSON.stringify(m(t.preliminaryDesignScheme)):"",preliminaryDesignFile:(t==null?void 0:t.baseProjReplyAmount)>=5e3&&["04","05","06","07","00"].includes(e.baseProjSetProg)?((Ce=t==null?void 0:t.preliminaryDesignFile)==null?void 0:Ce.length)&&JSON.stringify(m(t.preliminaryDesignFile)):""},procures:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(a==null?void 0:a.baseProjSetYear)*1<2023)&&((_e=d==null?void 0:d.sections)==null?void 0:_e.map(o=>{var qe,Ue,He;return{...o,baseBidName:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&o.baseBidName||"",baseProjPurchaseWay:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&o.baseProjPurchaseWay||"",basePurchaseCode:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&o.basePurchaseCode||"",basePurchasingAgencies:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(a==null?void 0:a.baseProjSetYear)*1<2023)&&o.basePurchasingAgencies||"",baseUnifiedCreditCode:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(a==null?void 0:a.baseProjSetYear)*1<2023)&&o.baseUnifiedCreditCode||"",baseWinningBidTime:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&o.baseWinningBidTime||"",baseProjPurchaseAmount:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&o.baseProjPurchaseAmount||"",baseConsDeprt:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&o.baseConsDeprt||"",baseConsDeprtUsci:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&o.baseConsDeprtUsci||"",basePaymentTime:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(a==null?void 0:a.baseProjSetYear)*1<2023)&&o.basePaymentTime||"",paymentProgress:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(a==null?void 0:a.baseProjSetYear)*1<2023)&&o.paymentProgress||"",purchaseFile:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&((qe=o.purchaseFile)==null?void 0:qe.length)?JSON.stringify(m(o.purchaseFile)):"",biddingFile:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&((Ue=o.biddingFile)==null?void 0:Ue.length)?JSON.stringify(m(o.biddingFile)):"",purchaseContract:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&((He=o.purchaseContract)==null?void 0:He.length)?JSON.stringify(m(o.purchaseContract)):""}}))||[],cimplement:{...r,baseInitialOpinionFile:(Je=r==null?void 0:r.baseInitialOpinionFile)!=null&&Je.length?JSON.stringify(m(r.baseInitialOpinionFile)):"",baseInforLevelFile:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&((we=e==null?void 0:e.baseConstructionType)==null?void 0:we.includes("01"))||!((Te=e==null?void 0:e.baseConstructionType)!=null&&Te.includes("01")))&&((Ye=r==null?void 0:r.baseInforLevelFile)==null?void 0:Ye.length)?JSON.stringify(m(r.baseInforLevelFile)):"",basePasswAssessFile:(["04","05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(a==null?void 0:a.baseProjSetYear)*1<2023)&&((De=r==null?void 0:r.basePasswAssessFile)==null?void 0:De.length)?JSON.stringify(m(r.basePasswAssessFile)):"",baseThirdAcceptFile:(ke=r.baseThirdAcceptFile)!=null&&ke.length?JSON.stringify(m(r.baseThirdAcceptFile)):"",baseCheckFile:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(a==null?void 0:a.baseProjSetYear)*1<2023)&&((Re=r==null?void 0:r.baseCheckFile)==null?void 0:Re.length)?JSON.stringify(m(r.baseCheckFile)):"",baseFinanlAuditFile:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&(t==null?void 0:t.releaseYearMoney)*1>=2e3&&((Le=r==null?void 0:r.baseFinanlAuditFile)==null?void 0:Le.length)?JSON.stringify(m(r.baseFinanlAuditFile)):"",baseUserConsFile:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(a==null?void 0:a.baseProjSetYear)*1<2023)&&((xe=r==null?void 0:r.baseUserConsFile)==null?void 0:xe.length)?JSON.stringify(m(r.baseUserConsFile)):"",baseEstaSummFile:(Ie=r==null?void 0:r.baseEstaSummFile)!=null&&Ie.length?JSON.stringify(m(r==null?void 0:r.baseEstaSummFile)):"",baseSummReportFile:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(a==null?void 0:a.baseProjSetYear)*1<2023)&&((Ve=r==null?void 0:r.baseSummReportFile)==null?void 0:Ve.length)?JSON.stringify(m(r.baseSummReportFile)):"",baseFinalExpertOpinionFile:(e==null?void 0:e.baseProjSetProg)==="07"&&((Ee=r.baseFinalExpertOpinionFile)==null?void 0:Ee.length)?JSON.stringify(m(r==null?void 0:r.baseFinalExpertOpinionFile)):"",baseEngineerPostpoFile:($e=r==null?void 0:r.baseEngineerPostpoFile)!=null&&$e.length?JSON.stringify(m(r==null?void 0:r.baseEngineerPostpoFile)):"",baseChangeFormFile:(Be=r==null?void 0:r.baseChangeFormFile)!=null&&Be.length?JSON.stringify(m(r==null?void 0:r.baseChangeFormFile)):"",baseChanFile:(Me=r==null?void 0:r.baseChanFile)!=null&&Me.length?JSON.stringify(m(r==null?void 0:r.baseChanFile)):""}}},ma=async()=>{const e=da();await ha(e),ue.$message.success("\u63D0\u4EA4\u6210\u529F\uFF01"),ce.go(-1)};return Pa(async()=>{q.value=(await Oa()).data,Y.query.id?sa():le()}),(e,a)=>{const s=v("el-alert"),u=v("el-button"),t=v("el-input"),d=v("table-list"),r=v("el-form-item"),y=v("el-date-picker"),g=v("el-col"),A=v("el-input-number"),_=v("el-row"),F=v("el-collapse-item"),D=v("el-collapse"),k=v("el-form"),R=v("el-card");return O(),V(re,null,[p("div",Ra,[c.value.approvalStatus==="NOT_PASS"?(O(),E(s,{key:0,style:{marginBottom:"20px"},title:"\u5BA1\u6838\u4E0D\u901A\u8FC7",type:"error",description:`\u5BA1\u6838\u610F\u89C1\uFF1A${c.value.auditOpinion}`,"show-icon":""},null,8,["description"])):X("",!0),l(R,{class:"box-card"},{header:n(()=>a[16]||(a[16]=[p("div",{class:"card-header"},[p("span",null,"\u7533\u62A5\u4FE1\u606F")],-1)])),default:n(()=>[l(k,{ref_key:"ruleFormRef",ref:je,model:c.value,rules:aa,"label-width":"auto",class:"demo-ruleForm","status-icon":""},{default:n(()=>[e.$route.query.id?X("",!0):(O(),E(t,{key:0,modelValue:ne.projectName,"onUpdate:modelValue":a[0]||(a[0]=i=>ne.projectName=i),placeholder:"\u641C\u7D22\u9879\u76EE\u540D\u79F0",style:{width:"200px","margin-left":"100px"},class:"mb-8"},{append:n(()=>[l(u,{icon:"Search",onClick:Qe})]),_:1},8,["modelValue"])),l(r,{label:"\u5173\u8054\u9879\u76EE",prop:"projectId","label-width":100,clas:"mb-16"},{default:n(()=>[ie(Y).query.id?(O(),E(d,{key:1,ref_key:"tableListRef",ref:B,column:ze,data:ee.value,height:200,pagination:!1,class:"flex-1"},{annualAccumulateAmountList:n(({scope:i})=>[(O(!0),V(re,null,Ge(i.row.annualAccumulateAmountList,(f,S)=>(O(),V("p",{key:S},N(S+1)+"\u3001"+N(f.projectYear)+"\u5E74\u6295\u8D44"+N(f.annualAmount)+"\u4E07\u5143",1))),128))]),_:1},8,["column","data"])):(O(),E(d,{key:0,ref_key:"tableListRef",ref:B,column:Ze,height:350,data:ee.value,total:pe.value,class:"w-full","row-key":"id",onRadioChange:Ke,onGetTableData:le},{annualAccumulateAmountList:n(({scope:i})=>[(O(!0),V(re,null,Ge(i.row.annualAccumulateAmountList,(f,S)=>(O(),V("p",{key:S},N(S+1)+"\u3001"+N(f.projectYear)+"\u5E74\u6295\u8D44"+N(f.annualAmount)+"\u4E07\u5143",1))),128))]),_:1},8,["column","data","total"]))]),_:1}),a[25]||(a[25]=p("p",{class:"mb-16 flex items-center"},[p("span",{class:"mr-24"},"\u652F\u4ED8\u4FE1\u606F"),p("span",{class:"text-danger text-14"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u5B9E\u9645\u652F\u4ED8\u91D1\u989D\u8BF7\u53BB\u5408\u540C\u4FE1\u606F\u586B\u5199")],-1)),l(d,{ref_key:"tableListRef",ref:B,column:ra,data:ae.value,pagination:!1,"empty-temp":!1,class:"mb-16"},{number:n(({scope:i})=>[p("span",null,"\u7B2C"+N(i.$index+1)+"\u7B14",1)]),planAmount:n(({scope:i})=>[L(N(i.row.planAmount),1)]),ratio:n(({scope:i})=>[L(N(i.row.ratio),1)]),paymentAmount:n(({scope:i})=>[L(N(i.row.paymentAmount),1)]),paymentTime:n(({scope:i})=>[L(N(i.row.paymentTime),1)]),actualPaymentAmount:n(({scope:i})=>[L(N(i.row.actualPaymentAmount),1)]),_:1},8,["data"]),a[26]||(a[26]=p("p",{style:{"margin-bottom":"16px"}},"\u7533\u62A5\u7EED\u5EFA\u8D44\u91D1\u4FE1\u606F",-1)),l(_,{gutter:20},{default:n(()=>[l(g,{span:12},{default:n(()=>[l(r,{label:"\u9884\u7B97\u5E74\u5EA6",prop:"projectYear"},{default:n(()=>[l(y,{modelValue:c.value.projectYear,"onUpdate:modelValue":a[1]||(a[1]=i=>c.value.projectYear=i),type:"year",placeholder:"\u8BF7\u9009\u62E9",format:"YYYY","value-format":"YYYY","disabled-date":ea,onChange:ua},null,8,["modelValue"])]),_:1})]),_:1}),l(g,{span:12},{default:n(()=>[l(r,{label:`${c.value.projectYear||""}\u652F\u4ED8\u91D1\u989D`,prop:"annualPaymentAmount"},{default:n(()=>[l(A,{modelValue:c.value.annualPaymentAmount,"onUpdate:modelValue":a[2]||(a[2]=i=>c.value.annualPaymentAmount=i),placeholder:"\u8BF7\u586B\u5199",min:0,controls:!1,onMousewheel:a[3]||(a[3]=$(()=>{},["prevent"]))},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1}),l(_,{gutter:20},{default:n(()=>[l(g,{span:12},{default:n(()=>[l(r,{label:"\u81EA\u6709\u8D44\u91D1\uFF08\u4E07\u5143\uFF09",prop:"haveAmount"},{default:n(()=>[l(A,{modelValue:c.value.haveAmount,"onUpdate:modelValue":a[4]||(a[4]=i=>c.value.haveAmount=i),placeholder:"\u8BF7\u586B\u5199",min:0,controls:!1,onMousewheel:a[5]||(a[5]=$(()=>{},["prevent"]))},null,8,["modelValue"])]),_:1})]),_:1}),l(g,{span:12},{default:n(()=>[l(r,{label:"\u653F\u5E9C\u6295\u8D44-\u672C\u7EA7\u8D22\u653F\u8D44\u91D1\uFF08\u4E07\u5143\uFF09",prop:"govOwnFinanceAmount"},{default:n(()=>[l(A,{modelValue:c.value.govOwnFinanceAmount,"onUpdate:modelValue":a[6]||(a[6]=i=>c.value.govOwnFinanceAmount=i),placeholder:"\u8BF7\u586B\u5199",min:0,controls:!1,onMousewheel:a[7]||(a[7]=$(()=>{},["prevent"]))},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(_,{gutter:20},{default:n(()=>[l(g,{span:12},{default:n(()=>[l(r,{label:"\u653F\u5E9C\u6295\u8D44-\u4E0A\u7EA7\u8865\u52A9\u8D44\u91D1\uFF08\u4E07\u5143\uFF09",prop:"govSuperiorFinanceAmount"},{default:n(()=>[l(A,{modelValue:c.value.govSuperiorFinanceAmount,"onUpdate:modelValue":a[8]||(a[8]=i=>c.value.govSuperiorFinanceAmount=i),placeholder:"\u8BF7\u586B\u5199",min:0,controls:!1,onMousewheel:a[9]||(a[9]=$(()=>{},["prevent"]))},null,8,["modelValue"])]),_:1})]),_:1}),l(g,{span:12},{default:n(()=>[l(r,{label:"\u94F6\u884C\u8D37\u6B3E\uFF08\u4E07\u5143\uFF09",prop:"bankLendingAmount"},{default:n(()=>[l(A,{modelValue:c.value.bankLendingAmount,"onUpdate:modelValue":a[10]||(a[10]=i=>c.value.bankLendingAmount=i),placeholder:"\u8BF7\u586B\u5199",min:0,controls:!1,onMousewheel:a[11]||(a[11]=$(()=>{},["prevent"]))},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),l(_,{gutter:20},{default:n(()=>[l(g,{span:12},{default:n(()=>[l(r,{label:"\u5176\u4ED6",prop:"otherAmount"},{default:n(()=>[l(A,{modelValue:c.value.otherAmount,"onUpdate:modelValue":a[12]||(a[12]=i=>c.value.otherAmount=i),placeholder:"\u8BF7\u586B\u5199",min:0,controls:!1,onMousewheel:a[13]||(a[13]=$(()=>{},["prevent"]))},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),ie(Y).query.id?X("",!0):(O(),V(re,{key:1},[a[24]||(a[24]=p("p",{style:{"margin-bottom":"16px"}},"\u8865\u5145\u9879\u76EE\u4FE1\u606F",-1)),l(D,null,{default:n(()=>{var i,f,S,w,T;return[l(F,{name:"1",class:"mb-16"},{title:n(()=>a[17]||(a[17]=[p("div",{class:"collapse-title"},"\u9879\u76EE\u57FA\u672C\u4FE1\u606F",-1)])),default:n(()=>[p("div",La,[l(Ca,{ref:P=>b.baseinfo=P,detail:J.value,"dictionary-list":q.value,"is-supplemented":!0,onGetBasicInfoData:na},null,8,["detail","dictionary-list"])])]),_:1}),l(F,{name:"2",class:"mb-16"},{title:n(()=>a[18]||(a[18]=[p("div",{class:"collapse-title"},"\u9879\u76EE\u7533\u62A5\u4FE1\u606F",-1)])),default:n(()=>[p("div",xa,[l(_a,{ref:P=>b.apply=P,detail:J.value,"basic-info-data":C.value,"dictionary-list":q.value,"is-supplemented":!0,onGetProYear:la},null,8,["detail","basic-info-data","dictionary-list"])])]),_:1}),((f=(i=C.value)==null?void 0:i.baseConstructionType)==null?void 0:f.length)===1&&((S=C.value)==null?void 0:S.baseConstructionType.includes("01"))?X("",!0):(O(),E(F,{key:0,name:"3",class:"mb-16"},{title:n(()=>a[19]||(a[19]=[p("div",{class:"collapse-title"},"\u9879\u76EE\u5173\u8054\u4FE1\u606F",-1)])),default:n(()=>[p("div",Ia,[l(Ja,{ref:P=>b.application=P,detail:J.value,"basic-info-data":C.value,"is-supplemented":!0},null,8,["detail","basic-info-data"])])]),_:1})),l(F,{name:"4",class:"mb-16"},{title:n(()=>a[20]||(a[20]=[p("div",{class:"collapse-title"},"\u6838\u5FC3\u4E1A\u52A1",-1)])),default:n(()=>[p("div",Va,[l(wa,{ref:P=>b.baseCore=P,detail:J.value,"is-supplemented":!0},null,8,["detail"])])]),_:1}),((w=C.value)==null?void 0:w.baseProjSetProg)!=="01"?(O(),E(F,{key:1,name:"5",class:"mb-16"},{title:n(()=>a[21]||(a[21]=[p("div",{class:"collapse-title"},"\u9879\u76EE\u7ACB\u9879\u8BC4\u5BA1\u4FE1\u606F",-1)])),default:n(()=>[p("div",Ea,[l(Ta,{ref:P=>b.approve=P,detail:J.value,"basic-info-data":C.value,"dictionary-list":q.value,"is-supplemented":!0,onGetApprovalInfoData:oa},null,8,["detail","basic-info-data","dictionary-list"])])]),_:1})):X("",!0),ja(l(F,{name:"6",class:"mb-16"},{title:n(()=>a[22]||(a[22]=[p("div",{class:"collapse-title"},"\u9879\u76EE\u91C7\u8D2D\u3001\u8D44\u91D1\u652F\u4ED8\u4FE1\u606F",-1)])),default:n(()=>[p("div",$a,[l(Ya,{ref:P=>b.procures=P,detail:J.value,"dictionary-list":q.value,"base-proj-set-year":te.value,"basic-info-data":C.value,"is-supplemented":!0},null,8,["detail","dictionary-list","base-proj-set-year","basic-info-data"])])]),_:1},512),[[fa,["05","06","07","00"].includes((T=C.value)==null?void 0:T.baseProjSetProg)||te.value*1<2023]]),l(F,{name:"7",class:"mb-16"},{title:n(()=>a[23]||(a[23]=[p("div",{class:"collapse-title"},"\u5B9E\u65BD\u6750\u6599\u4FE1\u606F",-1)])),default:n(()=>[p("div",Ba,[l(Da,{ref:P=>b.cimplement=P,detail:J.value,"basic-info-data":C.value,"base-proj-set-year":te.value,"approval-info-data":Se.value,"is-supplemented":!0},null,8,["detail","basic-info-data","base-proj-set-year","approval-info-data"])])]),_:1})]}),_:1})],64))]),_:1},8,["model","rules"])]),_:1})]),p("div",Ma,[l(u,{type:"primary",onClick:a[14]||(a[14]=i=>ta(je.value))},{default:n(()=>a[27]||(a[27]=[L(" \u63D0\u4EA4 ")])),_:1}),l(u,{onClick:a[15]||(a[15]=i=>ie(ce).go(-1))},{default:n(()=>a[28]||(a[28]=[L("\u8FD4\u56DE")])),_:1})])],64)}}});export{ct as default};