fix:分店筛选增加
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item>
|
||||
<el-select v-model="storeId" placeholder="选择分店" style="width: 200px; margin-right: 10px">
|
||||
<el-select v-model="shopId" placeholder="选择分店" style="width: 200px; margin-right: 10px">
|
||||
<el-option v-for="item in branchList" :key="item.shopId" :label="item.shopName" :value="item.shopId" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@@ -157,6 +157,7 @@
|
||||
<script>
|
||||
import saleSummaryApi from "@/api/order/sale-summary";
|
||||
import categoryApi from "@/api/product/productclassification";
|
||||
import ShopApi from "@/api/account/shop";
|
||||
import dayjs from "dayjs";
|
||||
import { downloadFile } from "@/utils/index";
|
||||
|
||||
@@ -183,7 +184,7 @@ export default {
|
||||
payCount: "",
|
||||
payCountTotal: 0,
|
||||
branchList: [],
|
||||
storeId: null,
|
||||
shopId: null,
|
||||
};
|
||||
},
|
||||
filters: {
|
||||
@@ -216,6 +217,7 @@ export default {
|
||||
page: 1,
|
||||
size: 200,
|
||||
orderBy: "name asc",
|
||||
shopId: this.shopId
|
||||
});
|
||||
this.categorys = res;
|
||||
} catch (error) {
|
||||
@@ -230,7 +232,7 @@ export default {
|
||||
endDate: this.query.createdAt[1],
|
||||
prodCategoryId: this.query.prodCategoryId,
|
||||
productName: this.query.productName,
|
||||
|
||||
shopId: this.shopId,
|
||||
type: this.orderType,
|
||||
});
|
||||
this.payCount = res;
|
||||
@@ -247,6 +249,7 @@ export default {
|
||||
endDate: this.query.createdAt[1],
|
||||
prodCategoryId: this.query.prodCategoryId,
|
||||
productName: this.query.productName,
|
||||
shopId: this.shopId
|
||||
});
|
||||
downloadFile(file, "数据", "xlsx");
|
||||
this.downloadLoading = false;
|
||||
@@ -284,6 +287,7 @@ export default {
|
||||
endDate: this.query.createdAt[1],
|
||||
productName: this.query.productName,
|
||||
prodCategoryId: this.query.prodCategoryId,
|
||||
shopId: this.shopId
|
||||
});
|
||||
this.tableData.loading = false;
|
||||
this.tableData.data = res.records;
|
||||
|
||||
Reference in New Issue
Block a user