代客下单无桌台下单隐藏仅下单按钮按照外带模式处理
This commit is contained in:
parent
d87b37fcea
commit
df9a49813a
|
|
@ -396,78 +396,93 @@
|
|||
</div>
|
||||
|
||||
<div class="flex mt-14">
|
||||
<template v-if="!postPay">
|
||||
<template v-if="isCreateOrder">
|
||||
<!-- <template v-if="false"> -->
|
||||
<button
|
||||
class="my-btn flex-1 default"
|
||||
@click="createOrderClose"
|
||||
>
|
||||
<span>点菜/返回</span>
|
||||
</button>
|
||||
<template v-if="table">
|
||||
<template v-if="!postPay">
|
||||
<template v-if="isCreateOrder">
|
||||
<!-- <template v-if="false"> -->
|
||||
<button
|
||||
class="my-btn flex-1 default"
|
||||
@click="createOrderClose"
|
||||
>
|
||||
<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 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 v-if="isCreateOrder">
|
||||
<button
|
||||
class="my-btn flex-1 default"
|
||||
@click="createOrderClose"
|
||||
>
|
||||
<span>加菜/返回</span>
|
||||
</button>
|
||||
<div style="width: 15px"></div>
|
||||
<button class="my-btn flex-1 primary" @click="payOrder">
|
||||
<span>立即支付</span>
|
||||
</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>
|
||||
<template v-else>
|
||||
<template v-if="isCreateOrder">
|
||||
<button
|
||||
class="my-btn flex-1 default"
|
||||
@click="createOrderClose"
|
||||
>
|
||||
<span>加菜/返回</span>
|
||||
</button>
|
||||
<div style="width: 15px"></div>
|
||||
<button class="my-btn flex-1 primary" @click="payOrder">
|
||||
<span>立即支付</span>
|
||||
</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>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue