完善报表的导出和展示,增加品牌和制造商
This commit is contained in:
@@ -149,6 +149,9 @@
|
||||
{title: '名称', dataIndex: 'mname', width: 100, ellipsis:true},
|
||||
{title: '规格', dataIndex: 'mstandard', width: 80, ellipsis:true},
|
||||
{title: '型号', dataIndex: 'mmodel', width: 80, ellipsis:true},
|
||||
{title: '颜色', dataIndex: 'mcolor', width: 50, ellipsis:true},
|
||||
{title: '品牌', dataIndex: 'brand', width: 80, ellipsis:true},
|
||||
{title: '制造商', dataIndex: 'mmfrs', width: 80, ellipsis:true},
|
||||
{title: '扩展信息', dataIndex: 'materialOther', width: 100, ellipsis:true},
|
||||
{title: '单位', dataIndex: 'materialUnit', width: 60, ellipsis:true},
|
||||
{title: '库存', dataIndex: 'currentNumber', sorter: (a, b) => a.currentNumber - b.currentNumber, width: 80},
|
||||
@@ -185,12 +188,12 @@
|
||||
},
|
||||
exportExcel() {
|
||||
let list = []
|
||||
let head = '仓库,条码,名称,规格,型号,扩展信息,单位,库存,最低安全库存,最高安全库存,建议入库量,建议出库量'
|
||||
let head = '仓库,条码,名称,规格,型号,颜色,品牌,制造商,扩展信息,单位,库存,最低安全库存,最高安全库存,建议入库量,建议出库量'
|
||||
for (let i = 0; i < this.dataSource.length; i++) {
|
||||
let item = []
|
||||
let ds = this.dataSource[i]
|
||||
item.push(ds.depotName, ds.barCode, ds.mname, ds.mstandard, ds.mmodel, ds.materialOther, ds.materialUnit,
|
||||
ds.currentNumber, ds.lowSafeStock, ds.highSafeStock, ds.lowCritical, ds.highCritical)
|
||||
item.push(ds.depotName, ds.barCode, ds.mname, ds.mstandard, ds.mmodel, ds.mcolor, ds.brand, ds.mmfrs,
|
||||
ds.materialOther, ds.materialUnit, ds.currentNumber, ds.lowSafeStock, ds.highSafeStock, ds.lowCritical, ds.highCritical)
|
||||
list.push(item)
|
||||
}
|
||||
let tip = '库存预警查询'
|
||||
|
||||
Reference in New Issue
Block a user