比同款下架

master
fanfan 5 months ago
parent 785399509c
commit 2c79e20159
  1. 26
      src/views/dataCenter/goods/Index.vue

@ -112,6 +112,13 @@
</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="比同款下架">
<a-select @change="getGoodsJingDong" style="width: 120px" placeholder="请选择">
<a-select-option :value="item.val" v-for="item in isYesNo" :key="item.val">
{{ item.name }}
</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="添加时间">
<div style="display: flex" class="goodsType" id="date">
<el-date-picker
@ -347,6 +354,12 @@
{{ text == 0 ? '待处理' : '已归类' }}
</p>
</span>
<!-- 京东下架 -->
<span slot="is_jd_remove" slot-scope="text">
<p style="width: 40px;text-align: center;" :style="{ color: text == 1 ? 'red' : 'green'}">
{{ text == 1 ? '是' : '否' }}
</p>
</span>
<!-- 商品状态 -->
<span slot="is_sale" slot-scope="text, item">
<a-tag class="cur-p" :color="text == 0 ? 'red' : text == 1 ? 'green' : 'gray'">{{
@ -445,6 +458,12 @@ const columns = [
sorter: true,
scopedSlots: { customRender: 'is_pool' },
},
{
title: '比同款下架',
width: '100px',
dataIndex: 'is_jd_remove',
scopedSlots: { customRender: 'is_jd_remove' },
},
{
title: '状态',
width: '50px',
@ -498,6 +517,7 @@ export default {
end_time: '',
is_has_banner: '',
is_has_detail: '',
is_jd_remove:''
},
//
isLoading: false,
@ -828,7 +848,9 @@ export default {
})
})
},
getGoodsJingDong(val) {
this.queryParam.is_jd_remove = val
},
getChannel(val) {
this.queryParam.channel = val
},
@ -1042,6 +1064,8 @@ export default {
this.queryParam.is_sale +
'&is_self=' +
this.queryParam.is_self +
'&is_jd_remove=' +
(this.queryParam.is_jd_remove || '') +
'&goodsIds=' +
goodsIds +
'&Access-Token=' +

Loading…
Cancel
Save