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.149277cd.js";import ee from"./projectProgress.c58f0973.js";import E from"./projectInfo.a901db7f.js";import ae from"./summarizeInfo.bbcb1698.js";import te from"./flowRecordDialog.eaa28c19.js";import{p as se,f as oe,g as le}from"./projectStore.ccee2ad6.js";import{d as re}from"./projectCollectionEnter.3a55517f.js";import"./sjFlowRecord.f8ff6ee2.js";import"./basicInfo.3806bb5b.js";import"./index.b5d9b033.js";import"./indicatorTemplate.dbdf3fbe.js";import"./fundsInfo.f2bc6d02.js";import"./investmentInfo.2135aeb6.js";import"./engineeringInfo.dbb41a8e.js";import"./safeInfo.d8e73c9a.js";import"./businessInfo.69e9c779.js";import"./yearPayPlanInfo.aa77bf03.js";import"./filesInfo.62388bec.js";import"./remarkInfo.c0043106.js";import"./applications.87b563df.js";import"./customModule.b4ac7988.js";import"./provincialInfo.a966c274.js";import"./index.b88ae75b.js";import"./approvalInfo.0b20a562.js";import"./expertReviewInfo.95721706.js";import"./memberOpinion.f73bf504.js";import"./index.0161f563.js";import"./biddingRegistration.b440ad1a.js";import"./contractInfo.8042d51a.js";import"./initialInfo.38e67cef.js";import"./finalInfo.049243a4.js";import"./index.f55de596.js";import"./trialRunInfo.ec9807b1.js";import"./implementationPlan.f0200e09.js";import"./reviewCheckList.5e8857e3.js";import"./getIsShowReviewCheck.21ba148b.js";import"./flowRecord.4c153e86.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};