订单管理去掉删除按钮

This commit is contained in:
wangxiaowei
2025-12-26 22:22:08 +08:00
parent 70a252c310
commit 907331cbeb

View File

@ -171,12 +171,12 @@
</view>
</template>
<template v-if="order.order_status === AdminOrderStatus.Finished || order.order_status === AdminOrderStatus.Cancelled">
<!-- <template v-if="order.order_status === AdminOrderStatus.Finished || order.order_status === AdminOrderStatus.Cancelled">
<view class="text-center flex items-center text-28rpx mt-28rpx justify-end">
<view class="w-178rpx h-70rpx rounded-8rpx border-[2rpx] border-[#9CA3AF] text-[#303133] flex items-center justify-center"
@click="ComboCard.handleDeleteOrder(order.id)">删除</view>
</view>
</template>
</template> -->
</view>
</view>
@ -312,29 +312,29 @@
/**
* 删除套餐
*/
handleDelteSetmealOrder: () => {
message.confirm({
title: '确定删除该套餐?',
msg: '删除后该套餐将无法恢复,是否确认删除?',
confirmButtonText: '确定',
cancelButtonText: '取消',
cancelButtonProps: {
customClass: '!bg-[#F6F7F8] !text-[#303133] !text-32rpx !leading-44rpx !rounded-8rpx',
},
confirmButtonProps: {
customClass: '!bg-[#4C9F44] !text-[#fff] !text-32rpx !leading-44rpx !rounded-8rpx',
}
}).then(async (res) => {
if (res.action == 'confirm') {
await deleteTeaSpecialistOrderPackage(props.order.id)
emit('refresh')
toast.info('删除成功')
}
// 点击确认按钮回调事件
}).catch(() => {
// 点击取消按钮回调事件
})
},
// handleDelteSetmealOrder: () => {
// message.confirm({
// title: '确定删除该套餐?',
// msg: '删除后该套餐将无法恢复,是否确认删除?',
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// cancelButtonProps: {
// customClass: '!bg-[#F6F7F8] !text-[#303133] !text-32rpx !leading-44rpx !rounded-8rpx',
// },
// confirmButtonProps: {
// customClass: '!bg-[#4C9F44] !text-[#fff] !text-32rpx !leading-44rpx !rounded-8rpx',
// }
// }).then(async (res) => {
// if (res.action == 'confirm') {
// await deleteTeaSpecialistOrderPackage(props.order.id)
// emit('refresh')
// toast.info('删除成功')
// }
// // 点击确认按钮回调事件
// }).catch(() => {
// // 点击取消按钮回调事件
// })
// },
/**
* 编辑商品