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.

index.0cc34350.js 7.1KB

1
  1. import{_ as U,B as K,x as Q,r as I,b as W,o as X,c as P,e as y,f as O,h as o,i as r,g as p,t as v,j as x,n as k,u as g,G as C,k as S,F as Z}from"./index.1cbb0c88.js";import ee from"./projectProgress.78aac1c8.js";import E from"./projectInfo.7959edf6.js";import ae from"./summarizeInfo.4480bd8c.js";import te from"./flowRecordDialog.318aac7c.js";import{p as se,f as oe,g as le}from"./projectStore.ce813280.js";import{d as re}from"./projectCollectionEnter.0e2f9633.js";import"./sjFlowRecord.2bed4ba9.js";import"./basicInfo.c70a88ba.js";import"./index.bf9884f6.js";import"./indicatorTemplate.03f35a25.js";import"./fundsInfo.564729cb.js";import"./investmentInfo.4c57c814.js";import"./engineeringInfo.a641924f.js";import"./safeInfo.d60910a5.js";import"./businessInfo.522523a8.js";import"./yearPayPlanInfo.076108b6.js";import"./filesInfo.d851c393.js";import"./remarkInfo.7b5299c5.js";import"./applications.740152f1.js";import"./customModule.24b095c5.js";import"./provincialInfo.81615589.js";import"./index.ed13ba65.js";import"./approvalInfo.6d8296f1.js";import"./expertReviewInfo.896bc5af.js";import"./memberOpinion.4fdd26f7.js";import"./index.a3d3600b.js";import"./biddingRegistration.dd54a990.js";import"./contractInfo.2b815398.js";import"./initialInfo.3cc0a847.js";import"./finalInfo.a3ccf750.js";import"./index.f55de596.js";import"./trialRunInfo.f04cecc2.js";import"./implementationPlan.aa03da8b.js";import"./reviewCheckList.abc3380b.js";import"./getIsShowReviewCheck.36eb9163.js";import"./flowRecord.67078cb2.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"},ce={class:"textRight"},me={key:0},fe={key:1},ve={__name:"index",setup(_e){const{statusOptions:_}=K.dictStore.globalDicts||{},N=Q(),D=I("1"),L=t=>{D.value=t,t==="1"?F.value.getTabs():t==="2"&&T.value.getTabs()},F=I(),e=I({projectCode:""}),M=async()=>{var l,m,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:((m=(l=f.data)==null?void 0:l.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:((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"?(D.value="3",R.value.setActiveName("\u7EC8\u9A8C\u4FE1\u606F")):N.name==="reviewCheckProjectListProjectDetail"&&(D.value="3",R.value.setActiveName("\u5EFA\u8BBE\u65B9\u6848\u5BA1\u67E5\u610F\u89C1"))},T=I(),a=I(),c=W({visible:!1,flowData:void 0,sjFlowData:void 0}),q=(t,l)=>{c.visible=!0,t?(c.flowData=JSON.parse(JSON.stringify(t)),c.flowData=A(c.flowData)):c.flowData=void 0,c.sjFlowData=l||void 0},A=t=>(t.forEach(l=>{if(l.children){const m=[],n=[];l.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]}))}),l.children=n}else l.userIds=[l.userId]}),t),J=()=>{c.visible=!1},$=I(),G=async()=>{const t=await le(N.query.id);$.value=t.data},V=()=>!0,H=I([]),R=I();return X(async()=>{H.value=(await re()).data,await M(),await G()}),(t,l)=>{const m=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 y(),O(Z,null,[o(h,{shadow:"never",class:"mb-16"},{default:r(()=>{var i,d,w,Y,B,z;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(m,{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(m,{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(m,{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(m,{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",ce,[(d=a.value)!=null&&d.status?(y(),O("p",me,[p("span",{class:k(`dot mr-4 bg-${a.value&&a.value.status&&((w=g(_)[a.value.status])==null?void 0:w.color)}`)},null,2),p("span",{class:k(`font-semibold text-${a.value&&a.value.status&&((Y=g(_)[a.value.status])==null?void 0:Y.color)}`)},v(a.value&&a.value.status&&g(_)[a.value.stage].name)+"-"+v(a.value&&a.value.status&&g(_)[a.value.status].name),3)])):(y(),O("p",fe,[p("span",{class:k(`dot mr-4 bg-${e.value&&e.value.status&&((B=g(_)[e.value.status])==null?void 0:B.color)}`)},null,2),p("span",{class:k(`font-semibold text-${e.value&&e.value.status&&((z=g(_)[e.value.status])==null?void 0:z.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":$.value,shadow:"never",onShowFlowRecordDialog:q},null,8,["detail-data","step-data"]),o(j,{modelValue:D.value,"onUpdate:modelValue":l[0]||(l[0]=i=>D.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:F,"detail-data":e.value,"is-down-load-file":V(),"dictionary-list":H.value},null,8,["detail-data","is-down-load-file","dictionary-list"])]),_:1}),a.value?(y(),C(f,{key:0,label:"\u5EFA\u8BBE\u65B9\u6848",name:"2"},{default:r(()=>[o(E,{ref_key:"constructInfoRef",ref:T,"detail-data":a.value,"is-down-load-file":V(),"dictionary-list":H.value},null,8,["detail-data","is-down-load-file","dictionary-list"])]),_:1})):S("",!0),e.value.projectType!=="03"?(y(),C(f,{key:1,label:"\u5F52\u96C6\u4FE1\u606F",name:"3"},{default:r(()=>[e.value?(y(),C(ae,{key:0,ref_key:"summarizeInfoRef",ref:R,"detail-data":a.value||e.value},null,8,["detail-data"])):S("",!0)]),_:1})):S("",!0)]),_:1},8,["modelValue"]),o(te,{detail:e.value,visible:c.visible,"flow-data":c.flowData,"sj-flow-data":c.sjFlowData,onClose:J},null,8,["detail","visible","flow-data","sj-flow-data"])],64)}}},ea=U(ve,[["__scopeId","data-v-d6a7567c"]]);export{ea as default};