columns.cb88c843.js 3.3 KB

1
  1. import{B as s,t as a,r,aX as f}from"./index.46adee50.js";import{i as d,a as p}from"./status.dd7282cd.js";function v(){return{columns:s([{type:"selection",reserveSelection:!0},{label:"\u9500\u552E\u8BA2\u5355\u7F16\u53F7",prop:"sequenceNo",minWidth:160,showOverflowTooltip:!0},{label:"\u4F01\u4E1A\u5BA2\u6237\u7F16\u53F7",prop:"companyNo",minWidth:160,showOverflowTooltip:!0},{label:"\u4F01\u4E1A\u5BA2\u6237\u540D\u79F0",prop:"companyName",minWidth:160,showOverflowTooltip:!0},{label:"\u5546\u54C1\u7F16\u7801",prop:"goodNo",minWidth:160,showOverflowTooltip:!0},{label:"\u5546\u54C1\u540D\u79F0",prop:"goodName",minWidth:160,showOverflowTooltip:!0},{label:"po\u7F16\u53F7",prop:"poCode",minWidth:160},{label:"\u8BA2\u5355\u603B\u91D1\u989D",prop:"totalPrice",minWidth:110,showOverflowTooltip:!0},{label:"\u5546\u54C1\u6570\u91CF",prop:"goodNum"},{label:"\u9000\u8D27\u6570\u91CF",prop:"th_fee",width:110,showOverflowTooltip:!0},{label:"\u9000\u8D27\u91D1\u989D",prop:"th_fee",width:110,showOverflowTooltip:!0},{label:"\u53D1\u7968\u5DF2\u6838\u9500",prop:"ainv_fee",minWidth:110,showOverflowTooltip:!0},{label:"\u53D1\u7968\u6838\u9500\u4E2D",prop:"inv_fee",minWidth:110,showOverflowTooltip:!0},{label:"\u53D1\u7968\u672A\u6838\u9500",prop:"winv_fee",minWidth:110,showOverflowTooltip:!0},{label:"\u53D1\u7968\u6838\u9500\u72B6\u6001",prop:"inv_type",minWidth:110,showOverflowTooltip:!0,cellRenderer:({row:e,props:l})=>a(r("el-tag"),{size:l.size,type:(d.find(o=>o.value==e.inv_status+"")||{}).type||"info",effect:"plain"},{default:()=>[(d.find(o=>o.value==e.inv_status+"")||{}).label||"--"]})},{label:"\u53D1\u8D27\u72B6\u6001",prop:"sendStatus",minWidth:110,showOverflowTooltip:!0,cellRenderer:({row:e,props:l})=>a(r("el-tag"),{size:l.size,type:(p.find(o=>o.value==e.sendStatus+"")||{}).type||"info",effect:"plain"},{default:()=>[(p.find(o=>o.value==e.sendStatus+"")||{}).label||"--"]})},{label:"\u4E1A\u52A1\u5458",prop:"ownerName",minWidth:80,showOverflowTooltip:!0},{label:"\u521B\u5EFA\u65F6\u95F4",minWidth:145,prop:"createTime",showOverflowTooltip:!0,formatter:({addtime:e})=>f(e).format("YYYY-MM-DD HH:mm:ss")}])}}const b=[{field:"sequenceNo",label:"\u786E\u8BA4\u5355\u7F16\u53F7"},{field:"ownerName",label:"\u9500\u552E\u5458"},{field:"department",label:"\u5E73\u53F0\u540D\u79F0"},{field:"companyName",label:"\u4E1A\u52A1\u516C\u53F8\u540D\u79F0"},{field:"customerName",label:"\u5BA2\u6237\u540D\u79F0"},{field:"goodNum",label:"\u5546\u54C1\u6570\u91CF"},{field:"goodPrice",label:"\u5546\u54C1\u5355\u4EF7"},{field:"goodName",label:"\u5546\u54C1\u540D\u79F0"},{field:"inv_fee",label:"\u5F00\u7968\u4E2D"},{field:"ainv_fee",label:"\u5DF2\u5F00\u7968"},{field:"winv_fee",label:"\u672A\u5F00\u7968"}],u=i=>{const{company_address:e,mobile:l,company_license:o,bank_name:t,bankNo:n}=i;return{invoice_addr:e,invoice_mobile:l,invoice_code:o,invoice_bank:t,invoice_bankNo:n}},w=i=>{const{invoice_addr:e,invoice_mobile:l,invoice_code:o,invoice_bank:t,invoice_bankNo:n}=i;return{invoice_code:o,addrAndmobile:e+" "+l,bankAndBankNo:t+" "+n}},h=[{label:"\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",field:"invoice_code"},{label:"\u5730\u5740\u3001\u7535\u8BDD",field:"addrAndmobile"},{label:"\u5F00\u6237\u884C\u53CA\u8D26\u53F7",field:"bankAndBankNo"}];export{u as convertInvoiceTitle,w as convertInvoiceTitleData,h as invoice_columns,b as order_detail_columns,v as useColumns};