|
@@ -131,7 +131,9 @@ export default {
|
|
|
batchSaveSort() {
|
|
|
const sorts = []
|
|
|
this.list.map(item => {
|
|
|
- sorts.push(item.id + '-' + item.preferentialProductSort)
|
|
|
+ if (item.preferentialProductSort) {
|
|
|
+ sorts.push(item.id + '-' + item.preferentialProductSort)
|
|
|
+ }
|
|
|
})
|
|
|
saveGoodsSort({ newProducSorttList: sorts.join(','), modules: this.activeIndex }).then(response => {
|
|
|
this.$notify({
|