|
|
@ -53,6 +53,13 @@ |
|
|
|
<a-input style="margin-left: 5px" v-decorator="['profit_rate_max']" placeholder="请输入" /> |
|
|
|
<a-input style="margin-left: 5px" v-decorator="['profit_rate_max']" placeholder="请输入" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-form-item> |
|
|
|
</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 class="search-btn"> |
|
|
|
<a-form-item class="search-btn"> |
|
|
|
<a-button type="primary" icon="search" html-type="submit">搜索</a-button> |
|
|
|
<a-button type="primary" icon="search" html-type="submit">搜索</a-button> |
|
|
|
</a-form-item> |
|
|
|
</a-form-item> |
|
|
@ -120,6 +127,15 @@ |
|
|
|
:color="text == 10 ? 'green' : 'red'" |
|
|
|
:color="text == 10 ? 'green' : 'red'" |
|
|
|
@click="handleUpdateStatus([item.goods_id], text != 10)" |
|
|
|
@click="handleUpdateStatus([item.goods_id], text != 10)" |
|
|
|
>{{ text == 10 ? '上架' : '下架' }}</a-tag> |
|
|
|
>{{ text == 10 ? '上架' : '下架' }}</a-tag> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
<!-- 京东下架 --> |
|
|
|
|
|
|
|
<span slot="is_jd_remove" slot-scope="text"> |
|
|
|
|
|
|
|
<p |
|
|
|
|
|
|
|
style="width: 40px;text-align: center;" |
|
|
|
|
|
|
|
:style="{ color: text == 0 ? 'red' : 'green'}" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{{ text == 0 ? '是' : '否' }} |
|
|
|
|
|
|
|
</p> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<!-- 商品池 --> |
|
|
|
<!-- 商品池 --> |
|
|
|
<span slot="is_pool" slot-scope="text"> |
|
|
|
<span slot="is_pool" slot-scope="text"> |
|
|
@ -238,6 +254,12 @@ const columns = [ |
|
|
|
dataIndex: 'status', |
|
|
|
dataIndex: 'status', |
|
|
|
scopedSlots: { customRender: 'status' }, |
|
|
|
scopedSlots: { customRender: 'status' }, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
title: '京东下架', |
|
|
|
|
|
|
|
width: '60px', |
|
|
|
|
|
|
|
dataIndex: 'is_jd_remove', |
|
|
|
|
|
|
|
scopedSlots: { customRender: 'is_jd_remove' }, |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '商品池', |
|
|
|
title: '商品池', |
|
|
|
width: '60px', |
|
|
|
width: '60px', |
|
|
@ -281,7 +303,8 @@ export default { |
|
|
|
listType: 'all', |
|
|
|
listType: 'all', |
|
|
|
spec_type: '', |
|
|
|
spec_type: '', |
|
|
|
channel: '', |
|
|
|
channel: '', |
|
|
|
merchant_id: '' |
|
|
|
merchant_id: '', |
|
|
|
|
|
|
|
is_jd_remove:'' |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 正在加载 |
|
|
|
// 正在加载 |
|
|
|
isLoading: false, |
|
|
|
isLoading: false, |
|
|
@ -315,6 +338,10 @@ export default { |
|
|
|
{ name: '单规格', val: 10 }, |
|
|
|
{ name: '单规格', val: 10 }, |
|
|
|
{ name: '多规格', val: 20 }, |
|
|
|
{ name: '多规格', val: 20 }, |
|
|
|
], |
|
|
|
], |
|
|
|
|
|
|
|
isYesNo: [ |
|
|
|
|
|
|
|
{ name: '是', val: 1 }, |
|
|
|
|
|
|
|
{ name: '否', val: 0 }, |
|
|
|
|
|
|
|
], |
|
|
|
checkList: [], |
|
|
|
checkList: [], |
|
|
|
merchantList: [] |
|
|
|
merchantList: [] |
|
|
|
} |
|
|
|
} |
|
|
@ -344,6 +371,9 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
getGoodsJingDong(val){ |
|
|
|
|
|
|
|
this.queryParam.is_jd_remove = val |
|
|
|
|
|
|
|
}, |
|
|
|
// 批量修改 |
|
|
|
// 批量修改 |
|
|
|
handleModify() { |
|
|
|
handleModify() { |
|
|
|
this.$router.push('/goods/modify') |
|
|
|
this.$router.push('/goods/modify') |
|
|
@ -368,6 +398,8 @@ export default { |
|
|
|
(formData.profit_rate_min || '') + |
|
|
|
(formData.profit_rate_min || '') + |
|
|
|
'&categoryId=' + |
|
|
|
'&categoryId=' + |
|
|
|
(this.queryParam.categoryId || '') + |
|
|
|
(this.queryParam.categoryId || '') + |
|
|
|
|
|
|
|
'&is_jd_remove=' + |
|
|
|
|
|
|
|
(this.queryParam.is_jd_remove || '') + |
|
|
|
'&channel=' + |
|
|
|
'&channel=' + |
|
|
|
this.queryParam.channel + |
|
|
|
this.queryParam.channel + |
|
|
|
'&merchant_id=' + |
|
|
|
'&merchant_id=' + |
|
|
|