var L=(N,n,t)=>new Promise((C,g)=>{var P=e=>{try{p(t.next(e))}catch(s){g(s)}},b=e=>{try{p(t.throw(e))}catch(s){g(s)}},p=e=>e.done?C(e.value):Promise.resolve(e.value).then(P,b);p((t=t.apply(N,n)).next())});import{_ as B,d as O,r as V,o as J,f as k,g as l,K as m,m as a,j as I,l as o,h as _,G as v,L as w,p as h,t as f,i as D}from"./index.32929554.js";import{A}from"./index.19a687fa.js";import{N as j}from"./index.601221b2.js";const K=D("div",{class:"collapse-title"},"\u9A8C\u6536\u4EBA\u5458\u4FE1\u606F",-1),E=D("div",{class:"collapse-title"},"\u5B9E\u65BD\u4FE1\u606F",-1),F={class:"collapse-title"},G=O({name:"initialInfo"}),R=Object.assign(G,{props:{detailData:Object},setup(N){const n=N,t=V(),C=()=>L(this,null,function*(){var b,p,e,s,d,y;t.value={isCompletedLogCollection:(b=n.detailData)==null?void 0:b.isCompletedLogCollection,actualPerformanceIndicators:((p=n.detailData)==null?void 0:p.actualPerformanceIndicators)&&JSON.parse((e=n.detailData)==null?void 0:e.actualPerformanceIndicators)||[],acceptancePersons:(s=n.detailData)==null?void 0:s.acceptancePersons,preliminaryInspectionMaterials:((d=n.detailData)==null?void 0:d.preliminaryInspectionMaterials)&&JSON.parse((y=n.detailData)==null?void 0:y.preliminaryInspectionMaterials)}}),g=[{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"}],P=[{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(()=>{C()}),(b,p)=>{const e=k("el-descriptions-item"),s=k("el-descriptions"),d=k("el-collapse-item"),y=k("table-list"),H=k("el-collapse");return t.value?(l(),m(H,{key:0},{default:a(()=>[I('    <el-descriptions :column="2" border>'),I('      <el-descriptions-item label="\u8BD5\u8FD0\u884C\u62A5\u544A" span="2">'),I("      </el-descriptions-item>"),I("    </el-descriptions>"),o(d,{name:"1",class:"mb-16"},{title:a(()=>[K]),default:a(()=>{var i,c;return[(c=(i=t.value)==null?void 0:i.acceptancePersons)!=null&&c.length?(l(),m(s,{key:0,column:2,border:"",class:"mb-8"},{default:a(()=>[(l(!0),_(v,null,w(t.value.acceptancePersons,(r,u)=>(l(),_(v,{key:u},[o(e,{label:"\u9A8C\u6536\u4EBA\u5458"},{default:a(()=>[h(f(r.personName||"-"),1)]),_:2},1024),o(e,{label:"\u6240\u5728\u5355\u4F4D"},{default:a(()=>[h(f(r.unit||"-"),1)]),_:2},1024)],64))),128))]),_:1})):(l(),m(j,{key:1}))]}),_:1}),o(d,{name:"7",class:"mb-16"},{title:a(()=>[E]),default:a(()=>{var i,c;return[(c=(i=t.value)==null?void 0:i.actualPerformanceIndicators)!=null&&c.length?(l(),m(s,{key:0,column:2,border:"",class:"mb-8"},{default:a(()=>[o(e,{label:"\u662F\u5426\u5B8C\u6210\u65E5\u5FD7\u6570\u636E\u5F52\u96C6",span:2},{default:a(()=>[h(f(t.value.isCompletedLogCollection?"\u662F":"\u5426"),1)]),_:1}),o(e,{label:"\u5B9E\u9645\u6210\u6548\u6307\u6807",span:2},{default:a(()=>[o(y,{pagination:!1,style:{width:"100%"},column:P,data:t.value.actualPerformanceIndicators,"empty-temp":!1},null,8,["data"])]),_:1})]),_:1})):(l(),m(j,{key:1}))]}),_:1}),(l(!0),_(v,null,w(t.value.preliminaryInspectionMaterials,(i,c)=>(l(),m(d,{key:c,name:c+2+"",class:"mb-16"},{title:a(()=>[D("div",F,f(i.title),1)]),default:a(()=>[o(y,{ref_for:!0,ref:"tableListRef",column:g,data:i.data,pagination:!1,"empty-temp":!1,class:"mb-8"},{isHave:a(({scope:r})=>[D("span",null,f(r.row.isHave?"\u662F":"\u5426"),1)]),files:a(({scope:r})=>[r.row.isHave?(l(!0),_(v,{key:0},w(r.row.files,(u,S)=>{var x,M;return l(),_("p",{key:S,class:"mb-4"},[o(A,{"file-name":u.name,"file-id":(M=(x=u==null?void 0:u.response)==null?void 0:x.data)==null?void 0:M.id},null,8,["file-name","file-id"])])}),128)):(l(),_(v,{key:1},[h(f(r.row.reason),1)],64))]),_:2},1032,["data"])]),_:2},1032,["name"]))),128))]),_:1})):(l(),m(j,{key:1}))}}}),Q=B(R,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/projectStoreManage/projectStore/projectDetail/components/initialInfo.vue"]]);export{Q as default};
