diff --git a/src/views/dataCenter/goods/Index.vue b/src/views/dataCenter/goods/Index.vue index 24ee981..94f90b8 100644 --- a/src/views/dataCenter/goods/Index.vue +++ b/src/views/dataCenter/goods/Index.vue @@ -164,9 +164,17 @@ v-model:visible="priceVisible" width="450px" title="分类加价" - @ok="handleUpdatePrice(selectedRowKeys, categoryPriceIds, rate)" + @ok="handleUpdatePrice(selectedRowKeys, categoryPriceIds, rate, channel)" >
{{ text > 0 ? Number(text) + '%' : 0 }}
- +{{ item.spec_type == 10 ? '单规格' : '多规格' }}
-- {{ item.spu_id>0? '已组合' : '未组合' }} +
+ {{ item.spu_id > 0 ? '已组合' : '未组合' }}
@@ -614,6 +629,7 @@ export default { categoryIds: [], categoryPriceIds: [], rate: '', + channel:'', batchRate: '', pickerOptions: { disabledDate(time) { @@ -874,6 +890,9 @@ export default { }) }) }, + getChannelRate(val) { + this.channel = val + }, getGoodsJingDong(val) { this.queryParam.is_jd_remove = val }, @@ -968,7 +987,11 @@ export default { this.categoryPriceIds.push(item.value) }) }, - handleUpdatePrice(goodsIds, categoryIds, rate) { + handleUpdatePrice(goodsIds, categoryIds, rate, channel) { + if (!channel) { + this.$message.warn('请选择渠道', 1.5) + return + } if (categoryIds.length == 0) { this.$message.warn('请至少选择1个商品分类', 1.5) return @@ -978,7 +1001,7 @@ export default { return } this.isLoading = true - GoodsApi.addPrice({ categoryIds, rate }) + GoodsApi.addPrice({ categoryIds, rate,channel }) .then((result) => { this.priceVisible = false this.$message.success(result.message, 1.5)