优化小票打印
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<el-icon class="icon">
|
||||
<TakeawayBox />
|
||||
</el-icon>
|
||||
<el-text class="t">({{ pendingCartNum }})</el-text>
|
||||
<el-text class="t">({{ goodsStore.pendingList.length }})</el-text>
|
||||
</div>
|
||||
<div class="number" @click="SelectVipUserRef.show()">
|
||||
<div class="left">
|
||||
@@ -106,7 +106,8 @@
|
||||
<div class="top">
|
||||
<div class="num-wrap">
|
||||
<div class="num_wrap_top">
|
||||
<div class="left" @click="allSelectedHandle" v-if="store.shopInfo.eatModel.includes('take-out')">
|
||||
<div class="left" @click="allSelectedHandle"
|
||||
v-if="store.shopInfo && store.shopInfo.eatModel.includes('take-out')">
|
||||
<div class="selected">
|
||||
<div class="selected_round" v-if="!goodsStore.allSelected"></div>
|
||||
<el-icon class="icon" v-else>
|
||||
@@ -118,7 +119,7 @@
|
||||
<div class="left" v-else></div>
|
||||
<div class="right">
|
||||
共<el-text>
|
||||
{{ goodsStore.cartInfo.total }}件
|
||||
{{ formatDecimal(goodsStore.cartInfo.total, 2, true) }}件
|
||||
</el-text>,¥{{ formatDecimal(goodsStore.cartInfo.totalAmount || 0) }}
|
||||
</div>
|
||||
</div>
|
||||
@@ -167,7 +168,7 @@
|
||||
<!-- 快捷收银 -->
|
||||
<fastCashier ref="fastCashierRef" type="0" />
|
||||
<!-- 挂起订单 -->
|
||||
<pendingCartModal ref="pendingCartModalRef" @select="pendingCartHandle" />
|
||||
<pendingCartModal ref="pendingCartModalRef" />
|
||||
<!-- 检查版本升级 -->
|
||||
<updateDialog />
|
||||
<!-- 选择会员 -->
|
||||
@@ -195,13 +196,12 @@ import { createOrder } from '@/api/order.js'
|
||||
import goods from "@/views/home/components/goods.vue";
|
||||
import member from "@/views/member/index.vue";
|
||||
import { useUser } from '@/store/user.js'
|
||||
import { useSocket } from '@/store/socket.js'
|
||||
|
||||
const SelectVipUserRef = ref(null)
|
||||
|
||||
const goodsStore = useGoods()
|
||||
const global = useGlobal()
|
||||
|
||||
|
||||
const socket = useSocket()
|
||||
const membershow = ref(false);
|
||||
const store = useUser();
|
||||
const remarkRef = ref(null);
|
||||
@@ -320,18 +320,15 @@ const allSelectedHandle = async () => {
|
||||
} else {
|
||||
goodsStore.allSelected = 1
|
||||
}
|
||||
|
||||
if (goodsStore.cartList.length) {
|
||||
goodsStore.operateCart({
|
||||
table_code: goodsStore.cartList[0].table_code,
|
||||
is_pack: goodsStore.allSelected
|
||||
}, 'batch')
|
||||
}
|
||||
};
|
||||
|
||||
// 购物车选中
|
||||
function selectCartItemHandle(index) {
|
||||
goodsStore.selectCartItemHandle(index)
|
||||
}
|
||||
|
||||
// 清除本地会员/台桌信息
|
||||
function clearMember() {
|
||||
global.setOrderMember({})
|
||||
global.setOrderTable({})
|
||||
}
|
||||
|
||||
// 显示转桌/并桌
|
||||
function showTableMerging() {
|
||||
|
||||
Reference in New Issue
Block a user