You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
6.3KB

  1. import{d as U,D as A,r as S,z as G,o as K,c as h,e as d,f as R,h as o,i as l,g as v,t as k,j as B,n as Q,u as W,F as X,J as Z,I as b,k as P}from"./index.50a8620e.js";import aa from"./basicInfo.f2bf78b0.js";import{d as ea,a as ta}from"./projectCollectionEnter.bc3a6750.js";import la from"./applyInfo.367db76a.js";import sa from"./applicationInfo.f1edc0e5.js";import oa from"./coreBusiness.6408c347.js";import ia from"./projectApprovalInfo.4edd81db.js";import na from"./empMaterials.0b367403.js";import ra from"./purchaseInfo.a2b31f17.js";import{t as da}from"./indicatorTemplate.fe505829.js";import"./index.75f93dd3.js";import"./index.d688144c.js";import"./index.481762c8.js";const ua={class:"px-20 pb-20 overflow-auto"},ca={class:"card-header"},pa={class:"flex justify-between items-center"},fa={class:"flex-1"},_a={class:"font-bold"},ma={class:"mt-8 search"},ba={class:"textRight"},va=v("p",null,"\u72B6\u6001",-1),ya=U({name:"projectCollectionEnterDetail"}),La=Object.assign(ya,{setup(ja){const{statusGjOptions:z}=A.dictStore.globalDicts||{},w=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"),F=T=>{n.value=T},D=G(),a=S(),J=async()=>{var y,j,N,$,x,V,L,s,r,c,p;const T=D.query.type==="1"?D.query.id:D.query.draftId,u=await ta(D.query.type,T);a.value={...u.data,apply:{...u.data.apply,baseHistorProjs:((j=(y=u.data.apply)==null?void 0:y.baseHistorProjId)==null?void 0:j.split("\uFF1B").map((i,f)=>{var _,m;return{baseProjId:i,baseProjName:(_=u.data.apply)==null?void 0:_.baseHistorProjName.split("\uFF1B")[f],baseProjSetYear:(m=u.data.apply)==null?void 0:m.baseHistorProjYear.split("\uFF1B")[f]}}))||[]}},((V=(x=($=(N=a.value)==null?void 0:N.baseinfo)==null?void 0:$.baseConstructionType)==null?void 0:x.split("\uFF1B"))==null?void 0:V.length)===1&&((r=(s=(L=a.value)==null?void 0:L.baseinfo)==null?void 0:s.baseConstructionType)==null?void 0:r.split("\uFF1B").includes("02"))&&(w.value=w.value.filter(i=>i!=="\u9879\u76EE\u5173\u8054\u4FE1\u606F")),((p=(c=a.value)==null?void 0:c.baseinfo)==null?void 0:p.baseProjSetProg)==="01"&&(w.value=w.value.filter(i=>i!=="\u9879\u76EE\u7ACB\u9879\u8BC4\u5BA1\u4FE1\u606F"))},g=S([]),O=S(),M=async()=>{const T=await da();O.value=T.data};return K(async()=>{M(),g.value=(await ea()).data,J()}),(T,u)=>{const y=h("el-form-item"),j=h("el-col"),N=h("el-row"),$=h("el-form"),x=h("el-card"),V=h("el-tab-pane"),L=h("el-tabs");return d(),R("div",ua,[o(x,{shadow:"never",class:"mb-16"},{default:l(()=>{var s,r,c,p,i,f,_,m;return[v("div",ca,[v("div",pa,[v("div",fa,[v("p",_a,k((r=(s=a.value)==null?void 0:s.baseinfo)==null?void 0:r.baseProjName),1),v("div",ma,[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[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:"\u4E3B\u7BA1\u5355\u4F4D"},{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:"\u521B\u5EFA\u65F6\u95F4"},{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:"\u66F4\u65B0\u65F6\u95F4"},{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})])]),v("div",ba,[v("span",{class:Q(`text-${(f=W(z)[(i=(p=(c=a.value)==null?void 0:c.baseinfo)==null?void 0:p.baseProjSetProg)==null?void 0:i.slice(-1)])==null?void 0:f.color}`)},k(((m=(_=g.value)==null?void 0:_.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:m.label)||"-"),3),va])])])]}),_:1}),o(x,{shadow:"never",class:"tab-card"},{header:l(()=>[o(L,{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=s=>n.value=s),onTabChange:F},{default:l(()=>[(d(!0),R(X,null,Z(w.value,(s,r)=>(d(),b(V,{key:r,label:s,name:s},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])]),default:l(()=>{var s,r,c,p,i,f,_,m,e,t,C,q,H,I,Y,E;return[n.value==="\u9879\u76EE\u57FA\u672C\u4FE1\u606F"?(d(),b(aa,{key:0,"detail-data":(s=a.value)==null?void 0:s.baseinfo,"dictionary-list":g.value,"template-type-list-data":O.value},null,8,["detail-data","dictionary-list","template-type-list-data"])):P("",!0),n.value==="\u9879\u76EE\u7533\u62A5\u4FE1\u606F"?(d(),b(la,{key:1,"detail-data":(r=a.value)==null?void 0:r.apply,"dictionary-list":g.value,"basic-info-data":(c=a.value)==null?void 0:c.baseinfo},null,8,["detail-data","dictionary-list","basic-info-data"])):P("",!0),n.value==="\u9879\u76EE\u5173\u8054\u4FE1\u606F"?(d(),b(sa,{key:2,"detail-data":(p=a.value)==null?void 0:p.apply},null,8,["detail-data"])):P("",!0),n.value==="\u6838\u5FC3\u4E1A\u52A1"?(d(),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"?(d(),b(ia,{key:4,"detail-data":(f=a.value)==null?void 0:f.approve,"dictionary-list":g.value,"basic-info-data":(_=a.value)==null?void 0:_.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"?(d(),b(ra,{key:5,"basic-info-data":(m=a.value)==null?void 0:m.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"])):P("",!0),n.value==="\u5B9E\u65BD\u6750\u6599\u4FE1\u606F"?(d(),b(na,{key:6,"detail-data":(q=a.value)==null?void 0:q.cimplement,"basic-info-data":(H=a.value)==null?void 0:H.baseinfo,"base-proj-set-year":(Y=(I=a.value)==null?void 0:I.apply)==null?void 0:Y.baseProjSetYear,"approval-info-data":(E=a.value)==null?void 0:E.approve},null,8,["detail-data","basic-info-data","base-proj-set-year","approval-info-data"])):P("",!0)]}),_:1})])}}});export{La as default};