Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

2 lignes
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 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.2dada31c.js";import ee from"./projectProgress.d1e00e59.js";import E from"./projectInfo.0a9cfd41.js";import ae from"./summarizeInfo.46044f50.js";import te from"./flowRecordDialog.faf97279.js";import{p as se,f as oe,g as le}from"./projectStore.0dd65f8f.js";import{d as re}from"./projectCollectionEnter.f85e3382.js";import"./sjFlowRecord.2f574027.js";import"./basicInfo.012c8d60.js";import"./index.820387e5.js";import"./indicatorTemplate.2e739183.js";import"./fundsInfo.9393452e.js";import"./investmentInfo.c621d7f4.js";import"./engineeringInfo.9a6025f2.js";import"./safeInfo.a64ff6c1.js";import"./businessInfo.01b9f953.js";import"./yearPayPlanInfo.16cd0fbb.js";import"./filesInfo.3a5c0b21.js";import"./remarkInfo.eace38b3.js";import"./applications.eca3c90c.js";import"./customModule.de4dad4a.js";import"./provincialInfo.d7725741.js";import"./index.101b6644.js";import"./approvalInfo.d253e21e.js";import"./expertReviewInfo.74ec0ece.js";import"./memberOpinion.a1b76289.js";import"./index.2f8f59eb.js";import"./biddingRegistration.0478d4ea.js";import"./contractInfo.d20c8b0f.js";import"./initialInfo.9f8ecfee.js";import"./finalInfo.0808557e.js";import"./index.f55de596.js";import"./trialRunInfo.865a80db.js";import"./implementationPlan.7c07391b.js";import"./reviewCheckList.ca0e4b94.js";import"./getIsShowReviewCheck.628a247c.js";import"./flowRecord.e2ecca50.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};