Authored by htoooth

fix

... ... @@ -515,6 +515,8 @@ export default {
JSON.stringify(this.handleColor());
newProduct.goodsImagesReqStr =
JSON.stringify(this.productCreateService.handleEditColorImage(this.product));
console.log(this.render.productStandardRelationStr);
newProduct.productStandardRelationStr =
JSON.stringify(this.productCreateService.handleRelation(this.render.productStandardRelationStr));
newProduct.attributeProValuesOne =
... ... @@ -563,7 +565,8 @@ export default {
return Promise.reject();
}
})
.then(this.save).catch(() => this.$Loading.error());
.then(this.save)
.catch(() => this.$Loading.error());
},
handleColor() {
return this.table.data.map(tableColor => {
... ...
... ... @@ -334,14 +334,17 @@ class ProductCreateService extends Service {
}
addNoneItem(objArray) {
objArray.forEach(obj => {
const objArrayClone = _.cloneDeep(objArray);
objArrayClone.forEach(obj => {
obj.model = [];
if (obj.inputType === 'checkbox') {
return;
}
obj.idNameList && obj.idNameList.unshift({id: 0, text: '请选择' + obj.attributeName});
});
return objArray;
return objArrayClone;
}
}
... ...