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.eb748cb4.js 15KB

1
  1. import Ae from"./basicInfo.02cd4c08.js";import{d as Be,x as we,y as Ie,r as S,o as Ye,c as F,e as N,f as xe,k as C,g as u,h as c,i as n,G as J,j as T,u as Ee,q as ke}from"./index.0018c8ef.js";import{g as o}from"./uploadAction.60337e0f.js";import Me from"./projectDeclareInfo.cd28af33.js";import qe from"./applicationInfo.52feea0b.js";import Le from"./coreBusiness.0acdd450.js";import $e from"./projectApprovalInfo.cc765015.js";import Ue from"./purchaseInfo.b14565fc.js";import He from"./empMaterials.b388277e.js";import{d as Ve,a as Ge,s as We,c as ze}from"./projectCollectionEnter.0d56ed7b.js";import"./index.9ac88f2c.js";import"./unitManage.ffabbaad.js";import"./userDialog.54b8bfd6.js";import"./lineOrgDialog.5d6f4f48.js";import"./index.ae9e1952.js";import"./indicatorTemplate.abc8d2ff.js";import"./relatedProjectDialog.8a078849.js";import"./renewalProjectCapitalDeclare.6453f8ba.js";import"./projectContentDialog.23c94150.js";const Ke={class:"px-20 pt-10 pb-20 flex flex-col overflow-hidden"},Qe={class:"flex-1 overflow-auto mb-52"},Xe={class:"pb-24"},Ze={class:"pb-24"},pe={class:"pb-24"},es={class:"pb-24"},ss={class:"pb-24"},ts={class:"pb-24"},as={class:"pb-24"},rs={class:"footer"},is=Be({name:"projectCollectionEnter"}),_s=Object.assign(is,{setup(os){const{proxy:R}=ke(),g=we(),D=Ie(),A=["1","2","3","4","5","6","7"],l={},h=S(!1),f=S(),j=S(),Ce=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()=>{h.value=!0;try{const e=Object.values(l).map(async i=>(i==null?void 0:i.formRef)&&await i.formRef.validate());await Promise.all(e);const s=w();await We(s),h.value=!1,R.$message.success("\u63D0\u4EA4\u6210\u529F\uFF01"),D.go(-1)}catch{h.value=!1}},b=S(),Je=e=>{b.value=e},_=S(),Te=e=>{_.value=e},B=S(),Re=e=>{B.value=e},w=()=>{var y,v,d,I,Y,x,E,k,M,q,L,$,U,H,V,G,W,z,K,Q,X,Z,p,ee,se,te,ae,re,ie,oe,le,ne,de,ue,ce,Pe,be,ge,je,me,Se,Fe,fe,ye,ve;const e=JSON.parse(JSON.stringify(l.baseinfo.formData)),s=JSON.parse(JSON.stringify(l.apply.formData)),i=l.application&&JSON.parse(JSON.stringify(l.application.formData))||{},P=l.baseCore&&JSON.parse(JSON.stringify(l.baseCore.formData))||{},a=l.approve&&JSON.parse(JSON.stringify(l.approve.formData))||{},m=l.procures&&JSON.parse(JSON.stringify(l.procures.formData))||[],t=l.cimplement&&JSON.parse(JSON.stringify(l.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:(y=e==null?void 0:e.baseConstructionType)==null?void 0:y.join("\uFF1B")},apply:{...s,baseProjStartTime:(v=s==null?void 0:s.baseProjTime)!=null&&v.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?void 0:s.missing)||(e==null?void 0:e.baseProjType)==="01"?"":(Y=(I=s==null?void 0:s.baseHistorProjs)==null?void 0:I.map(r=>r.baseProjId))==null?void 0:Y.join("\uFF1B"),baseHistorProjName:(s==null?void 0:s.missing)||(e==null?void 0:e.baseProjType)==="01"?"":(E=(x=s==null?void 0:s.baseHistorProjs)==null?void 0:x.map(r=>r.baseProjName))==null?void 0:E.join("\uFF1B"),baseHistorProjYear:(s==null?void 0:s.missing)||(e==null?void 0:e.baseProjType)==="01"?"":(M=(k=s==null?void 0:s.baseHistorProjs)==null?void 0:k.map(r=>r.baseProjSetYear))==null?void 0:M.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:L.map(r=>r.value))==null?void 0:$.join("\uFF1B"))||void 0,baseProjBasisFile:((H=(U=s==null?void 0:s.baseProjBasis)==null?void 0:U.map(r=>r.fileList&&JSON.stringify(o(r.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)):"",baseResearchReportFile:((e==null?void 0:e.baseProjType)==="01"||(e==null?void 0:e.baseProjType)==="02")&&((W=s==null?void 0:s.baseResearchReportFile)==null?void 0:W.length)?JSON.stringify(o(s==null?void 0:s.baseResearchReportFile)):"",baseProjOtherFile:(z=s==null?void 0:s.baseProjOtherFile)!=null&&z.length?JSON.stringify(o(s==null?void 0:s.baseProjOtherFile)):"",baseHistorProjs:void 0,...i,baseProjSysCode:((K=i==null?void 0:i.applications)==null?void 0:K.map(r=>r.application.applicationCode).join("\uFF1B"))||"",baseProjSys:((Q=i==null?void 0:i.applications)==null?void 0:Q.map(r=>r.application.applicationName).join("\uFF1B"))||"",baseAccountAppName:((X=i==null?void 0:i.applications)==null?void 0:X.map(r=>r.baseAccountAppName).join("\uFF1B"))||"",baseBrainName:((Z=i==null?void 0:i.applications)==null?void 0:Z.map(r=>r.baseBrainName).join("\uFF1B"))||"",applications:void 0,...P,baseCoreBusinessCode:((p=P==null?void 0:P.coreBusiness)==null?void 0:p.map(r=>r.id).join("\uFF1B"))||"",baseCoreBusiness:((ee=P==null?void 0:P.coreBusiness)==null?void 0:ee.map(r=>r.matterName).join("\uFF1B"))||"",baseCoreBusinessOrg:((se=P==null?void 0:P.coreBusiness)==null?void 0:se.map(r=>r.orgName).join("\uFF1B"))||"",coreBusiness:void 0},approve:{...a,baseReviewResults:(e==null?void 0:e.baseProjSetProg)!=="01"?a==null?void 0:a.baseReviewResults:"",baseReviewOpinion:(e==null?void 0:e.baseProjSetProg)!=="01"?a==null?void 0:a.baseReviewOpinion:"",baseReviewCommentsFile:(e==null?void 0:e.baseProjSetProg)!=="01"?((te=a==null?void 0:a.baseReviewCommentsFile)==null?void 0:te.length)&&JSON.stringify(o(a==null?void 0:a.baseReviewCommentsFile)):"",equalProtectionLevel:(e==null?void 0:e.baseProjIsConfidentiality)==="01"&&!["01","02","03"].includes(e==null?void 0:e.baseProjSetProg)?a==null?void 0:a.equalProtectionLevel:"",approvalFile:["01","02","03"].includes(e==null?void 0:e.baseProjSetProg)?"":((ae=a==null?void 0:a.approvalFile)==null?void 0:ae.length)&&JSON.stringify(o(a==null?void 0:a.approvalFile)),baseExpertTotalMoney:["01","03"].includes(e==null?void 0:e.baseProjSetProg)?"":a==null?void 0:a.baseExpertTotalMoney,baseExpertYearMoney:["01","03"].includes(e==null?void 0:e.baseProjSetProg)?"":a==null?void 0:a.baseExpertYearMoney,baseInitialReviewTotalMoney:["01","02","03"].includes(e==null?void 0:e.baseProjSetProg)?"":a==null?void 0:a.baseInitialReviewTotalMoney,baseProjReplyAmount:["01","02","03"].includes(e==null?void 0:e.baseProjSetProg)?"":a==null?void 0:a.baseProjReplyAmount,releaseYearMoney:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)?a==null?void 0:a.releaseYearMoney:"",preliminaryDesignScheme:(a==null?void 0:a.baseProjReplyAmount)>=5e3&&["04","05","06","07","00"].includes(e.baseProjSetProg)?((re=a==null?void 0:a.preliminaryDesignScheme)==null?void 0:re.length)&&JSON.stringify(o(a.preliminaryDesignScheme)):"",preliminaryDesignFile:(a==null?void 0:a.baseProjReplyAmount)>=5e3&&["04","05","06","07","00"].includes(e.baseProjSetProg)?((ie=a==null?void 0:a.preliminaryDesignFile)==null?void 0:ie.length)&&JSON.stringify(o(a.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(r=>{var he,Oe,Ne;return{...r,baseBidName:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&r.baseBidName||"",baseProjPurchaseWay:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&r.baseProjPurchaseWay||"",basePurchaseCode:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&r.basePurchaseCode||"",basePurchasingAgencies:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(s==null?void 0:s.baseProjSetYear)*1<2023)&&r.basePurchasingAgencies||"",baseUnifiedCreditCode:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(s==null?void 0:s.baseProjSetYear)*1<2023)&&r.baseUnifiedCreditCode||"",baseWinningBidTime:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&r.baseWinningBidTime||"",baseProjPurchaseAmount:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&r.baseProjPurchaseAmount||"",baseConsDeprt:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&r.baseConsDeprt||"",baseConsDeprtUsci:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&r.baseConsDeprtUsci||"",basePaymentTime:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(s==null?void 0:s.baseProjSetYear)*1<2023)&&r.basePaymentTime||"",paymentProgress:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(s==null?void 0:s.baseProjSetYear)*1<2023)&&r.paymentProgress||"",purchaseFile:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&((he=r.purchaseFile)==null?void 0:he.length)?JSON.stringify(o(r.purchaseFile)):"",biddingFile:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&((Oe=r.biddingFile)==null?void 0:Oe.length)?JSON.stringify(o(r.biddingFile)):"",purchaseContract:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&((Ne=r.purchaseContract)==null?void 0:Ne.length)?JSON.stringify(o(r.purchaseContract)):""}}))||[],cimplement:{...t,baseInitialOpinionFile:(le=t==null?void 0:t.baseInitialOpinionFile)!=null&&le.length?JSON.stringify(o(t.baseInitialOpinionFile)):"",baseInforLevelFile:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&((ne=e==null?void 0:e.baseConstructionType)==null?void 0:ne.includes("01"))||!((de=e==null?void 0:e.baseConstructionType)!=null&&de.includes("01")))&&((ue=t==null?void 0:t.baseInforLevelFile)==null?void 0:ue.length)?JSON.stringify(o(t.baseInforLevelFile)):"",basePasswAssessFile:(["04","05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(s==null?void 0:s.baseProjSetYear)*1<2023)&&((ce=t==null?void 0:t.basePasswAssessFile)==null?void 0:ce.length)?JSON.stringify(o(t.basePasswAssessFile)):"",baseThirdAcceptFile:(Pe=t.baseThirdAcceptFile)!=null&&Pe.length?JSON.stringify(o(t.baseThirdAcceptFile)):"",baseCheckFile:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(s==null?void 0:s.baseProjSetYear)*1<2023)&&((be=t==null?void 0:t.baseCheckFile)==null?void 0:be.length)?JSON.stringify(o(t.baseCheckFile)):"",baseFinanlAuditFile:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&(a==null?void 0:a.releaseYearMoney)*1>=2e3&&((ge=t==null?void 0:t.baseFinanlAuditFile)==null?void 0:ge.length)?JSON.stringify(o(t.baseFinanlAuditFile)):"",baseUserConsFile:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(s==null?void 0:s.baseProjSetYear)*1<2023)&&((je=t==null?void 0:t.baseUserConsFile)==null?void 0:je.length)?JSON.stringify(o(t.baseUserConsFile)):"",baseEstaSummFile:(me=t==null?void 0:t.baseEstaSummFile)!=null&&me.length?JSON.stringify(o(t==null?void 0:t.baseEstaSummFile)):"",baseSummReportFile:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(s==null?void 0:s.baseProjSetYear)*1<2023)&&((Se=t==null?void 0:t.baseSummReportFile)==null?void 0:Se.length)?JSON.stringify(o(t.baseSummReportFile)):"",baseFinalExpertOpinionFile:(e==null?void 0:e.baseProjSetProg)==="07"&&((Fe=t.baseFinalExpertOpinionFile)==null?void 0:Fe.length)?JSON.stringify(o(t==null?void 0:t.baseFinalExpertOpinionFile)):"",baseEngineerPostpoFile:(fe=t==null?void 0:t.baseEngineerPostpoFile)!=null&&fe.length?JSON.stringify(o(t==null?void 0:t.baseEngineerPostpoFile)):"",baseChangeFormFile:(ye=t==null?void 0:t.baseChangeFormFile)!=null&&ye.length?JSON.stringify(o(t==null?void 0:t.baseChangeFormFile)):"",baseChanFile:(ve=t==null?void 0:t.baseChanFile)!=null&&ve.length?JSON.stringify(o(t==null?void 0:t.baseChanFile)):""}}},O=S(!1),De=async()=>{O.value=!0;const e=w();try{await ze(e),O.value=!1,R.$message.success("\u6682\u5B58\u6210\u529F\uFF01"),D.go(-1)}catch{O.value=!1}};return Ye(async()=>{f.value=(await Ve()).data,g.query.id&&Ce()}),(e,s)=>{F("ArrowLeft"),F("el-icon"),F("el-breadcrumb-item"),F("el-breadcrumb");const i=F("el-collapse-item"),P=F("el-button"),a=F("el-collapse");return N(),xe("div",Ke,[C("",!0),u("div",Qe,[c(a,{modelValue:A,"onUpdate:modelValue":s[2]||(s[2]=m=>A=m)},{default:n(()=>{var m,t,y,v;return[c(i,{name:"1",class:"mb-16"},{title:n(()=>s[7]||(s[7]=[u("div",{class:"collapse-title"},"\u9879\u76EE\u57FA\u672C\u4FE1\u606F",-1)])),default:n(()=>[u("div",Xe,[c(Ae,{ref:d=>l.baseinfo=d,detail:j.value,"dictionary-list":f.value,onGetBasicInfoData:Je},null,8,["detail","dictionary-list"])])]),_:1}),c(i,{name:"2",class:"mb-16"},{title:n(()=>s[8]||(s[8]=[u("div",{class:"collapse-title"},"\u9879\u76EE\u7533\u62A5\u4FE1\u606F",-1)])),default:n(()=>[u("div",Ze,[c(Me,{ref:d=>l.apply=d,detail:j.value,"basic-info-data":b.value,"dictionary-list":f.value,onGetProYear:Te},null,8,["detail","basic-info-data","dictionary-list"])])]),_:1}),((t=(m=b.value)==null?void 0:m.baseConstructionType)==null?void 0:t.length)===1&&((y=b.value)==null?void 0:y.baseConstructionType.includes("02"))?C("",!0):(N(),J(i,{key:0,name:"3",class:"mb-16"},{title:n(()=>s[9]||(s[9]=[u("div",{class:"collapse-title"},"\u9879\u76EE\u5173\u8054\u4FE1\u606F",-1)])),default:n(()=>[u("div",pe,[c(qe,{ref:d=>l.application=d,detail:j.value,"basic-info-data":b.value},null,8,["detail","basic-info-data"])])]),_:1})),c(i,{name:"4",class:"mb-16"},{title:n(()=>s[10]||(s[10]=[u("div",{class:"collapse-title"},"\u6838\u5FC3\u4E1A\u52A1",-1)])),default:n(()=>[u("div",es,[c(Le,{ref:d=>l.baseCore=d,detail:j.value,"basic-info-data":b.value},null,8,["detail","basic-info-data"])])]),_:1}),((v=b.value)==null?void 0:v.baseProjSetProg)!=="01"?(N(),J(i,{key:1,name:"5",class:"mb-16"},{title:n(()=>s[11]||(s[11]=[u("div",{class:"collapse-title"},"\u9879\u76EE\u7ACB\u9879\u8BC4\u5BA1\u4FE1\u606F",-1)])),default:n(()=>[u("div",ss,[c($e,{ref:d=>l.approve=d,detail:j.value,"basic-info-data":b.value,"dictionary-list":f.value,onGetApprovalInfoData:Re},null,8,["detail","basic-info-data","dictionary-list"])])]),_:1})):C("",!0),c(i,{name:"6",class:"mb-16"},{title:n(()=>s[12]||(s[12]=[u("div",{class:"collapse-title"},"\u9879\u76EE\u91C7\u8D2D\u3001\u8D44\u91D1\u652F\u4ED8\u4FE1\u606F",-1)])),default:n(()=>[u("div",ts,[c(Ue,{ref:d=>l.procures=d,detail:j.value,"dictionary-list":f.value,"base-proj-set-year":_.value,"basic-info-data":b.value},null,8,["detail","dictionary-list","base-proj-set-year","basic-info-data"])])]),_:1}),c(i,{name:"7",class:"mb-16"},{title:n(()=>s[13]||(s[13]=[u("div",{class:"collapse-title"},"\u5B9E\u65BD\u6750\u6599\u4FE1\u606F",-1)])),default:n(()=>[u("div",as,[c(He,{ref:d=>l.cimplement=d,detail:j.value,"basic-info-data":b.value,"base-proj-set-year":_.value,"approval-info-data":B.value},null,8,["detail","basic-info-data","base-proj-set-year","approval-info-data"])])]),_:1}),u("div",rs,[c(P,{onClick:s[1]||(s[1]=d=>e.$router.go(-1))},{default:n(()=>s[14]||(s[14]=[T(" \u8FD4\u56DE ")])),_:1}),Ee(g).query.type!=="1"?(N(),J(P,{key:0,type:"primary",loading:O.value,plain:"",onClick:De},{default:n(()=>s[15]||(s[15]=[T(" \u6682\u5B58 ")])),_:1},8,["loading"])):C("",!0),c(P,{type:"primary",loading:h.value,onClick:_e},{default:n(()=>s[16]||(s[16]=[T(" \u63D0\u4EA4 ")])),_:1},8,["loading"])])]}),_:1})])])}}});export{_s as default};