import{al as i,aS as n,_ as w,d as D,ag as p,r,o as h,c as v,l,u as s,C as f,M as x,L as m}from"./index.56c69f5a.js";import{B as C}from"./basic-descriptions.5f176484.js";import{c}from"./tootip.fe6ea468.js";import{s as y}from"./constants.42afb0d7.js";import{p as g,i as A}from"./orderRecord.9d7001b8.js";import{a as T}from"./calc.850c7422.js";const F=[{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=y.find(t=>t.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})=>c(u,"\u5356\u51FA\u65B9\u516C\u53F8\u7F16\u7801 : "+e,270)},{field:"companyName",label:"\u4E70\u5165\u65B9\u516C\u53F8",span:12,render:(u,{companyNo:e})=>c(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=g.find(t=>t.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=A.find(t=>t.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=D({__name:"index",props:{data:{type:Object,required:!0},showTicketColumn:{type:Boolean,required:!1},isPurchPay:{type:Boolean,required:!1}},setup(u){const e=u,t=["inv_tag_fee","inv_status","ainv_fee","winv_fee","inv_fee","remark"],b=p(()=>!e.isPurchPay||e.showTicketColumn?F:F.filter(o=>!t.includes(o.field))),_=p(()=>e.data.cgdlist?e.data.cgdlist.reduce((o,d)=>Number(T(o,d.post_fee)).toFixed(2),0):"0.00");return(o,d)=>{const B=r("el-tag"),a=r("ElTableColumn"),E=r("ElTable");return h(),v("div",null,[l(s(C),{data:u.data,columns:s(b)},null,8,["data","columns"]),l(B,{class:"mt-[5px] mb-[5px]",type:"warning",size:"small"},{default:f(()=>[x(" \u5171\u8BA1 "+m(u.data.cgdlist?u.data.cgdlist.length:0)+" \u4E2A\u8BA2\u5355, \u5171\u8BA1 "+m(s(_))+" \u5143 ",1)]),_:1}),l(E,{size:"small",border:"",data:u.data.cgdlist,"max-height":"450px"},{default:f(()=>[l(a,{prop:"TrackCode",label:"\u53D1\u8D27\u8FD0\u5355\u7F16\u53F7","min-width":"150px","show-overflow-tooltip":""}),l(a,{prop:"outChildCode",label:"\u53D1\u8D27\u5DE5\u5355\u7F16\u53F7","min-width":"160px","show-overflow-tooltip":""}),l(a,{prop:"orderCode",label:"\u9500\u552E\u8BA2\u5355\u7F16\u53F7","min-width":"150px","show-overflow-tooltip":""}),l(a,{prop:"companyName",label:"\u4E1A\u52A1\u516C\u53F8","min-width":"180px","show-overflow-tooltip":""}),l(a,{prop:"supplierName",label:"\u7269\u6D41\u4F9B\u5E94\u5546","min-width":"180px","show-overflow-tooltip":""}),l(a,{label:"\u7269\u6D41\u8D39\u7528","min-width":"150px",prop:"post_fee"}),l(a,{label:"\u521B\u5EFA\u4EBA",prop:"apply_name","min-width":"80px"}),l(a,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","min-width":"140px"})]),_:1},8,["data"])])}}});var z=w(k,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/postSupplierOrder/sendOrderRecord/components/descriptions/index.vue"]]);export{z as default};
