|
|
@@ -117,7 +117,10 @@
|
|
|
width="200px"
|
|
|
>
|
|
|
<div class="df aic jcsb">
|
|
|
- <div v-if="exportModalTitle != '航次列表'" class="df aic">
|
|
|
+ <div
|
|
|
+ v-if="exportModalTitle != '航次列表' || cargoOwnerId == 7"
|
|
|
+ class="df aic"
|
|
|
+ >
|
|
|
<div class="mr20">请选择月份:</div>
|
|
|
<el-date-picker
|
|
|
v-model="currentMonth"
|
|
|
@@ -965,15 +968,21 @@ async function exportZip() {
|
|
|
let title = "";
|
|
|
switch (exportModalTitle.value) {
|
|
|
case "航次列表": {
|
|
|
- path = "/voyage/exportListExcel";
|
|
|
+ if (localStorage.userId == 7) {
|
|
|
+ path = "/voyage/exportVoyageReportExcel";
|
|
|
+ postData.loginAccountId = localStorage.loginAccountId;
|
|
|
+ postData.date = currentMonth.value;
|
|
|
+ } else {
|
|
|
+ path = "/voyage/exportListExcel";
|
|
|
+ let arr = [];
|
|
|
+ for (let i of tableData.value) {
|
|
|
+ arr.push(i.id);
|
|
|
+ }
|
|
|
+ postData.voyageIds = arr.join(",");
|
|
|
+ }
|
|
|
type =
|
|
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8";
|
|
|
title = `${exportModalTitle.value}`;
|
|
|
- let arr = [];
|
|
|
- for (let i of tableData.value) {
|
|
|
- arr.push(i.id);
|
|
|
- }
|
|
|
- postData.voyageIds = arr.join(",");
|
|
|
break;
|
|
|
}
|
|
|
case "航次跟踪": {
|