|
- var Ye=Object.defineProperty,Me=Object.defineProperties;var ke=Object.getOwnPropertyDescriptors;var Ae=Object.getOwnPropertySymbols;var Le=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable;var Re=(m,d,o)=>d in m?Ye(m,d,{enumerable:!0,configurable:!0,writable:!0,value:o}):m[d]=o,v=(m,d)=>{for(var o in d||(d={}))Le.call(d,o)&&Re(m,o,d[o]);if(Ae)for(var o of Ae(d))qe.call(d,o)&&Re(m,o,d[o]);return m},f=(m,d)=>Me(m,ke(d));var O=(m,d,o)=>new Promise((A,C)=>{var l=P=>{try{h(o.next(P))}catch(J){C(J)}},N=P=>{try{h(o.throw(P))}catch(J){C(J)}},h=P=>P.done?A(P.value):Promise.resolve(P.value).then(l,N);h((o=o.apply(m,d)).next())});import{_ as Ue,d as He,z as Ve,A as pe,r as _,o as We,c as y,e as I,f as $e,h as B,g as b,i as g,j as c,I as x,k as E,u as Ge,x as ze}from"./index.47f2a3eb.js";import Ke from"./basicInfo.73963ad5.js";import{g as n}from"./uploadAction.7fbc4c63.js";import Qe from"./projectDeclareInfo.1bff85c8.js";import Xe from"./applicationInfo.b683f2c8.js";import Ze from"./coreBusiness.90d38938.js";import es from"./projectApprovalInfo.9042f6fb.js";import ss from"./purchaseInfo.0a885e64.js";import ts from"./empMaterials.1756506c.js";import{d as as,a as rs,s as is,c as os}from"./projectCollectionEnter.c0df1568.js";import"./index.e7e609be.js";import"./unitManage.55ac458e.js";import"./userDialog.8ef65a58.js";import"./lineOrgDialog.85a18e16.js";import"./index.26831aa6.js";import"./indicatorTemplate.91c0a506.js";import"./relatedProjectDialog.6e69fbb1.js";import"./renewalProjectCapitalDeclare.8ed5cc5c.js";import"./projectContentDialog.4ac32382.js";const ns={class:"px-20 pt-10 pb-20 flex flex-col overflow-hidden"},ls={class:"flex-1 overflow-auto mb-52"},cs=b("div",{class:"collapse-title"},"\u9879\u76EE\u57FA\u672C\u4FE1\u606F",-1),ds={class:"pb-24"},us=b("div",{class:"collapse-title"},"\u9879\u76EE\u7533\u62A5\u4FE1\u606F",-1),Ps={class:"pb-24"},bs=b("div",{class:"collapse-title"},"\u9879\u76EE\u5173\u8054\u4FE1\u606F",-1),gs={class:"pb-24"},js=b("div",{class:"collapse-title"},"\u6838\u5FC3\u4E1A\u52A1",-1),ms={class:"pb-24"},Ss=b("div",{class:"collapse-title"},"\u9879\u76EE\u7ACB\u9879\u8BC4\u5BA1\u4FE1\u606F",-1),hs={class:"pb-24"},Fs=b("div",{class:"collapse-title"},"\u9879\u76EE\u91C7\u8D2D\u3001\u8D44\u91D1\u652F\u4ED8\u4FE1\u606F",-1),vs={class:"pb-24"},fs=b("div",{class:"collapse-title"},"\u5B9E\u65BD\u6750\u6599\u4FE1\u606F",-1),_s={class:"pb-24"},ys={class:"footer"},Ns=He({name:"projectCollectionEnter"}),Os=Object.assign(Ns,{setup(m){const{proxy:d}=ze(),o=Ve(),A=pe(),C=["1","2","3","4","5","6","7"],l={},N=_(!1),h=_(),P=_(),J=()=>O(this,null,function*(){const e=o.query.type==="1"?o.query.id:o.query.draftId,s=yield rs(o.query.type,e);P.value=s.data}),Ie=()=>O(this,null,function*(){N.value=!0;try{const e=Object.values(l).map(i=>O(this,null,function*(){return(i==null?void 0:i.formRef)&&(yield i.formRef.validate())}));yield Promise.all(e);const s=M();yield is(s),N.value=!1,d.$message.success("\u63D0\u4EA4\u6210\u529F\uFF01"),A.go(-1)}catch(e){N.value=!1}}),S=_(),Be=e=>{S.value=e},w=_(),we=e=>{w.value=e},Y=_(),xe=e=>{Y.value=e},M=()=>{var D,T,u,k,L,q,U,H,V,p,W,$,G,z,K,Q,X,Z,ee,se,te,ae,re,ie,oe,ne,le,ce,de,ue,Pe,be,ge,je,me,Se,he,Fe,ve,fe,_e,ye,Ne,Oe,Ce;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))||{},j=l.baseCore&&JSON.parse(JSON.stringify(l.baseCore.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:o.query.id||"",draftId:o.query.draftId*1||"",baseinfo:f(v({},e),{baseProvManDeprtType:(e==null?void 0:e.baseProvManDeprtType)*1||void 0,baseConstructionType:(D=e==null?void 0:e.baseConstructionType)==null?void 0:D.join("\uFF1B")}),apply:f(v(f(v(f(v({},s),{baseProjStartTime:(T=s==null?void 0:s.baseProjTime)!=null&&T.length?(s==null?void 0:s.baseProjTime[0])+" 00:00:00":void 0,baseProjEndTime:(u=s==null?void 0:s.baseProjTime)!=null&&u.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"?"":(L=(k=s==null?void 0:s.baseHistorProjs)==null?void 0:k.map(r=>r.baseProjId))==null?void 0:L.join("\uFF1B"),baseHistorProjName:(s==null?void 0:s.missing)||(e==null?void 0:e.baseProjType)==="01"?"":(U=(q=s==null?void 0:s.baseHistorProjs)==null?void 0:q.map(r=>r.baseProjName))==null?void 0:U.join("\uFF1B"),baseHistorProjYear:(s==null?void 0:s.missing)||(e==null?void 0:e.baseProjType)==="01"?"":(V=(H=s==null?void 0:s.baseHistorProjs)==null?void 0:H.map(r=>r.baseProjSetYear))==null?void 0:V.join("\uFF1B"),baseProjAmountOri:((p=s==null?void 0:s.baseProjAmountOri)==null?void 0:p.join("\uFF1B"))||void 0,baseProjBasis:(($=(W=s==null?void 0:s.baseProjBasis)==null?void 0:W.map(r=>r.value))==null?void 0:$.join("\uFF1B"))||void 0,baseProjBasisFile:((z=(G=s==null?void 0:s.baseProjBasis)==null?void 0:G.map(r=>r.fileList&&JSON.stringify(n(r.fileList))))==null?void 0:z.join("\uFF1B"))||"",beseExpectedResults:((K=s==null?void 0:s.beseExpectedResults)==null?void 0:K.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)&&((Q=s==null?void 0:s.baseProjApplyFile)==null?void 0:Q.length)?JSON.stringify(n(s==null?void 0:s.baseProjApplyFile)):"",baseResearchReportFile:((e==null?void 0:e.baseProjType)==="01"||(e==null?void 0:e.baseProjType)==="02")&&((X=s==null?void 0:s.baseResearchReportFile)==null?void 0:X.length)?JSON.stringify(n(s==null?void 0:s.baseResearchReportFile)):"",baseProjOtherFile:(Z=s==null?void 0:s.baseProjOtherFile)!=null&&Z.length?JSON.stringify(n(s==null?void 0:s.baseProjOtherFile)):"",baseHistorProjs:void 0}),i),{baseProjSysCode:((ee=i==null?void 0:i.applications)==null?void 0:ee.map(r=>r.application.applicationCode).join("\uFF1B"))||"",baseProjSys:((se=i==null?void 0:i.applications)==null?void 0:se.map(r=>r.application.applicationName).join("\uFF1B"))||"",baseAccountAppName:((te=i==null?void 0:i.applications)==null?void 0:te.map(r=>r.baseAccountAppName).join("\uFF1B"))||"",baseBrainName:((ae=i==null?void 0:i.applications)==null?void 0:ae.map(r=>r.baseBrainName).join("\uFF1B"))||"",applications:void 0}),j),{baseCoreBusinessCode:((re=j==null?void 0:j.coreBusiness)==null?void 0:re.map(r=>r.id).join("\uFF1B"))||"",baseCoreBusiness:((ie=j==null?void 0:j.coreBusiness)==null?void 0:ie.map(r=>r.matterName).join("\uFF1B"))||"",baseCoreBusinessOrg:((oe=j==null?void 0:j.coreBusiness)==null?void 0:oe.map(r=>r.orgName).join("\uFF1B"))||"",coreBusiness:void 0}),approve:f(v({},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"?((ne=a==null?void 0:a.baseReviewCommentsFile)==null?void 0:ne.length)&&JSON.stringify(n(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)?"":((le=a==null?void 0:a.approvalFile)==null?void 0:le.length)&&JSON.stringify(n(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)?((ce=a==null?void 0:a.preliminaryDesignScheme)==null?void 0:ce.length)&&JSON.stringify(n(a.preliminaryDesignScheme)):"",preliminaryDesignFile:(a==null?void 0:a.baseProjReplyAmount)>=5e3&&["04","05","06","07","00"].includes(e.baseProjSetProg)?((de=a==null?void 0:a.preliminaryDesignFile)==null?void 0:de.length)&&JSON.stringify(n(a.preliminaryDesignFile)):""}),procures:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(s==null?void 0:s.baseProjSetYear)*1<2023)&&((ue=F==null?void 0:F.sections)==null?void 0:ue.map(r=>{var Je,De,Te;return f(v({},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)&&((Je=r.purchaseFile)==null?void 0:Je.length)?JSON.stringify(n(r.purchaseFile)):"",biddingFile:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&((De=r.biddingFile)==null?void 0:De.length)?JSON.stringify(n(r.biddingFile)):"",purchaseContract:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&((Te=r.purchaseContract)==null?void 0:Te.length)?JSON.stringify(n(r.purchaseContract)):""})}))||[],cimplement:f(v({},t),{baseInitialOpinionFile:(Pe=t==null?void 0:t.baseInitialOpinionFile)!=null&&Pe.length?JSON.stringify(n(t.baseInitialOpinionFile)):"",baseInforLevelFile:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&((be=e==null?void 0:e.baseConstructionType)==null?void 0:be.includes("01"))||!((ge=e==null?void 0:e.baseConstructionType)!=null&&ge.includes("01")))&&((je=t==null?void 0:t.baseInforLevelFile)==null?void 0:je.length)?JSON.stringify(n(t.baseInforLevelFile)):"",basePasswAssessFile:(["04","05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(s==null?void 0:s.baseProjSetYear)*1<2023)&&((me=t==null?void 0:t.basePasswAssessFile)==null?void 0:me.length)?JSON.stringify(n(t.basePasswAssessFile)):"",baseThirdAcceptFile:(Se=t.baseThirdAcceptFile)!=null&&Se.length?JSON.stringify(n(t.baseThirdAcceptFile)):"",baseCheckFile:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(s==null?void 0:s.baseProjSetYear)*1<2023)&&((he=t==null?void 0:t.baseCheckFile)==null?void 0:he.length)?JSON.stringify(n(t.baseCheckFile)):"",baseFinanlAuditFile:["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)&&(a==null?void 0:a.releaseYearMoney)*1>=2e3&&((Fe=t==null?void 0:t.baseFinanlAuditFile)==null?void 0:Fe.length)?JSON.stringify(n(t.baseFinanlAuditFile)):"",baseUserConsFile:(["05","06","07","00"].includes(e==null?void 0:e.baseProjSetProg)||(s==null?void 0:s.baseProjSetYear)*1<2023)&&((ve=t==null?void 0:t.baseUserConsFile)==null?void 0:ve.length)?JSON.stringify(n(t.baseUserConsFile)):"",baseEstaSummFile:(fe=t==null?void 0:t.baseEstaSummFile)!=null&&fe.length?JSON.stringify(n(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)&&((_e=t==null?void 0:t.baseSummReportFile)==null?void 0:_e.length)?JSON.stringify(n(t.baseSummReportFile)):"",baseFinalExpertOpinionFile:(e==null?void 0:e.baseProjSetProg)==="07"&&((ye=t.baseFinalExpertOpinionFile)==null?void 0:ye.length)?JSON.stringify(n(t==null?void 0:t.baseFinalExpertOpinionFile)):"",baseEngineerPostpoFile:(Ne=t==null?void 0:t.baseEngineerPostpoFile)!=null&&Ne.length?JSON.stringify(n(t==null?void 0:t.baseEngineerPostpoFile)):"",baseChangeFormFile:(Oe=t==null?void 0:t.baseChangeFormFile)!=null&&Oe.length?JSON.stringify(n(t==null?void 0:t.baseChangeFormFile)):"",baseChanFile:(Ce=t==null?void 0:t.baseChanFile)!=null&&Ce.length?JSON.stringify(n(t==null?void 0:t.baseChanFile)):""})}},R=_(!1),Ee=()=>O(this,null,function*(){R.value=!0;const e=M();try{yield os(e),R.value=!1,d.$message.success("\u6682\u5B58\u6210\u529F\uFF01"),A.go(-1)}catch(s){R.value=!1}});return We(()=>O(this,null,function*(){h.value=(yield as()).data,o.query.id&&J()})),(e,s)=>{y("ArrowLeft"),y("el-icon"),y("el-breadcrumb-item"),y("el-breadcrumb");const i=y("el-collapse-item"),j=y("el-button"),a=y("el-collapse");return I(),$e("div",ns,[B("v-if",!0),b("div",ls,[g(a,{modelValue:C,"onUpdate:modelValue":s[2]||(s[2]=F=>C=F)},{default:c(()=>{var F,t,D,T;return[g(i,{name:"1",class:"mb-16"},{title:c(()=>[cs]),default:c(()=>[b("div",ds,[g(Ke,{ref:u=>l.baseinfo=u,detail:P.value,"dictionary-list":h.value,onGetBasicInfoData:Be},null,8,["detail","dictionary-list"])])]),_:1}),g(i,{name:"2",class:"mb-16"},{title:c(()=>[us]),default:c(()=>[b("div",Ps,[g(Qe,{ref:u=>l.apply=u,detail:P.value,"basic-info-data":S.value,"dictionary-list":h.value,onGetProYear:we},null,8,["detail","basic-info-data","dictionary-list"])])]),_:1}),((t=(F=S.value)==null?void 0:F.baseConstructionType)==null?void 0:t.length)===1&&((D=S.value)==null?void 0:D.baseConstructionType.includes("02"))?B("v-if",!0):(I(),x(i,{key:0,name:"3",class:"mb-16"},{title:c(()=>[bs]),default:c(()=>[b("div",gs,[g(Xe,{ref:u=>l.application=u,detail:P.value,"basic-info-data":S.value},null,8,["detail","basic-info-data"])])]),_:1})),g(i,{name:"4",class:"mb-16"},{title:c(()=>[js]),default:c(()=>[b("div",ms,[g(Ze,{ref:u=>l.baseCore=u,detail:P.value,"basic-info-data":S.value},null,8,["detail","basic-info-data"])])]),_:1}),((T=S.value)==null?void 0:T.baseProjSetProg)!=="01"?(I(),x(i,{key:1,name:"5",class:"mb-16"},{title:c(()=>[Ss]),default:c(()=>[b("div",hs,[g(es,{ref:u=>l.approve=u,detail:P.value,"basic-info-data":S.value,"dictionary-list":h.value,onGetApprovalInfoData:xe},null,8,["detail","basic-info-data","dictionary-list"])])]),_:1})):B("v-if",!0),g(i,{name:"6",class:"mb-16"},{title:c(()=>[Fs]),default:c(()=>[b("div",vs,[g(ss,{ref:u=>l.procures=u,detail:P.value,"dictionary-list":h.value,"base-proj-set-year":w.value,"basic-info-data":S.value},null,8,["detail","dictionary-list","base-proj-set-year","basic-info-data"])])]),_:1}),g(i,{name:"7",class:"mb-16"},{title:c(()=>[fs]),default:c(()=>[b("div",_s,[g(ts,{ref:u=>l.cimplement=u,detail:P.value,"basic-info-data":S.value,"base-proj-set-year":w.value,"approval-info-data":Y.value},null,8,["detail","basic-info-data","base-proj-set-year","approval-info-data"])])]),_:1}),b("div",ys,[g(j,{onClick:s[1]||(s[1]=u=>e.$router.go(-1))},{default:c(()=>[E(" \u8FD4\u56DE ")]),_:1}),Ge(o).query.type!=="1"?(I(),x(j,{key:0,type:"primary",loading:R.value,plain:"",onClick:Ee},{default:c(()=>[E(" \u6682\u5B58 ")]),_:1},8,["loading"])):B("v-if",!0),g(j,{type:"primary",loading:N.value,onClick:Ie},{default:c(()=>[E(" \u63D0\u4EA4 ")]),_:1},8,["loading"])])]}),_:1})])])}}}),Ws=Ue(Os,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/projectCollection/projectCollectionEnter/index.vue"]]);export{Ws as default};
|