|
@@ -179,23 +179,21 @@
|
|
|
type="text"
|
|
|
icon="el-icon-position"
|
|
|
@click="repastOrderAcceptFun(scope.row,12)"
|
|
|
- v-if="scope.row.orderStatus == 3"
|
|
|
- v-hasPermi="configPermi.repastOrderAccept"
|
|
|
+ v-if="checkPermi(configPermi.repastOrderAccept) && scope.row.orderStatus == 3"
|
|
|
>接单</el-button>
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-position"
|
|
|
@click="repastOrderAcceptFun(scope.row,13)"
|
|
|
- v-hasPermi="configPermi.repastOrderAccept"
|
|
|
- v-if="scope.row.orderStatus == 3"
|
|
|
+ v-if="checkPermi(configPermi.repastOrderAccep) && scope.row.orderStatus == 3"
|
|
|
>拒单</el-button>
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-delete"
|
|
|
@click="cancelOrderFun(scope.row)"
|
|
|
- v-hasPermi="configPermi.cancelOrder"
|
|
|
+ v-if="checkPermi(configPermi.cancelOrder) && scope.row.orderStatus != 9"
|
|
|
>取消</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -227,6 +225,7 @@
|
|
|
import detailsBox from "./detailsBox/hotelsOrdersDetails.vue"
|
|
|
import repastOrderAccept from "./formBox/repastOrderAccept.vue";
|
|
|
import cancelOrder from "./formBox/cancelOrder.vue";
|
|
|
+ import { checkPermi } from "@/utils/permission"
|
|
|
export default {
|
|
|
name: "User",
|
|
|
dicts: ['tourism_ticketOrders_source','tourism_ticketOrders_status','tourism_ticketOrders_payStatus','tourism_ticketOrders_payWay'],
|
|
@@ -297,6 +296,7 @@
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ checkPermi,
|
|
|
/** 查询酒店列表 */
|
|
|
getList1() {
|
|
|
listTableApi(
|