给基础报表的导出走接口查询逻辑
This commit is contained in:
@@ -276,14 +276,17 @@
|
||||
}
|
||||
},
|
||||
exportExcel() {
|
||||
let aoa = [['单据编号', '条码', '名称', '规格', '型号', '单位', '数量', '单价', '金额', '调出仓库', '调入仓库', '调拨日期', '备注']]
|
||||
let list = []
|
||||
let head = '单据编号,条码,名称,规格,型号,单位,数量,单价,金额,调出仓库,调入仓库,调拨日期,备注'
|
||||
for (let i = 0; i < this.dataSource.length; i++) {
|
||||
let item = []
|
||||
let ds = this.dataSource[i]
|
||||
let item = [ds.number, ds.barCode, ds.mname, ds.standard, ds.model, ds.mUnit, ds.operNumber,
|
||||
ds.unitPrice, ds.allPrice, ds.dname, ds.sname, ds.operTime, ds.newRemark]
|
||||
aoa.push(item)
|
||||
item.push(ds.number, ds.barCode, ds.mname, ds.standard, ds.model, ds.mUnit, ds.operNumber,
|
||||
ds.unitPrice, ds.allPrice, ds.dname, ds.sname, ds.operTime, ds.newRemark)
|
||||
list.push(item)
|
||||
}
|
||||
openDownloadDialog(sheet2blob(aoa), '调拨明细')
|
||||
let tip = '单据日期:' + this.queryParam.beginTime + '~' + this.queryParam.endTime
|
||||
this.handleExportXlsPost('调拨明细', '调拨明细', head, tip, list)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user