25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
1.6KB

  1. import{_ as v}from"./index-33a0e6e3.js";import{N as g}from"./index-be0b3801.js";import{r as h,o as N,b as i,c as n,L as p,h as t,f as a,i as o,t as s,d as c,F as x,H as A,k as T}from"./index-dd5fae99.js";const D=T({name:"contractInfo"}),j=Object.assign(D,{props:{detailData:Object},setup(u){const d=u,e=h(),_=async()=>{e.value=d.detailData.contract},f=[{label:"付款笔数",type:"index",width:"80"},{label:"付款计划",key:"planAmount",prop:"planAmount"},{label:"付款比例(%)",key:"ratio",prop:"ratio"},{label:"付款金额(万元)",key:"paymentAmount",prop:"paymentAmount"},{label:"预计付款时间",key:"paymentTime",prop:"paymentTime"}];return N(()=>{_()}),(B,C)=>{var r;const l=i("el-descriptions-item"),b=i("table-list"),y=i("el-descriptions");return(r=e.value)!=null&&r.id?(n(),p(y,{key:0,column:2,border:""},{default:t(()=>[a(l,{label:"合同名称"},{default:t(()=>[o(s(e.value.name||"-"),1)]),_:1}),a(l,{label:"合同总金额"},{default:t(()=>[o(s(e.value.totalAmount||"-")+"万元 ",1)]),_:1}),a(l,{label:"合同签订完成时间"},{default:t(()=>[o(s(e.value.contractTime||"-"),1)]),_:1}),a(l,{label:"交货日期"},{default:t(()=>[o(s(e.value.deliveryTime||"-"),1)]),_:1}),a(l,{label:"合同附件",span:2},{default:t(()=>[(n(!0),c(x,null,A(e.value.attachment&&JSON.parse(e.value.attachment),(m,k)=>(n(),c("p",{key:k,class:"mb-4"},[a(v,{"file-name":m.originalFileName,"file-id":m.id},null,8,["file-name","file-id"])]))),128))]),_:1}),a(l,{label:"付款计划",span:2},{default:t(()=>[a(b,{ref:"tableListRef",column:f,data:e.value.payments,pagination:!1,"empty-temp":!1},null,8,["data"])]),_:1})]),_:1})):(n(),p(g,{key:1}))}}});export{j as default};