代客下单无桌台下单隐藏仅下单按钮按照外带模式处理

This commit is contained in:
YeMingfei666 2024-10-25 17:21:22 +08:00
parent d87b37fcea
commit df9a49813a
1 changed files with 82 additions and 67 deletions

View File

@ -396,78 +396,93 @@
</div> </div>
<div class="flex mt-14"> <div class="flex mt-14">
<template v-if="!postPay"> <template v-if="table">
<template v-if="isCreateOrder"> <template v-if="!postPay">
<!-- <template v-if="false"> --> <template v-if="isCreateOrder">
<button <!-- <template v-if="false"> -->
class="my-btn flex-1 default" <button
@click="createOrderClose" class="my-btn flex-1 default"
> @click="createOrderClose"
<span>点菜/返回</span> >
</button> <span>点菜/返回</span>
</button>
</template>
<template v-else>
<button
class="my-btn flex-1 primary"
@click="scanPayClick"
>
<span>微信/支付宝</span>
</button>
<div style="width: 15px"></div>
<button
class="my-btn flex-1 primary"
@click="cashPayClick"
>
<span>现金</span>
</button>
<div style="width: 15px"></div>
<button
class="my-btn flex-1 default"
@click="morePayClick"
>
<span>更多支付</span>
</button>
</template>
</template> </template>
<template v-else> <template v-else>
<button <template v-if="isCreateOrder">
class="my-btn flex-1 primary" <button
@click="scanPayClick" class="my-btn flex-1 default"
> @click="createOrderClose"
<span>微信/支付宝</span> >
</button> <span>加菜/返回</span>
<div style="width: 15px"></div> </button>
<button <div style="width: 15px"></div>
class="my-btn flex-1 primary" <button class="my-btn flex-1 primary" @click="payOrder">
@click="cashPayClick" <span>立即支付</span>
> </button>
<span>现金</span> </template>
</button> <template v-else>
<div style="width: 15px"></div> <template v-if="postPay">
<button <div class="flex-1">
class="my-btn flex-1 default" <el-button
@click="morePayClick" type="primary"
> size="medium"
<span>更多支付</span> :disabled="!order.list.length"
</button> @click="toCreateOrderDebounce(false)"
>
仅下单
</el-button>
</div>
<div style="width: 15px"></div>
</template>
<div class="flex-1">
<el-button
size="medium"
:disabled="
!order.list.length && !order.old.list.length
"
@click="toCreateOrderDebounce(true)"
>
去结账
</el-button>
</div>
</template>
</template> </template>
</template> </template>
<template v-else> <template v-else>
<template v-if="isCreateOrder"> <button class="my-btn flex-1 primary" @click="scanPayClick">
<button <span>微信/支付宝</span>
class="my-btn flex-1 default" </button>
@click="createOrderClose" <div style="width: 15px"></div>
> <button class="my-btn flex-1 primary" @click="cashPayClick">
<span>加菜/返回</span> <span>现金</span>
</button> </button>
<div style="width: 15px"></div> <div style="width: 15px"></div>
<button class="my-btn flex-1 primary" @click="payOrder"> <button class="my-btn flex-1 default" @click="morePayClick">
<span>立即支付</span> <span>更多支付</span>
</button> </button>
</template>
<template v-else>
<template v-if="postPay">
<div class="flex-1">
<el-button
type="primary"
size="medium"
:disabled="!order.list.length"
@click="toCreateOrderDebounce(false)"
>
仅下单
</el-button>
</div>
<div style="width: 15px"></div>
</template>
<div class="flex-1">
<el-button
size="medium"
:disabled="
!order.list.length && !order.old.list.length
"
@click="toCreateOrderDebounce(true)"
>
去结账
</el-button>
</div>
</template>
</template> </template>
</div> </div>
</div> </div>