import{_ as U,B as K,x as Q,r as I,b as W,o as X,c as P,e as D,f as O,h as o,i as r,g as p,t as v,j as x,n as H,u as g,G as B,k as z,F as Z}from"./index.766d5891.js";import ee from"./projectProgress.a82bcdbd.js";import E from"./projectInfo.1720ec48.js";import ae from"./summarizeInfo.88e3cfbf.js";import te from"./flowRecordDialog.4ff791f0.js";import{p as se,f as oe,g as le}from"./projectStore.e073f402.js";import{d as re}from"./projectCollectionEnter.916e815c.js";import"./sjFlowRecord.ac04b592.js";import"./basicInfo.397ab544.js";import"./index.6196eb35.js";import"./indicatorTemplate.e4435207.js";import"./fundsInfo.91c89358.js";import"./investmentInfo.b0230f64.js";import"./engineeringInfo.ecc5fa5c.js";import"./safeInfo.5a1c7476.js";import"./businessInfo.32611140.js";import"./yearPayPlanInfo.1dd06f2a.js";import"./filesInfo.eb634d3a.js";import"./remarkInfo.c5dca423.js";import"./applications.c60dbef6.js";import"./customModule.ddb02c4f.js";import"./provincialInfo.58bcf9ac.js";import"./index.81a22214.js";import"./approvalInfo.c5f81d80.js";import"./expertReviewInfo.34bfb7e1.js";import"./memberOpinion.8e1fb9ee.js";import"./index.332dd1d2.js";import"./biddingRegistration.2dc48b41.js";import"./contractInfo.d1466689.js";import"./initialInfo.1ab971ee.js";import"./finalInfo.afb375e6.js";import"./index.f55de596.js";import"./trialRunInfo.5b175f20.js";import"./implementationPlan.0a45039a.js";import"./reviewCheckList.ae842923.js";import"./getIsShowReviewCheck.b6e96e1a.js";import"./flowRecord.aea5adc8.js";const ie={class:"card-header"},ne={class:"flex justify-between items-center"},de={class:"flex-1"},ue={class:"font-bold"},pe={class:"mt-8 search"},me={class:"textRight"},ce={key:0},fe={key:1},ve={__name:"index",setup(_e){const{statusOptions:_}=K.dictStore.globalDicts||{},N=Q(),y=I("1"),L=t=>{y.value=t,t==="1"?C.value.getTabs():t==="2"&&S.value.getTabs()},C=I(),e=I({projectCode:""}),M=async()=>{var l,c,n,s,b,h;const t=await se(N.query.id);if(t.data.prePlanProjectId){const f=await oe(t.data.prePlanProjectId);e.value={...f.data,baseHistorProjs:((c=(l=f.data)==null?void 0:l.baseHistorProjId)==null?void 0:c.split("\uFF1B").map((j,i)=>{var d,w;return{baseProjId:j,baseProjName:(d=f.data)==null?void 0:d.baseHistorProjName.split("\uFF1B")[i],baseProjSetYear:(w=f.data)==null?void 0:w.baseHistorProjYear.split("\uFF1B")[i]}}))||[]},a.value={...t.data,baseHistorProjs:((s=(n=t.data)==null?void 0:n.baseHistorProjId)==null?void 0:s.split("\uFF1B").map((j,i)=>{var d,w;return{baseProjId:j,baseProjName:(d=t.data)==null?void 0:d.baseHistorProjName.split("\uFF1B")[i],baseProjSetYear:(w=t.data)==null?void 0:w.baseHistorProjYear.split("\uFF1B")[i]}}))||[]}}else e.value={...t.data,baseHistorProjs:((h=(b=t.data)==null?void 0:b.baseHistorProjId)==null?void 0:h.split("\uFF1B").map((f,j)=>{var i,d;return{baseProjId:f,baseProjName:(i=t.data)==null?void 0:i.baseHistorProjName.split("\uFF1B")[j],baseProjSetYear:(d=t.data)==null?void 0:d.baseHistorProjYear.split("\uFF1B")[j]}}))||[]},a.value=null;N.name==="projectIrsDocDetail"?(y.value="3",k.value.setActiveName("\u7EC8\u9A8C\u4FE1\u606F")):N.name==="reviewCheckProjectListProjectDetail"&&(y.value="3",k.value.setActiveName("\u5EFA\u8BBE\u65B9\u6848\u5BA1\u67E5\u610F\u89C1"))},S=I(),a=I(),m=W({visible:!1,flowData:void 0,sjFlowData:void 0}),q=(t,l)=>{m.visible=!0,t?(m.flowData=JSON.parse(JSON.stringify(t)),m.flowData=A(m.flowData)):m.flowData=void 0,m.sjFlowData=l||void 0},A=t=>(t.forEach(l=>{if(l.children){const c=[],n=[];l.children.forEach(s=>{c.includes(s.nodeId)?(n.find(b=>b.nodeId===s.nodeId).list.push(s),n.find(b=>b.nodeId===s.nodeId).userIds.push(s.userId)):(c.push(s.nodeId),n.push({nodeId:s.nodeId,approvalMode:s.approvalMode,name:s.name,taskId:s.taskId,nodeType:s.nodeType,list:[{...s}],userIds:[s.userId]}))}),l.children=n}else l.userIds=[l.userId]}),t),J=()=>{m.visible=!1},F=I(),G=async()=>{const t=await le(N.query.id);F.value=t.data},T=()=>!0,R=I([]),k=I();return X(async()=>{R.value=(await re()).data,await M(),await G()}),(t,l)=>{const c=P("el-form-item"),n=P("el-col"),s=P("el-row"),b=P("el-form"),h=P("el-card"),f=P("el-tab-pane"),j=P("el-tabs");return D(),O(Z,null,[o(h,{shadow:"never",class:"mb-16"},{default:r(()=>{var i,d,w,$,V,Y;return[p("div",ie,[p("div",ne,[p("div",de,[p("p",ue,v(((i=a.value)==null?void 0:i.projectName)||e.value.projectName),1),p("div",pe,[o(b,{"label-suffix":":"},{default:r(()=>[o(s,{gutter:24},{default:r(()=>[o(n,{span:6},{default:r(()=>[o(c,{label:"\u7533\u62A5\u5355\u4F4D"},{default:r(()=>{var u;return[x(v(((u=a.value)==null?void 0:u.buildOrgName)||e.value.buildOrgName||"-"),1)]}),_:1})]),_:1}),o(n,{span:6},{default:r(()=>[o(c,{label:"\u4E3B\u7BA1\u5355\u4F4D"},{default:r(()=>{var u;return[x(v(((u=a.value)==null?void 0:u.superOrg)||e.value.superOrg||"-"),1)]}),_:1})]),_:1}),o(n,{span:6},{default:r(()=>[o(c,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:r(()=>{var u;return[x(v(((u=a.value)==null?void 0:u.createOn)||e.value.createOn||"-"),1)]}),_:1})]),_:1}),o(n,{span:6},{default:r(()=>[o(c,{label:"\u66F4\u65B0\u65F6\u95F4"},{default:r(()=>{var u;return[x(v(((u=a.value)==null?void 0:u.updateOn)||e.value.updateOn||"-"),1)]}),_:1})]),_:1})]),_:1})]),_:1})])]),p("div",me,[(d=a.value)!=null&&d.status?(D(),O("p",ce,[p("span",{class:H(`dot mr-4 bg-${a.value&&a.value.status&&((w=g(_)[a.value.status])==null?void 0:w.color)}`)},null,2),p("span",{class:H(`font-semibold text-${a.value&&a.value.status&&(($=g(_)[a.value.status])==null?void 0:$.color)}`)},v(a.value&&a.value.status&&g(_)[a.value.stage].name)+"-"+v(a.value&&a.value.status&&g(_)[a.value.status].name),3)])):(D(),O("p",fe,[p("span",{class:H(`dot mr-4 bg-${e.value&&e.value.status&&((V=g(_)[e.value.status])==null?void 0:V.color)}`)},null,2),p("span",{class:H(`font-semibold text-${e.value&&e.value.status&&((Y=g(_)[e.value.status])==null?void 0:Y.color)}`)},v(e.value&&e.value.status&&g(_)[e.value.stage].name)+"-"+v(e.value&&e.value.status&&g(_)[e.value.status].name),3)])),l[1]||(l[1]=p("p",null,"\u72B6\u6001",-1))])])])]}),_:1}),o(ee,{"detail-data":e.value,"step-data":F.value,shadow:"never",onShowFlowRecordDialog:q},null,8,["detail-data","step-data"]),o(j,{modelValue:y.value,"onUpdate:modelValue":l[0]||(l[0]=i=>y.value=i),type:"card",class:"myCardTab mt-16",onTabChange:L},{default:r(()=>[o(f,{label:"\u521D\u6B65\u65B9\u6848",name:"1"},{default:r(()=>[o(E,{ref_key:"projectInfoRef",ref:C,"detail-data":e.value,"is-down-load-file":T(),"dictionary-list":R.value},null,8,["detail-data","is-down-load-file","dictionary-list"])]),_:1}),a.value?(D(),B(f,{key:0,label:"\u5EFA\u8BBE\u65B9\u6848",name:"2"},{default:r(()=>[o(E,{ref_key:"constructInfoRef",ref:S,"detail-data":a.value,"is-down-load-file":T(),"dictionary-list":R.value},null,8,["detail-data","is-down-load-file","dictionary-list"])]),_:1})):z("",!0),o(f,{label:"\u5F52\u96C6\u4FE1\u606F",name:"3"},{default:r(()=>[e.value?(D(),B(ae,{key:0,ref_key:"summarizeInfoRef",ref:k,"detail-data":a.value||e.value},null,8,["detail-data"])):z("",!0)]),_:1})]),_:1},8,["modelValue"]),o(te,{detail:e.value,visible:m.visible,"flow-data":m.flowData,"sj-flow-data":m.sjFlowData,onClose:J},null,8,["detail","visible","flow-data","sj-flow-data"])],64)}}},ea=U(ve,[["__scopeId","data-v-6f6efa99"]]);export{ea as default};