优化数据统计
This commit is contained in:
@@ -702,9 +702,13 @@ export default {
|
|||||||
*/
|
*/
|
||||||
async geiShopList() {
|
async geiShopList() {
|
||||||
try {
|
try {
|
||||||
let res = await ShopApi.getBranchList()
|
if (this.shopInfo.isHeadShop) {
|
||||||
this.branchList = res;
|
let res = await ShopApi.getBranchList()
|
||||||
this.shopId = res[0].shopId
|
this.branchList = res;
|
||||||
|
this.shopId = res[0].shopId
|
||||||
|
} else {
|
||||||
|
this.shopId = this.shopInfo.id
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log('获取分店列表===', error);
|
console.log('获取分店列表===', error);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -248,9 +248,13 @@ export default {
|
|||||||
* 获取分店列表
|
* 获取分店列表
|
||||||
*/
|
*/
|
||||||
async geiShopList() {
|
async geiShopList() {
|
||||||
let res = await ShopApi.getBranchList()
|
if (this.shopInfo.isHeadShop) {
|
||||||
this.branchList = res;
|
let res = await ShopApi.getBranchList()
|
||||||
this.shopId = res[0].shopId
|
this.branchList = res;
|
||||||
|
this.shopId = res[0].shopId
|
||||||
|
} else {
|
||||||
|
this.shopId = this.shopInfo.id
|
||||||
|
}
|
||||||
},
|
},
|
||||||
totalfilter(item, d) {
|
totalfilter(item, d) {
|
||||||
let num = item + d;
|
let num = item + d;
|
||||||
|
|||||||
@@ -151,9 +151,13 @@ export default {
|
|||||||
* 获取分店列表
|
* 获取分店列表
|
||||||
*/
|
*/
|
||||||
async geiShopList() {
|
async geiShopList() {
|
||||||
let res = await ShopApi.getBranchList()
|
if (this.shopInfo.isHeadShop) {
|
||||||
this.branchList = res;
|
let res = await ShopApi.getBranchList()
|
||||||
this.shopId = res[0].shopId
|
this.branchList = res;
|
||||||
|
this.shopId = res[0].shopId
|
||||||
|
} else {
|
||||||
|
this.shopId = this.shopInfo.id
|
||||||
|
}
|
||||||
},
|
},
|
||||||
//携带table id跳转到订单列表页面
|
//携带table id跳转到订单列表页面
|
||||||
toTableOrderList(data) {
|
toTableOrderList(data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user