|
@@ -217,6 +217,13 @@
|
|
|
@click="openDetails(scope.row)"
|
|
|
v-hasPermi="['orderMr:orderMr:details']"
|
|
|
>详情</el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="scope.row.status === 0"
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ @click="handleCancelOrder(scope.row)"
|
|
|
+ v-hasPermi="['orderMr:orderMr:cancel']"
|
|
|
+ >关闭订单</el-button>
|
|
|
<el-button
|
|
|
v-if="scope.row.status == 3 || scope.row.status == 7"
|
|
|
size="mini"
|
|
@@ -261,7 +268,8 @@
|
|
|
|
|
|
<script>
|
|
|
|
|
|
-import { pageList,downOrderListXls, printApi } from '@/api/order/orderMr'
|
|
|
+import { pageList,downOrderListXls, printApi } from '@/api/order/orderMr';
|
|
|
+import { orderInfoCancel } from '@/api/windowTicketSales/ticketingSales';
|
|
|
import detailsDia from "./dialog/details";
|
|
|
import { pagePerformTimeList } from "@/api/schedulingMr/schedulingMr"
|
|
|
import { exportExcel } from '@/utils/exportexcel'
|
|
@@ -539,7 +547,25 @@ export default {
|
|
|
this.dialogVisibleLoading = false
|
|
|
})
|
|
|
|
|
|
- }
|
|
|
+ },
|
|
|
+ /** 关闭订单 */
|
|
|
+ handleCancelOrder(row) {
|
|
|
+ this.$confirm("是否关闭" + row.id + "的订单?", '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ orderInfoCancel({ orderId: row.id}).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '操作成功!'
|
|
|
+ });
|
|
|
+ this.getList();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }).catch(() => {});
|
|
|
+ },
|
|
|
}
|
|
|
};
|
|
|
</script>
|