|
@@ -137,7 +137,7 @@
|
|
|
type="primary"
|
|
type="primary"
|
|
|
style="margin: 0 10px;"
|
|
style="margin: 0 10px;"
|
|
|
v-if="!details.endDateTime"
|
|
v-if="!details.endDateTime"
|
|
|
- @click="endTransaction"
|
|
|
|
|
|
|
+ @click="onClickEnd"
|
|
|
:loading="endLoading">
|
|
:loading="endLoading">
|
|
|
End Transaction
|
|
End Transaction
|
|
|
</el-button>
|
|
</el-button>
|
|
@@ -303,6 +303,15 @@
|
|
|
this.loading = false
|
|
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() {
|
|
endTransaction() {
|
|
|
this.endLoading = true;
|
|
this.endLoading = true;
|
|
|
api.endTransaction({
|
|
api.endTransaction({
|