index.2c5c56.js 3.4 KB

1
  1. import{am as i,aR as n,aT as p,_ as w,d as D,ah as f,b4 as h,r as s,o as v,c as x,l,m as r,aN as y,D as m,M as C,L as c}from"./index.js";import{s as A}from"./constants.42afb0d7.js";import{p as g,i as T}from"./orderRecord.4d98a397.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=A.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})=>p(u,"\u5356\u51FA\u65B9\u516C\u53F8\u7F16\u7801 : "+e,270)},{field:"companyName",label:"\u4E70\u5165\u65B9\u516C\u53F8",span:12,render:(u,{companyNo:e})=>p(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=T.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"}],N=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=f(()=>!e.isPurchPay||e.showTicketColumn?F:F.filter(o=>!t.includes(o.field))),_=f(()=>e.data.cgdlist?e.data.cgdlist.reduce((o,d)=>Number(h(o,d.post_fee)).toFixed(2),0):"0.00");return(o,d)=>{const B=s("el-tag"),a=s("ElTableColumn"),E=s("ElTable");return v(),x("div",null,[l(r(y),{data:u.data,columns:r(b)},null,8,["data","columns"]),l(B,{class:"mt-[5px] mb-[5px]",type:"warning",size:"small"},{default:m(()=>[C(" \u5171\u8BA1 "+c(u.data.cgdlist?u.data.cgdlist.length:0)+" \u4E2A\u8BA2\u5355, \u5171\u8BA1 "+c(r(_))+" \u5143 ",1)]),_:1}),l(E,{size:"small",border:"",data:u.data.cgdlist,"max-height":"450px"},{default:m(()=>[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 P=w(N,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/postSupplierOrder/sendOrderRecord/components/descriptions/index.vue"]]);export{P as default};