完善报表的导出和展示,增加品牌和制造商

This commit is contained in:
jishenghua
2024-10-09 00:49:53 +08:00
parent 8795c9358c
commit 68c88f4569
11 changed files with 60 additions and 26 deletions

View File

@@ -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