|
@@ -49,7 +49,7 @@
|
|
|
:rowKey="(record) => record.sparePartsSn"
|
|
|
:columns="columns"
|
|
|
:data="loadData"
|
|
|
- :scroll="{ x: 1550, y: tableHeight }"
|
|
|
+ :scroll="{ x: 1350, y: tableHeight }"
|
|
|
:defaultLoadData="false"
|
|
|
bordered>
|
|
|
<!-- 入库单号 -->
|
|
@@ -102,16 +102,16 @@ export default {
|
|
|
},
|
|
|
// 表头
|
|
|
columns: [
|
|
|
- { title: '创建时间', dataIndex: 'createDate', width: 140, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '入库单号', scopedSlots: { customRender: 'sparePartsNo' }, width: 180, align: 'center' },
|
|
|
+ { title: '创建时间', dataIndex: 'createDate', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '入库单号', scopedSlots: { customRender: 'sparePartsNo' }, width: 150, align: 'center' },
|
|
|
{ title: '商户名称', dataIndex: 'supplierName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
- { title: '入库数量', dataIndex: 'productTotalQty', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '入库成本', dataIndex: 'productTotalCost', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '入库类型', dataIndex: 'sparePartsTypeDictValue', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '关联单号', dataIndex: 'relationNo', width: 180, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '金蝶单号', dataIndex: 'kingdeeNo', width: 180, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '状态', dataIndex: 'stateDictValue', width: 80, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '备注', dataIndex: 'remark', width: 180, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
+ { title: '入库数量', dataIndex: 'productTotalQty', width: 70, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '入库成本', dataIndex: 'productTotalCost', width: 70, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '入库类型', dataIndex: 'sparePartsTypeDictValue', width: 70, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '关联单号', dataIndex: 'relationNo', width: 70, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '金蝶单号', dataIndex: 'kingdeeNo', width: 150, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '状态', dataIndex: 'stateDictValue', width: 60, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '备注', dataIndex: 'remark', width: 150, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: 100, align: 'center', fixed: 'right' }
|
|
|
],
|
|
|
selectedRowKeys: [], // Check here to configure the default column
|