فهرست منبع

出港、离港操作提示改为确认按钮形式

lichao 3 سال پیش
والد
کامیت
15e0bb4b3e
1فایلهای تغییر یافته به همراه27 افزوده شده و 13 حذف شده
  1. 27 13
      src/views/kaihe/singleVoyageShip/index.vue

+ 27 - 13
src/views/kaihe/singleVoyageShip/index.vue

@@ -410,7 +410,6 @@ export default {
     },
     // 离港出运
     departureShipment() {
-      console.log(this.ship)
       // if (this.ship[0].fArrivalStatus === 0) {
         if (this.departure === null) {
           this.$message({
@@ -428,12 +427,19 @@ export default {
             updateStatus: '1',
           }
           cargoStatus(data).then(response => {
-            this.getList();
-            this.$message({
-              showClose: true,
-              message: '出港操作成功',
-              type: 'success'
-            });
+            this.$alert('离港操作成功', '提示', {
+              confirmButtonText: '确定',
+              type: 'success',
+              callback: action => {
+                this.getList();
+              }
+            })
+            // this.$message({
+            //   showClose: true,
+            //   message: '出港操作成功',
+            //   type: 'success'
+            // });
+            // this.getList();
           })
         }
       // }
@@ -449,6 +455,7 @@ export default {
     unloading() {
       // if (this.ship[0].fArrivalStatus === 1) {
         if (this.arrival === null) {
+
           this.$message({
             showClose: true,
             message: '到港时间未选择',
@@ -464,12 +471,19 @@ export default {
             updateStatus: '2',
           }
           cargoStatus(data).then(response => {
-            this.getList();
-            this.$message({
-              showClose: true,
-              message: '到港操作成功',
-              type: 'success'
-            });
+            this.$alert('到港操作成功', '提示', {
+              confirmButtonText: '确定',
+              type: 'success',
+              callback: action => {
+                this.getList();
+              }
+            })
+            // this.$message({
+            //   showClose: true,
+            //   message: '到港操作成功',
+            //   type: 'success'
+            // });
+            // this.getList();
           })
         }
       // } else {