feat: 销售统计分类获取优化

This commit is contained in:
GaoHao 2025-04-10 11:00:58 +08:00
parent eb6dffb3d2
commit dedaaac375
1 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,7 @@
</el-form-item>
<el-form-item v-if="isHeadShop == 1">
<el-select v-model="shopId" placeholder="选择分店" style="width: 200px; margin-right: 10px">
<el-select v-model="shopId" placeholder="选择分店" style="width: 200px; margin-right: 10px" @change="getCategory">
<el-option v-for="item in branchList" :key="item.shopId" :label="item.shopName" :value="item.shopId" />
</el-select>
</el-form-item>
@ -215,6 +215,7 @@ export default {
//
async getCategory() {
try {
this.query.prodCategoryId = ""
const res = await categoryApi.getList({
page: 1,
size: 200,