You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
7.1KB

  1. 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 c,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.50a8620e.js";import se from"./projectProgress.18903b24.js";import E from"./projectInfo.5dff1d82.js";import oe from"./summarizeInfo.554b3fa8.js";import le from"./flowRecordDialog.f4a409ba.js";import{p as re,f as ie,g as ne}from"./projectStore.9f58557e.js";import{d as de}from"./projectCollectionEnter.bc3a6750.js";import"./sjFlowRecord.10d2f25c.js";import"./basicInfo.40cad49f.js";import"./index.75f93dd3.js";import"./indicatorTemplate.fe505829.js";import"./fundsInfo.3e5f8812.js";import"./investmentInfo.6d45559e.js";import"./engineeringInfo.7a940e9b.js";import"./safeInfo.622e2f5c.js";import"./businessInfo.2f320622.js";import"./yearPayPlanInfo.2e3be045.js";import"./filesInfo.289355b6.js";import"./remarkInfo.298712f9.js";import"./applications.0f67c4a0.js";import"./customModule.19af2a36.js";import"./provincialInfo.a54fd4f4.js";import"./index.d688144c.js";import"./approvalInfo.ef9d4601.js";import"./expertReviewInfo.c1eac210.js";import"./memberOpinion.3a20a11c.js";import"./index.481762c8.js";import"./biddingRegistration.6b9bd77e.js";import"./contractInfo.9a205a7d.js";import"./initialInfo.7b817b19.js";import"./finalInfo.a7556abf.js";import"./index.f55de596.js";import"./trialRunInfo.ce2142f1.js";import"./implementationPlan.342f5078.js";import"./reviewCheckList.113bfb1d.js";import"./getIsShowReviewCheck.49d96dd4.js";import"./flowRecord.925b84ef.js";const ue=h=>(ae("data-v-f8b704c3"),h=h(),te(),h),ce={class:"card-header"},pe={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(()=>c("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(),p=X({visible:!1,flowData:void 0,sjFlowData:void 0}),A=(t,r)=>{p.visible=!0,t?(p.flowData=JSON.parse(JSON.stringify(t)),p.flowData=J(p.flowData)):p.flowData=void 0,p.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=()=>{p.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[c("div",ce,[c("div",pe,[c("div",me,[c("p",fe,_(((i=a.value)==null?void 0:i.projectName)||e.value.projectName),1),c("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})])]),c("div",ve,[(d=a.value)!=null&&d.status?(y(),O("p",be,[c("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),c("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,[c("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),c("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,{visible:p.visible,"flow-data":p.flowData,"sj-flow-data":p.sjFlowData,onClose:U},null,8,["visible","flow-data","sj-flow-data"])],64)}}},oa=K(Ie,[["__scopeId","data-v-f8b704c3"]]);export{oa as default};