Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

2 wiersze
3.5KB

  1. import{_ as M}from"./index.8fabbc4d.js";import{N as I}from"./index.ae3f62a1.js";import{d as O,r as j,o as S,c as b,e as a,G as c,i as e,h as t,g as k,f as d,F as y,H as N,j as v,t as u}from"./index.55251523.js";const V={class:"collapse-title"},F=O({name:"initialInfo"}),R=Object.assign(F,{props:{detailData:Object},setup(D){const f=D,l=j(),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)}},h=[{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u6750\u6599\u540D\u79F0",key:"name",prop:"name"},{label:"\u662F\u5426\u6709\u6750\u6599",key:"isHave",slot:"isHave",width:100},{label:"\u9644\u4EF6/\u8BF4\u660E\uFF08\u652F\u6301\u6269\u5C55\u540D\uFF1A.doc .docx .pdf\uFF09",key:"files",slot:"files"}],x=[{label:"\u6838\u5FC3\u4E1A\u52A1",prop:"businessName",key:"businessName"},{label:"\u5B9E\u9645\u6210\u6548\u6307\u6807",prop:"name",key:"name"},{label:"\u6570\u503C",prop:"nums",key:"nums"},{label:"\u5355\u4F4D",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"),L=b("el-collapse");return l.value?(a(),c(L,{key:0},{default:e(()=>[t(p,{name:"1",class:"mb-16"},{title:e(()=>i[0]||(i[0]=[k("div",{class:"collapse-title"},"\u9A8C\u6536\u4EBA\u5458\u4FE1\u606F",-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:"\u9A8C\u6536\u4EBA\u5458"},{default:e(()=>[v(u(o.personName||"-"),1)]),_:2},1024),t(r,{label:"\u6240\u5728\u5355\u4F4D"},{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"},"\u5B9E\u65BD\u4FE1\u606F",-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:"\u662F\u5426\u5B8C\u6210\u65E5\u5FD7\u6570\u636E\u5F52\u96C6",span:2},{default:e(()=>[v(u(l.value.isCompletedLogCollection?"\u662F":"\u5426"),1)]),_:1}),t(r,{label:"\u5B9E\u9645\u6210\u6548\u6307\u6807",span:2},{default:e(()=>[t(C,{pagination:!1,style:{width:"100%"},column:x,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",V,u(s.title),1)]),default:e(()=>[t(C,{ref_for:!0,ref:"tableListRef",column:h,data:s.data,pagination:!1,"empty-temp":!1,class:"mb-8"},{isHave:e(({scope:o})=>[k("span",null,u(o.row.isHave?"\u662F":"\u5426"),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{R as default};