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 Ae from"./basicInfo.e944160e.js";import{d as Be,z as Ie,A as we,r as S,o as Ye,c as h,e as O,f as xe,k as N,g as c,h as u,i as l,I as J,j as T,u as Ee,x as ke}from"./index.50a8620e.js";import{g as o}from"./uploadAction.c1263c16.js";import Me from"./projectDeclareInfo.28641374.js";import Le from"./applicationInfo.e0eb9c63.js";import $e from"./coreBusiness.4eaee27a.js";import qe from"./projectApprovalInfo.10e57b86.js";import Ue from"./purchaseInfo.ab5a592f.js";import He from"./empMaterials.f8a81726.js";import{d as Ve,a as We,s as Ge,c as ze}from"./projectCollectionEnter.bc3a6750.js";import"./index.e3c41823.js";import"./unitManage.77960763.js";import"./userDialog.006fd74f.js";import"./lineOrgDialog.acc1c160.js";import"./index.d688144c.js";import"./indicatorTemplate.fe505829.js";import"./relatedProjectDialog.6bf92e5b.js";import"./renewalProjectCapitalDeclare.a2516af8.js";import"./projectContentDialog.d146517b.js";const Ke={class:"px-20 pt-10 pb-20 flex flex-col overflow-hidden"},Qe={class:"flex-1 overflow-auto mb-52"},Xe=c("div",{class:"collapse-title"},"\u9879\u76EE\u57FA\u672C\u4FE1\u606F",-1),Ze={class:"pb-24"},pe=c("div",{class:"collapse-title"},"\u9879\u76EE\u7533\u62A5\u4FE1\u606F",-1),es={class:"pb-24"},ss=c("div",{class:"collapse-title"},"\u9879\u76EE\u5173\u8054\u4FE1\u606F",-1),as={class:"pb-24"},ts=c("div",{class:"collapse-title"},"\u6838\u5FC3\u4E1A\u52A1",-1),rs={class:"pb-24"},is=c("div",{class:"collapse-title"},"\u9879\u76EE\u7ACB\u9879\u8BC4\u5BA1\u4FE1\u606F",-1),os={class:"pb-24"},ns=c("div",{class:"collapse-title"},"\u9879\u76EE\u91C7\u8D2D\u3001\u8D44\u91D1\u652F\u4ED8\u4FE1\u606F",-1),ls={class:"pb-24"},ds=c("div",{class:"collapse-title"},"\u5B9E\u65BD\u6750\u6599\u4FE1\u606F",-1),cs={class:"pb-24"},us={class:"footer"},Ps=Be({name:"projectCollectionEnter"}),Is=Object.assign(Ps,{setup(bs){const{proxy:R}=ke(),g=Ie(),D=we(),A=["1","2","3","4","5","6","7"],n={},v=S(!1),F=S(),j=S(),Ne=async()=>{const e=g.query.type==="1"?g.query.id:g.query.draftId,s=await We(g.query.type,e);j.value=s.data},Ce=async()=>{v.value=!0;try{const e=Object.values(n).map(async i=>(i==null?void 0:i.formRef)&&await i.formRef.validate());await Promise.all(e);const s=I();await Ge(s),v.value=!1,R.$message.success("\u63D0\u4EA4\u6210\u529F\uFF01"),D.go(-1)}catch{v.value=!1}},b=S(),Je=e=>{b.value=e},C=S(),Te=e=>{C.value=e},B=S(),Re=e=>{B.value=e},I=()=>{var _,f,d,w,Y,x,E,k,M,L,$,q,U,H,V,W,G,z,K,Q,X,Z,p,ee,se,ae,te,re,ie,oe,ne,le,de,ce,ue,Pe,be,ge,je,me,Se,he,Fe,_e,fe;const e=JSON.parse(JSON.stringify(n.baseinfo.formData)),s=JSON.parse(JSON.stringify(n.apply.formData)),i=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:(_=e==null?void 0:e.baseConstructionType)==null?void 0:_.join("\uFF1B")},apply:{...s,baseProjStartTime:(f=s==null?void 0:s.baseProjTime)!=null&&f.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=(w=s==null?void 0:s.baseHistorProjs)==null?void 0:w.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:((L=s==null?void 0:s.baseProjAmountOri)==null?void 0:L.join("\uFF1B"))||void 0,baseProjBasis:((q=($=s==null?void 0:s.baseProjBasis)==null?void 0:$.map(r=>r.value))==null?void 0:q.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)&&((W=s==null?void 0:s.baseProjApplyFile)==null?void 0:W.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")&&((G=s==null?void 0:s.baseResearchReportFile)==null?void 0:G.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:{...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)?((re=t==null?void 0:t.preliminaryDesignScheme)==null?void 0:re.length)&&JSON.stringify(o(t.preliminaryDesignScheme)):"",preliminaryDesignFile:(t==null?void 0:t.baseProjReplyAmount)>=5e3&&["04","05","06","07","00"].includes(e.baseProjSetProg)?((ie=t==null?void 0:t.preliminaryDesignFile)==null?void 0:ie.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(r=>{var ve,ye,Oe;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)&&((ve=r.purchaseFile)==null?void 0:ve.length)?JSON.stringify(o(r.purchaseFile)):"",biddingFile:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&((ye=r.biddingFile)==null?void 0:ye.length)?JSON.stringify(o(r.biddingFile)):"",purchaseContract:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&((Oe=r.purchaseContract)==null?void 0:Oe.length)?JSON.stringify(o(r.purchaseContract)):""}}))||[],cimplement:{...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")))&&((ce=a==null?void 0:a.baseInforLevelFile)==null?void 0:ce.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)&&((ue=a==null?void 0:a.basePasswAssessFile)==null?void 0:ue.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)||(s==null?void 0:s.baseProjSetYear)*1<2023)&&((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)):"",baseSummReportFile:(["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.baseSummReportFile)==null?void 0:Se.length)?JSON.stringify(o(a.baseSummReportFile)):"",baseFinalExpertOpinionFile:(e==null?void 0:e.baseProjSetProg)==="07"&&((he=a.baseFinalExpertOpinionFile)==null?void 0:he.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)):"",baseChangeFormFile:(_e=a==null?void 0:a.baseChangeFormFile)!=null&&_e.length?JSON.stringify(o(a==null?void 0:a.baseChangeFormFile)):"",baseChanFile:(fe=a==null?void 0:a.baseChanFile)!=null&&fe.length?JSON.stringify(o(a==null?void 0:a.baseChanFile)):""}}},y=S(!1),De=async()=>{y.value=!0;const e=I();try{await ze(e),y.value=!1,R.$message.success("\u6682\u5B58\u6210\u529F\uFF01"),D.go(-1)}catch{y.value=!1}};return Ye(async()=>{F.value=(await Ve()).data,g.query.id&&Ne()}),(e,s)=>{h("ArrowLeft"),h("el-icon"),h("el-breadcrumb-item"),h("el-breadcrumb");const i=h("el-collapse-item"),P=h("el-button"),t=h("el-collapse");return O(),xe("div",Ke,[N("",!0),c("div",Qe,[u(t,{modelValue:A,"onUpdate:modelValue":s[2]||(s[2]=m=>A=m)},{default:l(()=>{var m,a,_,f;return[u(i,{name:"1",class:"mb-16"},{title:l(()=>[Xe]),default:l(()=>[c("div",Ze,[u(Ae,{ref:d=>n.baseinfo=d,detail:j.value,"dictionary-list":F.value,onGetBasicInfoData:Je},null,8,["detail","dictionary-list"])])]),_:1}),u(i,{name:"2",class:"mb-16"},{title:l(()=>[pe]),default:l(()=>[c("div",es,[u(Me,{ref:d=>n.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}),((a=(m=b.value)==null?void 0:m.baseConstructionType)==null?void 0:a.length)===1&&((_=b.value)==null?void 0:_.baseConstructionType.includes("02"))?N("",!0):(O(),J(i,{key:0,name:"3",class:"mb-16"},{title:l(()=>[ss]),default:l(()=>[c("div",as,[u(Le,{ref:d=>n.application=d,detail:j.value,"basic-info-data":b.value},null,8,["detail","basic-info-data"])])]),_:1})),u(i,{name:"4",class:"mb-16"},{title:l(()=>[ts]),default:l(()=>[c("div",rs,[u($e,{ref:d=>n.baseCore=d,detail:j.value,"basic-info-data":b.value},null,8,["detail","basic-info-data"])])]),_:1}),((f=b.value)==null?void 0:f.baseProjSetProg)!=="01"?(O(),J(i,{key:1,name:"5",class:"mb-16"},{title:l(()=>[is]),default:l(()=>[c("div",os,[u(qe,{ref:d=>n.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})):N("",!0),u(i,{name:"6",class:"mb-16"},{title:l(()=>[ns]),default:l(()=>[c("div",ls,[u(Ue,{ref:d=>n.procures=d,detail:j.value,"dictionary-list":F.value,"base-proj-set-year":C.value,"basic-info-data":b.value},null,8,["detail","dictionary-list","base-proj-set-year","basic-info-data"])])]),_:1}),u(i,{name:"7",class:"mb-16"},{title:l(()=>[ds]),default:l(()=>[c("div",cs,[u(He,{ref:d=>n.cimplement=d,detail:j.value,"basic-info-data":b.value,"base-proj-set-year":C.value,"approval-info-data":B.value},null,8,["detail","basic-info-data","base-proj-set-year","approval-info-data"])])]),_:1}),c("div",us,[u(P,{onClick:s[1]||(s[1]=d=>e.$router.go(-1))},{default:l(()=>[T(" \u8FD4\u56DE ")]),_:1}),Ee(g).query.type!=="1"?(O(),J(P,{key:0,type:"primary",loading:y.value,plain:"",onClick:De},{default:l(()=>[T(" \u6682\u5B58 ")]),_:1},8,["loading"])):N("",!0),u(P,{type:"primary",loading:v.value,onClick:Ce},{default:l(()=>[T(" \u63D0\u4EA4 ")]),_:1},8,["loading"])])]}),_:1})])])}}});export{Is as default};