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

  1. import _e from"./basicInfo.b0de17c2.js";import{d as Te,x as Re,y as De,r as j,o as Ae,c as m,e as N,f as we,k as C,g as u,h as P,i as n,G as _,j as T,u as Ie,q as Ye}from"./index.88314652.js";import{g as o}from"./uploadAction.a771741b.js";import xe from"./projectDeclareInfo.26484d75.js";import Ee from"./applicationInfo.63c26ca2.js";import Be from"./projectApprovalInfo.f40e0e19.js";import ke from"./purchaseInfo.d92ec8ff.js";import Me from"./empMaterials.9c6f95c5.js";import{d as qe,a as Le,s as $e,c as Ue}from"./projectCollectionEnter.d9dae6a5.js";import"./index.ce78f549.js";import"./unitManage.f0f6d1ad.js";import"./userDialog.a43047d4.js";import"./lineOrgDialog.dc4435b4.js";import"./index.52f0c4e2.js";import"./indicatorTemplate.d39a8306.js";import"./relatedProjectDialog.1f9b88c5.js";import"./renewalProjectCapitalDeclare.923464d2.js";import"./projectContentDialog.4a315de8.js";const He={class:"px-20 pt-10 pb-20 flex flex-col overflow-hidden"},Ve={class:"flex-1 overflow-auto mb-52"},Ge={class:"pb-24"},We={class:"pb-24"},ze={class:"pb-24"},Ke={class:"pb-24"},Qe={class:"pb-24"},Xe={class:"pb-24"},Ze={class:"footer"},pe=Te({name:"projectCollectionEnter"}),ys=Object.assign(pe,{setup(es){const{proxy:R}=Ye(),b=Re(),D=De(),A=["1","2","3","4","5","6","7"],l={},f=j(!1),S=j(),g=j(),ve=async()=>{const e=b.query.type==="1"?b.query.id:b.query.draftId,s=await Le(b.query.type,e);g.value=s.data},fe=async()=>{f.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=I();await $e(s),f.value=!1,R.$message.success("\u63D0\u4EA4\u6210\u529F\uFF01"),D.go(-1)}catch{f.value=!1}},c=j(),Oe=e=>{c.value=e},J=j(),Ne=e=>{J.value=e},w=j(),Ce=e=>{w.value=e},I=()=>{var y,h,v,d,Y,x,E,B,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,Pe,ce,be,ge,je,me,Se;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))||{},a=l.approve&&JSON.parse(JSON.stringify(l.approve.formData))||{},F=l.procures&&JSON.parse(JSON.stringify(l.procures.formData))||[],t=l.cimplement&&JSON.parse(JSON.stringify(l.cimplement.formData))||[];return{baseProjId:b.query.id||"",draftId:b.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:(h=s==null?void 0:s.baseProjTime)!=null&&h.length?(s==null?void 0:s.baseProjTime[0])+" 00:00:00":void 0,baseProjEndTime:(v=s==null?void 0:s.baseProjTime)!=null&&v.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=(d=s==null?void 0:s.baseHistorProjs)==null?void 0:d.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"?"":(k=(B=s==null?void 0:s.baseHistorProjs)==null?void 0:B.map(r=>r.baseProjSetYear))==null?void 0:k.join("\uFF1B"),baseProjAmountOri:((M=s==null?void 0:s.baseProjAmountOri)==null?void 0:M.join("\uFF1B"))||void 0,baseProjBasis:((L=(q=s==null?void 0:s.baseProjBasis)==null?void 0:q.map(r=>r.value))==null?void 0:L.join("\uFF1B"))||void 0,baseProjBasisFile:((U=($=s==null?void 0:s.baseProjBasis)==null?void 0:$.map(r=>r.fileList&&JSON.stringify(o(r.fileList))))==null?void 0:U.join("\uFF1B"))||"",beseExpectedResults:((H=s==null?void 0:s.beseExpectedResults)==null?void 0:H.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)&&((V=s==null?void 0:s.baseProjApplyFile)==null?void 0:V.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:(W=s==null?void 0:s.baseProjOtherFile)!=null&&W.length?JSON.stringify(o(s==null?void 0:s.baseProjOtherFile)):"",baseHistorProjs:void 0,...i,baseProjSysCode:((z=i==null?void 0:i.applications)==null?void 0:z.map(r=>r.application.applicationCode).join("\uFF1B"))||"",baseProjSys:((K=i==null?void 0:i.applications)==null?void 0:K.map(r=>r.application.applicationName).join("\uFF1B"))||"",baseAccountAppName:((Q=i==null?void 0:i.applications)==null?void 0:Q.map(r=>r.baseAccountAppName).join("\uFF1B"))||"",baseBrainName:((X=i==null?void 0:i.applications)==null?void 0:X.map(r=>r.baseBrainName).join("\uFF1B"))||"",applications:void 0,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"?((Z=a==null?void 0:a.baseReviewCommentsFile)==null?void 0:Z.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)?"":((p=a==null?void 0:a.approvalFile)==null?void 0:p.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)?((ee=a==null?void 0:a.preliminaryDesignScheme)==null?void 0:ee.length)&&JSON.stringify(o(a.preliminaryDesignScheme)):"",preliminaryDesignFile:(a==null?void 0:a.baseProjReplyAmount)>=5e3&&["04","05","06","07","00"].includes(e.baseProjSetProg)?((se=a==null?void 0:a.preliminaryDesignFile)==null?void 0:se.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)&&((te=F==null?void 0:F.sections)==null?void 0:te.map(r=>{var Fe,ye,he;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)&&((Fe=r.purchaseFile)==null?void 0:Fe.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)&&((he=r.purchaseContract)==null?void 0:he.length)?JSON.stringify(o(r.purchaseContract)):""}}))||[],cimplement:{...t,baseInitialOpinionFile:(ae=t==null?void 0:t.baseInitialOpinionFile)!=null&&ae.length?JSON.stringify(o(t.baseInitialOpinionFile)):"",baseInforLevelFile:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&((re=e==null?void 0:e.baseConstructionType)==null?void 0:re.includes("01"))||!((ie=e==null?void 0:e.baseConstructionType)!=null&&ie.includes("01")))&&((oe=t==null?void 0:t.baseInforLevelFile)==null?void 0:oe.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)&&((le=t==null?void 0:t.basePasswAssessFile)==null?void 0:le.length)?JSON.stringify(o(t.basePasswAssessFile)):"",baseThirdAcceptFile:(ne=t.baseThirdAcceptFile)!=null&&ne.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)&&((de=t==null?void 0:t.baseCheckFile)==null?void 0:de.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&&((ue=t==null?void 0:t.baseFinanlAuditFile)==null?void 0:ue.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)&&((Pe=t==null?void 0:t.baseUserConsFile)==null?void 0:Pe.length)?JSON.stringify(o(t.baseUserConsFile)):"",baseEstaSummFile:(ce=t==null?void 0:t.baseEstaSummFile)!=null&&ce.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)&&((be=t==null?void 0:t.baseSummReportFile)==null?void 0:be.length)?JSON.stringify(o(t.baseSummReportFile)):"",baseFinalExpertOpinionFile:(e==null?void 0:e.baseProjSetProg)==="07"&&((ge=t.baseFinalExpertOpinionFile)==null?void 0:ge.length)?JSON.stringify(o(t==null?void 0:t.baseFinalExpertOpinionFile)):"",baseEngineerPostpoFile:(je=t==null?void 0:t.baseEngineerPostpoFile)!=null&&je.length?JSON.stringify(o(t==null?void 0:t.baseEngineerPostpoFile)):"",baseChangeFormFile:(me=t==null?void 0:t.baseChangeFormFile)!=null&&me.length?JSON.stringify(o(t==null?void 0:t.baseChangeFormFile)):"",baseChanFile:(Se=t==null?void 0:t.baseChanFile)!=null&&Se.length?JSON.stringify(o(t==null?void 0:t.baseChanFile)):""}}},O=j(!1),Je=async()=>{O.value=!0;const e=I();try{await Ue(e),O.value=!1,R.$message.success("\u6682\u5B58\u6210\u529F\uFF01"),D.go(-1)}catch{O.value=!1}};return Ae(async()=>{S.value=(await qe()).data,b.query.id&&ve()}),(e,s)=>{m("ArrowLeft"),m("el-icon"),m("el-breadcrumb-item"),m("el-breadcrumb");const i=m("el-collapse-item"),a=m("el-button"),F=m("el-collapse");return N(),we("div",He,[C("",!0),u("div",Ve,[P(F,{modelValue:A,"onUpdate:modelValue":s[2]||(s[2]=t=>A=t)},{default:n(()=>{var t,y,h,v;return[P(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",Ge,[P(_e,{ref:d=>l.baseinfo=d,detail:g.value,"dictionary-list":S.value,onGetBasicInfoData:Oe},null,8,["detail","dictionary-list"])])]),_:1}),P(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",We,[P(xe,{ref:d=>l.apply=d,detail:g.value,"basic-info-data":c.value,"dictionary-list":S.value,onGetProYear:Ne},null,8,["detail","basic-info-data","dictionary-list"])])]),_:1}),((y=(t=c.value)==null?void 0:t.baseConstructionType)==null?void 0:y.length)===1&&((h=c.value)==null?void 0:h.baseConstructionType.includes("02"))?C("",!0):(N(),_(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",ze,[P(Ee,{ref:d=>l.application=d,detail:g.value,"basic-info-data":c.value},null,8,["detail","basic-info-data"])])]),_:1})),((v=c.value)==null?void 0:v.baseProjSetProg)!=="01"?(N(),_(i,{key:1,name:"5",class:"mb-16"},{title:n(()=>s[10]||(s[10]=[u("div",{class:"collapse-title"},"\u9879\u76EE\u7ACB\u9879\u8BC4\u5BA1\u4FE1\u606F",-1)])),default:n(()=>[u("div",Ke,[P(Be,{ref:d=>l.approve=d,detail:g.value,"basic-info-data":c.value,"dictionary-list":S.value,onGetApprovalInfoData:Ce},null,8,["detail","basic-info-data","dictionary-list"])])]),_:1})):C("",!0),P(i,{name:"6",class:"mb-16"},{title:n(()=>s[11]||(s[11]=[u("div",{class:"collapse-title"},"\u9879\u76EE\u91C7\u8D2D\u3001\u8D44\u91D1\u652F\u4ED8\u4FE1\u606F",-1)])),default:n(()=>[u("div",Qe,[P(ke,{ref:d=>l.procures=d,detail:g.value,"dictionary-list":S.value,"base-proj-set-year":J.value,"basic-info-data":c.value},null,8,["detail","dictionary-list","base-proj-set-year","basic-info-data"])])]),_:1}),P(i,{name:"7",class:"mb-16"},{title:n(()=>s[12]||(s[12]=[u("div",{class:"collapse-title"},"\u5B9E\u65BD\u6750\u6599\u4FE1\u606F",-1)])),default:n(()=>[u("div",Xe,[P(Me,{ref:d=>l.cimplement=d,detail:g.value,"basic-info-data":c.value,"base-proj-set-year":J.value,"approval-info-data":w.value},null,8,["detail","basic-info-data","base-proj-set-year","approval-info-data"])])]),_:1}),u("div",Ze,[P(a,{onClick:s[1]||(s[1]=d=>e.$router.go(-1))},{default:n(()=>s[13]||(s[13]=[T(" \u8FD4\u56DE ")])),_:1}),Ie(b).query.type!=="1"?(N(),_(a,{key:0,type:"primary",loading:O.value,plain:"",onClick:Je},{default:n(()=>s[14]||(s[14]=[T(" \u6682\u5B58 ")])),_:1},8,["loading"])):C("",!0),P(a,{type:"primary",loading:f.value,onClick:fe},{default:n(()=>s[15]||(s[15]=[T(" \u63D0\u4EA4 ")])),_:1},8,["loading"])])]}),_:1})])])}}});export{ys as default};