修复编辑sku时,单独编辑的sku图片没有保存问题
parent
66143deb0d
commit
3d0a202cbe
|
@ -984,7 +984,8 @@ export default {
|
||||||
if (this.wholesaleData.length < 3) {
|
if (this.wholesaleData.length < 3) {
|
||||||
this.wholesaleData.push({
|
this.wholesaleData.push({
|
||||||
price:
|
price:
|
||||||
Number(this.wholesaleData[this.wholesaleData.length - 1].price) - 0.01,
|
Number(this.wholesaleData[this.wholesaleData.length - 1].price) -
|
||||||
|
0.01,
|
||||||
num:
|
num:
|
||||||
Number(this.wholesaleData[this.wholesaleData.length - 1].num) + 1,
|
Number(this.wholesaleData[this.wholesaleData.length - 1].num) + 1,
|
||||||
goodsId: this.goodsId,
|
goodsId: this.goodsId,
|
||||||
|
@ -1459,7 +1460,7 @@ export default {
|
||||||
cost: skus[index].cost,
|
cost: skus[index].cost,
|
||||||
price: skus[index].price,
|
price: skus[index].price,
|
||||||
[cloneTemp[0].name]: specItem.value,
|
[cloneTemp[0].name]: specItem.value,
|
||||||
images: this.baseInfoForm.goodsGalleryFiles || [],
|
images: skus[index].images || this.baseInfoForm.goodsGalleryFiles || [],
|
||||||
};
|
};
|
||||||
if (specItem.value !== "") {
|
if (specItem.value !== "") {
|
||||||
obj.id = skus[index].id;
|
obj.id = skus[index].id;
|
||||||
|
|
Loading…
Reference in New Issue