feat: 销售统计分类获取优化
This commit is contained in:
parent
eb6dffb3d2
commit
dedaaac375
|
|
@ -12,7 +12,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item v-if="isHeadShop == 1">
|
<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-option v-for="item in branchList" :key="item.shopId" :label="item.shopName" :value="item.shopId" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -215,6 +215,7 @@ export default {
|
||||||
// 获取商品分类
|
// 获取商品分类
|
||||||
async getCategory() {
|
async getCategory() {
|
||||||
try {
|
try {
|
||||||
|
this.query.prodCategoryId = ""
|
||||||
const res = await categoryApi.getList({
|
const res = await categoryApi.getList({
|
||||||
page: 1,
|
page: 1,
|
||||||
size: 200,
|
size: 200,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue