...
|
...
|
@@ -333,7 +333,7 @@ import MuliSelect from './views/muli-select'; |
|
|
import Age from './views/age';
|
|
|
import Season from './views/season';
|
|
|
import Gender from './views/gender';
|
|
|
import GoodsSeason from './views/goods-season'
|
|
|
import GoodsSeason from './views/goods-season';
|
|
|
|
|
|
import service from './service';
|
|
|
import api from './api';
|
...
|
...
|
@@ -590,8 +590,9 @@ export default { |
|
|
|
|
|
one.forEach((s) => {
|
|
|
let i = _.find(this.render.attributeProValuesOne, {attributeId: s.attributeId});
|
|
|
|
|
|
if (i) {
|
|
|
i.model = s.attributeValueIds.map(s => `${s}`);
|
|
|
i.model = s.attributeValueIds.map(id => `${id}`);
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
@@ -599,7 +600,7 @@ export default { |
|
|
let i = _.find(this.render.attributeProValuesTwo, {attributeId: s.attributeId});
|
|
|
|
|
|
if (i) {
|
|
|
i.model = s.attributeValueIds.map(s => `${s}`);
|
|
|
i.model = s.attributeValueIds.map(id => `${id}`);
|
|
|
}
|
|
|
});
|
|
|
});
|
...
|
...
|
@@ -612,7 +613,7 @@ export default { |
|
|
this.initAttr();
|
|
|
},
|
|
|
getDefaultSelectedColor: function() {
|
|
|
this.product.sellerGoodList.forEach((g) => {
|
|
|
this.product.sellerGoodList.forEach((g) => {
|
|
|
let defaultColor = _.find(this.colors, (c) => c.id === g.colorId);
|
|
|
|
|
|
if (defaultColor) {
|
...
|
...
|
@@ -740,7 +741,7 @@ export default { |
|
|
desc: '该商品保存成功!'
|
|
|
});
|
|
|
|
|
|
this.$router.push({name: 'product.offsale'})
|
|
|
this.$router.push({name: 'product.offsale'});
|
|
|
} else {
|
|
|
this.$Notice.error({
|
|
|
title: '保存错误',
|
...
|
...
|
@@ -792,6 +793,7 @@ export default { |
|
|
let sizeId = s.id;
|
|
|
let productSku = s.productSku;
|
|
|
let factoryCode = color.sizeCode[i].name;
|
|
|
|
|
|
return {sizeId, factoryCode, productSku};
|
|
|
});
|
|
|
},
|
...
|
...
|
@@ -883,7 +885,7 @@ export default { |
|
|
},
|
|
|
removeColorData: function(color) {
|
|
|
let index = this.table.data.findIndex((d) => {
|
|
|
return d.colorId === color.id;
|
|
|
return d.colorId === color.id;
|
|
|
});
|
|
|
|
|
|
this.table.data.splice(index, 1);
|
...
|
...
|
|