From 534922c09af529424847b8d284412abcc9dea353 Mon Sep 17 00:00:00 2001
From: wzy <wzy19931122ai@163.com>
Date: Sun, 08 May 2022 22:27:14 +0800
Subject: [PATCH] fix

---
 src/main/resources/templates/febs/views/modules/goods/goodsAddNew.html |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/templates/febs/views/modules/goods/goodsAddNew.html b/src/main/resources/templates/febs/views/modules/goods/goodsAddNew.html
index 61e0930..ab1e3a2 100644
--- a/src/main/resources/templates/febs/views/modules/goods/goodsAddNew.html
+++ b/src/main/resources/templates/febs/views/modules/goods/goodsAddNew.html
@@ -75,7 +75,7 @@
                                         <div class="layui-form-item">
                                             <label class="layui-form-label febs-form-item-require">商品类型</label>
                                             <div class="layui-input-block">
-                                                <select name="goodsType" class="goods-type" lay-filter="goods-type-select">
+                                                <select name="isNormal" class="goods-type" lay-filter="goods-type-select">
                                                     <option value="1">普通商品区</option>
                                                     <option value="2">套餐区</option>
                                                 </select>
@@ -306,6 +306,8 @@
                 for (let i = 0; i < hasData.length; i++) {
                     hasData[i].index = i + 1;
                 }
+
+                tableSkuData=hasData;
                 reloadTable(hasData);
             }
         });
@@ -364,7 +366,7 @@
 
             var data = {};
             data.styleName = attrNameVal;
-            var index = addTableDate(data);
+            addTableDate(data);
         });
 
         function bindUpload(index) {
@@ -384,6 +386,8 @@
                             tableSkuData[i].skuImage = res.data.src;
                         }
                     }
+
+                    reloadTable(tableSkuData);
                 }
             });
         }
@@ -468,6 +472,7 @@
         });
 
         form.on('submit(goods-add-form-submit)', function (data) {
+            console.log(tableSkuData);
             data.field.addMallGoodsSkuDtos = tableSkuData;
             $.ajax({
                 'url':ctx + 'admin/goods/addMallGoods',

--
Gitblit v1.9.1