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
3.5KB

  1. import{_ as M}from"./index.ca326906.js";import{N as h}from"./index.6c5e9add.js";import{d as O,r as j,o as J,c as f,e as a,I as i,i as e,h as t,f as m,F as b,J as I,j as y,t as d,g as k}from"./index.0b616ce3.js";const S=k("div",{class:"collapse-title"},"\u9A8C\u6536\u4EBA\u5458\u4FE1\u606F",-1),V=k("div",{class:"collapse-title"},"\u5B9E\u65BD\u4FE1\u606F",-1),F={class:"collapse-title"},E=O({name:"initialInfo"}),q=Object.assign(E,{props:{detailData:Object},setup(w){const u=w,l=j(),D=async()=>{var v,g,c,_,r;l.value={isCompletedLogCollection:(v=u.detailData)==null?void 0:v.isCompletedLogCollection,actualPerformanceIndicators:((g=u.detailData)==null?void 0:g.actualPerformanceIndicators)&&JSON.parse((c=u.detailData)==null?void 0:c.actualPerformanceIndicators)||[],acceptancePersons:(_=u.detailData)==null?void 0:_.acceptancePersons,preliminaryInspectionMaterials:JSON.parse((r=u.detailData)==null?void 0:r.preliminaryInspectionMaterials)}},x=[{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"}],H=[{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 J(()=>{D()}),(v,g)=>{const c=f("el-descriptions-item"),_=f("el-descriptions"),r=f("el-collapse-item"),N=f("table-list"),L=f("el-collapse");return l.value?(a(),i(L,{key:0},{default:e(()=>[t(r,{name:"1",class:"mb-16"},{title:e(()=>[S]),default:e(()=>{var s,n;return[(n=(s=l.value)==null?void 0:s.acceptancePersons)!=null&&n.length?(a(),i(_,{key:0,column:2,border:"",class:"mb-8"},{default:e(()=>[(a(!0),m(b,null,I(l.value.acceptancePersons,(o,p)=>(a(),m(b,{key:p},[t(c,{label:"\u9A8C\u6536\u4EBA\u5458"},{default:e(()=>[y(d(o.personName||"-"),1)]),_:2},1024),t(c,{label:"\u6240\u5728\u5355\u4F4D"},{default:e(()=>[y(d(o.unit||"-"),1)]),_:2},1024)],64))),128))]),_:1})):(a(),i(h,{key:1}))]}),_:1}),t(r,{name:"7",class:"mb-16"},{title:e(()=>[V]),default:e(()=>{var s,n;return[(n=(s=l.value)==null?void 0:s.actualPerformanceIndicators)!=null&&n.length?(a(),i(_,{key:0,column:2,border:"",class:"mb-8"},{default:e(()=>[t(c,{label:"\u662F\u5426\u5B8C\u6210\u65E5\u5FD7\u6570\u636E\u5F52\u96C6",span:2},{default:e(()=>[y(d(l.value.isCompletedLogCollection?"\u662F":"\u5426"),1)]),_:1}),t(c,{label:"\u5B9E\u9645\u6210\u6548\u6307\u6807",span:2},{default:e(()=>[t(N,{pagination:!1,style:{width:"100%"},column:H,data:l.value.actualPerformanceIndicators,"empty-temp":!1},null,8,["data"])]),_:1})]),_:1})):(a(),i(h,{key:1}))]}),_:1}),(a(!0),m(b,null,I(l.value.preliminaryInspectionMaterials,(s,n)=>(a(),i(r,{key:n,name:n+2+"",class:"mb-16"},{title:e(()=>[k("div",F,d(s.title),1)]),default:e(()=>[t(N,{ref_for:!0,ref:"tableListRef",column:x,data:s.data,pagination:!1,"empty-temp":!1,class:"mb-8"},{isHave:e(({scope:o})=>[k("span",null,d(o.row.isHave?"\u662F":"\u5426"),1)]),files:e(({scope:o})=>[o.row.isHave?(a(!0),m(b,{key:0},I(o.row.files,(p,B)=>{var C,P;return a(),m("p",{key:B,class:"mb-4"},[t(M,{"file-name":p.name,"file-id":(P=(C=p==null?void 0:p.response)==null?void 0:C.data)==null?void 0:P.id},null,8,["file-name","file-id"])])}),128)):(a(),m(b,{key:1},[y(d(o.row.reason),1)],64))]),_:2},1032,["data"])]),_:2},1032,["name"]))),128))]),_:1})):(a(),i(h,{key:1}))}}});export{q as default};