Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

2 рядки
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.88314652.js";import ee from"./projectProgress.6a26883a.js";import E from"./projectInfo.8334a17b.js";import ae from"./summarizeInfo.796662fe.js";import te from"./flowRecordDialog.37c57a3c.js";import{p as se,f as oe,g as le}from"./projectStore.93a92252.js";import{d as re}from"./projectCollectionEnter.d9dae6a5.js";import"./sjFlowRecord.8107ed99.js";import"./basicInfo.c3cc92c4.js";import"./index.b8af1d9b.js";import"./indicatorTemplate.d39a8306.js";import"./fundsInfo.1b23f3c1.js";import"./investmentInfo.ae555d23.js";import"./engineeringInfo.d6676b4e.js";import"./safeInfo.b26182cb.js";import"./businessInfo.aab73f12.js";import"./yearPayPlanInfo.746a44dc.js";import"./filesInfo.4899abbe.js";import"./remarkInfo.330fa8df.js";import"./applications.039de892.js";import"./customModule.0ff8ec4b.js";import"./provincialInfo.229be894.js";import"./index.52f0c4e2.js";import"./approvalInfo.0760546f.js";import"./expertReviewInfo.0039d2f1.js";import"./memberOpinion.5dc61cfd.js";import"./index.0c2b3f6e.js";import"./biddingRegistration.9bfded40.js";import"./contractInfo.439f2f60.js";import"./initialInfo.f1bed06c.js";import"./finalInfo.08fbc7fc.js";import"./index.f55de596.js";import"./trialRunInfo.344809e6.js";import"./implementationPlan.0bf4b1a8.js";import"./reviewCheckList.87ec3d63.js";import"./getIsShowReviewCheck.40f08ac6.js";import"./flowRecord.d01efb9f.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};