|
- import{_ as K,D as Q,z as W,r as I,b as X,o as Z,c as P,e as y,f as O,h as o,i as l,g as p,t as _,j as S,n as H,u as g,I as B,k as q,F as ee,q as ae,s as te}from"./index.b4f1c826.js";import se from"./projectProgress.22e9a03e.js";import E from"./projectInfo.30aece0d.js";import oe from"./summarizeInfo.823cc165.js";import le from"./flowRecordDialog.2aa7bf53.js";import{p as re,f as ie,g as ne}from"./projectStore.fc2f9150.js";import{d as de}from"./projectCollectionEnter.51d6dc89.js";import"./sjFlowRecord.f17ddecc.js";import"./basicInfo.ca121f57.js";import"./index.d3c1d070.js";import"./indicatorTemplate.e73a2873.js";import"./fundsInfo.7226bdb6.js";import"./investmentInfo.a6c9be66.js";import"./engineeringInfo.df5ef876.js";import"./safeInfo.97dee47f.js";import"./businessInfo.5a050599.js";import"./yearPayPlanInfo.e418a3aa.js";import"./filesInfo.828fc2ce.js";import"./remarkInfo.0dbbde79.js";import"./applications.efde3570.js";import"./customModule.b423d5a3.js";import"./provincialInfo.79cb1317.js";import"./index.b0a2b1cd.js";import"./approvalInfo.f93c89ae.js";import"./expertReviewInfo.cc619466.js";import"./memberOpinion.ef5bb54d.js";import"./index.db5a0f94.js";import"./biddingRegistration.7702c337.js";import"./contractInfo.b9f9fa4d.js";import"./initialInfo.741d8db3.js";import"./finalInfo.9ae57180.js";import"./index.f55de596.js";import"./trialRunInfo.f0618a0d.js";import"./implementationPlan.d9258c9e.js";import"./reviewCheckList.80f68e5f.js";import"./getIsShowReviewCheck.d7bbf058.js";import"./flowRecord.ce404702.js";const ue=h=>(ae("data-v-6f6efa99"),h=h(),te(),h),pe={class:"card-header"},ce={class:"flex justify-between items-center"},me={class:"flex-1"},fe={class:"font-bold"},_e={class:"mt-8 search"},ve={class:"textRight"},be={key:0},je={key:1},we=ue(()=>p("p",null,"\u72B6\u6001",-1)),Ie={__name:"index",setup(h){const{statusOptions:v}=Q.dictStore.globalDicts||{},N=W(),D=I("1"),L=t=>{D.value=t,t==="1"?C.value.getTabs():t==="2"&&F.value.getTabs()},C=I(),e=I({projectCode:""}),M=async()=>{var r,m,n,s,b,x;const t=await re(N.query.id);if(t.data.prePlanProjectId){const f=await ie(t.data.prePlanProjectId);e.value={...f.data,baseHistorProjs:((m=(r=f.data)==null?void 0:r.baseHistorProjId)==null?void 0:m.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:((x=(b=t.data)==null?void 0:b.baseHistorProjId)==null?void 0:x.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"?(D.value="3",k.value.setActiveName("\u7EC8\u9A8C\u4FE1\u606F")):N.name==="reviewCheckProjectListProjectDetail"&&(D.value="3",k.value.setActiveName("\u5EFA\u8BBE\u65B9\u6848\u5BA1\u67E5\u610F\u89C1"))},F=I(),a=I(),c=X({visible:!1,flowData:void 0,sjFlowData:void 0}),A=(t,r)=>{c.visible=!0,t?(c.flowData=JSON.parse(JSON.stringify(t)),c.flowData=J(c.flowData)):c.flowData=void 0,c.sjFlowData=r||void 0},J=t=>(t.forEach(r=>{if(r.children){const m=[],n=[];r.children.forEach(s=>{m.includes(s.nodeId)?(n.find(b=>b.nodeId===s.nodeId).list.push(s),n.find(b=>b.nodeId===s.nodeId).userIds.push(s.userId)):(m.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]}))}),r.children=n}else r.userIds=[r.userId]}),t),U=()=>{c.visible=!1},T=I(),G=async()=>{const t=await ne(N.query.id);T.value=t.data},$=()=>!0,R=I([]),k=I();return Z(async()=>{R.value=(await de()).data,await M(),await G()}),(t,r)=>{const m=P("el-form-item"),n=P("el-col"),s=P("el-row"),b=P("el-form"),x=P("el-card"),f=P("el-tab-pane"),j=P("el-tabs");return y(),O(ee,null,[o(x,{shadow:"never",class:"mb-16"},{default:l(()=>{var i,d,w,V,Y,z;return[p("div",pe,[p("div",ce,[p("div",me,[p("p",fe,_(((i=a.value)==null?void 0:i.projectName)||e.value.projectName),1),p("div",_e,[o(b,{"label-suffix":":"},{default:l(()=>[o(s,{gutter:24},{default:l(()=>[o(n,{span:6},{default:l(()=>[o(m,{label:"\u7533\u62A5\u5355\u4F4D"},{default:l(()=>{var u;return[S(_(((u=a.value)==null?void 0:u.buildOrgName)||e.value.buildOrgName||"-"),1)]}),_:1})]),_:1}),o(n,{span:6},{default:l(()=>[o(m,{label:"\u4E3B\u7BA1\u5355\u4F4D"},{default:l(()=>{var u;return[S(_(((u=a.value)==null?void 0:u.superOrg)||e.value.superOrg||"-"),1)]}),_:1})]),_:1}),o(n,{span:6},{default:l(()=>[o(m,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:l(()=>{var u;return[S(_(((u=a.value)==null?void 0:u.createOn)||e.value.createOn||"-"),1)]}),_:1})]),_:1}),o(n,{span:6},{default:l(()=>[o(m,{label:"\u66F4\u65B0\u65F6\u95F4"},{default:l(()=>{var u;return[S(_(((u=a.value)==null?void 0:u.updateOn)||e.value.updateOn||"-"),1)]}),_:1})]),_:1})]),_:1})]),_:1})])]),p("div",ve,[(d=a.value)!=null&&d.status?(y(),O("p",be,[p("span",{class:H(`dot mr-4 bg-${a.value&&a.value.status&&((w=g(v)[a.value.status])==null?void 0:w.color)}`)},null,2),p("span",{class:H(`font-semibold text-${a.value&&a.value.status&&((V=g(v)[a.value.status])==null?void 0:V.color)}`)},_(a.value&&a.value.status&&g(v)[a.value.stage].name)+"-"+_(a.value&&a.value.status&&g(v)[a.value.status].name),3)])):(y(),O("p",je,[p("span",{class:H(`dot mr-4 bg-${e.value&&e.value.status&&((Y=g(v)[e.value.status])==null?void 0:Y.color)}`)},null,2),p("span",{class:H(`font-semibold text-${e.value&&e.value.status&&((z=g(v)[e.value.status])==null?void 0:z.color)}`)},_(e.value&&e.value.status&&g(v)[e.value.stage].name)+"-"+_(e.value&&e.value.status&&g(v)[e.value.status].name),3)])),we])])])]}),_:1}),o(se,{"detail-data":e.value,"step-data":T.value,shadow:"never",onShowFlowRecordDialog:A},null,8,["detail-data","step-data"]),o(j,{modelValue:D.value,"onUpdate:modelValue":r[0]||(r[0]=i=>D.value=i),type:"card",class:"myCardTab mt-16",onTabChange:L},{default:l(()=>[o(f,{label:"\u521D\u6B65\u65B9\u6848",name:"1"},{default:l(()=>[o(E,{ref_key:"projectInfoRef",ref:C,"detail-data":e.value,"is-down-load-file":$(),"dictionary-list":R.value},null,8,["detail-data","is-down-load-file","dictionary-list"])]),_:1}),a.value?(y(),B(f,{key:0,label:"\u5EFA\u8BBE\u65B9\u6848",name:"2"},{default:l(()=>[o(E,{ref_key:"constructInfoRef",ref:F,"detail-data":a.value,"is-down-load-file":$(),"dictionary-list":R.value},null,8,["detail-data","is-down-load-file","dictionary-list"])]),_:1})):q("",!0),o(f,{label:"\u5F52\u96C6\u4FE1\u606F",name:"3"},{default:l(()=>[e.value?(y(),B(oe,{key:0,ref_key:"summarizeInfoRef",ref:k,"detail-data":a.value||e.value},null,8,["detail-data"])):q("",!0)]),_:1})]),_:1},8,["modelValue"]),o(le,{detail:e.value,visible:c.visible,"flow-data":c.flowData,"sj-flow-data":c.sjFlowData,onClose:U},null,8,["detail","visible","flow-data","sj-flow-data"])],64)}}},oa=K(Ie,[["__scopeId","data-v-6f6efa99"]]);export{oa as default};
|