...
|
...
|
@@ -718,7 +718,7 @@ export default { |
|
|
newGoods.colorId = goods.colorId;
|
|
|
newGoods.factoryGoodsName = goods.factoryGoodsName;
|
|
|
newGoods.goodsColorImage = {
|
|
|
value: service.getAbsoluteUrl(goodsImage.goodsColorImage),
|
|
|
value: goodsImage.goodsColorImage,
|
|
|
showValidate: false,
|
|
|
validate: false
|
|
|
};
|
...
|
...
|
@@ -992,6 +992,7 @@ export default { |
|
|
let errors = [];
|
|
|
|
|
|
this.table.data.forEach((color) => {
|
|
|
console.log(color);
|
|
|
if (!color.goodsColorImage.value) {
|
|
|
color.goodsColorImage.showValidate = true;
|
|
|
color.goodsColorImage.validate = true;
|
...
|
...
|
@@ -1051,13 +1052,17 @@ export default { |
|
|
return newColor;
|
|
|
},
|
|
|
handleSize: function(color) {
|
|
|
return color.sizeId.map((s, i) => {
|
|
|
let sizeId = s.id;
|
|
|
let productSku = s.productSku;
|
|
|
let factoryCode = color.sizeCode[i].name;
|
|
|
return color.sizeId.reduce((total, cur, i) => {
|
|
|
if (color.sizeCode[i].name) {
|
|
|
let sizeId = cur.id;
|
|
|
let productSku = cur.productSku;
|
|
|
let factoryCode = color.sizeCode[i].name;
|
|
|
|
|
|
return {sizeId, factoryCode, productSku};
|
|
|
});
|
|
|
total.push({sizeId, factoryCode, productSku});
|
|
|
}
|
|
|
|
|
|
return total;
|
|
|
}, []);
|
|
|
},
|
|
|
handleImage: function() {
|
|
|
return service.handleEditColorImage(this.product);
|
...
|
...
|
|