|
|
@ -113,12 +113,12 @@ |
|
|
|
</a-select> |
|
|
|
</a-select> |
|
|
|
</a-form-item> |
|
|
|
</a-form-item> |
|
|
|
<a-form-item label="比同款下架"> |
|
|
|
<a-form-item label="比同款下架"> |
|
|
|
<a-select @change="getGoodsJingDong" style="width: 120px" placeholder="请选择"> |
|
|
|
<a-select @change="getGoodsJingDong" style="width: 120px" placeholder="请选择"> |
|
|
|
<a-select-option :value="item.val" v-for="item in isYesNo" :key="item.val"> |
|
|
|
<a-select-option :value="item.val" v-for="item in isYesNo" :key="item.val"> |
|
|
|
{{ item.name }} |
|
|
|
{{ item.name }} |
|
|
|
</a-select-option> |
|
|
|
</a-select-option> |
|
|
|
</a-select> |
|
|
|
</a-select> |
|
|
|
</a-form-item> |
|
|
|
</a-form-item> |
|
|
|
<a-form-item label="添加时间"> |
|
|
|
<a-form-item label="添加时间"> |
|
|
|
<div style="display: flex" class="goodsType" id="date"> |
|
|
|
<div style="display: flex" class="goodsType" id="date"> |
|
|
|
<el-date-picker |
|
|
|
<el-date-picker |
|
|
@ -191,9 +191,15 @@ |
|
|
|
title="批量加价" |
|
|
|
title="批量加价" |
|
|
|
@ok="handleBatchPrice(selectedRowKeys, batchRate)" |
|
|
|
@ok="handleBatchPrice(selectedRowKeys, batchRate)" |
|
|
|
> |
|
|
|
> |
|
|
|
<div class="fen" style="margin-top:-10px"> |
|
|
|
<div class="fen" style="margin-top: -10px"> |
|
|
|
<span style="margin-right: 5px">加价利润率:</span> |
|
|
|
<span style="margin-right: 5px">加价利润率:</span> |
|
|
|
<input placeholder="请输入加价利润率" @input="validateBatchAmount" v-model="batchRate" class="input" type="text" /> |
|
|
|
<input |
|
|
|
|
|
|
|
placeholder="请输入加价利润率" |
|
|
|
|
|
|
|
@input="validateBatchAmount" |
|
|
|
|
|
|
|
v-model="batchRate" |
|
|
|
|
|
|
|
class="input" |
|
|
|
|
|
|
|
type="text" |
|
|
|
|
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-modal> |
|
|
|
</a-modal> |
|
|
|
<a-modal |
|
|
|
<a-modal |
|
|
@ -271,8 +277,8 @@ |
|
|
|
>分类加价</a-button |
|
|
|
>分类加价</a-button |
|
|
|
> |
|
|
|
> |
|
|
|
<a-button |
|
|
|
<a-button |
|
|
|
v-if="selectedRowKeys.length" |
|
|
|
v-if="selectedRowKeys.length" |
|
|
|
style="background-color: #67C23A; color: #fff; border: none; border-radius: 2px" |
|
|
|
style="background-color: #67c23a; color: #fff; border: none; border-radius: 2px" |
|
|
|
@click="batchPrice = true" |
|
|
|
@click="batchPrice = true" |
|
|
|
>批量加价</a-button |
|
|
|
>批量加价</a-button |
|
|
|
> |
|
|
|
> |
|
|
@ -349,22 +355,25 @@ |
|
|
|
{{ text == 0 ? '待处理' : text == 1 ? '已入池' : '未入池' }} |
|
|
|
{{ text == 0 ? '待处理' : text == 1 ? '已入池' : '未入池' }} |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<span slot="spec_type" slot-scope="text"> |
|
|
|
<span slot="item_1" slot-scope="item"> |
|
|
|
<p class="twoline-hide" style="width: 40px"> |
|
|
|
<p class="twoline-hide" style="width: 40px"> |
|
|
|
{{ text == 10 ? '单规格' : '多规格' }} |
|
|
|
{{ item.spec_type == 10 ? '单规格' : '多规格' }} |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</span> |
|
|
|
<p class="twoline-hide" style="width: 40px"> |
|
|
|
|
|
|
|
{{ item.spu_id > 0 ? '已组合' : '未组合' }} |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
</span> |
|
|
|
<span slot="cate_status" slot-scope="text"> |
|
|
|
<span slot="cate_status" slot-scope="text"> |
|
|
|
<p class="twoline-hide" style="width: 40px" :style="{ color: text == 0 ? 'red' : 'green' }"> |
|
|
|
<p class="twoline-hide" style="width: 40px" :style="{ color: text == 0 ? 'red' : 'green' }"> |
|
|
|
{{ text == 0 ? '待处理' : '已归类' }} |
|
|
|
{{ text == 0 ? '待处理' : '已归类' }} |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<!-- 京东下架 --> |
|
|
|
<!-- 京东下架 --> |
|
|
|
<span slot="is_jd_remove" slot-scope="text"> |
|
|
|
<span slot="is_jd_remove" slot-scope="text"> |
|
|
|
<p style="width: 40px;text-align: center;" :style="{ color: text == 1 ? 'red' : 'green'}"> |
|
|
|
<p style="width: 40px; text-align: center" :style="{ color: text == 1 ? 'red' : 'green' }"> |
|
|
|
{{ text == 1 ? '是' : '否' }} |
|
|
|
{{ text == 1 ? '是' : '否' }} |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<!-- 商品状态 --> |
|
|
|
<!-- 商品状态 --> |
|
|
|
<span slot="is_sale" slot-scope="text, item"> |
|
|
|
<span slot="is_sale" slot-scope="text, item"> |
|
|
|
<a-tag class="cur-p" :color="text == 0 ? 'red' : text == 1 ? 'green' : 'gray'">{{ |
|
|
|
<a-tag class="cur-p" :color="text == 0 ? 'red' : text == 1 ? 'green' : 'gray'">{{ |
|
|
@ -410,11 +419,10 @@ const columns = [ |
|
|
|
scopedSlots: { customRender: 'goods_name' }, |
|
|
|
scopedSlots: { customRender: 'goods_name' }, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '规格类型', |
|
|
|
title: '规格类型', |
|
|
|
width: '90px', |
|
|
|
width: '90px', |
|
|
|
dataIndex: 'spec_type', |
|
|
|
scopedSlots: { customRender: 'item_1' }, |
|
|
|
scopedSlots: { customRender: 'spec_type' }, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '行情价', |
|
|
|
title: '行情价', |
|
|
|
width: '100px', |
|
|
|
width: '100px', |
|
|
@ -477,11 +485,11 @@ const columns = [ |
|
|
|
scopedSlots: { customRender: 'is_pool' }, |
|
|
|
scopedSlots: { customRender: 'is_pool' }, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '比同款下架', |
|
|
|
title: '比同款下架', |
|
|
|
width: '100px', |
|
|
|
width: '100px', |
|
|
|
dataIndex: 'is_jd_remove', |
|
|
|
dataIndex: 'is_jd_remove', |
|
|
|
scopedSlots: { customRender: 'is_jd_remove' }, |
|
|
|
scopedSlots: { customRender: 'is_jd_remove' }, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: '状态', |
|
|
|
title: '状态', |
|
|
|
width: '50px', |
|
|
|
width: '50px', |
|
|
@ -541,7 +549,7 @@ export default { |
|
|
|
end_time: '', |
|
|
|
end_time: '', |
|
|
|
is_has_banner: '', |
|
|
|
is_has_banner: '', |
|
|
|
is_has_detail: '', |
|
|
|
is_has_detail: '', |
|
|
|
is_jd_remove:'' |
|
|
|
is_jd_remove: '', |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 正在加载 |
|
|
|
// 正在加载 |
|
|
|
isLoading: false, |
|
|
|
isLoading: false, |
|
|
@ -577,7 +585,7 @@ export default { |
|
|
|
saleVisible: false, |
|
|
|
saleVisible: false, |
|
|
|
priceVisible: false, |
|
|
|
priceVisible: false, |
|
|
|
jingPinVisible: false, |
|
|
|
jingPinVisible: false, |
|
|
|
batchPrice:false, |
|
|
|
batchPrice: false, |
|
|
|
specsType: [ |
|
|
|
specsType: [ |
|
|
|
{ name: '全部', val: '' }, |
|
|
|
{ name: '全部', val: '' }, |
|
|
|
{ name: '单规格', val: 10 }, |
|
|
|
{ name: '单规格', val: 10 }, |
|
|
@ -612,7 +620,7 @@ export default { |
|
|
|
categoryIds: [], |
|
|
|
categoryIds: [], |
|
|
|
categoryPriceIds: [], |
|
|
|
categoryPriceIds: [], |
|
|
|
rate: '', |
|
|
|
rate: '', |
|
|
|
batchRate:'', |
|
|
|
batchRate: '', |
|
|
|
pickerOptions: { |
|
|
|
pickerOptions: { |
|
|
|
disabledDate(time) { |
|
|
|
disabledDate(time) { |
|
|
|
return time.getTime() > Date.now() |
|
|
|
return time.getTime() > Date.now() |
|
|
@ -873,8 +881,8 @@ export default { |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
getGoodsJingDong(val) { |
|
|
|
getGoodsJingDong(val) { |
|
|
|
this.queryParam.is_jd_remove = val |
|
|
|
this.queryParam.is_jd_remove = val |
|
|
|
}, |
|
|
|
}, |
|
|
|
getChannel(val) { |
|
|
|
getChannel(val) { |
|
|
|
this.queryParam.channel = val |
|
|
|
this.queryParam.channel = val |
|
|
|
}, |
|
|
|
}, |
|
|
@ -1089,7 +1097,7 @@ export default { |
|
|
|
'&is_self=' + |
|
|
|
'&is_self=' + |
|
|
|
this.queryParam.is_self + |
|
|
|
this.queryParam.is_self + |
|
|
|
'&is_jd_remove=' + |
|
|
|
'&is_jd_remove=' + |
|
|
|
(this.queryParam.is_jd_remove || '') + |
|
|
|
(this.queryParam.is_jd_remove || '') + |
|
|
|
'&goodsIds=' + |
|
|
|
'&goodsIds=' + |
|
|
|
goodsIds + |
|
|
|
goodsIds + |
|
|
|
'&Access-Token=' + |
|
|
|
'&Access-Token=' + |
|
|
|