Authored by 李奇

批量上架修改

... ... @@ -123,7 +123,7 @@
pageData,
filters: filterFields,
initialFilters: '',
batchOffSale: [],
batchOnSale: [],
useFilterSign: false
}
},
... ... @@ -224,13 +224,13 @@
},
batchSetOnSale() {
if(!this.batchOffSale.length) {
if(!this.batchOnSale.length) {
return this.$Message.error('请选择要上架的商品');
}
let skns = [];
_.each(this.batchOffSale, (item) => {
_.each(this.batchOnSale, (item) => {
skns.push(item.productSkn);
});
... ... @@ -265,7 +265,7 @@
});
},
selectChange(selection) {
this.batchOffSale = selection;
this.batchOnSale = selection;
}
},
components: {
... ...
... ... @@ -72,7 +72,7 @@ let filterFields = {
},
verifyStatus: {
label: '审核状态',
label: '销售状态',
labelSpan: 6,
fieldSpan: 18,
model: -1,
... ... @@ -82,12 +82,12 @@ let filterFields = {
label: '全部'
},
{
value: 1,
label: '上架待审核'
value: 0,
label: '已上架'
},
{
value: 2,
label: '上架驳回'
value: 1,
label: '已下架'
}
]
},
... ... @@ -114,7 +114,7 @@ let filterFields = {
},
publishStatus: {
label: '商品状态',
label: '价格状态',
labelSpan: 6,
fieldSpan: 18,
model: -1,
... ... @@ -125,11 +125,11 @@ let filterFields = {
},
{
value: 0,
label: '从未发布'
label: '启用'
},
{
value: 1,
label: '我下架的'
label: '禁用'
}
]
}
... ... @@ -179,7 +179,6 @@ let tableCols = [
align: 'center',
},
{
title: '下架时间',
key: 'offshelveTime',
align: 'center'
},
... ...