var M=(N,r,t)=>new Promise((D,v)=>{var C=e=>{try{p(t.next(e))}catch(s){v(s)}},b=e=>{try{p(t.throw(e))}catch(s){v(s)}},p=e=>e.done?D(e.value):Promise.resolve(e.value).then(C,b);p((t=t.apply(N,r)).next())});import{_ as B,d as O,r as V,o as J,f as y,g as l,K as m,m as a,j as g,l as o,h as _,G as k,L as P,p as I,t as f,i as h}from"./index.9fabe127.js";import{A}from"./index.15f81060.js";import{N as w}from"./index.18a3894b.js";const K=h("div",{class:"collapse-title"},"\u9A8C\u6536\u4EBA\u5458\u4FE1\u606F",-1),E=h("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 r=N,t=V(),D=()=>M(this,null,function*(){var b,p,e,s,d;t.value={isCompletedLogCollection:(b=r.detailData)==null?void 0:b.isCompletedLogCollection,actualPerformanceIndicators:((p=r.detailData)==null?void 0:p.actualPerformanceIndicators)&&JSON.parse((e=r.detailData)==null?void 0:e.actualPerformanceIndicators)||[],acceptancePersons:(s=r.detailData)==null?void 0:s.acceptancePersons,preliminaryInspectionMaterials:JSON.parse((d=r.detailData)==null?void 0:d.preliminaryInspectionMaterials)}}),v=[{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"}],C=[{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()}),(b,p)=>{const e=y("el-descriptions-item"),s=y("el-descriptions"),d=y("el-collapse-item"),j=y("table-list"),H=y("el-collapse");return t.value?(l(),m(H,{key:0},{default:a(()=>[g('    <el-descriptions :column="2" border>'),g('      <el-descriptions-item label="\u8BD5\u8FD0\u884C\u62A5\u544A" span="2">'),g("      </el-descriptions-item>"),g("    </el-descriptions>"),o(d,{name:"1",class:"mb-16"},{title:a(()=>[K]),default:a(()=>{var n,c;return[(c=(n=t.value)==null?void 0:n.acceptancePersons)!=null&&c.length?(l(),m(s,{key:0,column:2,border:"",class:"mb-8"},{default:a(()=>[(l(!0),_(k,null,P(t.value.acceptancePersons,(i,u)=>(l(),_(k,{key:u},[o(e,{label:"\u9A8C\u6536\u4EBA\u5458"},{default:a(()=>[I(f(i.personName||"-"),1)]),_:2},1024),o(e,{label:"\u6240\u5728\u5355\u4F4D"},{default:a(()=>[I(f(i.unit||"-"),1)]),_:2},1024)],64))),128))]),_:1})):(l(),m(w,{key:1}))]}),_:1}),o(d,{name:"7",class:"mb-16"},{title:a(()=>[E]),default:a(()=>{var n,c;return[(c=(n=t.value)==null?void 0:n.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(()=>[I(f(t.value.isCompletedLogCollection?"\u662F":"\u5426"),1)]),_:1}),o(e,{label:"\u5B9E\u9645\u6210\u6548\u6307\u6807",span:2},{default:a(()=>[o(j,{pagination:!1,style:{width:"100%"},column:C,data:t.value.actualPerformanceIndicators,"empty-temp":!1},null,8,["data"])]),_:1})]),_:1})):(l(),m(w,{key:1}))]}),_:1}),(l(!0),_(k,null,P(t.value.preliminaryInspectionMaterials,(n,c)=>(l(),m(d,{key:c,name:c+2+"",class:"mb-16"},{title:a(()=>[h("div",F,f(n.title),1)]),default:a(()=>[o(j,{ref_for:!0,ref:"tableListRef",column:v,data:n.data,pagination:!1,"empty-temp":!1,class:"mb-8"},{isHave:a(({scope:i})=>[h("span",null,f(i.row.isHave?"\u662F":"\u5426"),1)]),files:a(({scope:i})=>[i.row.isHave?(l(!0),_(k,{key:0},P(i.row.files,(u,S)=>{var x,L;return l(),_("p",{key:S,class:"mb-4"},[o(A,{"file-name":u.name,"file-id":(L=(x=u==null?void 0:u.response)==null?void 0:x.data)==null?void 0:L.id},null,8,["file-name","file-id"])])}),128)):(l(),_(k,{key:1},[I(f(i.row.reason),1)],64))]),_:2},1032,["data"])]),_:2},1032,["name"]))),128))]),_:1})):(l(),m(w,{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};
