Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

2 linhas
15KB

  1. import Re from"./basicInfo-216e2cd7.js";import{x as Ee,y as Ie,r as S,o as Me,b as C,c as N,d as Ye,e as u,f as c,h as l,L as J,j as _,i as A,u as we,k as xe,s as ke}from"./index-dd5fae99.js";import{g as o}from"./uploadAction-3962500e.js";import Le from"./projectDeclareInfo-adfebf37.js";import $e from"./applicationInfo-3a1ed275.js";import qe from"./coreBusiness-1f995f0a.js";import Ue from"./projectApprovalInfo-67a34ff8.js";import He from"./purchaseInfo-3ab8b74f.js";import Ve from"./empMaterials-24a89892.js";import{d as We}from"./projectCollectionEnter-718f1371.js";import{d as Ge,s as ze,b as Ke}from"./operationProjectRecord-4309061d.js";import"./index-4950cfb0.js";import"./unitManage-104cfe86.js";import"./userDialog-d5cb489c.js";import"./lineOrgDialog-016f914a.js";import"./index-b6aa4cff.js";import"./indicatorTemplate-ca1642c9.js";import"./relatedProjectDialog-55f5f96f.js";import"./renewalProjectCapitalDeclare-e1231fa5.js";import"./projectContentDialog-4e6a46f0.js";import"./actualPerformanceIndicatorsDialog-e85a7f90.js";const Qe={class:"footerPage"},Xe={class:"pb-24"},Ze={class:"pb-24"},pe={class:"pb-24"},es={class:"pb-24"},ss={class:"pb-24"},as={class:"pb-24"},ts={class:"pb-24"},is={class:"footer"},rs=xe({name:"projectCollectionEnter"}),As=Object.assign(rs,{setup(os){const{proxy:D}=ke(),g=Ee(),T=Ie(),B=["1","2","3","4","5","6","7"],n={},y=S(!1),F=S(),j=S(),Je=async()=>{const e=g.query.type==="1"?g.query.id:g.query.draftId,s=await Ge(g.query.type,e);j.value=s.data},_e=async()=>{y.value=!0;try{const e=Object.values(n).map(async r=>(r==null?void 0:r.formRef)&&await r.formRef.validate());await Promise.all(e);const s=E();await ze(s),y.value=!1,D.$message.success("提交成功!"),T.go(-1)}catch{y.value=!1}},b=S(),Ae=e=>{b.value=e},h=S(),De=e=>{h.value=e},R=S(),Te=e=>{R.value=e},E=()=>{var f,O,d,I,M,Y,w,x,k,L,$,q,U,H,V,W,G,z,K,Q,X,Z,p,ee,se,ae,te,ie,re,oe,ne,le,de,ue,ce,Pe,be,ge,je,me,Se,Fe,fe,Oe,ye,ve;const e=JSON.parse(JSON.stringify(n.baseinfo.formData)),s=JSON.parse(JSON.stringify(n.apply.formData)),r=n.application&&JSON.parse(JSON.stringify(n.application.formData))||{},P=n.baseCore&&JSON.parse(JSON.stringify(n.baseCore.formData))||{},t=n.approve&&JSON.parse(JSON.stringify(n.approve.formData))||{},m=n.procures&&JSON.parse(JSON.stringify(n.procures.formData))||[],a=n.cimplement&&JSON.parse(JSON.stringify(n.cimplement.formData))||[];return{baseProjId:g.query.id||"",draftId:g.query.draftId*1||"",baseinfo:{...e,baseProvManDeprtType:(e==null?void 0:e.baseProvManDeprtType)*1||void 0,baseConstructionType:(f=e==null?void 0:e.baseConstructionType)==null?void 0:f.join(";")},apply:{...s,baseProjStartTime:(O=s==null?void 0:s.baseProjTime)!=null&&O.length?(s==null?void 0:s.baseProjTime[0])+" 00:00:00":void 0,baseProjEndTime:(d=s==null?void 0:s.baseProjTime)!=null&&d.length?(s==null?void 0:s.baseProjTime[1])+" 00:00:00":void 0,baseProjTime:void 0,baseHistorProjId:s!=null&&s.missing?"":(M=(I=s==null?void 0:s.baseHistorProjs)==null?void 0:I.map(i=>i.baseProjId))==null?void 0:M.join(";"),baseHistorProjName:s!=null&&s.missing?"":(w=(Y=s==null?void 0:s.baseHistorProjs)==null?void 0:Y.map(i=>i.baseProjName))==null?void 0:w.join(";"),baseHistorProjYear:s!=null&&s.missing?"":(k=(x=s==null?void 0:s.baseHistorProjs)==null?void 0:x.map(i=>i.baseProjSetYear))==null?void 0:k.join(";"),baseProjAmountOri:((L=s==null?void 0:s.baseProjAmountOri)==null?void 0:L.join(";"))||void 0,baseProjBasis:((q=($=s==null?void 0:s.baseProjBasis)==null?void 0:$.map(i=>i.value))==null?void 0:q.join(";"))||void 0,baseProjBasisFile:((H=(U=s==null?void 0:s.baseProjBasis)==null?void 0:U.map(i=>i.fileList&&JSON.stringify(o(i.fileList))))==null?void 0:H.join(";"))||"",beseExpectedResults:((V=s==null?void 0:s.beseExpectedResults)==null?void 0:V.length)&&JSON.stringify(s.beseExpectedResults)||"",baseProjApplyFile:(["01","02","04","05"].includes(e==null?void 0:e.baseProjType)&&(s==null?void 0:s.baseProjSetYear)*1>=2023||(s==null?void 0:s.baseProjSetYear)*1<2023)&&((W=s==null?void 0:s.baseProjApplyFile)!=null&&W.length)?JSON.stringify(o(s==null?void 0:s.baseProjApplyFile)):"",baseOperatMaintenFile:(G=s==null?void 0:s.baseOperatMaintenFile)!=null&&G.length?JSON.stringify(o(s==null?void 0:s.baseOperatMaintenFile)):"",baseProjOtherFile:(z=s==null?void 0:s.baseProjOtherFile)!=null&&z.length?JSON.stringify(o(s==null?void 0:s.baseProjOtherFile)):"",baseHistorProjs:void 0,...r,baseProjSysCode:((K=r==null?void 0:r.applications)==null?void 0:K.map(i=>i.application.applicationCode).join(";"))||"",baseProjSys:((Q=r==null?void 0:r.applications)==null?void 0:Q.map(i=>i.application.applicationName).join(";"))||"",baseAccountAppName:((X=r==null?void 0:r.applications)==null?void 0:X.map(i=>i.baseAccountAppName).join(";"))||"",baseBrainName:((Z=r==null?void 0:r.applications)==null?void 0:Z.map(i=>i.baseBrainName).join(";"))||"",applications:void 0,...P,baseCoreBusinessCode:((p=P==null?void 0:P.coreBusiness)==null?void 0:p.map(i=>i.id).join(";"))||"",baseCoreBusiness:((ee=P==null?void 0:P.coreBusiness)==null?void 0:ee.map(i=>i.matterName).join(";"))||"",baseCoreBusinessOrg:((se=P==null?void 0:P.coreBusiness)==null?void 0:se.map(i=>i.orgName).join(";"))||"",coreBusiness:void 0},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(o(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)?"":((te=t==null?void 0:t.approvalFile)==null?void 0:te.length)&&JSON.stringify(o(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)?((ie=t==null?void 0:t.preliminaryDesignScheme)==null?void 0:ie.length)&&JSON.stringify(o(t.preliminaryDesignScheme)):"",preliminaryDesignFile:(t==null?void 0:t.baseProjReplyAmount)>=5e3&&["04","05","06","07","00"].includes(e.baseProjSetProg)?((re=t==null?void 0:t.preliminaryDesignFile)==null?void 0:re.length)&&JSON.stringify(o(t.preliminaryDesignFile)):""},procures:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(s==null?void 0:s.baseProjSetYear)*1<2023)&&((oe=m==null?void 0:m.sections)==null?void 0:oe.map(i=>{var Ne,he,Ce;return{...i,baseBidName:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&i.baseBidName||"",baseProjPurchaseWay:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&i.baseProjPurchaseWay||"",basePurchaseCode:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&i.basePurchaseCode||"",basePurchasingAgencies:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(s==null?void 0:s.baseProjSetYear)*1<2023)&&i.basePurchasingAgencies||"",baseUnifiedCreditCode:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(s==null?void 0:s.baseProjSetYear)*1<2023)&&i.baseUnifiedCreditCode||"",baseWinningBidTime:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&i.baseWinningBidTime||"",baseProjPurchaseAmount:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&i.baseProjPurchaseAmount||"",baseConsDeprt:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&i.baseConsDeprt||"",baseConsDeprtUsci:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&i.baseConsDeprtUsci||"",basePaymentTime:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(s==null?void 0:s.baseProjSetYear)*1<2023)&&i.basePaymentTime||"",paymentProgress:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(s==null?void 0:s.baseProjSetYear)*1<2023)&&i.paymentProgress||"",purchaseFile:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&((Ne=i.purchaseFile)!=null&&Ne.length)?JSON.stringify(o(i.purchaseFile)):"",biddingFile:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&((he=i.biddingFile)!=null&&he.length)?JSON.stringify(o(i.biddingFile)):"",purchaseContract:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&((Ce=i.purchaseContract)!=null&&Ce.length)?JSON.stringify(o(i.purchaseContract)):""}}))||[],mimplement:{...a,baseInitialOpinionFile:(ne=a==null?void 0:a.baseInitialOpinionFile)!=null&&ne.length?JSON.stringify(o(a.baseInitialOpinionFile)):"",baseInforLevelFile:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&((le=e==null?void 0:e.baseConstructionType)!=null&&le.includes("01"))||!((de=e==null?void 0:e.baseConstructionType)!=null&&de.includes("01")))&&((ue=a==null?void 0:a.baseInforLevelFile)!=null&&ue.length)?JSON.stringify(o(a.baseInforLevelFile)):"",basePasswAssessFile:(["04","05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(s==null?void 0:s.baseProjSetYear)*1<2023)&&((ce=a==null?void 0:a.basePasswAssessFile)!=null&&ce.length)?JSON.stringify(o(a.basePasswAssessFile)):"",baseThirdAcceptFile:(Pe=a.baseThirdAcceptFile)!=null&&Pe.length?JSON.stringify(o(a.baseThirdAcceptFile)):"",baseCheckFile:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&((be=a==null?void 0:a.baseCheckFile)!=null&&be.length)?JSON.stringify(o(a.baseCheckFile)):"",baseFinanlAuditFile:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&(t==null?void 0:t.releaseYearMoney)*1>=2e3&&((ge=a==null?void 0:a.baseFinanlAuditFile)!=null&&ge.length)?JSON.stringify(o(a.baseFinanlAuditFile)):"",baseUserConsFile:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(s==null?void 0:s.baseProjSetYear)*1<2023)&&((je=a==null?void 0:a.baseUserConsFile)!=null&&je.length)?JSON.stringify(o(a.baseUserConsFile)):"",baseEstaSummFile:(me=a==null?void 0:a.baseEstaSummFile)!=null&&me.length?JSON.stringify(o(a==null?void 0:a.baseEstaSummFile)):"",baseOperatMaintenSummFile:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(s==null?void 0:s.baseProjSetYear)*1<2023)&&((Se=a==null?void 0:a.baseOperatMaintenSummFile)!=null&&Se.length)?JSON.stringify(o(a.baseOperatMaintenSummFile)):"",baseFinalExpertOpinionFile:(e==null?void 0:e.baseProjSetProg)==="07"&&((Fe=a.baseFinalExpertOpinionFile)!=null&&Fe.length)?JSON.stringify(o(a==null?void 0:a.baseFinalExpertOpinionFile)):"",baseEngineerPostpoFile:(fe=a==null?void 0:a.baseEngineerPostpoFile)!=null&&fe.length?JSON.stringify(o(a==null?void 0:a.baseEngineerPostpoFile)):"",baseEngineerAlterFile:(Oe=a==null?void 0:a.baseEngineerAlterFile)!=null&&Oe.length?JSON.stringify(o(a==null?void 0:a.baseEngineerAlterFile)):"",baseChanFile:(ye=a==null?void 0:a.baseChanFile)!=null&&ye.length?JSON.stringify(o(a==null?void 0:a.baseChanFile)):"",baseBusinessMetrics:(ve=a==null?void 0:a.baseBusinessMetrics)!=null&&ve.length?JSON.stringify(a==null?void 0:a.baseBusinessMetrics):""}}},v=S(!1),Be=async()=>{v.value=!0;const e=E();try{await Ke(e),v.value=!1,D.$message.success("暂存成功!"),T.go(-1)}catch{v.value=!1}};return Me(async()=>{F.value=(await We()).data,g.query.id&&Je()}),(e,s)=>{const r=C("el-collapse-item"),P=C("el-button"),t=C("el-collapse");return N(),Ye("div",Qe,[u("div",null,[c(t,{modelValue:B,"onUpdate:modelValue":s[1]||(s[1]=m=>B=m)},{default:l(()=>{var m,a,f,O;return[c(r,{name:"1",class:"mb-16"},{title:l(()=>s[2]||(s[2]=[u("div",{class:"collapse-title"},"项目基本信息",-1)])),default:l(()=>[u("div",Xe,[c(Re,{ref:d=>n.baseinfo=d,detail:j.value,"dictionary-list":F.value,onGetBasicInfoData:Ae},null,8,["detail","dictionary-list"])])]),_:1}),c(r,{name:"2",class:"mb-16"},{title:l(()=>s[3]||(s[3]=[u("div",{class:"collapse-title"},"项目申报信息",-1)])),default:l(()=>[u("div",Ze,[c(Le,{ref:d=>n.apply=d,detail:j.value,"basic-info-data":b.value,"dictionary-list":F.value,onGetProYear:De},null,8,["detail","basic-info-data","dictionary-list"])])]),_:1}),((a=(m=b.value)==null?void 0:m.baseConstructionType)==null?void 0:a.length)===1&&((f=b.value)!=null&&f.baseConstructionType.includes("02"))?_("",!0):(N(),J(r,{key:0,name:"3",class:"mb-16"},{title:l(()=>s[4]||(s[4]=[u("div",{class:"collapse-title"},"项目关联信息",-1)])),default:l(()=>[u("div",pe,[c($e,{ref:d=>n.application=d,detail:j.value,"basic-info-data":b.value},null,8,["detail","basic-info-data"])])]),_:1})),c(r,{name:"4",class:"mb-16"},{title:l(()=>s[5]||(s[5]=[u("div",{class:"collapse-title"},"核心业务",-1)])),default:l(()=>[u("div",es,[c(qe,{ref:d=>n.baseCore=d,detail:j.value,"basic-info-data":b.value},null,8,["detail","basic-info-data"])])]),_:1}),((O=b.value)==null?void 0:O.baseProjSetProg)!=="01"?(N(),J(r,{key:1,name:"5",class:"mb-16"},{title:l(()=>s[6]||(s[6]=[u("div",{class:"collapse-title"},"项目立项评审信息",-1)])),default:l(()=>[u("div",ss,[c(Ue,{ref:d=>n.approve=d,detail:j.value,"basic-info-data":b.value,"dictionary-list":F.value,onGetApprovalInfoData:Te},null,8,["detail","basic-info-data","dictionary-list"])])]),_:1})):_("",!0),c(r,{name:"6",class:"mb-16"},{title:l(()=>s[7]||(s[7]=[u("div",{class:"collapse-title"},"项目采购、资金支付信息",-1)])),default:l(()=>[u("div",as,[c(He,{ref:d=>n.procures=d,detail:j.value,"dictionary-list":F.value,"base-proj-set-year":h.value,"basic-info-data":b.value},null,8,["detail","dictionary-list","base-proj-set-year","basic-info-data"])])]),_:1}),c(r,{name:"7",class:"mb-16"},{title:l(()=>s[8]||(s[8]=[u("div",{class:"collapse-title"},"实施材料信息",-1)])),default:l(()=>[u("div",ts,[c(Ve,{ref:d=>n.cimplement=d,detail:j.value,"basic-info-data":b.value,"base-proj-set-year":h.value,"approval-info-data":R.value},null,8,["detail","basic-info-data","base-proj-set-year","approval-info-data"])])]),_:1}),u("div",is,[c(P,{onClick:s[0]||(s[0]=d=>e.$router.go(-1))},{default:l(()=>s[9]||(s[9]=[A(" 返回 ")])),_:1}),we(g).query.type!=="1"?(N(),J(P,{key:0,type:"primary",loading:v.value,plain:"",onClick:Be},{default:l(()=>s[10]||(s[10]=[A(" 暂存 ")])),_:1},8,["loading"])):_("",!0),c(P,{type:"primary",loading:y.value,onClick:_e},{default:l(()=>s[11]||(s[11]=[A(" 提交 ")])),_:1},8,["loading"])])]}),_:1})])])}}});export{As as default};