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 lines
3.3KB

  1. import{_ as M}from"./index-33a0e6e3.js";import{N as I}from"./index-be0b3801.js";import{r as O,o as S,b,c as a,L as c,h as e,f as t,e as k,d,F as y,H as N,i as v,t as u,k as V}from"./index-dd5fae99.js";const j={class:"collapse-title"},F=V({name:"initialInfo"}),T=Object.assign(F,{props:{detailData:Object},setup(D){const f=D,l=O(),H=async()=>{var g,i,r,_,p;l.value={isCompletedLogCollection:(g=f.detailData)==null?void 0:g.isCompletedLogCollection,actualPerformanceIndicators:((i=f.detailData)==null?void 0:i.actualPerformanceIndicators)&&JSON.parse((r=f.detailData)==null?void 0:r.actualPerformanceIndicators)||[],acceptancePersons:(_=f.detailData)==null?void 0:_.acceptancePersons,preliminaryInspectionMaterials:JSON.parse((p=f.detailData)==null?void 0:p.preliminaryInspectionMaterials)}},L=[{label:"序号",type:"index",width:"60"},{label:"材料名称",key:"name",prop:"name"},{label:"是否有材料",key:"isHave",slot:"isHave",width:100},{label:"附件/说明(支持扩展名:.doc .docx .pdf)",key:"files",slot:"files"}],h=[{label:"核心业务",prop:"businessName",key:"businessName"},{label:"实际成效指标",prop:"name",key:"name"},{label:"数值",prop:"nums",key:"nums"},{label:"单位",prop:"unit",key:"unit"}];return S(()=>{H()}),(g,i)=>{const r=b("el-descriptions-item"),_=b("el-descriptions"),p=b("el-collapse-item"),C=b("table-list"),x=b("el-collapse");return l.value?(a(),c(x,{key:0},{default:e(()=>[t(p,{name:"1",class:"mb-16"},{title:e(()=>i[0]||(i[0]=[k("div",{class:"collapse-title"},"验收人员信息",-1)])),default:e(()=>{var s,n;return[(n=(s=l.value)==null?void 0:s.acceptancePersons)!=null&&n.length?(a(),c(_,{key:0,column:2,border:"",class:"mb-8"},{default:e(()=>[(a(!0),d(y,null,N(l.value.acceptancePersons,(o,m)=>(a(),d(y,{key:m},[t(r,{label:"验收人员"},{default:e(()=>[v(u(o.personName||"-"),1)]),_:2},1024),t(r,{label:"所在单位"},{default:e(()=>[v(u(o.unit||"-"),1)]),_:2},1024)],64))),128))]),_:1})):(a(),c(I,{key:1}))]}),_:1}),t(p,{name:"7",class:"mb-16"},{title:e(()=>i[1]||(i[1]=[k("div",{class:"collapse-title"},"实施信息",-1)])),default:e(()=>{var s,n;return[(n=(s=l.value)==null?void 0:s.actualPerformanceIndicators)!=null&&n.length?(a(),c(_,{key:0,column:2,border:"",class:"mb-8"},{default:e(()=>[t(r,{label:"是否完成日志数据归集",span:2},{default:e(()=>[v(u(l.value.isCompletedLogCollection?"是":"否"),1)]),_:1}),t(r,{label:"实际成效指标",span:2},{default:e(()=>[t(C,{pagination:!1,style:{width:"100%"},column:h,data:l.value.actualPerformanceIndicators,"empty-temp":!1},null,8,["data"])]),_:1})]),_:1})):(a(),c(I,{key:1}))]}),_:1}),(a(!0),d(y,null,N(l.value.preliminaryInspectionMaterials,(s,n)=>(a(),c(p,{key:n,name:n+2+"",class:"mb-16"},{title:e(()=>[k("div",j,u(s.title),1)]),default:e(()=>[t(C,{ref_for:!0,ref:"tableListRef",column:L,data:s.data,pagination:!1,"empty-temp":!1,class:"mb-8"},{isHave:e(({scope:o})=>[k("span",null,u(o.row.isHave?"是":"否"),1)]),files:e(({scope:o})=>[o.row.isHave?(a(!0),d(y,{key:0},N(o.row.files,(m,B)=>{var P,w;return a(),d("p",{key:B,class:"mb-4"},[t(M,{"file-name":m.name,"file-id":(w=(P=m==null?void 0:m.response)==null?void 0:P.data)==null?void 0:w.id},null,8,["file-name","file-id"])])}),128)):(a(),d(y,{key:1},[v(u(o.row.reason),1)],64))]),_:2},1032,["data"])]),_:2},1032,["name"]))),128))]),_:1})):(a(),c(I,{key:1}))}}});export{T as default};