删除部分打印
This commit is contained in:
@@ -150,6 +150,7 @@
|
|||||||
import {
|
import {
|
||||||
back
|
back
|
||||||
} from "@/utils/uniapp.js";
|
} from "@/utils/uniapp.js";
|
||||||
|
import * as limitTimeDiscountapi from '@/common/api/market/limitTimeDiscount.js';
|
||||||
import {
|
import {
|
||||||
onLoad,
|
onLoad,
|
||||||
onUnload
|
onUnload
|
||||||
@@ -1096,6 +1097,8 @@
|
|||||||
Object.assign(listinfo, res);
|
Object.assign(listinfo, res);
|
||||||
getOrderInfoAfterCalcInit(res);
|
getOrderInfoAfterCalcInit(res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const limitTimeDiscountRes=ref(null)
|
||||||
async function init(opt) {
|
async function init(opt) {
|
||||||
await storeuser.actionsproductqueryProduct();
|
await storeuser.actionsproductqueryProduct();
|
||||||
|
|
||||||
@@ -1117,6 +1120,17 @@
|
|||||||
if (res && typeof res == "object") {
|
if (res && typeof res == "object") {
|
||||||
setOrder(res);
|
setOrder(res);
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
const limitRes = await limitTimeDiscountapi.getConfig({
|
||||||
|
shopId: uni.cache.get('shopId')
|
||||||
|
});
|
||||||
|
if (limitRes && typeof limitRes == 'object') {
|
||||||
|
limitTimeDiscountRes.value = limitRes;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
limitTimeDiscountRes.value = null;
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//获取店铺信息
|
//获取店铺信息
|
||||||
const shopInfoRes = await APIusershopInfodetail({
|
const shopInfoRes = await APIusershopInfodetail({
|
||||||
|
|||||||
@@ -606,7 +606,8 @@
|
|||||||
import isBetween from 'dayjs/plugin/isBetween';
|
import isBetween from 'dayjs/plugin/isBetween';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
APIshopUserInfo,APIusershopInfodetail
|
APIshopUserInfo,
|
||||||
|
APIusershopInfodetail
|
||||||
} from "@/common/api/member.js";
|
} from "@/common/api/member.js";
|
||||||
dayjs.extend(isBetween);
|
dayjs.extend(isBetween);
|
||||||
import {
|
import {
|
||||||
@@ -1535,7 +1536,7 @@
|
|||||||
|
|
||||||
for (let cart of arr) {
|
for (let cart of arr) {
|
||||||
const findItem = cartStore.carts.find(v => v.id == cart.id)
|
const findItem = cartStore.carts.find(v => v.id == cart.id)
|
||||||
if (findItem&&findItem.is_time_discount != cart.is_time_discount) {
|
if (findItem && findItem.is_time_discount != cart.is_time_discount) {
|
||||||
result.push({
|
result.push({
|
||||||
id: cart.id,
|
id: cart.id,
|
||||||
is_time_discount: findItem.is_time_discount
|
is_time_discount: findItem.is_time_discount
|
||||||
@@ -1683,7 +1684,6 @@
|
|||||||
}
|
}
|
||||||
if (Message.operate_type == 'time_discount_save') {
|
if (Message.operate_type == 'time_discount_save') {
|
||||||
cartStore.limitTimeDiscount = Message.data;
|
cartStore.limitTimeDiscount = Message.data;
|
||||||
console.log('time_discount_save', cartStore.limitTimeDiscount);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//除去p 每次返回都回执消息
|
//除去p 每次返回都回执消息
|
||||||
@@ -2183,6 +2183,17 @@
|
|||||||
} else {
|
} else {
|
||||||
await userStore.actionsproductqueryShop(newTableCode);
|
await userStore.actionsproductqueryShop(newTableCode);
|
||||||
await userStore.actionsproductqueryProduct();
|
await userStore.actionsproductqueryProduct();
|
||||||
|
const res = await APIhistoryOrder({
|
||||||
|
tableCode: uni.cache.get('tableCode')
|
||||||
|
});
|
||||||
|
|
||||||
|
if(res&&res.id){
|
||||||
|
return uni.showModal({
|
||||||
|
title:'提示',
|
||||||
|
content:'目标台桌使用中无法转桌',
|
||||||
|
showCancel:false
|
||||||
|
})
|
||||||
|
}
|
||||||
if (shopInfoRes.shopInfo.isTableFee === 1) {
|
if (shopInfoRes.shopInfo.isTableFee === 1) {
|
||||||
// 免桌位费,直接换桌
|
// 免桌位费,直接换桌
|
||||||
startUseTable();
|
startUseTable();
|
||||||
@@ -2191,6 +2202,7 @@
|
|||||||
tableInfo.value = uni.cache.get('shopTable');
|
tableInfo.value = uni.cache.get('shopTable');
|
||||||
showTableInfoPeopleNumPopup.value = true;
|
showTableInfoPeopleNumPopup.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
@@ -2212,9 +2224,9 @@
|
|||||||
const shopInfoRes = await APIusershopInfodetail({
|
const shopInfoRes = await APIusershopInfodetail({
|
||||||
shopId: uni.cache.get('shopId')
|
shopId: uni.cache.get('shopId')
|
||||||
});
|
});
|
||||||
if(shopInfoRes&&shopInfoRes.shopInfo){
|
if (shopInfoRes && shopInfoRes.shopInfo) {
|
||||||
Object.assign(shopInfo, shopInfoRes.shopInfo);
|
Object.assign(shopInfo, shopInfoRes.shopInfo);
|
||||||
uni.cache.set('shopInfo',shopInfoRes.shopInfo)
|
uni.cache.set('shopInfo', shopInfoRes.shopInfo)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -438,7 +438,6 @@ export const useCartsStore = defineStore("cart", () => {
|
|||||||
limitTimeDiscount.value = Message.data;
|
limitTimeDiscount.value = Message.data;
|
||||||
}
|
}
|
||||||
if (Message.operate_type == "time_discount_save") {
|
if (Message.operate_type == "time_discount_save") {
|
||||||
console.log("time_discount_save", Message.data);
|
|
||||||
limitTimeDiscount.value = Message.data;
|
limitTimeDiscount.value = Message.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user