Commit 97f5bf60 by zhangquan

添加上架时间

1 parent 7321f4ca
...@@ -48,6 +48,7 @@ import inputNumRange from '@/components/inputNumRange' ...@@ -48,6 +48,7 @@ import inputNumRange from '@/components/inputNumRange'
import categoryCascader from '@/components/categoryCascader.vue' import categoryCascader from '@/components/categoryCascader.vue'
import setPriceDialog from './setPriceDialog.vue' import setPriceDialog from './setPriceDialog.vue'
import { utils } from 'glsx-common' import { utils } from 'glsx-common'
import util from '@/util/util'
export default { export default {
name: 'warehouseIndex', name: 'warehouseIndex',
data() { data() {
...@@ -129,27 +130,39 @@ export default { ...@@ -129,27 +130,39 @@ export default {
}, },
{ {
label: '设置销售价', label: '设置销售价',
width: 150,
addHtml: 'setPriceSlot', addHtml: 'setPriceSlot',
prop: 'salePrice', prop: 'salePrice',
sortable: 'custom', sortable: 'custom',
}, },
{ {
label: '供货价(元)', label: '供货价(元)',
prop: 'sellPrice' prop: 'sellPrice',
width: 150
}, },
{ {
label: '市场价(元)', label: '市场价(元)',
width: 150,
prop: 'marketPrice' prop: 'marketPrice'
}, },
{ {
label: '真实销量', label: '真实销量',
width: 150,
prop: 'saleAmount', prop: 'saleAmount',
sortable: 'custom', sortable: 'custom',
}, },
{ {
label: '库存', label: '库存',
width: 150,
prop: 'goodsStock' prop: 'goodsStock'
}, },
{
label: '上架时间',
width: 200,
formatter: cellValue => {
return cellValue.saleDate ? util.dateFormat(cellValue.saleDate, 'YYYY-MM-DD HH:mm:ss') : '--'
}
}
// { // {
// label: '销售状态', // label: '销售状态',
// prop: 'shelvesStatus', // prop: 'shelvesStatus',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!