优化数据统计

This commit is contained in:
gyq
2025-12-18 11:30:44 +08:00
parent 160c8b631c
commit 2635add6d2
3 changed files with 21 additions and 9 deletions

View File

@@ -151,9 +151,13 @@ export default {
* 获取分店列表
*/
async geiShopList() {
let res = await ShopApi.getBranchList()
this.branchList = res;
this.shopId = res[0].shopId
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跳转到订单列表页面
toTableOrderList(data) {