|
|
|
@ -56,7 +56,8 @@ |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="' '" > |
|
|
|
<el-button @click="importModel()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'导入'}}</el-button> |
|
|
|
<download-excel |
|
|
|
<el-button @click="exportExcel()" type="primary" style="margin-left: 2px">{{'导出'}}</el-button> |
|
|
|
<!-- <download-excel |
|
|
|
:fields="fields()" |
|
|
|
:data="exportData" |
|
|
|
type="xls" |
|
|
|
@ -67,9 +68,9 @@ |
|
|
|
:before-generate="startDownload" |
|
|
|
:before-finish="finishDownload" |
|
|
|
worksheet="导出信息" |
|
|
|
class="el-button el-button--primary el-button--medium"> |
|
|
|
class="el-button el-button--primary el-button--medium"> |
|
|
|
{{ '导出' }} |
|
|
|
</download-excel> |
|
|
|
</download-excel>--> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label=" "> |
|
|
|
<el-button @click="exportInvoiceList()" type="primary" style="margin-left: 2px">{{'导出发票'}}</el-button> |
|
|
|
@ -668,6 +669,7 @@ |
|
|
|
import delUploadExcel from "./del_upload_excel.vue"; |
|
|
|
import delDetailUploadExcel from "./del_detail_upload_excel.vue"; |
|
|
|
import {} from "@/api/sysLanguage.js" |
|
|
|
import excel from "@/utils/excel-util.js"; |
|
|
|
import { |
|
|
|
searchEcssCoDelNotifyHeader, |
|
|
|
searchEcssCoDelNotifyDetail, |
|
|
|
@ -2264,6 +2266,20 @@ |
|
|
|
|
|
|
|
return s |
|
|
|
}, |
|
|
|
async exportExcel() { |
|
|
|
this.searchData.limit = -1 |
|
|
|
this.searchData.page = 1 |
|
|
|
excel.exportTable({ |
|
|
|
url: "/ecss/coDel/searchEcssCoDelNotifyHeader", |
|
|
|
columnMapping: this.columnList1,//可以直接用table,不需要的列就剔除 |
|
|
|
mergeSetting: [],//需要合并的列 |
|
|
|
params: this.searchData, |
|
|
|
fileName: this.exportName+".xlsx", |
|
|
|
rowFetcher: res => res.data, |
|
|
|
columnFormatter: [], |
|
|
|
dropColumns: [],//需要剔除的列,例如dropColumns: ["netWeight"],即剔除净重列 |
|
|
|
}); |
|
|
|
}, |
|
|
|
getSummaries(param) { |
|
|
|
const { columns } = param; |
|
|
|
const sums = []; |
|
|
|
|