Commit 56d8218a authored by 季圣华's avatar 季圣华
Browse files

优化采购和商品库存报表的excel导出功能

parent d315a9b2
...@@ -145,11 +145,11 @@ ...@@ -145,11 +145,11 @@
} }
}, },
exportExcel() { exportExcel() {
let aoa = [['条码', '名称', '规格', '型号', '扩展信息', '单位', '进货数量', '进货金额', '退货数量', '退货金额']] let aoa = [['条码', '名称', '规格', '型号', '扩展信息', '单位', '进货数量', '进货金额', '退货数量', '退货金额', '实际采购金额']]
for (let i = 0; i < this.dataSource.length; i++) { for (let i = 0; i < this.dataSource.length; i++) {
let ds = this.dataSource[i] let ds = this.dataSource[i]
let item = [ds.barCode, ds.materialName, ds.materialStandard, ds.materialModel, ds.materialOther, ds.materialUnit, let item = [ds.barCode, ds.materialName, ds.materialStandard, ds.materialModel, ds.materialOther, ds.materialUnit,
ds.inSum, ds.inSumPrice, ds.outSum, ds.outSumPrice] ds.inSum, ds.inSumPrice, ds.outSum, ds.outSumPrice, ds.inOutSumPrice]
aoa.push(item) aoa.push(item)
} }
openDownloadDialog(sheet2blob(aoa), '进货统计') openDownloadDialog(sheet2blob(aoa), '进货统计')
......
...@@ -235,7 +235,7 @@ ...@@ -235,7 +235,7 @@
this.$refs.materialInOutList.disableSubmit = false; this.$refs.materialInOutList.disableSubmit = false;
}, },
exportExcel() { exportExcel() {
let aoa = [['条码', '名称', '规格', '型号', '颜色', '类别', '单位', '单价', '初始库存', '当前库存', '当前库存金额']] let aoa = [['条码', '名称', '规格', '型号', '颜色', '类别', '单位', '单价', '初始库存', '库存', '库存金额']]
for (let i = 0; i < this.dataSource.length; i++) { for (let i = 0; i < this.dataSource.length; i++) {
let ds = this.dataSource[i] let ds = this.dataSource[i]
let item = [ds.mBarCode, ds.name, ds.standard, ds.model, ds.color, ds.categoryName, ds.unitName, let item = [ds.mBarCode, ds.name, ds.standard, ds.model, ds.color, ds.categoryName, ds.unitName,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment