完善报表的导出和展示,增加品牌和制造商
This commit is contained in:
@@ -233,6 +233,9 @@
|
||||
{title: '名称', dataIndex: 'mname', width: 120, ellipsis:true},
|
||||
{title: '规格', dataIndex: 'standard', width: 60, ellipsis:true},
|
||||
{title: '型号', dataIndex: 'model', width: 60, ellipsis:true},
|
||||
{title: '颜色', dataIndex: 'color', width: 40, ellipsis:true},
|
||||
{title: '品牌', dataIndex: 'brand', width: 60, ellipsis:true},
|
||||
{title: '制造商', dataIndex: 'mfrs', width: 60, ellipsis:true},
|
||||
{title: '单位', dataIndex: 'mUnit', width: 50, ellipsis:true},
|
||||
{title: '多属性', dataIndex: 'sku', width: 100, ellipsis:true},
|
||||
{title: '数量', dataIndex: 'operNumber', sorter: (a, b) => a.operNumber - b.operNumber, width: 60},
|
||||
@@ -343,12 +346,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.number, ds.barCode, ds.mname, ds.standard, ds.model, ds.mUnit, ds.sku, ds.operNumber, ds.unitPrice,
|
||||
ds.allPrice, ds.taxRate, ds.taxMoney, ds.sname, ds.dname, ds.operTime, ds.newRemark)
|
||||
item.push(ds.number, ds.barCode, ds.mname, ds.standard, ds.model, ds.color, ds.brand, ds.mfrs, ds.mUnit, ds.sku,
|
||||
ds.operNumber, ds.unitPrice, ds.allPrice, ds.taxRate, ds.taxMoney, ds.sname, ds.dname, ds.operTime, ds.newRemark)
|
||||
list.push(item)
|
||||
}
|
||||
let tip = '单据日期:' + this.queryParam.beginTime + '~' + this.queryParam.endTime
|
||||
|
||||
Reference in New Issue
Block a user