Commit 5ae92387 authored by dragondean@qq.com's avatar dragondean@qq.com

下载已装单改异步

parent ee579df8
...@@ -209,11 +209,11 @@ ...@@ -209,11 +209,11 @@
<script> <script>
import { import {
deletebox, deletebox,
getbox, getbox,
getboxPage, getboxPage,
exportboxExcel, exportboxExcel,
getNoticeList, dealCustomsSplitNotify, exportSeaPreloadGoodsList, zipDownload, getNoticeList, dealCustomsSplitNotify, exportSeaPreloadGoodsList, zipDownload, downloadLoadGoodsList,
} from "@/api/ecw/box"; } from "@/api/ecw/box";
import { import {
downloadFile, downloadFile,
...@@ -498,12 +498,9 @@ export default { ...@@ -498,12 +498,9 @@ export default {
this.exportExcel(exportSeaPreloadGoodsList, { shipmentId: row.id }, this.$t("预装单") + `(${row.selfNo}).xlsx`) this.exportExcel(exportSeaPreloadGoodsList, { shipmentId: row.id }, this.$t("预装单") + `(${row.selfNo}).xlsx`)
break; break;
case "downloadLoadGoodsList": case "downloadLoadGoodsList":
downloadFile( downloadLoadGoodsList({ shipmentId: row.id }).then(res => {
command, this.$message.success(this.$t('已加入导出队列,请稍后在下载日志中下载'))
{ shipmentId: row.id }, })
this.$t("已装单") + `(${row.selfNo}).xlsx`,
"xlsx"
);
break; break;
case "downloadReceivableList": case "downloadReceivableList":
downloadFile( downloadFile(
......
...@@ -108,10 +108,15 @@ ...@@ -108,10 +108,15 @@
<script> <script>
import { import {
getMakeBillList, getMakeBillList,
makeBillService, makeBillService,
getBillService, getBillService,
deleteBillService, zipDownload, downloadReceivableList, makeAirBillService, downloadAirReceivableList, deleteBillService,
zipDownload,
downloadReceivableList,
makeAirBillService,
downloadAirReceivableList,
downloadLoadGoodsList,
} from "@/api/ecw/box"; } from "@/api/ecw/box";
import { import {
getTotlContent, getTotlContent,
...@@ -217,12 +222,15 @@ export default { ...@@ -217,12 +222,15 @@ export default {
}); });
break; break;
case "downloadLoadGoodsList": case "downloadLoadGoodsList":
downloadFile( downloadLoadGoodsList({ shipmentId: this.shipmentObj.id }).then(res => {
this.$message.success(this.$t('已加入导出队列,请稍后在下载日志中下载'))
})
/*downloadFile(
type, type,
{ shipmentId: this.shipmentObj.id }, { shipmentId: this.shipmentObj.id },
this.$t("已装单") + `(${this.shipmentObj.selfNo}).xlsx`, this.$t("已装单") + `(${this.shipmentObj.selfNo}).xlsx`,
"xlsx" "xlsx"
); );*/
return; return;
case "downloadReceivableList": case "downloadReceivableList":
const api = this.type == 'air' ? downloadAirReceivableList : downloadReceivableList; const api = this.type == 'air' ? downloadAirReceivableList : downloadReceivableList;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment