|
- import{E as A,r as S,x as G,o as J,b as P,c as u,d as R,f as o,h as l,e as b,t as k,i as B,n as K,u as Q,F as W,H as X,L as v,j as h,k as Z}from"./index-dd5fae99.js";import aa from"./basicInfo-2ff23e61.js";import{d as ea,a as ta}from"./projectCollectionEnter-718f1371.js";import la from"./applyInfo-defd6b1e.js";import sa from"./applicationInfo-b26eb446.js";import oa from"./coreBusiness-d0534506.js";import ia from"./projectApprovalInfo-4b902c2f.js";import na from"./empMaterials-85a1c2d7.js";import ra from"./purchaseInfo-fe1d1af2.js";import{t as da}from"./indicatorTemplate-ca1642c9.js";import"./index-33a0e6e3.js";import"./index-b6aa4cff.js";import"./index-be0b3801.js";const ua={class:"px-20 pb-20 overflow-auto"},pa={class:"card-header"},ca={class:"flex justify-between items-center"},fa={class:"flex-1"},ma={class:"font-bold"},_a={class:"mt-8 search"},ba={class:"textRight"},va=Z({name:"projectCollectionEnterDetail"}),La=Object.assign(va,{setup(ya){const{statusGjOptions:F}=A.dictStore.globalDicts||{},x=S(["项目基本信息","项目申报信息","项目关联信息","核心业务","项目立项评审信息","项目采购、资金支付信息","实施材料信息"]),n=S("项目基本信息"),M=T=>{n.value=T},D=G(),a=S(),U=async()=>{var y,j,N,$,w,L,V,s,d,p,c;const T=D.query.type==="1"?D.query.id:D.query.draftId,r=await ta(D.query.type,T);a.value={...r.data,apply:{...r.data.apply,baseHistorProjs:((j=(y=r.data.apply)==null?void 0:y.baseHistorProjId)==null?void 0:j.split(";").map((i,f)=>{var m,_;return{baseProjId:i,baseProjName:(m=r.data.apply)==null?void 0:m.baseHistorProjName.split(";")[f],baseProjSetYear:(_=r.data.apply)==null?void 0:_.baseHistorProjYear.split(";")[f]}}))||[]}},((L=(w=($=(N=a.value)==null?void 0:N.baseinfo)==null?void 0:$.baseConstructionType)==null?void 0:w.split(";"))==null?void 0:L.length)===1&&((d=(s=(V=a.value)==null?void 0:V.baseinfo)==null?void 0:s.baseConstructionType)!=null&&d.split(";").includes("02"))&&(x.value=x.value.filter(i=>i!=="项目关联信息")),((c=(p=a.value)==null?void 0:p.baseinfo)==null?void 0:c.baseProjSetProg)==="01"&&(x.value=x.value.filter(i=>i!=="项目立项评审信息"))},g=S([]),H=S(),z=async()=>{const T=await da();H.value=T.data};return J(async()=>{z(),g.value=(await ea()).data,U()}),(T,r)=>{const y=P("el-form-item"),j=P("el-col"),N=P("el-row"),$=P("el-form"),w=P("el-card"),L=P("el-tab-pane"),V=P("el-tabs");return u(),R("div",ua,[o(w,{shadow:"never",class:"mb-16"},{default:l(()=>{var s,d,p,c,i,f,m,_;return[b("div",pa,[b("div",ca,[b("div",fa,[b("p",ma,k((d=(s=a.value)==null?void 0:s.baseinfo)==null?void 0:d.baseProjName),1),b("div",_a,[o($,{"label-suffix":":"},{default:l(()=>[o(N,{gutter:24},{default:l(()=>[o(j,{span:6},{default:l(()=>[o(y,{label:"建设单位"},{default:l(()=>{var e,t;return[B(k(((t=(e=a.value)==null?void 0:e.baseinfo)==null?void 0:t.baseBuildDeprt)||"-"),1)]}),_:1})]),_:1}),o(j,{span:6},{default:l(()=>[o(y,{label:"主管单位"},{default:l(()=>{var e,t;return[B(k(((t=(e=a.value)==null?void 0:e.baseinfo)==null?void 0:t.baseManDeprt)||"-"),1)]}),_:1})]),_:1}),o(j,{span:6},{default:l(()=>[o(y,{label:"创建时间"},{default:l(()=>{var e,t;return[B(k(((t=(e=a.value)==null?void 0:e.baseinfo)==null?void 0:t.createOn)||"-"),1)]}),_:1})]),_:1}),o(j,{span:6},{default:l(()=>[o(y,{label:"更新时间"},{default:l(()=>{var e,t;return[B(k(((t=(e=a.value)==null?void 0:e.baseinfo)==null?void 0:t.updateOn)||"-"),1)]}),_:1})]),_:1})]),_:1})]),_:1})])]),b("div",ba,[b("span",{class:K(`text-${(f=Q(F)[(i=(c=(p=a.value)==null?void 0:p.baseinfo)==null?void 0:c.baseProjSetProg)==null?void 0:i.slice(-1)])==null?void 0:f.color}`)},k(((_=(m=g.value)==null?void 0:m.filter(e=>e.type==="PROJECT_STATUS").find(e=>{var t,C;return e.value===((C=(t=a.value)==null?void 0:t.baseinfo)==null?void 0:C.baseProjSetProg)}))==null?void 0:_.label)||"-"),3),r[1]||(r[1]=b("p",null,"状态",-1))])])])]}),_:1}),o(w,{shadow:"never",class:"tab-card"},{header:l(()=>[o(V,{modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=s=>n.value=s),onTabChange:M},{default:l(()=>[(u(!0),R(W,null,X(x.value,(s,d)=>(u(),v(L,{key:d,label:s,name:s},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])]),default:l(()=>{var s,d,p,c,i,f,m,_,e,t,C,O,q,E,Y,I;return[n.value==="项目基本信息"?(u(),v(aa,{key:0,"detail-data":(s=a.value)==null?void 0:s.baseinfo,"dictionary-list":g.value,"template-type-list-data":H.value},null,8,["detail-data","dictionary-list","template-type-list-data"])):h("",!0),n.value==="项目申报信息"?(u(),v(la,{key:1,"detail-data":(d=a.value)==null?void 0:d.apply,"dictionary-list":g.value,"basic-info-data":(p=a.value)==null?void 0:p.baseinfo},null,8,["detail-data","dictionary-list","basic-info-data"])):h("",!0),n.value==="项目关联信息"?(u(),v(sa,{key:2,"detail-data":(c=a.value)==null?void 0:c.apply},null,8,["detail-data"])):h("",!0),n.value==="核心业务"?(u(),v(oa,{key:3,"detail-data":(i=a.value)==null?void 0:i.apply},null,8,["detail-data"])):h("",!0),n.value==="项目立项评审信息"?(u(),v(ia,{key:4,"detail-data":(f=a.value)==null?void 0:f.approve,"dictionary-list":g.value,"basic-info-data":(m=a.value)==null?void 0:m.baseinfo},null,8,["detail-data","dictionary-list","basic-info-data"])):h("",!0),n.value==="项目采购、资金支付信息"?(u(),v(ra,{key:5,"basic-info-data":(_=a.value)==null?void 0:_.baseinfo,"base-proj-set-year":(t=(e=a.value)==null?void 0:e.apply)==null?void 0:t.baseProjSetYear,"dictionary-list":g.value,"detail-data":(C=a.value)==null?void 0:C.procures},null,8,["basic-info-data","base-proj-set-year","dictionary-list","detail-data"])):h("",!0),n.value==="实施材料信息"?(u(),v(na,{key:6,"detail-data":(O=a.value)==null?void 0:O.cimplement,"basic-info-data":(q=a.value)==null?void 0:q.baseinfo,"base-proj-set-year":(Y=(E=a.value)==null?void 0:E.apply)==null?void 0:Y.baseProjSetYear,"approval-info-data":(I=a.value)==null?void 0:I.approve},null,8,["detail-data","basic-info-data","base-proj-set-year","approval-info-data"])):h("",!0)]}),_:1})])}}});export{La as default};
|