给报表里面的数值增加排序功能

This commit is contained in:
季圣华
2021-10-13 23:57:30 +08:00
parent 5ca1dc9ef6
commit 9e738e1bc1
12 changed files with 39 additions and 40 deletions

View File

@@ -145,9 +145,9 @@
{title: '规格', dataIndex: 'standard', width: 50},
{title: '型号', dataIndex: 'model', width: 50},
{title: '单位', dataIndex: 'mUnit', width: 50},
{title: '数量', dataIndex: 'operNumber', width: 60},
{title: '单价', dataIndex: 'unitPrice', width: 60},
{title: '金额', dataIndex: 'allPrice', width: 60},
{title: '数量', dataIndex: 'operNumber', sorter: (a, b) => a.operNumber - b.operNumber, width: 60},
{title: '单价', dataIndex: 'unitPrice', sorter: (a, b) => a.operNumber - b.operNumber, width: 60},
{title: '金额', dataIndex: 'allPrice', sorter: (a, b) => a.operNumber - b.operNumber, width: 60},
{title: '客户', dataIndex: 'sname', width: 80},
{title: '仓库', dataIndex: 'dname', width: 80},
{title: '出库日期', dataIndex: 'operTime', width: 80},