1 |
- import{D as r,w as d,v as p,aW as s}from"./index.ef4119aa.js";import{a}from"./status.4f7e5409.js";function f(){return{columns:r([{type:"selection",width:30},{label:"\u9500\u552E\u8BA2\u5355\u7F16\u53F7",prop:"sequenceNo",minWidth:160,showOverflowTooltip:!0},{label:"\u5546\u54C1\u7F16\u7801",prop:"goodNo",minWidth:160,showOverflowTooltip:!0},{label:"po\u7F16\u53F7",prop:"poCode",minWidth:160},{label:"\u5BA2\u6237\u7F16\u53F7",prop:"customerNo",minWidth:160,showOverflowTooltip:!0},{label:"\u5BA2\u6237\u540D\u79F0",prop:"customerName",minWidth:160,showOverflowTooltip:!0},{label:"\u5546\u54C1\u540D\u79F0",prop:"goodName",minWidth:160,showOverflowTooltip:!0},{label:"\u8BA2\u5355\u603B\u91D1\u989D",prop:"totalPrice",minWidth:110,showOverflowTooltip:!0},{label:"\u53D1\u8D27\u72B6\u6001",prop:"sendStatus",minWidth:110,showOverflowTooltip:!0,cellRenderer:({row:e,props:l})=>d(p("el-tag"),{size:l.size,type:(a.find(o=>o.value==e.sendStatus+"")||{}).type||"info",effect:"plain"},{default:()=>[(a.find(o=>o.value==e.sendStatus+"")||{}).label||"--"]})},{label:"\u5546\u54C1\u6570\u91CF",prop:"goodNum"},{label:"\u672A\u5F00\u7968\u6570\u91CF",prop:"winv_num"},{label:"\u5DF2\u5F00\u7968",prop:"ainv_fee",minWidth:110,showOverflowTooltip:!0},{label:"\u5F00\u7968\u4E2D",prop:"inv_fee",minWidth:110,showOverflowTooltip:!0},{label:"\u672A\u5F00\u7968",prop:"winv_fee",minWidth:110,showOverflowTooltip:!0},{label:"\u4E1A\u52A1\u5458",prop:"ownerName",minWidth:80,showOverflowTooltip:!0},{label:"\u521B\u5EFA\u65F6\u95F4",minWidth:145,prop:"createTime",showOverflowTooltip:!0,formatter:({addtime:e})=>s(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_num",label:"\u672A\u5F00\u7968\u6570\u91CF"},{field:"winv_fee",label:"\u672A\u5F00\u7968"}],v=i=>{const{company_address:e,mobile:l,company_license:o,bank_name:n,bankNo:t}=i;return{invoice_addr:e,invoice_mobile:l,invoice_code:o,invoice_bank:n,invoice_bankNo:t}},u=i=>{const{invoice_addr:e,invoice_mobile:l,invoice_code:o,invoice_bank:n,invoice_bankNo:t}=i;return{invoice_code:o,addrAndmobile:e+" "+l,bankAndBankNo:n+" "+t}},w=[{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{v as convertInvoiceTitle,u as convertInvoiceTitleData,w as invoice_columns,b as order_detail_columns,f as useColumns};
|