From d89dd1b7c687ebfee79e646f3676a13c3bed8268 Mon Sep 17 00:00:00 2001 From: pushuo Date: Wed, 14 Jun 2023 05:57:35 +0000 Subject: [PATCH] =?UTF-8?q?!129=20Fix=20the=20problem=20of=20sku=20data=20?= =?UTF-8?q?confusion=20caused=20by=20deleting=20commodity=20specifications?= =?UTF-8?q?=20in=20the=20background=20*=20Fix=20the=20problem=20of=20sku?= =?UTF-8?q?=20data=20confusion=20caused=20by=20deleting=20commodity=20spe?= =?UTF-8?q?=E2=80=A6=20*=20fix=20product=20variant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/pages/products/form/form.blade.php | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/resources/beike/admin/views/pages/products/form/form.blade.php b/resources/beike/admin/views/pages/products/form/form.blade.php index 0a624336..8e3fa631 100644 --- a/resources/beike/admin/views/pages/products/form/form.blade.php +++ b/resources/beike/admin/views/pages/products/form/form.blade.php @@ -143,7 +143,7 @@ -
+
@@ -290,7 +290,7 @@
@hookwrapper('admin.product.edit.variable') - +
@endhookwrapper
@@ -933,8 +933,6 @@ return; } - // const ssss = JSON.parse(JSON.stringify(this.form.skus)); - // 找出已存在的组合 const productVariantCombos = this.form.skus.map(v => v.variants.join()); // ['0,0,0', '0,0,1'] let skus = []; @@ -942,7 +940,6 @@ const combo = combos[i]; // 0,0,0 const index = productVariantCombos.indexOf(combo.join()); if (index > -1) { - // console.log(ssss[index]); skus.push(this.form.skus[index]); } else { skus.push({ @@ -959,15 +956,6 @@ } } - // 第一个子商品用主商品的值 - if (!this.isMove) { - skus[0].model = this.form.model; - skus[0].sku = this.form.sku; - skus[0].price = this.form.price; - skus[0].quantity = this.form.quantity; - skus[0].status = this.form.status; - } - this.form.skus = skus; },