This commit is contained in:
gyq
2025-12-18 11:33:18 +08:00
4 changed files with 18 additions and 23 deletions

View File

@@ -709,11 +709,12 @@ export default {
*/
async geiShopList() {
try {
let shopInfo = JSON.parse(localStorage.getItem('userInfo'))
if (shopInfo.isHeadShop) {
if (this.shopInfo.isHeadShop) {
let res = await ShopApi.getBranchList()
this.branchList = res;
this.shopId = res[0].shopId
} else {
this.shopId = this.shopInfo.id
}
} catch (error) {
console.log('获取分店列表===', error);

View File

@@ -255,15 +255,12 @@ export default {
* 获取分店列表
*/
async geiShopList() {
try {
let shopInfo = JSON.parse(localStorage.getItem('userInfo'))
if (shopInfo.isHeadShop) {
let res = await ShopApi.getBranchList()
this.branchList = res;
this.shopId = res[0].shopId
}
} catch (error) {
console.log('获取分店列表===', error);
if (this.shopInfo.isHeadShop) {
let res = await ShopApi.getBranchList()
this.branchList = res;
this.shopId = res[0].shopId
} else {
this.shopId = this.shopInfo.id
}
},
totalfilter(item, d) {

View File

@@ -158,15 +158,12 @@ export default {
* 获取分店列表
*/
async geiShopList() {
try {
let shopInfo = JSON.parse(localStorage.getItem('userInfo'))
if (shopInfo.isHeadShop) {
let res = await ShopApi.getBranchList()
this.branchList = res;
this.shopId = res[0].shopId
}
} catch (error) {
console.log('获取分店列表===', error);
if (this.shopInfo.isHeadShop) {
let res = await ShopApi.getBranchList()
this.branchList = res;
this.shopId = res[0].shopId
} else {
this.shopId = this.shopInfo.id
}
},
//携带table id跳转到订单列表页面

View File

@@ -347,14 +347,14 @@ async function areainit() {
}
async function diancanShow(item, key) {
if (!key) {
router.push({ path: "/tool/index", query: { tableCode: item.tableCode } });
router.push({ path: "/Instead", query: { tableCode: item.tableCode } });
return;
}
if (key == "isAddGoods") {
router.push({ path: "/tool/index", query: { id: item.orderId, key } });
router.push({ path: "/Instead", query: { id: item.orderId, key } });
}
if (key == "isPayOrder") {
router.push({ path: "/tool/index", query: { id: item.orderId, key } });
router.push({ path: "/Instead", query: { id: item.orderId, key } });
}
}
const tabClick = (tab) => {