问题修复
This commit is contained in:
@@ -221,7 +221,7 @@
|
||||
</view>
|
||||
<view class="u-m-l-20"> 返回 </view>
|
||||
</view>
|
||||
<view class="u-flex">
|
||||
<view class="u-flex" v-if="accountStore.isPayAfter">
|
||||
<text class="color-333 u-m-r-20"
|
||||
>上菜方式:{{ returnServingStyleName(subStatus) }}</text
|
||||
>
|
||||
@@ -577,7 +577,7 @@ function getshopsInfo() {
|
||||
|
||||
async function workerConfirm() {
|
||||
//debugger
|
||||
// form.workerAccount=18888888888
|
||||
form.workerAccount=accountStore.staffUserName
|
||||
if (!form.workerAccount) {
|
||||
return infoBox.showToast("请输入服务员账号");
|
||||
}
|
||||
|
||||
@@ -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