import{d as z,B as A,r as S,x as J,o as K,c as P,e as u,f as R,h as o,i as l,g as b,t as k,j as L,n as Q,u as W,F as X,H as Z,G as v,k as g}from"./index.766d5891.js";import aa from"./basicInfo.f2ee569b.js";import{d as ea,a as ta}from"./projectCollectionEnter.916e815c.js";import la from"./applyInfo.93829d2c.js";import sa from"./applicationInfo.976bc857.js";import oa from"./coreBusiness.b9e14ae6.js";import ia from"./projectApprovalInfo.67c75b28.js";import na from"./empMaterials.b97079b7.js";import ra from"./purchaseInfo.364ff838.js";import{t as da}from"./indicatorTemplate.e4435207.js";import"./index.6196eb35.js";import"./index.81a22214.js";import"./index.332dd1d2.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"}),Va=Object.assign(va,{setup(ya){const{statusGjOptions:F}=A.dictStore.globalDicts||{},x=S(["\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=S("\u9879\u76EE\u57FA\u672C\u4FE1\u606F"),G=T=>{n.value=T},D=J(),a=S(),M=async()=>{var y,j,N,$,w,V,B,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("\uFF1B").map((i,f)=>{var m,_;return{baseProjId:i,baseProjName:(m=r.data.apply)==null?void 0:m.baseHistorProjName.split("\uFF1B")[f],baseProjSetYear:(_=r.data.apply)==null?void 0:_.baseHistorProjYear.split("\uFF1B")[f]}}))||[]}},((V=(w=($=(N=a.value)==null?void 0:N.baseinfo)==null?void 0:$.baseConstructionType)==null?void 0:w.split("\uFF1B"))==null?void 0:V.length)===1&&((d=(s=(B=a.value)==null?void 0:B.baseinfo)==null?void 0:s.baseConstructionType)==null?void 0:d.split("\uFF1B").includes("02"))&&(x.value=x.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"&&(x.value=x.value.filter(i=>i!=="\u9879\u76EE\u7ACB\u9879\u8BC4\u5BA1\u4FE1\u606F"))},h=S([]),H=S(),U=async()=>{const T=await da();H.value=T.data};return K(async()=>{U(),h.value=(await ea()).data,M()}),(T,r)=>{const y=P("el-form-item"),j=P("el-col"),N=P("el-row"),$=P("el-form"),w=P("el-card"),V=P("el-tab-pane"),B=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:"\u5EFA\u8BBE\u5355\u4F4D"},{default:l(()=>{var e,t;return[L(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:"\u4E3B\u7BA1\u5355\u4F4D"},{default:l(()=>{var e,t;return[L(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:"\u521B\u5EFA\u65F6\u95F4"},{default:l(()=>{var e,t;return[L(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:"\u66F4\u65B0\u65F6\u95F4"},{default:l(()=>{var e,t;return[L(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:Q(`text-${(f=W(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=h.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,"\u72B6\u6001",-1))])])])]}),_:1}),o(w,{shadow:"never",class:"tab-card"},{header:l(()=>[o(B,{modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=s=>n.value=s),onTabChange:G},{default:l(()=>[(u(!0),R(X,null,Z(x.value,(s,d)=>(u(),v(V,{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,Y,E,I;return[n.value==="\u9879\u76EE\u57FA\u672C\u4FE1\u606F"?(u(),v(aa,{key:0,"detail-data":(s=a.value)==null?void 0:s.baseinfo,"dictionary-list":h.value,"template-type-list-data":H.value},null,8,["detail-data","dictionary-list","template-type-list-data"])):g("",!0),n.value==="\u9879\u76EE\u7533\u62A5\u4FE1\u606F"?(u(),v(la,{key:1,"detail-data":(d=a.value)==null?void 0:d.apply,"dictionary-list":h.value,"basic-info-data":(p=a.value)==null?void 0:p.baseinfo},null,8,["detail-data","dictionary-list","basic-info-data"])):g("",!0),n.value==="\u9879\u76EE\u5173\u8054\u4FE1\u606F"?(u(),v(sa,{key:2,"detail-data":(c=a.value)==null?void 0:c.apply},null,8,["detail-data"])):g("",!0),n.value==="\u6838\u5FC3\u4E1A\u52A1"?(u(),v(oa,{key:3,"detail-data":(i=a.value)==null?void 0:i.apply},null,8,["detail-data"])):g("",!0),n.value==="\u9879\u76EE\u7ACB\u9879\u8BC4\u5BA1\u4FE1\u606F"?(u(),v(ia,{key:4,"detail-data":(f=a.value)==null?void 0:f.approve,"dictionary-list":h.value,"basic-info-data":(m=a.value)==null?void 0:m.baseinfo},null,8,["detail-data","dictionary-list","basic-info-data"])):g("",!0),n.value==="\u9879\u76EE\u91C7\u8D2D\u3001\u8D44\u91D1\u652F\u4ED8\u4FE1\u606F"?(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":h.value,"detail-data":(C=a.value)==null?void 0:C.procures},null,8,["basic-info-data","base-proj-set-year","dictionary-list","detail-data"])):g("",!0),n.value==="\u5B9E\u65BD\u6750\u6599\u4FE1\u606F"?(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":(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"])):g("",!0)]}),_:1})])}}});export{Va as default};