@@ -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({