diff --git a/src/api/ecss/ecss.js b/src/api/ecss/ecss.js index 1f05c86..5a98491 100644 --- a/src/api/ecss/ecss.js +++ b/src/api/ecss/ecss.js @@ -20,3 +20,8 @@ export const deleteEcssDelDetail= data => createAPI(`/ecss/coDel/deleteEcssDelDe export const confirmEcssDel= data => createAPI(`/ecss/coDel/confirmEcssDel`,'post',data) export const cancerConfirmEcssDel= data => createAPI(`/ecss/coDel/cancerConfirmEcssDel`,'post',data) +export const searchEcssCoDelNotifyHeaderForCK = data => createAPI(`/ecss/coDel/searchEcssCoDelNotifyHeaderForCK`,'post',data) + +export const searchHsCodeData = data => createAPI(`/ecss/coDel/searchHsCodeData`,'post',data) + +export const saveHSCodeData = data => createAPI(`/ecss/coDel/saveHSCodeData`,'post',data) diff --git a/src/views/modules/ecss/codelnotify.vue b/src/views/modules/ecss/codelnotify.vue index 7dc6a37..d488dd8 100644 --- a/src/views/modules/ecss/codelnotify.vue +++ b/src/views/modules/ecss/codelnotify.vue @@ -49,6 +49,20 @@ {{'查询'}} {{'导入'}} + + {{ '导出' }} + @@ -1114,6 +1128,12 @@ }, ], currentRow:{}, + // 导出 start + exportData: [], + exportName: '发货通知单'+this.dayjs().format('YYYYMMDDHHmmss'), + exportHeader: ["发货通知单"], + exportFooter: [], + // 导出 end } }, mounted() { @@ -1348,6 +1368,36 @@ } }) }, + //导出excel + async createExportData() { + this.searchData.limit = -1 + this.searchData.page = 1 + await searchEcssCoDelNotifyHeader(this.searchData).then(({data}) => { + this.exportList= data.page.list; + }) + + return this.exportList; + }, + startDownload() { + // this.exportData = this.dataList + + }, + finishDownload() { + }, + fields() { + let json = "{" + this.columnList1.forEach((item, index) => { + if (index == this.columnList1.length - 1) { + json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + } else { + json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + "," + } + }) + json += "}" + let s = eval("(" + json + ")") + + return s + }, }, created() { this.getBu () diff --git a/src/views/modules/ecss/codelnotifyConfirm.vue b/src/views/modules/ecss/codelnotifyConfirm.vue index b85ef7b..55b03cb 100644 --- a/src/views/modules/ecss/codelnotifyConfirm.vue +++ b/src/views/modules/ecss/codelnotifyConfirm.vue @@ -175,7 +175,7 @@ + +