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 line
7.1KB

  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.55251523.js";import ee from"./projectProgress.8d37578d.js";import E from"./projectInfo.4d2186d4.js";import ae from"./summarizeInfo.7d44fff6.js";import te from"./flowRecordDialog.e046888f.js";import{p as se,f as oe,g as le}from"./projectStore.aceb2df8.js";import{d as re}from"./projectCollectionEnter.a9815778.js";import"./sjFlowRecord.46bf6420.js";import"./basicInfo.62db9c98.js";import"./index.8fabbc4d.js";import"./indicatorTemplate.9bceab62.js";import"./fundsInfo.aab77cd7.js";import"./investmentInfo.892046a3.js";import"./engineeringInfo.a7e6b018.js";import"./safeInfo.1d27796e.js";import"./businessInfo.3c34b55a.js";import"./yearPayPlanInfo.b4fa7fe6.js";import"./filesInfo.56b07020.js";import"./remarkInfo.07afeffc.js";import"./applications.6738b109.js";import"./customModule.8da8a661.js";import"./provincialInfo.f6bb1c36.js";import"./index.8a59d8d8.js";import"./approvalInfo.32083090.js";import"./expertReviewInfo.4885085d.js";import"./memberOpinion.b4c5dbfc.js";import"./index.ae3f62a1.js";import"./biddingRegistration.a0143996.js";import"./contractInfo.fd957d40.js";import"./initialInfo.aa217444.js";import"./finalInfo.1095723c.js";import"./index.f55de596.js";import"./trialRunInfo.aefb11de.js";import"./implementationPlan.75400a75.js";import"./reviewCheckList.4a2464b8.js";import"./getIsShowReviewCheck.5dda2d05.js";import"./flowRecord.1092ea73.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};