@@ -67,10 +73,10 @@
刷新列表
-
+
-
+
@@ -120,6 +126,7 @@ export default {
return {
form: {},
skuList:[],
+ skuAttr:[],
productAttr: [
{
name: '颜色',
@@ -145,6 +152,7 @@ export default {
if(preSkus){
this.skuList=preSkus
}
+ this.skuAttr=[...this.productAttr]
if(this.skuList){
this.skuList.forEach(sku=>{
skuMap.set(sku.spData,sku)
@@ -214,15 +222,15 @@ export default {
});
} else {
addPmsProduct(this.form).then(response => {
- console.log(this.form)
this.$modal.msgSuccess("新增成功");
});
}
+ this.cancel();
}
});
},
cancel() {
-
+ this.$tab.closeOpenPage({ path: '/pms/product' })
},
changeName(s, idx, val) {
s.options[idx].name = val;