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.

2 lines
29KB

  1. import{d as ca,D as He,G as pa,A as ba,z as ga,b as se,a0 as I,r as j,o as Pa,c as v,e as A,f as V,g as p,I as E,k as Z,h as l,i as n,u as ie,F as re,J as Ge,t as _,j as L,V as $,w as ja,v as fa,x as Sa}from"./index.622ee9e7.js";import{l as ya,a as Fa,r as va,c as ha}from"./renewalProjectCapitalDeclare.a2b753c6.js";import{d as Aa,a as _a,s as Oa}from"./projectCollectionEnter.57868123.js";import Na from"./basicInfo.8921bb57.js";import Ca from"./projectDeclareInfo.3ec0b63e.js";import Ja from"./applicationInfo.a4308640.js";import wa from"./coreBusiness.3dc732fb.js";import Ta from"./projectApprovalInfo.ae1e1bd9.js";import Ya from"./purchaseInfo.bd64456a.js";import Da from"./empMaterials.5e3b47d7.js";import{c as ka}from"./contractRecord.0d25af80.js";import{g as m}from"./uploadAction.44c3f16c.js";import"./index.d00dc96d.js";import"./unitManage.0d5b7fa6.js";import"./userDialog.f90501cc.js";import"./lineOrgDialog.d0596ebe.js";import"./index.7cf53a4d.js";import"./indicatorTemplate.5a807688.js";import"./relatedProjectDialog.bdef2a17.js";import"./projectContentDialog.cffe974e.js";const Ra={class:"footerPage"},La=p("div",{class:"card-header"},[p("span",null,"\u7533\u62A5\u4FE1\u606F")],-1),xa=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),Ia=p("p",{style:{"margin-bottom":"16px"}},"\u7533\u62A5\u7EED\u5EFA\u8D44\u91D1\u4FE1\u606F",-1),Va=p("p",{style:{"margin-bottom":"16px"}},"\u8865\u5145\u9879\u76EE\u4FE1\u606F",-1),Ea=p("div",{class:"collapse-title"},"\u9879\u76EE\u57FA\u672C\u4FE1\u606F",-1),$a={class:"pb-24"},Ba=p("div",{class:"collapse-title"},"\u9879\u76EE\u7533\u62A5\u4FE1\u606F",-1),Ma={class:"pb-24"},Ua=p("div",{class:"collapse-title"},"\u9879\u76EE\u5173\u8054\u4FE1\u606F",-1),qa={class:"pb-24"},Wa=p("div",{class:"collapse-title"},"\u6838\u5FC3\u4E1A\u52A1",-1),Ha={class:"pb-24"},Ga=p("div",{class:"collapse-title"},"\u9879\u76EE\u7ACB\u9879\u8BC4\u5BA1\u4FE1\u606F",-1),za={class:"pb-24"},Ka=p("div",{class:"collapse-title"},"\u9879\u76EE\u91C7\u8D2D\u3001\u8D44\u91D1\u652F\u4ED8\u4FE1\u606F",-1),Qa={class:"pb-24"},Xa=p("div",{class:"collapse-title"},"\u5B9E\u65BD\u6750\u6599\u4FE1\u606F",-1),Za={class:"pb-24"},et={class:"footer"},at=ca({name:"renewalCapitalDeclare"}),ht=Object.assign(at,{setup(tt){const{proxy:ue}=Sa(),{statusOptions:O,statusGjOptions:x,projectTypeOptions:de}=He.dictStore.globalDicts||{},me=pa(He.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=O[e.status])==null?void 0:a.color)||((s=x[e.status])==null?void 0:s.color)}`]}),I("span",{class:`text-${((u=O[e.status])==null?void 0:u.color)||((t=x[e.status])==null?void 0:t.color)}`},e.status&&((d=O[e.stage])==null?void 0:d.name)?`${(r=O[e.stage])==null?void 0:r.name}-${(y=O[e.status])==null?void 0:y.name}`:((g=x[e.status])==null?void 0:g.name)||"-")]}}]),Ke=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=O[e.status])==null?void 0:a.color)||((s=x[e.status])==null?void 0:s.color)}`]}),I("span",{class:`text-${((u=O[e.status])==null?void 0:u.color)||((t=x[e.status])==null?void 0:t.color)}`},e.status&&((d=O[e.stage])==null?void 0:d.name)?`${(r=O[e.stage])==null?void 0:r.name}-${(y=O[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(),Qe=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}),Xe=()=>{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")},Ze=(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:Ze,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(),N=j(),na=e=>{N.value=e},U=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,h,C,F,D,k,R,i,f,S,w,T,P,q,W,H,G,z,K,Q,X;let s={};a==="2"?s=await _a("1",e):s=await ha(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:((h=s.data.cimplement)==null?void 0:h.baseEstaSummFile)&&JSON.stringify(m(JSON.parse((C=s.data.cimplement)==null?void 0:C.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:((q=s.data.cimplement)==null?void 0:q.baseFinalExpertOpinionFile)&&JSON.stringify(m(JSON.parse((W=s.data.cimplement)==null?void 0:W.baseFinalExpertOpinionFile)))||void 0,baseEngineerPostpoFile:((H=s.data.cimplement)==null?void 0:H.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((K=s.data.cimplement)==null?void 0:K.baseChangeFormFile)))||void 0,baseChanFile:((Q=s.data.cimplement)==null?void 0:Q.baseChanFile)&&JSON.stringify(m(JSON.parse((X=s.data.cimplement)==null?void 0:X.baseChanFile)))||void 0}}},ua=()=>{J.value.baseinfo.baseProjName=ye.value+`\uFF08${c.value.projectYear}\uFF09`},da=()=>{var y,g,h,C,F,D,k,R,i,f,S,w,T,P,q,W,H,G,z,K,Q,X,Fe,ve,he,Ae,_e,Oe,Ne,Ce,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:(h=a==null?void 0:a.baseProjTime)!=null&&h.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=(C=a==null?void 0:a.baseHistorProjs)==null?void 0:C.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:((q=a==null?void 0:a.beseExpectedResults)==null?void 0:q.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)&&((W=a==null?void 0:a.baseProjApplyFile)==null?void 0:W.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")&&((H=a==null?void 0:a.baseResearchReportFile)==null?void 0:H.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:((K=s==null?void 0:s.applications)==null?void 0:K.map(o=>o.application.applicationName).join("\uFF1B"))||"",baseAccountAppName:((Q=s==null?void 0:s.applications)==null?void 0:Q.map(o=>o.baseAccountAppName).join("\uFF1B"))||"",baseBrainName:((X=s==null?void 0:s.applications)==null?void 0:X.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:((he=u==null?void 0:u.coreBusiness)==null?void 0:he.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"?((Ae=t==null?void 0:t.baseReviewCommentsFile)==null?void 0:Ae.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)?"":((_e=t==null?void 0:t.approvalFile)==null?void 0:_e.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)?((Oe=t==null?void 0:t.preliminaryDesignScheme)==null?void 0:Oe.length)&&JSON.stringify(m(t.preliminaryDesignScheme)):"",preliminaryDesignFile:(t==null?void 0:t.baseProjReplyAmount)>=5e3&&["04","05","06","07","00"].includes(e.baseProjSetProg)?((Ne=t==null?void 0:t.preliminaryDesignFile)==null?void 0:Ne.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)&&((Ce=d==null?void 0:d.sections)==null?void 0:Ce.map(o=>{var Ue,qe,We;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)&&((Ue=o.purchaseFile)==null?void 0:Ue.length)?JSON.stringify(m(o.purchaseFile)):"",biddingFile:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&((qe=o.biddingFile)==null?void 0:qe.length)?JSON.stringify(m(o.biddingFile)):"",purchaseContract:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&((We=o.purchaseContract)==null?void 0:We.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 Oa(e),ue.$message.success("\u63D0\u4EA4\u6210\u529F\uFF01"),ce.go(-1)};return Pa(async()=>{U.value=(await Aa()).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"),h=v("el-input-number"),C=v("el-row"),F=v("el-collapse-item"),D=v("el-collapse"),k=v("el-form"),R=v("el-card");return A(),V(re,null,[p("div",Ra,[c.value.approvalStatus==="NOT_PASS"?(A(),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"])):Z("",!0),l(R,{class:"box-card"},{header:n(()=>[La]),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?Z("",!0):(A(),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:Xe})]),_:1},8,["modelValue"])),l(r,{label:"\u5173\u8054\u9879\u76EE",prop:"projectId","label-width":100,clas:"mb-16"},{default:n(()=>[ie(Y).query.id?(A(),E(d,{key:1,ref_key:"tableListRef",ref:B,column:Ke,data:ee.value,height:200,pagination:!1,class:"flex-1"},{annualAccumulateAmountList:n(({scope:i})=>[(A(!0),V(re,null,Ge(i.row.annualAccumulateAmountList,(f,S)=>(A(),V("p",{key:S},_(S+1)+"\u3001"+_(f.projectYear)+"\u5E74\u6295\u8D44"+_(f.annualAmount)+"\u4E07\u5143",1))),128))]),_:1},8,["column","data"])):(A(),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:Qe,onGetTableData:le},{annualAccumulateAmountList:n(({scope:i})=>[(A(!0),V(re,null,Ge(i.row.annualAccumulateAmountList,(f,S)=>(A(),V("p",{key:S},_(S+1)+"\u3001"+_(f.projectYear)+"\u5E74\u6295\u8D44"+_(f.annualAmount)+"\u4E07\u5143",1))),128))]),_:1},8,["column","data","total"]))]),_:1}),xa,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"+_(i.$index+1)+"\u7B14",1)]),planAmount:n(({scope:i})=>[L(_(i.row.planAmount),1)]),ratio:n(({scope:i})=>[L(_(i.row.ratio),1)]),paymentAmount:n(({scope:i})=>[L(_(i.row.paymentAmount),1)]),paymentTime:n(({scope:i})=>[L(_(i.row.paymentTime),1)]),actualPaymentAmount:n(({scope:i})=>[L(_(i.row.actualPaymentAmount),1)]),_:1},8,["data"]),Ia,l(C,{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(h,{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(C,{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(h,{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(h,{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(C,{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(h,{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(h,{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(C,{gutter:20},{default:n(()=>[l(g,{span:12},{default:n(()=>[l(r,{label:"\u5176\u4ED6",prop:"otherAmount"},{default:n(()=>[l(h,{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?Z("",!0):(A(),V(re,{key:1},[Va,l(D,null,{default:n(()=>{var i,f,S,w,T;return[l(F,{name:"1",class:"mb-16"},{title:n(()=>[Ea]),default:n(()=>[p("div",$a,[l(Na,{ref:P=>b.baseinfo=P,detail:J.value,"dictionary-list":U.value,"is-supplemented":!0,onGetBasicInfoData:na},null,8,["detail","dictionary-list"])])]),_:1}),l(F,{name:"2",class:"mb-16"},{title:n(()=>[Ba]),default:n(()=>[p("div",Ma,[l(Ca,{ref:P=>b.apply=P,detail:J.value,"basic-info-data":N.value,"dictionary-list":U.value,"is-supplemented":!0,onGetProYear:la},null,8,["detail","basic-info-data","dictionary-list"])])]),_:1}),((f=(i=N.value)==null?void 0:i.baseConstructionType)==null?void 0:f.length)===1&&((S=N.value)==null?void 0:S.baseConstructionType.includes("01"))?Z("",!0):(A(),E(F,{key:0,name:"3",class:"mb-16"},{title:n(()=>[Ua]),default:n(()=>[p("div",qa,[l(Ja,{ref:P=>b.application=P,detail:J.value,"basic-info-data":N.value,"is-supplemented":!0},null,8,["detail","basic-info-data"])])]),_:1})),l(F,{name:"4",class:"mb-16"},{title:n(()=>[Wa]),default:n(()=>[p("div",Ha,[l(wa,{ref:P=>b.baseCore=P,detail:J.value,"is-supplemented":!0},null,8,["detail"])])]),_:1}),((w=N.value)==null?void 0:w.baseProjSetProg)!=="01"?(A(),E(F,{key:1,name:"5",class:"mb-16"},{title:n(()=>[Ga]),default:n(()=>[p("div",za,[l(Ta,{ref:P=>b.approve=P,detail:J.value,"basic-info-data":N.value,"dictionary-list":U.value,"is-supplemented":!0,onGetApprovalInfoData:oa},null,8,["detail","basic-info-data","dictionary-list"])])]),_:1})):Z("",!0),ja(l(F,{name:"6",class:"mb-16"},{title:n(()=>[Ka]),default:n(()=>[p("div",Qa,[l(Ya,{ref:P=>b.procures=P,detail:J.value,"dictionary-list":U.value,"base-proj-set-year":te.value,"basic-info-data":N.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=N.value)==null?void 0:T.baseProjSetProg)||te.value*1<2023]]),l(F,{name:"7",class:"mb-16"},{title:n(()=>[Xa]),default:n(()=>[p("div",Za,[l(Da,{ref:P=>b.cimplement=P,detail:J.value,"basic-info-data":N.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",et,[l(u,{type:"primary",onClick:a[14]||(a[14]=i=>ta(je.value))},{default:n(()=>[L(" \u63D0\u4EA4 ")]),_:1}),l(u,{onClick:a[15]||(a[15]=i=>ie(ce).go(-1))},{default:n(()=>[L("\u8FD4\u56DE")]),_:1})])],64)}}});export{ht as default};