Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

2 linhas
7.1KB

  1. import{_ as K,D as Q,z as W,r as I,b as X,o as Z,c as P,e as y,f as O,h as o,i as l,g as p,t as _,j as S,n as H,u as g,I as B,k as q,F as ee,q as ae,s as te}from"./index.622ee9e7.js";import se from"./projectProgress.a723dddf.js";import E from"./projectInfo.65c43e21.js";import oe from"./summarizeInfo.ecfd7464.js";import le from"./flowRecordDialog.a4a56df5.js";import{p as re,f as ie,g as ne}from"./projectStore.4992a39c.js";import{d as de}from"./projectCollectionEnter.57868123.js";import"./sjFlowRecord.c4c12416.js";import"./basicInfo.337d9406.js";import"./index.f85fe99a.js";import"./indicatorTemplate.5a807688.js";import"./fundsInfo.599c29d4.js";import"./investmentInfo.99e79ed7.js";import"./engineeringInfo.87da6b0d.js";import"./safeInfo.bb165780.js";import"./businessInfo.0df55970.js";import"./yearPayPlanInfo.8d5d27f9.js";import"./filesInfo.0a9612c2.js";import"./remarkInfo.34077e29.js";import"./applications.1793d924.js";import"./customModule.43dd5237.js";import"./provincialInfo.69d61b6a.js";import"./index.7cf53a4d.js";import"./approvalInfo.c199b088.js";import"./expertReviewInfo.9d1ced62.js";import"./memberOpinion.7386c884.js";import"./index.d88afaaf.js";import"./biddingRegistration.e809cdf0.js";import"./contractInfo.18293453.js";import"./initialInfo.1063a553.js";import"./finalInfo.66adc633.js";import"./index.f55de596.js";import"./trialRunInfo.c4dda8f1.js";import"./implementationPlan.f953eda0.js";import"./reviewCheckList.327829d4.js";import"./getIsShowReviewCheck.653f7eca.js";import"./flowRecord.1de3cc6f.js";const ue=h=>(ae("data-v-6f6efa99"),h=h(),te(),h),pe={class:"card-header"},ce={class:"flex justify-between items-center"},me={class:"flex-1"},fe={class:"font-bold"},_e={class:"mt-8 search"},ve={class:"textRight"},be={key:0},je={key:1},we=ue(()=>p("p",null,"\u72B6\u6001",-1)),Ie={__name:"index",setup(h){const{statusOptions:v}=Q.dictStore.globalDicts||{},N=W(),D=I("1"),L=t=>{D.value=t,t==="1"?C.value.getTabs():t==="2"&&F.value.getTabs()},C=I(),e=I({projectCode:""}),M=async()=>{var r,m,n,s,b,x;const t=await re(N.query.id);if(t.data.prePlanProjectId){const f=await ie(t.data.prePlanProjectId);e.value={...f.data,baseHistorProjs:((m=(r=f.data)==null?void 0:r.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:((x=(b=t.data)==null?void 0:b.baseHistorProjId)==null?void 0:x.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",k.value.setActiveName("\u7EC8\u9A8C\u4FE1\u606F")):N.name==="reviewCheckProjectListProjectDetail"&&(D.value="3",k.value.setActiveName("\u5EFA\u8BBE\u65B9\u6848\u5BA1\u67E5\u610F\u89C1"))},F=I(),a=I(),c=X({visible:!1,flowData:void 0,sjFlowData:void 0}),A=(t,r)=>{c.visible=!0,t?(c.flowData=JSON.parse(JSON.stringify(t)),c.flowData=J(c.flowData)):c.flowData=void 0,c.sjFlowData=r||void 0},J=t=>(t.forEach(r=>{if(r.children){const m=[],n=[];r.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]}))}),r.children=n}else r.userIds=[r.userId]}),t),U=()=>{c.visible=!1},T=I(),G=async()=>{const t=await ne(N.query.id);T.value=t.data},$=()=>!0,R=I([]),k=I();return Z(async()=>{R.value=(await de()).data,await M(),await G()}),(t,r)=>{const m=P("el-form-item"),n=P("el-col"),s=P("el-row"),b=P("el-form"),x=P("el-card"),f=P("el-tab-pane"),j=P("el-tabs");return y(),O(ee,null,[o(x,{shadow:"never",class:"mb-16"},{default:l(()=>{var i,d,w,V,Y,z;return[p("div",pe,[p("div",ce,[p("div",me,[p("p",fe,_(((i=a.value)==null?void 0:i.projectName)||e.value.projectName),1),p("div",_e,[o(b,{"label-suffix":":"},{default:l(()=>[o(s,{gutter:24},{default:l(()=>[o(n,{span:6},{default:l(()=>[o(m,{label:"\u7533\u62A5\u5355\u4F4D"},{default:l(()=>{var u;return[S(_(((u=a.value)==null?void 0:u.buildOrgName)||e.value.buildOrgName||"-"),1)]}),_:1})]),_:1}),o(n,{span:6},{default:l(()=>[o(m,{label:"\u4E3B\u7BA1\u5355\u4F4D"},{default:l(()=>{var u;return[S(_(((u=a.value)==null?void 0:u.superOrg)||e.value.superOrg||"-"),1)]}),_:1})]),_:1}),o(n,{span:6},{default:l(()=>[o(m,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:l(()=>{var u;return[S(_(((u=a.value)==null?void 0:u.createOn)||e.value.createOn||"-"),1)]}),_:1})]),_:1}),o(n,{span:6},{default:l(()=>[o(m,{label:"\u66F4\u65B0\u65F6\u95F4"},{default:l(()=>{var u;return[S(_(((u=a.value)==null?void 0:u.updateOn)||e.value.updateOn||"-"),1)]}),_:1})]),_:1})]),_:1})]),_:1})])]),p("div",ve,[(d=a.value)!=null&&d.status?(y(),O("p",be,[p("span",{class:H(`dot mr-4 bg-${a.value&&a.value.status&&((w=g(v)[a.value.status])==null?void 0:w.color)}`)},null,2),p("span",{class:H(`font-semibold text-${a.value&&a.value.status&&((V=g(v)[a.value.status])==null?void 0:V.color)}`)},_(a.value&&a.value.status&&g(v)[a.value.stage].name)+"-"+_(a.value&&a.value.status&&g(v)[a.value.status].name),3)])):(y(),O("p",je,[p("span",{class:H(`dot mr-4 bg-${e.value&&e.value.status&&((Y=g(v)[e.value.status])==null?void 0:Y.color)}`)},null,2),p("span",{class:H(`font-semibold text-${e.value&&e.value.status&&((z=g(v)[e.value.status])==null?void 0:z.color)}`)},_(e.value&&e.value.status&&g(v)[e.value.stage].name)+"-"+_(e.value&&e.value.status&&g(v)[e.value.status].name),3)])),we])])])]}),_:1}),o(se,{"detail-data":e.value,"step-data":T.value,shadow:"never",onShowFlowRecordDialog:A},null,8,["detail-data","step-data"]),o(j,{modelValue:D.value,"onUpdate:modelValue":r[0]||(r[0]=i=>D.value=i),type:"card",class:"myCardTab mt-16",onTabChange:L},{default:l(()=>[o(f,{label:"\u521D\u6B65\u65B9\u6848",name:"1"},{default:l(()=>[o(E,{ref_key:"projectInfoRef",ref:C,"detail-data":e.value,"is-down-load-file":$(),"dictionary-list":R.value},null,8,["detail-data","is-down-load-file","dictionary-list"])]),_:1}),a.value?(y(),B(f,{key:0,label:"\u5EFA\u8BBE\u65B9\u6848",name:"2"},{default:l(()=>[o(E,{ref_key:"constructInfoRef",ref:F,"detail-data":a.value,"is-down-load-file":$(),"dictionary-list":R.value},null,8,["detail-data","is-down-load-file","dictionary-list"])]),_:1})):q("",!0),o(f,{label:"\u5F52\u96C6\u4FE1\u606F",name:"3"},{default:l(()=>[e.value?(y(),B(oe,{key:0,ref_key:"summarizeInfoRef",ref:k,"detail-data":a.value||e.value},null,8,["detail-data"])):q("",!0)]),_:1})]),_:1},8,["modelValue"]),o(le,{detail:e.value,visible:c.visible,"flow-data":c.flowData,"sj-flow-data":c.sjFlowData,onClose:U},null,8,["detail","visible","flow-data","sj-flow-data"])],64)}}},oa=K(Ie,[["__scopeId","data-v-6f6efa99"]]);export{oa as default};