给报表页面增加部分排序
This commit is contained in:
@@ -184,7 +184,7 @@
|
||||
title: '单据编号', dataIndex: 'number', width: 100,
|
||||
scopedSlots: { customRender: 'numberCustomRender' },
|
||||
},
|
||||
{title: '条码', dataIndex: 'barCode', width: 80},
|
||||
{title: '条码', dataIndex: 'barCode', sorter: (a, b) => a.barCode - b.barCode, width: 80},
|
||||
{title: '名称', dataIndex: 'mname', width: 120, ellipsis:true},
|
||||
{title: '规格', dataIndex: 'standard', width: 60, ellipsis:true},
|
||||
{title: '型号', dataIndex: 'model', width: 60, ellipsis:true},
|
||||
|
||||
@@ -157,7 +157,7 @@
|
||||
return (t !== '合计') ? (parseInt(index) + 1) : t
|
||||
}
|
||||
},
|
||||
{title: '条码', dataIndex: 'barCode', width: 160},
|
||||
{title: '条码', dataIndex: 'barCode', sorter: (a, b) => a.barCode - b.barCode, width: 160},
|
||||
{title: '名称', dataIndex: 'materialName', width: 160, ellipsis:true},
|
||||
{title: '规格', dataIndex: 'materialStandard', width: 80, ellipsis:true},
|
||||
{title: '型号', dataIndex: 'materialModel', width: 80, ellipsis:true},
|
||||
|
||||
@@ -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' }
|
||||
}
|
||||
],
|
||||
|
||||
@@ -186,7 +186,7 @@
|
||||
title: '单据编号', dataIndex: 'number', width: 100,
|
||||
scopedSlots: { customRender: 'numberCustomRender' },
|
||||
},
|
||||
{title: '条码', dataIndex: 'barCode', width: 80},
|
||||
{title: '条码', dataIndex: 'barCode', sorter: (a, b) => a.barCode - b.barCode, width: 80},
|
||||
{title: '名称', dataIndex: 'mname', width: 120, ellipsis:true},
|
||||
{title: '规格', dataIndex: 'standard', width: 60, ellipsis:true},
|
||||
{title: '型号', dataIndex: 'model', width: 60, ellipsis:true},
|
||||
|
||||
@@ -151,7 +151,7 @@
|
||||
return (t !== '合计') ? (parseInt(index) + 1) : t
|
||||
}
|
||||
},
|
||||
{title: '条码', dataIndex: 'barCode', width: 120},
|
||||
{title: '条码', dataIndex: 'barCode', sorter: (a, b) => a.barCode - b.barCode, width: 120},
|
||||
{title: '名称', dataIndex: 'mName', width: 120, ellipsis:true},
|
||||
{title: '规格', dataIndex: 'standard', width: 100, ellipsis:true},
|
||||
{title: '型号', dataIndex: 'model', width: 100, ellipsis:true},
|
||||
|
||||
@@ -153,7 +153,7 @@
|
||||
return (t !== '合计') ? (parseInt(index) + 1) : t
|
||||
}
|
||||
},
|
||||
{title: '条码', dataIndex: 'barCode', width: 100},
|
||||
{title: '条码', dataIndex: 'barCode', sorter: (a, b) => a.barCode - b.barCode, width: 100},
|
||||
{title: '名称', dataIndex: 'materialName', width: 120, ellipsis:true},
|
||||
{title: '规格', dataIndex: 'materialStandard', width: 80, ellipsis:true},
|
||||
{title: '型号', dataIndex: 'materialModel', width: 80, ellipsis:true},
|
||||
|
||||
@@ -186,7 +186,7 @@
|
||||
title: '单据编号', dataIndex: 'number', width: 100,
|
||||
scopedSlots: { customRender: 'numberCustomRender' },
|
||||
},
|
||||
{title: '条码', dataIndex: 'barCode', width: 80},
|
||||
{title: '条码', dataIndex: 'barCode', sorter: (a, b) => a.barCode - b.barCode, width: 80},
|
||||
{title: '名称', dataIndex: 'mname', width: 120, ellipsis:true},
|
||||
{title: '规格', dataIndex: 'standard', width: 60, ellipsis:true},
|
||||
{title: '型号', dataIndex: 'model', width: 60, ellipsis:true},
|
||||
|
||||
@@ -151,7 +151,7 @@
|
||||
return (t !== '合计') ? (parseInt(index) + 1) : t
|
||||
}
|
||||
},
|
||||
{title: '条码', dataIndex: 'barCode', width: 120},
|
||||
{title: '条码', dataIndex: 'barCode', sorter: (a, b) => a.barCode - b.barCode, width: 120},
|
||||
{title: '名称', dataIndex: 'mName', width: 120, ellipsis:true},
|
||||
{title: '规格', dataIndex: 'standard', width: 100, ellipsis:true},
|
||||
{title: '型号', dataIndex: 'model', width: 100, ellipsis:true},
|
||||
|
||||
@@ -157,7 +157,7 @@
|
||||
return (t !== '合计') ? (parseInt(index) + 1) : t
|
||||
}
|
||||
},
|
||||
{title: '条码', dataIndex: 'barCode', width: 160},
|
||||
{title: '条码', dataIndex: 'barCode', sorter: (a, b) => a.barCode - b.barCode, width: 160},
|
||||
{title: '名称', dataIndex: 'materialName', width: 160, ellipsis:true},
|
||||
{title: '规格', dataIndex: 'materialStandard', width: 80, ellipsis:true},
|
||||
{title: '型号', dataIndex: 'materialModel', width: 80, ellipsis:true},
|
||||
|
||||
@@ -157,7 +157,7 @@
|
||||
return (t !== '合计') ? (parseInt(index) + 1) : t
|
||||
}
|
||||
},
|
||||
{title: '条码', dataIndex: 'barCode', width: 160},
|
||||
{title: '条码', dataIndex: 'barCode', sorter: (a, b) => a.barCode - b.barCode, width: 160},
|
||||
{title: '名称', dataIndex: 'materialName', width: 160, ellipsis:true},
|
||||
{title: '规格', dataIndex: 'materialStandard', width: 80, ellipsis:true},
|
||||
{title: '型号', dataIndex: 'materialModel', width: 80, ellipsis:true},
|
||||
|
||||
@@ -115,7 +115,7 @@
|
||||
}
|
||||
},
|
||||
{title: '仓库', dataIndex: 'depotName', width: 100, ellipsis:true},
|
||||
{title: '条码', dataIndex: 'barCode', width: 100},
|
||||
{title: '条码', dataIndex: 'barCode', sorter: (a, b) => a.barCode - b.barCode, width: 100},
|
||||
{title: '名称', dataIndex: 'mname', width: 100, ellipsis:true},
|
||||
{title: '规格', dataIndex: 'mstandard', width: 80, ellipsis:true},
|
||||
{title: '型号', dataIndex: 'mmodel', width: 80, ellipsis:true},
|
||||
|
||||
@@ -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' }
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user