|
@@ -202,7 +202,7 @@ export default {
|
|
]
|
|
]
|
|
} else {
|
|
} else {
|
|
this.columns = [
|
|
this.columns = [
|
|
- { title: '产品编码', dataIndex: 'productEntity.code', scopedSlots: { customRender: 'productCode' }, width: '200px', align: 'center' },
|
|
|
|
|
|
+ { title: '产品编码', dataIndex: 'productEntity.code', scopedSlots: { customRender: 'productCode' }, width: '200px', align: 'center', fixed: 'left' },
|
|
{ title: '产品名称', dataIndex: 'productEntity.name', width: '250px', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '产品名称', dataIndex: 'productEntity.name', width: '250px', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '可用库存数量', dataIndex: 'currentStockQty', width: '140px', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '可用库存数量', dataIndex: 'currentStockQty', width: '140px', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '成本价', dataIndex: 'productEntity.purchasePrice', width: '80px', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
{ title: '成本价', dataIndex: 'productEntity.purchasePrice', width: '80px', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
@@ -344,8 +344,8 @@ export default {
|
|
},
|
|
},
|
|
pageInit (paramsData) {
|
|
pageInit (paramsData) {
|
|
this.paramsData = paramsData || {}
|
|
this.paramsData = paramsData || {}
|
|
- this.setTableH()
|
|
|
|
this.getColumns()
|
|
this.getColumns()
|
|
|
|
+ this.setTableH()
|
|
this.resetSearchForm()
|
|
this.resetSearchForm()
|
|
},
|
|
},
|
|
setTableH () {
|
|
setTableH () {
|