优化商品列的排版

This commit is contained in:
季圣华
2021-12-14 23:17:26 +08:00
parent 8c54806ee5
commit 0935d7bbcd
2 changed files with 8 additions and 8 deletions

View File

@@ -102,7 +102,7 @@
categoryTree:[],
columns: [
{dataIndex: 'mBarCode', title: '条码', width: 100, align: 'left'},
{dataIndex: 'name', title: '名称', width: 120},
{dataIndex: 'name', title: '名称', width: 120, ellipsis:true},
{dataIndex: 'categoryName', title: '类别', width: 80},
{dataIndex: 'standard', title: '规格', width: 80},
{dataIndex: 'model', title: '型号', width: 80},
@@ -110,7 +110,7 @@
{dataIndex: 'unit', title: '单位', width: 70, ellipsis:true},
{dataIndex: 'sku', title: '多属性', width: 80},
{dataIndex: 'stock', title: '库存', width: 60},
{dataIndex: 'expand', title: '扩展信息', width: 80},
{dataIndex: 'expand', title: '扩展信息', width: 80, ellipsis:true},
{dataIndex: 'enableSerialNumber', title: '序列号', width: 60, align: "center",
scopedSlots: { customRender: 'customRenderEnableSerialNumber' }
},

View File

@@ -155,12 +155,12 @@
// 表头
columns: [
{title: '条码', dataIndex: 'mBarCode', width: '8%'},
{title: '名称', dataIndex: 'name', width: '10%'},
{title: '规格', dataIndex: 'standard', width: '6%'},
{title: '型号', dataIndex: 'model', width: '6%'},
{title: '颜色', dataIndex: 'color', width: '4%'},
{title: '类别', dataIndex: 'categoryName', width: '6%'},
{title: '扩展信息', dataIndex: 'materialOther', width: '6%'},
{title: '名称', dataIndex: 'name', width: '10%', ellipsis:true},
{title: '规格', dataIndex: 'standard', width: '6%', ellipsis:true},
{title: '型号', dataIndex: 'model', width: '6%', ellipsis:true},
{title: '颜色', dataIndex: 'color', width: '4%', ellipsis:true},
{title: '类别', dataIndex: 'categoryName', width: '6%', ellipsis:true},
{title: '扩展信息', dataIndex: 'materialOther', width: '6%', ellipsis:true},
{title: '单位', dataIndex: 'unit', width: '6%', ellipsis:true,
customRender:function (t,r,index) {
if (r) {