优化数据分店查询
This commit is contained in:
@@ -688,6 +688,7 @@ export default {
|
||||
async geiShopList() {
|
||||
let res = await ShopApi.getBranchList()
|
||||
this.branchList = res;
|
||||
this.shopId = res[0].shopId
|
||||
},
|
||||
shopChange() {
|
||||
this.summarytrade();
|
||||
@@ -714,7 +715,7 @@ export default {
|
||||
beginDate: this.query.createdAt[0],
|
||||
endDate: this.query.createdAt[1],
|
||||
rangeType: this.timeValue,
|
||||
shopId: this.shopInfo.id
|
||||
shopId: this.shopId
|
||||
});
|
||||
this.trade = res;
|
||||
this.tradeSale = res.sale;
|
||||
@@ -1277,7 +1278,7 @@ export default {
|
||||
this.saleTableLoading = true;
|
||||
const res = await dataSummaryApi.productSaleDate({
|
||||
day: this.saleTableActive,
|
||||
shopId: this.shopInfo.id,
|
||||
shopId: this.shopId,
|
||||
});
|
||||
this.saleTable = res;
|
||||
this.saleTableTotal = res.length;
|
||||
@@ -1293,7 +1294,7 @@ export default {
|
||||
async datePayType() {
|
||||
try {
|
||||
this.payChartLoading = true;
|
||||
const res = await dataSummaryApi.datePayType({ day: this.saleActive, shopId: this.shopInfo.id });
|
||||
const res = await dataSummaryApi.datePayType({ day: this.saleActive, shopId: this.shopId });
|
||||
const data = res.map((item) => {
|
||||
return {
|
||||
value: item.count,
|
||||
|
||||
Reference in New Issue
Block a user