|
- import{h as U,p as z}from"./projectStore-30136ff6.js";import{x as G,r,o as K,b as u,a3 as Q,c as i,d as D,f as o,h as a,e as p,t as _,i as m,w as W,L as y,F as P,H as X,j as Y,k as Z,C as B}from"./index-dd5fae99.js";import ee from"./projectInfo-6f74458d.js";import{N as ae}from"./index-be0b3801.js";import te from"./flowRecord-8475b670.js";import"./basicInfo-488e3f63.js";import"./index-33a0e6e3.js";import"./indicatorTemplate-ca1642c9.js";import"./fundsInfo-0025a720.js";import"./investmentInfo-99515460.js";import"./engineeringInfo-7968d3c7.js";import"./safeInfo-bfc18b84.js";import"./businessInfo-60a6ce72.js";import"./yearPayPlanInfo-0f01ce30.js";import"./filesInfo-65b81a59.js";import"./remarkInfo-2ef1c52e.js";import"./applications-6819ef49.js";import"./customModule-ed9bfcef.js";import"./provincialInfo-d875a4e9.js";import"./index-b6aa4cff.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=Z({name:"projectHistory"}),Se=Object.assign(ie,{setup(ce){const j=G(),w=r(),x=r("1"),E=async s=>{var e,n,l,t;x.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,N((l=d.value)==null?void 0:l[0]),await B(),(t=w.value)==null||t.getTabs()},N=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),H=async()=>{var e,n;const s=await U(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+"",N((e=d.value)==null?void 0:e.find(l=>l.version===b.value*1)),await B(),(n=w.value)==null||n.getTabs()},M=async()=>{const s=await z(j.query.id);c.value=s.data},V=r(null),T=r(),R=s=>{var e;N((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 K(()=>{H(),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"),J=u("el-menu-item"),$=u("el-menu"),A=Q("loading");return i(),D(P,null,[o(k,{shadow:"never",class:"mb-16"},{default:a(()=>[p("div",oe,[p("div",se,[p("div",ne,[p("p",le,_(c.value.projectName),1),p("div",re,[o(f,{"label-suffix":":"},{default:a(()=>[o(t,{gutter:24},{default:a(()=>[o(l,{span:6},{default:a(()=>[o(n,{label:"申报单位"},{default:a(()=>[m(_(c.value.buildOrgName||"-"),1)]),_:1})]),_:1}),o(l,{span:6},{default:a(()=>[o(n,{label:"主管单位"},{default:a(()=>[m(_(c.value.superOrg||"-"),1)]),_:1})]),_:1}),o(l,{span:6},{default:a(()=>[o(n,{label:"创建时间"},{default:a(()=>[m(_(c.value.createOn||"-"),1)]),_:1})]),_:1}),o(l,{span:6},{default:a(()=>[o(n,{label:"更新时间"},{default:a(()=>[m(_(c.value.updateOn||"-"),1)]),_:1})]),_:1})]),_:1})]),_:1})])])])])]),_:1}),W((i(),y(k,{shadow:"never",class:"mb-16 tab-card"},{header:a(()=>[o(F,{modelValue:x.value,"onUpdate:modelValue":e[0]||(e[0]=h=>x.value=h),onTabChange:E},{default:a(()=>[o(S,{label:"申报信息",name:"1"}),o(S,{label:"建设方案",name:"2"})]),_:1},8,["modelValue"])]),default:a(()=>{var h,L;return[(h=d.value)!=null&&h.length?(i(),D("div",de,[o($,{"default-active":b.value,onSelect:R},{default:a(()=>[(i(!0),D(P,null,X(d.value,(v,I)=>(i(),y(J,{key:I,index:v.version+""},{title:a(()=>[m(_(v.versionStr),1)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active"]),p("div",ue,[(L=d.value)!=null&&L.length&&V.value?(i(),y(ee,{key:0,ref_key:"projectInfoRef",ref:w,"detail-data":V.value},null,8,["detail-data"])):Y("",!0),o(k,{shadow:"never",class:"mt-8"},{header:a(()=>e[1]||(e[1]=[m(" 审核记录 ")])),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})),[[A,O.value]])],64)}}});export{Se as default};
|