|
|
|
@ -119,7 +119,8 @@ import CategoryModel from '@/common/model/Category' |
|
|
|
|
const columns = [ |
|
|
|
|
{ |
|
|
|
|
title: '商品ID', |
|
|
|
|
dataIndex: 'goods_id' |
|
|
|
|
dataIndex: 'goods_id', |
|
|
|
|
sorter: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '商品图片', |
|
|
|
@ -135,20 +136,24 @@ const columns = [ |
|
|
|
|
{ |
|
|
|
|
title: '商品价格', |
|
|
|
|
dataIndex: 'goods_price_min', |
|
|
|
|
scopedSlots: { customRender: 'goods_price_min' } |
|
|
|
|
scopedSlots: { customRender: 'goods_price_min' }, |
|
|
|
|
sorter: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '成本价', |
|
|
|
|
dataIndex: 'cost_price', |
|
|
|
|
scopedSlots: { customRender: 'cost_price' } |
|
|
|
|
scopedSlots: { customRender: 'cost_price' }, |
|
|
|
|
sorter: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '总销量', |
|
|
|
|
dataIndex: 'sales_actual' |
|
|
|
|
dataIndex: 'sales_actual', |
|
|
|
|
sorter: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '库存总量', |
|
|
|
|
dataIndex: 'stock_total' |
|
|
|
|
dataIndex: 'stock_total', |
|
|
|
|
sorter: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '状态', |
|
|
|
@ -157,12 +162,14 @@ const columns = [ |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '排序', |
|
|
|
|
dataIndex: 'sort' |
|
|
|
|
dataIndex: 'sort', |
|
|
|
|
sorter: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '添加时间', |
|
|
|
|
width: '180px', |
|
|
|
|
dataIndex: 'create_time' |
|
|
|
|
dataIndex: 'create_time', |
|
|
|
|
sorter: true, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
title: '操作', |
|
|
|
|