|
@@ -130,7 +130,7 @@ export default {
|
|
|
{ title: '库存数量', dataIndex: 'currentStockQty', width: 100, align: 'center', customRender: function (text) { return text || 0 } },
|
|
|
{ title: '单位', dataIndex: 'productUnit', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '售价', dataIndex: 'productPrice', width: 120, align: 'center', customRender: function (text) { return '¥' + (text || 0) } },
|
|
|
- { title: '包装数', dataIndex: 'productPackQty', width: 100, align: 'center', customRender: function (text) { return text || 0 } },
|
|
|
+ { title: '包装数', dataIndex: 'packQtyV', width: 100, align: 'center', customRender: function (text) { return text || 0 } },
|
|
|
{ title: '销售数量', dataIndex: 'salesNums', scopedSlots: { customRender: 'nums' }, width: 150, align: 'center' },
|
|
|
{ title: '操作', dataIndex: 'action', scopedSlots: { customRender: 'action' }, width: 200, align: 'center', fixed: 'right' }
|
|
|
],
|
|
@@ -146,8 +146,10 @@ export default {
|
|
|
data.list[i].no = no + i + 1
|
|
|
data.list[i].salesNums = 1
|
|
|
data.list[i].currentStockQty = data.list[i].currentStockQty || 0
|
|
|
- // data.list[i].productPackQty = 1
|
|
|
- // data.list[i].lastStockCost = 1
|
|
|
+ const productPackQty = (data.list[i].productPackQty || data.list[i].productPackQty == 0) ? data.list[i].productPackQty : '--'
|
|
|
+ const productUnit = data.list[i].productUnit || '--'
|
|
|
+ const productPackQtyUnit = data.list[i].productPackQtyUnit || '--'
|
|
|
+ data.list[i].packQtyV = productPackQty + productUnit + '/' + productPackQtyUnit
|
|
|
}
|
|
|
this.disabled = false
|
|
|
return data
|