var N=(m,d,o)=>new Promise((f,c)=>{var u=n=>{try{e(o.next(n))}catch(i){c(i)}},k=n=>{try{e(o.throw(n))}catch(i){c(i)}},e=n=>n.done?f(n.value):Promise.resolve(n.value).then(u,k);e((o=o.apply(m,d)).next())});import{_ as C,d as P,r as T,o as w,f as _,g as p,h as y,L as j,K as D,m as l,l as t,p as s,t as r,j as b,G as v,a5 as B}from"./index.9fabe127.js";import{A as I}from"./index.15f81060.js";import{N as M}from"./index.18a3894b.js";const S=P({name:"contractInfo"}),L=Object.assign(S,{props:{detailData:Object},setup(m){const d=m,o=T(),f=()=>N(this,null,function*(){o.value=d.detailData.contracts}),c=[{label:"\u4ED8\u6B3E\u7B14\u6570",type:"index",width:"80"},{label:"\u4ED8\u6B3E\u8BA1\u5212",key:"planAmount",prop:"planAmount"},{label:"\u4ED8\u6B3E\u6BD4\u4F8B\uFF08%\uFF09",key:"ratio",prop:"ratio"},{label:"\u4ED8\u6B3E\u91D1\u989D\uFF08\u4E07\u5143\uFF09",key:"paymentAmount",prop:"paymentAmount"},{label:"\u9884\u8BA1\u4ED8\u6B3E\u65F6\u95F4",key:"paymentTime",prop:"paymentTime"},{label:"\u5B9E\u9645\u652F\u4ED8\u91D1\u989D",key:"actualPaymentAmount",prop:"actualPaymentAmount",render:u=>B("span",u.actualPaymentAmount||"-")}];return w(()=>{f()}),(u,k)=>{var A;const e=_("el-descriptions-item"),n=_("table-list"),i=_("el-descriptions");return(A=o.value)!=null&&A.length?(p(!0),y(v,{key:0},j(o.value,(a,g)=>(p(),D(i,{key:g,column:2,border:"",class:"mb-16",title:`${m.detailData.purchases[g].bidName}-\u5408\u540C`},{default:l(()=>[t(e,{label:"\u5408\u540C\u540D\u79F0"},{default:l(()=>[s(r(a.name||"-"),1)]),_:2},1024),t(e,{label:"\u5408\u540C\u603B\u91D1\u989D"},{default:l(()=>[s(r(a.totalAmount||"-")+"\u4E07\u5143 ",1)]),_:2},1024),t(e,{label:"\u4F9B\u5E94\u5546\u6536\u6B3E\u5F00\u6237\u884C"},{default:l(()=>[s(r(a.supplierBank||"-"),1)]),_:2},1024),b('      <el-descriptions-item label="\u91C7\u8D2D\u65B9\u5F0F">'),b("        {{ contract.supplierAccount }}"),b("      </el-descriptions-item>"),t(e,{label:"\u8D28\u4FDD\u671F"},{default:l(()=>[s(r(a.warrantyPeriod||"-")+"\u5E74 ",1)]),_:2},1024),t(e,{label:"\u8D28\u4FDD\u91D1"},{default:l(()=>[s(r(a.retentionMoney||"-")+"\u4E07\u5143 ",1)]),_:2},1024),t(e,{label:"\u5408\u540C\u7B7E\u8BA2\u5B8C\u6210\u65F6\u95F4"},{default:l(()=>[s(r(a.contractTime||"-"),1)]),_:2},1024),t(e,{label:"\u4EA4\u8D27\u65E5\u671F"},{default:l(()=>[s(r(a.deliveryTime||"-"),1)]),_:2},1024),t(e,{label:"\u5408\u540C\u9644\u4EF6",span:2},{default:l(()=>[(p(!0),y(v,null,j(a.attachment&&JSON.parse(a.attachment),(h,x)=>(p(),y("p",{key:x,class:"mb-4"},[t(I,{"file-name":h.originalFileName,"file-id":h.id},null,8,["file-name","file-id"])]))),128))]),_:2},1024),t(e,{label:"\u4ED8\u6B3E\u8BA1\u5212",span:2},{default:l(()=>[t(n,{ref_for:!0,ref:"tableListRef",column:c,data:a.payments,pagination:!1,"empty-temp":!1},null,8,["data"])]),_:2},1024)]),_:2},1032,["title"]))),128)):(p(),D(M,{key:1}))}}}),K=C(L,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/projectStoreManage/projectStore/projectDetail/components/contractInfo.vue"]]);export{K as default};
