优化出入库汇总界面

This commit is contained in:
季圣华 2022-05-30 22:26:01 +08:00
parent 79acd695cd
commit c24fdc717c
2 changed files with 3 additions and 3 deletions

View File

@ -153,7 +153,7 @@
{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: '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}
@ -207,7 +207,7 @@
}
},
exportExcel() {
let aoa = [['条码', '名称', '规格', '型号', '', '单位', '入库数量', '入库金额']]
let aoa = [['条码', '名称', '规格', '型号', '', '单位', '入库数量', '入库金额']]
for (let i = 0; i < this.dataSource.length; i++) {
let ds = this.dataSource[i]
let item = [ds.barCode, ds.mName, ds.standard, ds.model, ds.categoryName, ds.materialUnit, ds.numSum, ds.priceSum]

View File

@ -153,7 +153,7 @@
{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: '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}