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
15KB

  1. import Re from"./basicInfo.8b9e8498.js";import{d as Ee,x as Ie,y as Me,r as S,o as Ye,c as C,e as N,f as we,g as u,h as c,i as l,G as J,k as _,j as A,u as xe,q as ke}from"./index.de29349e.js";import{g as o}from"./uploadAction.93d349b6.js";import qe from"./projectDeclareInfo.a8c1ce14.js";import $e from"./applicationInfo.0e680567.js";import Le from"./coreBusiness.5c11f49d.js";import Ue from"./projectApprovalInfo.62f0eb3a.js";import He from"./purchaseInfo.edde394e.js";import Ve from"./empMaterials.d88c32ff.js";import{d as Ge}from"./projectCollectionEnter.5fcb3342.js";import{d as We,s as ze,b as Ke}from"./operationProjectRecord.13b1aaec.js";import"./index.be610ec2.js";import"./unitManage.9716e421.js";import"./userDialog.f9022e7f.js";import"./lineOrgDialog.e114226f.js";import"./index.c98320b1.js";import"./indicatorTemplate.4081e5a3.js";import"./relatedProjectDialog.0a6f5746.js";import"./renewalProjectCapitalDeclare.05109b3b.js";import"./projectContentDialog.4cf7cb62.js";import"./actualPerformanceIndicatorsDialog.2a938821.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=Ee({name:"projectCollectionEnter"}),As=Object.assign(rs,{setup(os){const{proxy:D}=ke(),g=Ie(),T=Me(),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 We(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("\u63D0\u4EA4\u6210\u529F\uFF01"),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,q,$,L,U,H,V,G,W,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("\uFF1B")},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("\uFF1B"),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("\uFF1B"),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("\uFF1B"),baseProjAmountOri:((q=s==null?void 0:s.baseProjAmountOri)==null?void 0:q.join("\uFF1B"))||void 0,baseProjBasis:((L=($=s==null?void 0:s.baseProjBasis)==null?void 0:$.map(i=>i.value))==null?void 0:L.join("\uFF1B"))||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("\uFF1B"))||"",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)&&((G=s==null?void 0:s.baseProjApplyFile)==null?void 0:G.length)?JSON.stringify(o(s==null?void 0:s.baseProjApplyFile)):"",baseOperatMaintenFile:(W=s==null?void 0:s.baseOperatMaintenFile)!=null&&W.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("\uFF1B"))||"",baseProjSys:((Q=r==null?void 0:r.applications)==null?void 0:Q.map(i=>i.application.applicationName).join("\uFF1B"))||"",baseAccountAppName:((X=r==null?void 0:r.applications)==null?void 0:X.map(i=>i.baseAccountAppName).join("\uFF1B"))||"",baseBrainName:((Z=r==null?void 0:r.applications)==null?void 0:Z.map(i=>i.baseBrainName).join("\uFF1B"))||"",applications:void 0,...P,baseCoreBusinessCode:((p=P==null?void 0:P.coreBusiness)==null?void 0:p.map(i=>i.id).join("\uFF1B"))||"",baseCoreBusiness:((ee=P==null?void 0:P.coreBusiness)==null?void 0:ee.map(i=>i.matterName).join("\uFF1B"))||"",baseCoreBusinessOrg:((se=P==null?void 0:P.coreBusiness)==null?void 0:se.map(i=>i.orgName).join("\uFF1B"))||"",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?void 0:Ne.length)?JSON.stringify(o(i.purchaseFile)):"",biddingFile:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&((he=i.biddingFile)==null?void 0:he.length)?JSON.stringify(o(i.biddingFile)):"",purchaseContract:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&((Ce=i.purchaseContract)==null?void 0: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?void 0:le.includes("01"))||!((de=e==null?void 0:e.baseConstructionType)!=null&&de.includes("01")))&&((ue=a==null?void 0:a.baseInforLevelFile)==null?void 0: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?void 0: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?void 0: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?void 0: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?void 0: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?void 0:Se.length)?JSON.stringify(o(a.baseOperatMaintenSummFile)):"",baseFinalExpertOpinionFile:(e==null?void 0:e.baseProjSetProg)==="07"&&((Fe=a.baseFinalExpertOpinionFile)==null?void 0: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("\u6682\u5B58\u6210\u529F\uFF01"),T.go(-1)}catch{v.value=!1}};return Ye(async()=>{F.value=(await Ge()).data,g.query.id&&Je()}),(e,s)=>{const r=C("el-collapse-item"),P=C("el-button"),t=C("el-collapse");return N(),we("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"},"\u9879\u76EE\u57FA\u672C\u4FE1\u606F",-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"},"\u9879\u76EE\u7533\u62A5\u4FE1\u606F",-1)])),default:l(()=>[u("div",Ze,[c(qe,{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?void 0: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"},"\u9879\u76EE\u5173\u8054\u4FE1\u606F",-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"},"\u6838\u5FC3\u4E1A\u52A1",-1)])),default:l(()=>[u("div",es,[c(Le,{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"},"\u9879\u76EE\u7ACB\u9879\u8BC4\u5BA1\u4FE1\u606F",-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"},"\u9879\u76EE\u91C7\u8D2D\u3001\u8D44\u91D1\u652F\u4ED8\u4FE1\u606F",-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"},"\u5B9E\u65BD\u6750\u6599\u4FE1\u606F",-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(" \u8FD4\u56DE ")])),_:1}),xe(g).query.type!=="1"?(N(),J(P,{key:0,type:"primary",loading:v.value,plain:"",onClick:Be},{default:l(()=>s[10]||(s[10]=[A(" \u6682\u5B58 ")])),_:1},8,["loading"])):_("",!0),c(P,{type:"primary",loading:y.value,onClick:_e},{default:l(()=>s[11]||(s[11]=[A(" \u63D0\u4EA4 ")])),_:1},8,["loading"])])]}),_:1})])])}}});export{As as default};