fix: 修改优化转桌功能
This commit is contained in:
@@ -217,7 +217,7 @@
|
||||
<!-- 美团抖音核销 -->
|
||||
<quan-hexiao ref="refQuanHexiao"></quan-hexiao>
|
||||
<!-- 转桌 -->
|
||||
<rottable ref="refRotTable" :cartGoods="carts.list" @success="rottableSuccess"></rottable>
|
||||
<rottable ref="refRotTable" @confirm="rottableConfirm"></rottable>
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
@@ -267,13 +267,25 @@ function refChangeNumberConfirm(cart, num) {
|
||||
//转桌
|
||||
const refRotTable = ref();
|
||||
function rottableShow() {
|
||||
refRotTable.value.open({
|
||||
sourceOrderId: carts.oldOrder.id,
|
||||
});
|
||||
refRotTable.value.open(
|
||||
{
|
||||
sourceOrderId: carts.oldOrder.id,
|
||||
},
|
||||
carts.list,
|
||||
carts.oldOrder.detailMap
|
||||
);
|
||||
}
|
||||
async function rottableSuccess(tableCode) {
|
||||
const res = await getTableDetail({ tableCode: tableCode });
|
||||
tableClick(res);
|
||||
async function rottableConfirm(form, cart_id) {
|
||||
carts.rotTable(form.targetTableCode, cart_id);
|
||||
const res = await orderApi.mergeOrder(form);
|
||||
ElNotification({
|
||||
title: "成功",
|
||||
message: "合并成功",
|
||||
type: "success",
|
||||
});
|
||||
refRotTable.value.close();
|
||||
const res1 = await getTableDetail({ tableCode: form.targetTableCode });
|
||||
tableClick(res1);
|
||||
}
|
||||
|
||||
//美团抖音核销
|
||||
|
||||
Reference in New Issue
Block a user