给报表页面增加部分排序

This commit is contained in:
jishenghua
2023-12-25 23:45:03 +08:00
parent 313f101a82
commit faf231b297
13 changed files with 19 additions and 19 deletions

View File

@@ -151,10 +151,10 @@
{title: '手机号码', dataIndex: 'telephone', width: 100},
{title: '联系电话', dataIndex: 'phoneNum', width: 100},
{title: '电子邮箱', dataIndex: 'email', width: 100},
{title: '期初应付', dataIndex: 'preNeed', width: 80},
{title: '本期欠款', dataIndex: 'debtMoney', width: 80},
{title: '本期付款', dataIndex: 'backMoney', width: 80},
{dataIndex: 'allNeed', width: 80,
{title: '期初应付', dataIndex: 'preNeed', sorter: (a, b) => a.preNeed - b.preNeed, width: 80},
{title: '本期欠款', dataIndex: 'debtMoney', sorter: (a, b) => a.debtMoney - b.debtMoney, width: 80},
{title: '本期付款', dataIndex: 'backMoney', sorter: (a, b) => a.backMoney - b.backMoney, width: 80},
{dataIndex: 'allNeed', sorter: (a, b) => a.allNeed - b.allNeed, width: 80,
slots: { title: 'customTitle' }
}
],