问题修复
This commit is contained in:
@@ -284,8 +284,6 @@
|
||||
ref="surcharge"
|
||||
title="添加附加费"
|
||||
></my-surcharge>
|
||||
<!-- 登录弹窗 -->
|
||||
<my-login v-model="modal.login" @loginSuccess="loginSuccess"></my-login>
|
||||
<!-- 称重 -->
|
||||
<weigh-item
|
||||
ref="refweighitem"
|
||||
@@ -310,8 +308,6 @@ import _ from "lodash";
|
||||
import * as Api from "@/http/yskApi/Instead.js";
|
||||
import * as limitTimeDiscountApi from "@/http/yskApi/limitTimeDiscount.js";
|
||||
|
||||
|
||||
|
||||
import {
|
||||
$table,
|
||||
$choseTable,
|
||||
@@ -364,12 +360,11 @@ import { getNowCart } from "@/pagesCreateOrder/util.js";
|
||||
import yskUtils from "@/lib/index";
|
||||
provide("yskUtils", yskUtils);
|
||||
|
||||
import {useAccountStore} from '@/stores/account'
|
||||
const accountStore = useAccountStore()
|
||||
import { useAccountStore } from "@/stores/account";
|
||||
const accountStore = useAccountStore();
|
||||
|
||||
provide("accountStore", accountStore);
|
||||
|
||||
|
||||
import {
|
||||
$productCategory,
|
||||
$layoutpage,
|
||||
@@ -632,6 +627,9 @@ async function getHistoryOrderDetail() {
|
||||
let res = await getHistoryOrder({
|
||||
tableCode: data.table.tableCode,
|
||||
});
|
||||
if (!res.id) {
|
||||
return;
|
||||
}
|
||||
data.orderInfo = res;
|
||||
if (res) {
|
||||
data.historyOrder = Object.entries(data.orderInfo.detailMap).map(
|
||||
@@ -2040,7 +2038,7 @@ async function getTableDetail() {
|
||||
tableCode: data.table.tableCode,
|
||||
});
|
||||
console.log(res, "getTableDetail");
|
||||
if(res){
|
||||
if (res && res.tableCode) {
|
||||
data.table = res;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user