import{af as i,ce as n,cg as d,_ as E,d as w,aa as p,ct as v,r,o as h,c as D,h as l,i as y,ca as C,y as f,H as g,G as c}from"./index.js";import{s as x}from"./constants.59c8f8ef.js";import{p as A,i as T}from"./orderRecord.92bbc10f.js";const m=[{field:"payNo",label:"\u5BF9\u8D26\u5355\u53F7",span:6},{field:"status",label:"\u5BF9\u8D26\u72B6\u6001",render(u){return i(n,null,{default:()=>{var e;return(e=x.find(o=>o.value===String(u)))==null?void 0:e.label}})}},{field:"apply_name",label:"\u7533\u8BF7\u4EBA",span:6},{field:"addtime",label:"\u521B\u5EFA\u65F6\u95F4",span:6},{field:"supplierName",label:"\u5356\u51FA\u65B9\u516C\u53F8",span:12,render:(u,{supplierNo:e})=>d(u,"\u5356\u51FA\u65B9\u516C\u53F8\u7F16\u7801 : "+e,270)},{field:"companyName",label:"\u4E70\u5165\u65B9\u516C\u53F8",span:12,render:(u,{companyNo:e})=>d(u,"\u4E70\u5165\u65B9\u516C\u53F8\u7F16\u7801 : "+e,270)},{field:"pay_status",label:"\u4ED8\u6B3E\u72B6\u6001",render(u){return i(n,null,{default:()=>{var e;return(e=A.find(o=>o.value===String(u)))==null?void 0:e.label}})}},{field:"apay_fee",label:"\u5DF2\u4ED8\u6B3E"},{field:"pay_fee",label:"\u4ED8\u6B3E\u4E2D"},{field:"wpay_fee",label:"\u672A\u4ED8\u6B3E"},{field:"inv_status",label:"\u5F00\u7968\u72B6\u6001",render(u){return i(n,null,{default:()=>{var e;return(e=T.find(o=>o.value===String(u)))==null?void 0:e.label}})}},{field:"ainv_fee",label:"\u5DF2\u5F00\u7968"},{field:"inv_fee",label:"\u5F00\u7968\u4E2D"},{field:"winv_fee",label:"\u672A\u5F00\u7968"},{field:"total_fee",label:"\u5BF9\u8D26\u603B\u989D"},{field:"pay_type",label:"\u4F9B\u5E94\u5546\u652F\u4ED8\u65B9\u5F0F"},{field:"remark",span:12,label:"\u5907\u6CE8"}],k=w({__name:"index",props:{data:{type:Object,required:!0},showTicketColumn:{type:Boolean,required:!1},isPurchPay:{type:Boolean,required:!1}},setup(u){const e=u,o=["inv_tag_fee","inv_status","ainv_fee","winv_fee","inv_fee","remark"],F=p(()=>!e.isPurchPay||e.showTicketColumn?m:m.filter(a=>!o.includes(a.field))),_=p(()=>e.data.cgdlist?e.data.cgdlist.reduce((a,s)=>Number(v(a,s.post_fee)).toFixed(2),0):"0.00");return(a,s)=>{const b=r("el-tag"),t=r("ElTableColumn"),B=r("ElTable");return h(),D("div",null,[l(y(C),{data:a.data,columns:F.value},null,8,["data","columns"]),l(b,{class:"mt-[5px] mb-[5px]",type:"warning",size:"small"},{default:f(()=>[g(" \u5171\u8BA1 "+c(a.data.cgdlist?a.data.cgdlist.length:0)+" \u4E2A\u8BA2\u5355, \u5171\u8BA1 "+c(_.value)+" \u5143 ",1)]),_:1}),l(B,{size:"small",border:"",data:a.data.cgdlist,"max-height":"450px"},{default:f(()=>[l(t,{prop:"TrackCode",label:"\u53D1\u8D27\u8FD0\u5355\u7F16\u53F7","min-width":"150px","show-overflow-tooltip":""}),l(t,{prop:"outChildCode",label:"\u53D1\u8D27\u5DE5\u5355\u7F16\u53F7","min-width":"160px","show-overflow-tooltip":""}),l(t,{prop:"orderCode",label:"\u9500\u552E\u8BA2\u5355\u7F16\u53F7","min-width":"150px","show-overflow-tooltip":""}),l(t,{prop:"companyName",label:"\u4E1A\u52A1\u516C\u53F8","min-width":"180px","show-overflow-tooltip":""}),l(t,{prop:"supplierName",label:"\u7269\u6D41\u4F9B\u5E94\u5546","min-width":"180px","show-overflow-tooltip":""}),l(t,{label:"\u7269\u6D41\u8D39\u7528","min-width":"150px",prop:"post_fee"}),l(t,{label:"\u521B\u5EFA\u4EBA",prop:"apply_name","min-width":"80px"}),l(t,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","min-width":"140px"})]),_:1},8,["data"])])}}});var S=E(k,[["__file","D:/work/jiesuan/settle-vue3/src/views/supplierOrder/sendOrderRecord/components/descriptions/index.vue"]]);export{S as default};
