优化报表的列宽排版
This commit is contained in:
@@ -146,19 +146,19 @@
|
||||
// 表头
|
||||
columns: [
|
||||
{
|
||||
title: '#', dataIndex: 'rowIndex', width:40, align:"center",
|
||||
title: '#', dataIndex: 'rowIndex', width:60, align:"center", fixed: 'left',
|
||||
customRender:function (t,r,index) {
|
||||
return (t !== '合计') ? (parseInt(index) + 1) : t
|
||||
}
|
||||
},
|
||||
{title: '条码', dataIndex: 'barCode', width: 120},
|
||||
{title: '名称', dataIndex: 'mName', width: 120, ellipsis:true},
|
||||
{title: '规格', dataIndex: 'standard', width: 100, ellipsis:true},
|
||||
{title: '型号', dataIndex: 'model', width: 100, ellipsis:true},
|
||||
{title: '类别', dataIndex: 'categoryName', width: 120, ellipsis:true},
|
||||
{title: '单位', dataIndex: 'materialUnit', width: 120, ellipsis:true},
|
||||
{title: '入库数量', dataIndex: 'numSum', sorter: (a, b) => a.numSum - b.numSum, width: 120},
|
||||
{title: '入库金额', dataIndex: 'priceSum', sorter: (a, b) => a.priceSum - b.priceSum, width: 120}
|
||||
{title: '条码', dataIndex: 'barCode', width: 200, fixed: 'left'},
|
||||
{title: '名称', dataIndex: 'mName', width: 200, fixed: 'left'},
|
||||
{title: '规格', dataIndex: 'standard'},
|
||||
{title: '型号', dataIndex: 'model'},
|
||||
{title: '类别', dataIndex: 'categoryName'},
|
||||
{title: '单位', dataIndex: 'materialUnit'},
|
||||
{title: '入库数量', dataIndex: 'numSum', sorter: (a, b) => a.numSum - b.numSum},
|
||||
{title: '入库金额', dataIndex: 'priceSum', sorter: (a, b) => a.priceSum - b.priceSum}
|
||||
],
|
||||
url: {
|
||||
list: "/depotHead/findInOutMaterialCount",
|
||||
|
||||
Reference in New Issue
Block a user