| | |
| | | title: '物料编码', |
| | | }, |
| | | { |
| | | field: 'itemBarCode', |
| | | field: 'barCode', |
| | | title: '物料条码', |
| | | }, |
| | | { |
| | |
| | | } |
| | | |
| | | /** 产品编辑表格的列定义 */ |
| | | export function useProductEditTableColumns(): VxeTableGridOptions['columns'] { |
| | | export function useProductEditTableColumns( |
| | | showBusinessPrice: boolean = false, |
| | | ): VxeTableGridOptions['columns'] { |
| | | const priceColumn = showBusinessPrice |
| | | ? { |
| | | field: 'businessPrice', |
| | | title: '商机价格(元)', |
| | | minWidth: 100, |
| | | slots: { default: 'businessPrice' }, |
| | | } |
| | | : { |
| | | field: 'contractPrice', |
| | | title: '合同价(元)', |
| | | minWidth: 100, |
| | | slots: { default: 'contractPrice' }, |
| | | }; |
| | | return [ |
| | | { type: 'seq', title: '序号', minWidth: 50 }, |
| | | { |
| | |
| | | minWidth: 100, |
| | | formatter: 'formatAmount2', |
| | | }, |
| | | { |
| | | field: 'contractPrice', |
| | | title: '合同价(元)', |
| | | minWidth: 100, |
| | | slots: { default: 'contractPrice' }, |
| | | }, |
| | | priceColumn, |
| | | { |
| | | field: 'count', |
| | | title: '数量', |