vbea 2 лет назад
Родитель
Сommit
1759c64e3f
1 измененных файлов с 10 добавлено и 1 удалено
  1. 10 1
      Strides-Admin/src/views/transaction/view_transaction.vue

+ 10 - 1
Strides-Admin/src/views/transaction/view_transaction.vue

@@ -137,7 +137,7 @@
             type="primary"
             style="margin: 0 10px;"
             v-if="!details.endDateTime"
-            @click="endTransaction"
+            @click="onClickEnd"
             :loading="endLoading">
             End Transaction
           </el-button>
@@ -303,6 +303,15 @@
           this.loading = false
         })
       },
+      onClickEnd() {
+        this.$confirm('This operation only settle to abnormal transactions and will not end charging. Confirm do this?', 'Warning', {
+          confirmButtonText: 'Confirm',
+          cancelButtonText: 'Cancel',
+          type: 'warning'
+        }).then(res => {
+          this.endTransaction();
+        })
+      },
       endTransaction() {
         this.endLoading = true;
         api.endTransaction({