|
@@ -141,7 +141,7 @@
|
|
|
:data="loadData"
|
|
|
@dblclick="handleClickRow"
|
|
|
:pageSize="30"
|
|
|
- :scroll="{ y: tableHeight, x: tableWidth||1800 }"
|
|
|
+ :scroll="{ y: tableHeight, x: tableWidth }"
|
|
|
bordered>
|
|
|
<div slot="costTitle">
|
|
|
<a-tooltip placement="top">
|
|
@@ -264,7 +264,7 @@ export default {
|
|
|
visible: this.showModal,
|
|
|
title: '添加产品',
|
|
|
tableHeight: 0,
|
|
|
- tableWidth: 1800,
|
|
|
+ tableWidth: 1760,
|
|
|
simpleImage: Empty.PRESENTED_IMAGE_SIMPLE,
|
|
|
advanced: false, // 高级搜索 展开/关闭
|
|
|
vinLoading: false,
|
|
@@ -360,8 +360,9 @@ export default {
|
|
|
const arr = [
|
|
|
{ title: '产品编码', dataIndex: 'productCode', width: '150px', align: 'center', sorter: true, customRender: function (text) { return text || '--' }, fixed: 'left' },
|
|
|
{ title: '产品名称', dataIndex: 'productName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
- { title: '原厂编码', dataIndex: 'productOrigCode', width: '150px', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '库存数量', dataIndex: 'currentQty', width: '100px', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '原厂编码', dataIndex: 'productOrigCode', width: '150px', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '品牌', dataIndex: 'brandName', width: '120px', align: 'center', sorter: true, customRender: function (text) { return text || '--' } },
|
|
|
]
|
|
|
if (this.cost) {
|
|
|
this.tableWidth += 100
|
|
@@ -389,7 +390,6 @@ export default {
|
|
|
}
|
|
|
|
|
|
return arr.concat([
|
|
|
- { title: '品牌', dataIndex: 'brandName', width: '120px', align: 'center', sorter: true, customRender: function (text) { return text || '--' } },
|
|
|
{ title: '仓库', dataIndex: 'warehouseName', width: '120px', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '仓位', dataIndex: 'warehouseLocationName', width: '120px', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '单位', dataIndex: 'unit', width: '60px', align: 'center', customRender: function (text) { return text || '--' } },
|