刘璐珈

This commit is contained in:
Vergil
2020-03-04 10:58:28 +08:00
parent e0057f1f4c
commit 7abbe21959
12 changed files with 139 additions and 91 deletions

View File

@@ -325,14 +325,14 @@ export default {
}
if (val.length !== 0) {
import('@/vendor/Export2Excel').then(excel => {
const tHeader = ['序号', '合同编号', '项目名称', '客户名称', '付款方式', '合同签订日期', '合同金额(万元)', '到账金额(万元)', '未收金额(万元)', '营销经理']
const filterVal = ['序号', '合同编号', '项目名称', '客户名称', '付款方式', '合同签订日期', '合同总金额(万元)', '到账金额(万元)', '未收金额(万元)', '营销经理']
const tHeader = ['合同编号', '项目名称', '客户名称', '付款方式', '合同签订日期', '合同金额(万元)', '已收(万元)', '未收(万元)', '营销经理']
const filterVal = ['合同编号', '项目名称', '客户名称', '付款方式', '合同签订日期', '合同总金额(万元)', '到账金额(万元)', '未收金额(万元)', '营销经理']
const list = val.data
const data = this.formatJson(filterVal, list)
excel.export_json_to_excel({
header: tHeader,
data,
filename: getNowShotTime(),
filename: '合同收款计划' + getNowShotTime(),
autoWidth: true,
bookType: 'xlsx'
})