|
- import{d as z,B as A,r as C,x as J,o as K,c as j,e as u,f as R,h as o,i as l,g as _,t as T,j as B,n as Q,u as W,F as X,H as Z,G as b,k as P}from"./index.e8b71da7.js";import aa from"./basicInfo.815506ff.js";import{d as ea}from"./projectCollectionEnter.f2131d92.js";import{d as ta}from"./operationProjectRecord.e3bccf7f.js";import la from"./applyInfo.08046e58.js";import sa from"./applicationInfo.31eb0a66.js";import oa from"./coreBusiness.48aba304.js";import ia from"./projectApprovalInfo.ebd50f21.js";import na from"./empMaterials.ecbf0e03.js";import ra from"./purchaseInfo.b278e79b.js";import{t as da}from"./indicatorTemplate.a390f46e.js";import"./index.4cb63fa6.js";import"./index.dd00bdfc.js";import"./index.555a865f.js";const ua={class:"px-20 pt-10 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"}),Ba=Object.assign(va,{setup(ya){const{statusGjOptions:F}=A.dictStore.globalDicts||{},k=C(["\u9879\u76EE\u57FA\u672C\u4FE1\u606F","\u9879\u76EE\u7533\u62A5\u4FE1\u606F","\u9879\u76EE\u5173\u8054\u4FE1\u606F","\u6838\u5FC3\u4E1A\u52A1","\u9879\u76EE\u7ACB\u9879\u8BC4\u5BA1\u4FE1\u606F","\u9879\u76EE\u91C7\u8D2D\u3001\u8D44\u91D1\u652F\u4ED8\u4FE1\u606F","\u5B9E\u65BD\u6750\u6599\u4FE1\u606F"]),n=C("\u9879\u76EE\u57FA\u672C\u4FE1\u606F"),G=h=>{n.value=h},S=J(),a=C(),M=async()=>{var v,y,D,N,x,$,V,s,d,p,c;const h=S.query.type==="1"?S.query.id:S.query.draftId,r=await ta(S.query.type,h);a.value={...r.data,apply:{...r.data.apply,baseHistorProjs:((y=(v=r.data.apply)==null?void 0:v.baseHistorProjId)==null?void 0:y.split("\uFF1B").map((i,f)=>{var m,e;return{baseProjId:i,baseProjName:(m=r.data.apply)==null?void 0:m.baseHistorProjName.split("\uFF1B")[f],baseProjSetYear:(e=r.data.apply)==null?void 0:e.baseHistorProjYear.split("\uFF1B")[f]}}))||[]}},(($=(x=(N=(D=a.value)==null?void 0:D.baseinfo)==null?void 0:N.baseConstructionType)==null?void 0:x.split("\uFF1B"))==null?void 0:$.length)===1&&((d=(s=(V=a.value)==null?void 0:V.baseinfo)==null?void 0:s.baseConstructionType)==null?void 0:d.split("\uFF1B").includes("02"))&&(k.value=k.value.filter(i=>i!=="\u9879\u76EE\u5173\u8054\u4FE1\u606F")),((c=(p=a.value)==null?void 0:p.baseinfo)==null?void 0:c.baseProjSetProg)==="01"&&(k.value=k.value.filter(i=>i!=="\u9879\u76EE\u7ACB\u9879\u8BC4\u5BA1\u4FE1\u606F"))},g=C([]),L=C(),U=async()=>{const h=await da();L.value=h.data};return K(async()=>{U(),g.value=(await ea()).data,M()}),(h,r)=>{const v=j("el-form-item"),y=j("el-col"),D=j("el-row"),N=j("el-form"),x=j("el-card"),$=j("el-tab-pane"),V=j("el-tabs");return u(),R("div",ua,[o(x,{shadow:"never",class:"mb-16"},{default:l(()=>{var s,d,p,c,i,f,m;return[_("div",pa,[_("div",ca,[_("div",fa,[_("p",ma,T((d=(s=a.value)==null?void 0:s.baseinfo)==null?void 0:d.baseProjName),1),_("div",_a,[o(N,{"label-suffix":":"},{default:l(()=>[o(D,{gutter:24},{default:l(()=>[o(y,{span:6},{default:l(()=>[o(v,{label:"\u5EFA\u8BBE\u5355\u4F4D"},{default:l(()=>{var e,t;return[B(T(((t=(e=a.value)==null?void 0:e.baseinfo)==null?void 0:t.baseBuildDeprt)||"-"),1)]}),_:1})]),_:1}),o(y,{span:6},{default:l(()=>[o(v,{label:"\u4E3B\u7BA1\u5355\u4F4D"},{default:l(()=>{var e,t;return[B(T(((t=(e=a.value)==null?void 0:e.baseinfo)==null?void 0:t.baseManDeprt)||"-"),1)]}),_:1})]),_:1}),o(y,{span:6},{default:l(()=>[o(v,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:l(()=>{var e,t;return[B(T(((t=(e=a.value)==null?void 0:e.baseinfo)==null?void 0:t.createOn)||"-"),1)]}),_:1})]),_:1}),o(y,{span:6},{default:l(()=>[o(v,{label:"\u66F4\u65B0\u65F6\u95F4"},{default:l(()=>{var e,t;return[B(T(((t=(e=a.value)==null?void 0:e.baseinfo)==null?void 0:t.updateOn)||"-"),1)]}),_:1})]),_:1})]),_:1})]),_:1})])]),_("div",ba,[_("span",{class:Q(`text-${(i=W(F)[(c=(p=a.value)==null?void 0:p.baseinfo)==null?void 0:c.baseProjSetProg.slice(-1)])==null?void 0:i.color}`)},T(((m=(f=g.value)==null?void 0:f.filter(e=>e.type==="PROJECT_STATUS").find(e=>{var t,w;return e.value===((w=(t=a.value)==null?void 0:t.baseinfo)==null?void 0:w.baseProjSetProg)}))==null?void 0:m.label)||"-"),3),r[1]||(r[1]=_("p",null,"\u72B6\u6001",-1))])])])]}),_:1}),o(x,{shadow:"never",class:"tab-card"},{header:l(()=>[o(V,{modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=s=>n.value=s),onTabChange:G},{default:l(()=>[(u(!0),R(X,null,Z(k.value,(s,d)=>(u(),b($,{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,w,H,O,q,Y,E,I;return[n.value==="\u9879\u76EE\u57FA\u672C\u4FE1\u606F"?(u(),b(aa,{key:0,"detail-data":(s=a.value)==null?void 0:s.baseinfo,"dictionary-list":g.value,"template-type-list-data":L.value},null,8,["detail-data","dictionary-list","template-type-list-data"])):P("",!0),n.value==="\u9879\u76EE\u7533\u62A5\u4FE1\u606F"?(u(),b(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"])):P("",!0),n.value==="\u9879\u76EE\u5173\u8054\u4FE1\u606F"?(u(),b(sa,{key:2,"detail-data":(c=a.value)==null?void 0:c.apply},null,8,["detail-data"])):P("",!0),n.value==="\u6838\u5FC3\u4E1A\u52A1"?(u(),b(oa,{key:3,"detail-data":(i=a.value)==null?void 0:i.apply},null,8,["detail-data"])):P("",!0),n.value==="\u9879\u76EE\u7ACB\u9879\u8BC4\u5BA1\u4FE1\u606F"?(u(),b(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"])):P("",!0),n.value==="\u9879\u76EE\u91C7\u8D2D\u3001\u8D44\u91D1\u652F\u4ED8\u4FE1\u606F"?(u(),b(ra,{key:5,"basic-info-data":(e=a.value)==null?void 0:e.baseinfo,"base-proj-set-year":(w=(t=a.value)==null?void 0:t.apply)==null?void 0:w.baseProjSetYear,"dictionary-list":g.value,"detail-data":(H=a.value)==null?void 0:H.procures},null,8,["basic-info-data","base-proj-set-year","dictionary-list","detail-data"])):P("",!0),n.value==="\u5B9E\u65BD\u6750\u6599\u4FE1\u606F"?(u(),b(na,{key:6,"detail-data":(O=a.value)==null?void 0:O.mimplement,"basic-info-data":(q=a.value)==null?void 0:q.baseinfo,"base-proj-set-year":(E=(Y=a.value)==null?void 0:Y.apply)==null?void 0:E.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"])):P("",!0)]}),_:1})])}}});export{Ba as default};
|