Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

index.69afdd8c.js 4.3KB

před 2 měsíci
1
  1. import{h as A,p as U}from"./projectStore.94f188d8.js";import{d as G,z as K,r,o as Q,c as u,a4 as W,e as i,f as D,h as o,i as a,g as _,t as p,j as m,w as X,I as y,F as B,J as Y,k as Z,N as L}from"./index.121be81f.js";import ee from"./projectInfo.cbd32da3.js";import{N as ae}from"./index.3de4dfbb.js";import te from"./flowRecord.6f96f817.js";import"./basicInfo.dbd04ceb.js";import"./index.3b212700.js";import"./indicatorTemplate.80c727a2.js";import"./fundsInfo.c062709f.js";import"./investmentInfo.f3be594b.js";import"./engineeringInfo.45d1781f.js";import"./safeInfo.a46e3d6a.js";import"./businessInfo.256d99c3.js";import"./yearPayPlanInfo.8839e0bf.js";import"./filesInfo.7949eaa8.js";import"./remarkInfo.a18a79c3.js";import"./applications.f32150d1.js";import"./customModule.84f6f99a.js";import"./provincialInfo.cd37735f.js";import"./index.c4a348b4.js";const oe={class:"card-header"},se={class:"flex justify-between items-center"},ne={class:"flex-1"},le={class:"font-bold"},re={class:"mt-8 search"},de={key:0,class:"flex"},ue={style:{width:"80%"}},ie=G({name:"projectHistory"}),Se=Object.assign(ie,{setup(ce){const j=K(),w=r(),N=r("1"),E=async s=>{var e,n,l,t;N.value=s,d.value=s==="1"?g.value:C.value,b.value=((n=(e=d.value)==null?void 0:e[0])==null?void 0:n.version)+""||void 0,x((l=d.value)==null?void 0:l[0]),await L(),(t=w.value)==null||t.getTabs()},x=s=>{V.value=s;const e=JSON.parse(JSON.stringify(s.process));T.value={processProgressVo:{...e.processProgressVo,progressInfo:q(e.processProgressVo.progressInfo)}}},c=r({}),d=r([]),g=r([]),C=r([]),b=r(),O=r(!0),J=async()=>{var e,n;const s=await A(j.query.id);O.value=!1,g.value=s.data.basic,C.value=s.data.construct,d.value=g.value,b.value=g.value[0].version+"",x((e=d.value)==null?void 0:e.find(l=>l.version===b.value*1)),await L(),(n=w.value)==null||n.getTabs()},M=async()=>{const s=await U(j.query.id);c.value=s.data},V=r(null),T=r(),R=s=>{var e;x((e=d.value)==null?void 0:e.find(n=>n.version+""===s))},q=s=>(s.forEach(e=>{if(e.children){const n=[],l=[];e.children.forEach(t=>{n.includes(t.nodeId)?(l.find(f=>f.nodeId===t.nodeId).list.push(t),l.find(f=>f.nodeId===t.nodeId).userIds.push(t.userId)):(n.push(t.nodeId),l.push({nodeId:t.nodeId,approvalMode:t.approvalMode,name:t.name,nodeType:t.nodeType,list:[{...t}],userIds:[t.userId]}))}),e.children=l}else e.userIds=[e.userId]}),s);return Q(()=>{J(),M()}),(s,e)=>{const n=u("el-form-item"),l=u("el-col"),t=u("el-row"),f=u("el-form"),k=u("el-card"),S=u("el-tab-pane"),F=u("el-tabs"),H=u("el-menu-item"),$=u("el-menu"),z=W("loading");return i(),D(B,null,[o(k,{shadow:"never",class:"mb-16"},{default:a(()=>[_("div",oe,[_("div",se,[_("div",ne,[_("p",le,p(c.value.projectName),1),_("div",re,[o(f,{"label-suffix":":"},{default:a(()=>[o(t,{gutter:24},{default:a(()=>[o(l,{span:6},{default:a(()=>[o(n,{label:"\u7533\u62A5\u5355\u4F4D"},{default:a(()=>[m(p(c.value.buildOrgName||"-"),1)]),_:1})]),_:1}),o(l,{span:6},{default:a(()=>[o(n,{label:"\u4E3B\u7BA1\u5355\u4F4D"},{default:a(()=>[m(p(c.value.superOrg||"-"),1)]),_:1})]),_:1}),o(l,{span:6},{default:a(()=>[o(n,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:a(()=>[m(p(c.value.createOn||"-"),1)]),_:1})]),_:1}),o(l,{span:6},{default:a(()=>[o(n,{label:"\u66F4\u65B0\u65F6\u95F4"},{default:a(()=>[m(p(c.value.updateOn||"-"),1)]),_:1})]),_:1})]),_:1})]),_:1})])])])])]),_:1}),X((i(),y(k,{shadow:"never",class:"mb-16 tab-card"},{header:a(()=>[o(F,{modelValue:N.value,"onUpdate:modelValue":e[0]||(e[0]=h=>N.value=h),onTabChange:E},{default:a(()=>[o(S,{label:"\u7533\u62A5\u4FE1\u606F",name:"1"}),o(S,{label:"\u5EFA\u8BBE\u65B9\u6848",name:"2"})]),_:1},8,["modelValue"])]),default:a(()=>{var h,P;return[(h=d.value)!=null&&h.length?(i(),D("div",de,[o($,{"default-active":b.value,onSelect:R},{default:a(()=>[(i(!0),D(B,null,Y(d.value,(v,I)=>(i(),y(H,{key:I,index:v.version+""},{title:a(()=>[m(p(v.versionStr),1)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),_("div",ue,[((P=d.value)==null?void 0:P.length)&&V.value?(i(),y(ee,{key:0,ref_key:"projectInfoRef",ref:w,"detail-data":V.value},null,8,["detail-data"])):Z("",!0),o(k,{shadow:"never",class:"mt-8"},{header:a(()=>[m(" \u5BA1\u6838\u8BB0\u5F55 ")]),default:a(()=>{var v,I;return[o(te,{"flow-data":((I=(v=T.value)==null?void 0:v.processProgressVo)==null?void 0:I.progressInfo)||[]},null,8,["flow-data"])]}),_:1})])])):(i(),y(ae,{key:1}))]}),_:1})),[[z,O.value]])],64)}}});export{Se as default};