diff --git a/src/api/product/productAttr.js b/src/api/product/productAttr.js index b54d4ae..de06fe7 100644 --- a/src/api/product/productAttr.js +++ b/src/api/product/productAttr.js @@ -61,6 +61,13 @@ export default { data }) }, + batchShelves(data) { + return request({ + url: `/${service_name}/mallProductInfo/upOrDownShelves`, + method: 'post', + data + }) + }, getAllSites(data) { return request({ url: `/${service_name}/mallProductSiteRelation/getAllSites`, diff --git a/src/views/product/productAdd/components/OilStationSelection.vue b/src/views/product/productAdd/components/OilStationSelection.vue index 2b053d3..293a434 100644 --- a/src/views/product/productAdd/components/OilStationSelection.vue +++ b/src/views/product/productAdd/components/OilStationSelection.vue @@ -1,149 +1,151 @@ +
+ + + + + + 查询 + 确定选择 + + + + + + + + + +
+ - \ No newline at end of file + diff --git a/src/views/product/productList/index.vue b/src/views/product/productList/index.vue index ed2e9f3..659813b 100644 --- a/src/views/product/productList/index.vue +++ b/src/views/product/productList/index.vue @@ -41,8 +41,8 @@
- 添加商品 - 商品采集 + + - 批量下架 - 批量上架 - 导出 + + + + 批量上架 + 批量下架
0){ + let selectedIds = selected.map(item=>item.id) + productApi.batchShelves({ + list:selectedIds, + productStatus:productStatus + }).then(res=>{ + if (res.code===20000){ + this.$message.success(res.msg) + this.getDataList() + } + }) + }else { + this.$message.error('请选择需要操作的数据') + } + }, getRowKey(row) { return row.id },