From ffb38bc2a78e67e56bfb5bf028a1567204ea59eb Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Thu, 30 May 2024 11:43:54 +0800
Subject: [PATCH] 图片上传

---
 src/main/resources/templates/febs/views/modules/goods/goodsAddNew.html |   68 +++++++++++++++++-----------------
 1 files changed, 34 insertions(+), 34 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 bf9ec93..2f7fe0f 100644
--- a/src/main/resources/templates/febs/views/modules/goods/goodsAddNew.html
+++ b/src/main/resources/templates/febs/views/modules/goods/goodsAddNew.html
@@ -503,32 +503,32 @@
             });
         })
 
-        var couponRule = xmSelect.render({
-            el: '#coupon-rule',
-            language: 'zn',
-            prop : {
-                value : 'id',
-                children : 'child'
-            },
-            iconfont: {
-                parent: 'hidden',
-            },
-            // radio: true,
-            clickClose: true,
-            tree: {
-                show: true,
-                //非严格模式
-                strict: false,
-            },
-            data: []
-        })
-
-        febs.get(ctx + 'admin/goods/couponTreeSet', null, function(res) {
-            couponRule.update({
-                data : res.data,
-                autoRow: true,
-            });
-        })
+        // var couponRule = xmSelect.render({
+        //     el: '#coupon-rule',
+        //     language: 'zn',
+        //     prop : {
+        //         value : 'id',
+        //         children : 'child'
+        //     },
+        //     iconfont: {
+        //         parent: 'hidden',
+        //     },
+        //     // radio: true,
+        //     clickClose: true,
+        //     tree: {
+        //         show: true,
+        //         //非严格模式
+        //         strict: false,
+        //     },
+        //     data: []
+        // })
+        //
+        // febs.get(ctx + 'admin/goods/couponTreeSet', null, function(res) {
+        //     couponRule.update({
+        //         data : res.data,
+        //         autoRow: true,
+        //     });
+        // })
 
         var tableSkuData=[];
         var tableIns = table.render({
@@ -788,14 +788,14 @@
 
         form.on('submit(goods-add-form-submit)', function (data) {
             data.field.goodsType = 1;
-            let couponRuleList = couponRule.getValue();
-            if (couponRuleList.length > 0) {
-                var couponIds = [];
-                layui.each(couponRuleList, function (key, item) {
-                    couponIds.push(item.id)
-                });
-                data.field.couponIds=couponIds;
-            }
+            // let couponRuleList = couponRule.getValue();
+            // if (couponRuleList.length > 0) {
+            //     var couponIds = [];
+            //     layui.each(couponRuleList, function (key, item) {
+            //         couponIds.push(item.id)
+            //     });
+            //     data.field.couponIds=couponIds;
+            // }
             data.field.addMallGoodsSkuDtos = tableSkuData;
             data.field.categoryId = category.getValue('valueStr');
             data.field.carriageRuleId = carriageRule.getValue('valueStr');

--
Gitblit v1.9.1