import{_ as b}from"./index-33a0e6e3.js";import{N as O}from"./index-be0b3801.js";import{d as F}from"./projectCollectionEnter-718f1371.js";import{r as C,o as L,b as N,c as r,d,H as c,L as k,h as l,f as a,i as n,t as s,F as u,k as x}from"./index-dd5fae99.js";const E=x({name:"biddingRegistration"}),U=Object.assign(E,{props:{detailData:Object},setup(v){const D=v,p=C(),h=async()=>{var f;p.value=(f=D.detailData)==null?void 0:f.purchases},m=C([]);return L(async()=>{m.value=(await F()).data,h()}),(f,B)=>{var g;const t=N("el-descriptions-item"),S=N("el-descriptions");return(g=p.value)!=null&&g.length?(r(!0),d(u,{key:0},c(p.value,(e,y)=>(r(),k(S,{key:y,column:2,border:"",title:`标段${y+1}`,class:"mb-16"},{default:l(()=>[a(t,{label:"标段名称"},{default:l(()=>[n(s(e.bidName||"-"),1)]),_:2},1024),a(t,{label:"供应商"},{default:l(()=>[n(s(e.supplier||"-"),1)]),_:2},1024),a(t,{label:"供应商统一社会信用代码"},{default:l(()=>[n(s(e.supplierSocialCreditCode||"-"),1)]),_:2},1024),a(t,{label:"供应商联系人"},{default:l(()=>[n(s(e.supplierContact||"-"),1)]),_:2},1024),a(t,{label:"供应商联系方式"},{default:l(()=>[n(s(e.supplierContactInfo||"-"),1)]),_:2},1024),a(t,{label:"采购方式"},{default:l(()=>{var i,o;return[n(s(((o=(i=m.value)==null?void 0:i.filter(_=>_.type==="PURCHASE_METHOD").find(_=>_.value===e.purchaseMethod))==null?void 0:o.label)||"-"),1)]}),_:2},1024),a(t,{label:"成交金额(万元)"},{default:l(()=>[n(s(e.transactionAmount||"-"),1)]),_:2},1024),a(t,{label:"成交时间"},{default:l(()=>[n(s(e.transactionTime||"-"),1)]),_:2},1024),a(t,{label:"采购代理机构"},{default:l(()=>[n(s(e.agency||"-"),1)]),_:2},1024),a(t,{label:"采购代理机构统一社会信用代码"},{default:l(()=>[n(s(e.purchaseSocialCreditCode||"-"),1)]),_:2},1024),a(t,{label:"监理单位"},{default:l(()=>[n(s(e.supervisingUnit||"-"),1)]),_:2},1024),a(t,{label:"监理单位统一社会信用代码"},{default:l(()=>[n(s(e.supervisingUnitCode||"-"),1)]),_:2},1024),a(t,{label:"预算执行确认书编号",span:2},{default:l(()=>[n(s(e.budgetExecConfirmNo||"-"),1)]),_:2},1024),a(t,{label:"投标文件",span:2},{default:l(()=>[(r(!0),d(u,null,c(e.biddingDoc&&JSON.parse(e.biddingDoc),(i,o)=>(r(),d("p",{key:o,class:"mb-4"},[a(b,{"file-name":i.originalFileName,"file-id":i.id},null,8,["file-name","file-id"])]))),128))]),_:2},1024),a(t,{label:"招标文件",span:2},{default:l(()=>[(r(!0),d(u,null,c(e.bidDoc&&JSON.parse(e.bidDoc),(i,o)=>(r(),d("p",{key:o,class:"mb-4"},[a(b,{"file-name":i.originalFileName,"file-id":i.id},null,8,["file-name","file-id"])]))),128))]),_:2},1024),a(t,{label:"中标通知书",span:2},{default:l(()=>[(r(!0),d(u,null,c(e.acceptanceLetter&&JSON.parse(e.acceptanceLetter),(i,o)=>(r(),d("p",{key:o,class:"mb-4"},[a(b,{"file-name":i.originalFileName,"file-id":i.id},null,8,["file-name","file-id"])]))),128))]),_:2},1024)]),_:2},1032,["title"]))),128)):(r(),k(O,{key:1}))}}});export{U as default};