diff --git a/src/views/commodity/sku.vue b/src/views/commodity/sku.vue
index 2c2a478..8490089 100644
--- a/src/views/commodity/sku.vue
+++ b/src/views/commodity/sku.vue
@@ -9,6 +9,14 @@
+
状态:
@@ -172,7 +187,9 @@ export default {
goodsList: [],
itemInfo: {},
role: localStorage.getItem('roleName') == '爆品运营',
- goodsIds: []
+ goodsIds: [],
+ brandIds: [],
+ brandList: []
})
function handleSearch() {
@@ -187,6 +204,7 @@ export default {
pageSize: data.pageSize,
service_id: data.service_id,
...data.filter,
+ brand_ids: data.brandIds.join(','),
goods_ids: data.goodsIds.join(',')
}
get(`/api/goods-skus`, params).then((res) => {
@@ -293,10 +311,17 @@ export default {
})
}
+ function getBrandList() {
+ get(`/api/all/brands`).then((res) => {
+ data.brandList = res.data
+ })
+ }
+
onMounted(() => {
fetchData()
getWarehouseList()
getGoodsList()
+ getBrandList()
})
return {
@@ -310,7 +335,8 @@ export default {
handleUpload,
commitOpa,
getWarehouseList,
- getGoodsList
+ getGoodsList,
+ getBrandList
}
}
}
@@ -342,6 +368,8 @@ export default {
}
.right{
width: calc(100% - 100px);
+ display: flex;
+ align-items: center;
}
.wid100{
width: 100%;