diff --git a/jshERP-web/src/views/material/MaterialList.vue b/jshERP-web/src/views/material/MaterialList.vue
index 66474520..3c2d4637 100644
--- a/jshERP-web/src/views/material/MaterialList.vue
+++ b/jshERP-web/src/views/material/MaterialList.vue
@@ -93,6 +93,10 @@
删除
+
+ {{text?text:record.unitName}}
+ SKU
+
启用
禁用
@@ -165,15 +169,8 @@
{title: '颜色', dataIndex: 'color', width: 50},
{title: '类别', dataIndex: 'categoryName', width: 80},
{title: '扩展信息', dataIndex: 'materialOther', width: 100},
- {
- title: '单位', dataIndex: 'unit', width: 100, customRender: function (text, record, index) {
- if(text) {
- let showSku = record.sku?'[sku]':''
- return text + showSku;
- } else {
- return record.unitName;
- }
- }
+ {title: '单位', dataIndex: 'unit', width: 100,
+ scopedSlots: { customRender: 'customRenderUnit' }
},
{title: '安全存量', dataIndex: 'safetyStock', width: 80},
{title: '库存', dataIndex: 'stock', width: 70},