Jelajahi Sumber

单航次配船页面

lichao 4 tahun lalu
induk
melakukan
0c54c4c509
1 mengubah file dengan 18 tambahan dan 16 penghapusan
  1. 18 16
      src/views/kaihe/singleVoyageShip/index.vue

+ 18 - 16
src/views/kaihe/singleVoyageShip/index.vue

@@ -410,7 +410,8 @@ export default {
     },
     // 离港出运
     departureShipment() {
-      if (this.ship[0].fArrivalStatus === 0) {
+      console.log(this.ship)
+      // if (this.ship[0].fArrivalStatus === 0) {
         if (this.departure === null) {
           this.$message({
             showClose: true,
@@ -435,17 +436,18 @@ export default {
             });
           })
         }
-      }else {
-        this.$message({
-          showClose: true,
-          message: '该航次已离港或已到港',
-          type: 'warning'
-        });
-      }
+      // }
+      // else {
+      //   this.$message({
+      //     showClose: true,
+      //     message: '该航次已离港或已到港',
+      //     type: 'warning'
+      //   });
+      // }
     },
     // 到港卸船
     unloading() {
-      if (this.ship[0].fArrivalStatus === 1) {
+      // if (this.ship[0].fArrivalStatus === 1) {
         if (this.arrival === null) {
           this.$message({
             showClose: true,
@@ -470,13 +472,13 @@ export default {
             });
           })
         }
-      } else {
-        this.$message({
-          showClose: true,
-          message: '该航次未离港或已到港',
-          type: 'warning'
-        });
-      }
+      // } else {
+      //   this.$message({
+      //     showClose: true,
+      //     message: '该航次未离港或已到港',
+      //     type: 'warning'
+      //   });
+      // }
     },
     // 导出清单
     shipInventoryExport() {