From de0155c2b15a2869d190dc4082d0bdc883e2f96c Mon Sep 17 00:00:00 2001 From: zhaochencheng Date: Mon, 2 Jan 2023 19:44:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E5=93=81=E5=B1=95=E7=A4=BA=E4=BC=98?= =?UTF-8?q?=E5=8C=96=EF=BC=8C=E5=88=9B=E5=BB=BA=E6=88=90=E5=8A=9F=E6=88=96?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E5=90=8E=E8=87=AA=E5=8A=A8=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E7=AA=97=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/pms/product/AddProduct.vue | 30 ++++++++++++++++++---------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/src/views/pms/product/AddProduct.vue b/src/views/pms/product/AddProduct.vue index 6a30f11..72c81de 100644 --- a/src/views/pms/product/AddProduct.vue +++ b/src/views/pms/product/AddProduct.vue @@ -17,12 +17,6 @@ - - - - - - @@ -40,10 +34,22 @@ + + +
+ 产品图片 +
+ + + + + + +
- 规格信息 + 产品规格
@@ -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;