ソースを参照

更新 物产导出航次列表

wzh 3 年 前
コミット
2abaa29df9
1 ファイル変更16 行追加7 行削除
  1. 16 7
      src/views/voyage/voyageList.vue

+ 16 - 7
src/views/voyage/voyageList.vue

@@ -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 "航次跟踪": {