25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

2 satır
6.3KB

  1. import{d as U,D as A,r as C,z as G,o as K,c as j,e as d,f as R,h as o,i as l,g as b,t as T,j as L,n as Q,u as W,F as X,J as Z,I as m,k as h}from"./index.d340e473.js";import aa from"./basicInfo.5307c7d1.js";import{d as ea}from"./projectCollectionEnter.b0eea7b8.js";import{d as ta}from"./operationProjectRecord.ff6bf0bc.js";import la from"./applyInfo.4447007f.js";import sa from"./applicationInfo.c65d09c9.js";import oa from"./coreBusiness.be16f162.js";import ia from"./projectApprovalInfo.9fc33b9d.js";import na from"./empMaterials.c252edef.js";import ra from"./purchaseInfo.e80cd674.js";import{t as da}from"./indicatorTemplate.b913f726.js";import"./index.79d05d9e.js";import"./index.cf3ded3c.js";import"./index.b5cf0c78.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"},_a={class:"font-bold"},ma={class:"mt-8 search"},ba={class:"textRight"},va=b("p",null,"\u72B6\u6001",-1),ya=U({name:"projectCollectionEnterDetail"}),Ba=Object.assign(ya,{setup(ja){const{statusGjOptions:z}=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"),F=g=>{n.value=g},S=G(),a=C(),J=async()=>{var v,y,D,N,w,$,V,s,r,p,c;const g=S.query.type==="1"?S.query.id:S.query.draftId,u=await ta(S.query.type,g);a.value={...u.data,apply:{...u.data.apply,baseHistorProjs:((y=(v=u.data.apply)==null?void 0:v.baseHistorProjId)==null?void 0:y.split("\uFF1B").map((i,f)=>{var _,e;return{baseProjId:i,baseProjName:(_=u.data.apply)==null?void 0:_.baseHistorProjName.split("\uFF1B")[f],baseProjSetYear:(e=u.data.apply)==null?void 0:e.baseHistorProjYear.split("\uFF1B")[f]}}))||[]}},(($=(w=(N=(D=a.value)==null?void 0:D.baseinfo)==null?void 0:N.baseConstructionType)==null?void 0:w.split("\uFF1B"))==null?void 0:$.length)===1&&((r=(s=(V=a.value)==null?void 0:V.baseinfo)==null?void 0:s.baseConstructionType)==null?void 0:r.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"))},P=C([]),B=C(),M=async()=>{const g=await da();B.value=g.data};return K(async()=>{M(),P.value=(await ea()).data,J()}),(g,u)=>{const v=j("el-form-item"),y=j("el-col"),D=j("el-row"),N=j("el-form"),w=j("el-card"),$=j("el-tab-pane"),V=j("el-tabs");return d(),R("div",ua,[o(w,{shadow:"never",class:"mb-16"},{default:l(()=>{var s,r,p,c,i,f,_;return[b("div",pa,[b("div",ca,[b("div",fa,[b("p",_a,T((r=(s=a.value)==null?void 0:s.baseinfo)==null?void 0:r.baseProjName),1),b("div",ma,[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[L(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[L(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[L(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[L(T(((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-${(i=W(z)[(c=(p=a.value)==null?void 0:p.baseinfo)==null?void 0:c.baseProjSetProg.slice(-1)])==null?void 0:i.color}`)},T(((_=(f=P.value)==null?void 0:f.filter(e=>e.type==="PROJECT_STATUS").find(e=>{var t,x;return e.value===((x=(t=a.value)==null?void 0:t.baseinfo)==null?void 0:x.baseProjSetProg)}))==null?void 0:_.label)||"-"),3),va])])])]}),_:1}),o(w,{shadow:"never",class:"tab-card"},{header:l(()=>[o(V,{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=s=>n.value=s),onTabChange:F},{default:l(()=>[(d(!0),R(X,null,Z(k.value,(s,r)=>(d(),m($,{key:r,label:s,name:s},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])]),default:l(()=>{var s,r,p,c,i,f,_,e,t,x,O,q,H,I,Y,E;return[n.value==="\u9879\u76EE\u57FA\u672C\u4FE1\u606F"?(d(),m(aa,{key:0,"detail-data":(s=a.value)==null?void 0:s.baseinfo,"dictionary-list":P.value,"template-type-list-data":B.value},null,8,["detail-data","dictionary-list","template-type-list-data"])):h("",!0),n.value==="\u9879\u76EE\u7533\u62A5\u4FE1\u606F"?(d(),m(la,{key:1,"detail-data":(r=a.value)==null?void 0:r.apply,"dictionary-list":P.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==="\u9879\u76EE\u5173\u8054\u4FE1\u606F"?(d(),m(sa,{key:2,"detail-data":(c=a.value)==null?void 0:c.apply},null,8,["detail-data"])):h("",!0),n.value==="\u6838\u5FC3\u4E1A\u52A1"?(d(),m(oa,{key:3,"detail-data":(i=a.value)==null?void 0:i.apply},null,8,["detail-data"])):h("",!0),n.value==="\u9879\u76EE\u7ACB\u9879\u8BC4\u5BA1\u4FE1\u606F"?(d(),m(ia,{key:4,"detail-data":(f=a.value)==null?void 0:f.approve,"dictionary-list":P.value,"basic-info-data":(_=a.value)==null?void 0:_.baseinfo},null,8,["detail-data","dictionary-list","basic-info-data"])):h("",!0),n.value==="\u9879\u76EE\u91C7\u8D2D\u3001\u8D44\u91D1\u652F\u4ED8\u4FE1\u606F"?(d(),m(ra,{key:5,"basic-info-data":(e=a.value)==null?void 0:e.baseinfo,"base-proj-set-year":(x=(t=a.value)==null?void 0:t.apply)==null?void 0:x.baseProjSetYear,"dictionary-list":P.value,"detail-data":(O=a.value)==null?void 0:O.procures},null,8,["basic-info-data","base-proj-set-year","dictionary-list","detail-data"])):h("",!0),n.value==="\u5B9E\u65BD\u6750\u6599\u4FE1\u606F"?(d(),m(na,{key:6,"detail-data":(q=a.value)==null?void 0:q.mimplement,"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"])):h("",!0)]}),_:1})])}}});export{Ba as default};