更新优化换桌功能
This commit is contained in:
@@ -69,7 +69,12 @@
|
||||
<div class="table_info" v-if="goodsStore.tableInfo.name">
|
||||
<div class="left">
|
||||
<span>台桌:{{ goodsStore.tableInfo.name }}</span>
|
||||
<span>{{ goodsStore.tableInfo.num || 1 }}人</span>
|
||||
<div class="n" @click="takeFoodCodeRef.show()">
|
||||
{{ goodsStore.tableInfo.num || 1 }}人
|
||||
<el-icon>
|
||||
<EditPen />
|
||||
</el-icon>
|
||||
</div>
|
||||
</div>
|
||||
<div class="close" @click="goodsStore.selectTable()">
|
||||
<el-icon class="icon">
|
||||
@@ -96,7 +101,7 @@
|
||||
</div>
|
||||
<CartItem
|
||||
:item="{ product_name: '客座费', number: goodsStore.tableInfo.num, salePrice: store.shopInfo.tableFee, memberPrice: store.shopInfo.tableFee }"
|
||||
v-if="!store.shopInfo.isTableFee && goodsStore.tableInfo.id && !goodsStore.allSelected" />
|
||||
v-if="!store.shopInfo.isTableFee && goodsStore.tableInfo.name && !goodsStore.allSelected" />
|
||||
<div class="order_list_item" v-for="(arr, index) in goodsStore.orderList" :key="index">
|
||||
<div class="order_num">
|
||||
<span class="l">{{ `第${arr.orderNum}次下单` }}</span>
|
||||
@@ -202,6 +207,8 @@
|
||||
<updateDialog />
|
||||
<!-- 选择会员 -->
|
||||
<SelectVipUser ref="SelectVipUserRef" @success="selectUser" />
|
||||
<!-- 修改就餐人数 -->
|
||||
<takeFoodCode ref="takeFoodCodeRef" title="修改就餐人数" placeholder="请输入就餐人数" @success="updateSeatNum" />
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
@@ -259,6 +266,12 @@ function quitAPPhandle(params) {
|
||||
ipcRenderer.send("quitHandler", "退出吧");
|
||||
}
|
||||
|
||||
function updateSeatNum(num) {
|
||||
goodsStore.tableInfo.num = num
|
||||
goodsStore.calcCartInfo()
|
||||
// goodsStore.operateCart({ table_code: goodsStore.tableInfo.tableCode, seat_num: num }, 'batch')
|
||||
}
|
||||
|
||||
// 重启刷新软件
|
||||
function printReloadHandle() {
|
||||
location.reload()
|
||||
@@ -661,6 +674,12 @@ function showTableMerging() {
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 var(--el-font-size-base);
|
||||
|
||||
.n {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.close {
|
||||
|
||||
Reference in New Issue
Block a user