优化供应商、客户、会员导出功能
This commit is contained in:
@@ -182,10 +182,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
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.supplier, ds.contacts, ds.telephone, ds.phoneNum, ds.email, ds.beginNeedPay, ds.allNeedPay, ds.taxRate]
|
let enabledStr = ds.enabled?'启用':'禁用'
|
||||||
|
let item = [ds.supplier, ds.contacts, ds.telephone, ds.phoneNum, ds.email, ds.fax, ds.beginNeedGet,
|
||||||
|
ds.allNeedGet, ds.taxNum, ds.taxRate, ds.bankName, ds.accountNumber, ds.address, ds.description, enabledStr]
|
||||||
aoa.push(item)
|
aoa.push(item)
|
||||||
}
|
}
|
||||||
openDownloadDialog(sheet2blob(aoa), '客户信息')
|
openDownloadDialog(sheet2blob(aoa), '客户信息')
|
||||||
|
|||||||
@@ -179,10 +179,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.supplier, ds.contacts, ds.telephone, ds.phoneNum, ds.email, ds.advanceIn]
|
let enabledStr = ds.enabled?'启用':'禁用'
|
||||||
|
let item = [ds.supplier, ds.contacts, ds.telephone, ds.phoneNum, ds.email, ds.advanceIn, ds.description, enabledStr]
|
||||||
aoa.push(item)
|
aoa.push(item)
|
||||||
}
|
}
|
||||||
openDownloadDialog(sheet2blob(aoa), '会员信息')
|
openDownloadDialog(sheet2blob(aoa), '会员信息')
|
||||||
|
|||||||
@@ -181,10 +181,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
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.supplier, ds.contacts, ds.telephone, ds.phoneNum, ds.email, ds.beginNeedPay, ds.allNeedPay, ds.taxRate]
|
let enabledStr = ds.enabled?'启用':'禁用'
|
||||||
|
let item = [ds.supplier, ds.contacts, ds.telephone, ds.phoneNum, ds.email, ds.fax, ds.beginNeedPay,
|
||||||
|
ds.allNeedPay, ds.taxNum, ds.taxRate, ds.bankName, ds.accountNumber, ds.address, ds.description, enabledStr]
|
||||||
aoa.push(item)
|
aoa.push(item)
|
||||||
}
|
}
|
||||||
openDownloadDialog(sheet2blob(aoa), '供应商信息')
|
openDownloadDialog(sheet2blob(aoa), '供应商信息')
|
||||||
|
|||||||
Reference in New Issue
Block a user