From eaae492de8807438e64b18b60600a52df21d668f Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Tue, 02 Nov 2021 11:23:09 +0800
Subject: [PATCH] 20211102

---
 zq-erp/src/main/resources/templates/views/admin/shop/shopProduct-form.html |   19 +++++++++++++++----
 1 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/zq-erp/src/main/resources/templates/views/admin/shop/shopProduct-form.html b/zq-erp/src/main/resources/templates/views/admin/shop/shopProduct-form.html
index d8ed383..9962460 100644
--- a/zq-erp/src/main/resources/templates/views/admin/shop/shopProduct-form.html
+++ b/zq-erp/src/main/resources/templates/views/admin/shop/shopProduct-form.html
@@ -807,21 +807,32 @@
                 sku.sort = sort;
                 //推广提成
                 var selfPrice = tds.eq(length - 5).find("input").val();
+                if(selfPrice == ""){
+                    selfPrice = 0;
+                }
                 sku.selfPrice = selfPrice;
                 //推广提成
                 var sealesPrice = tds.eq(length - 4).find("input").val();
-                sku.sealesPrice = sealesPrice;
+                if(sealesPrice != ""){
+                    sku.sealesPrice = sealesPrice;
+                }
 
                 //邀请提成
                 var invitationPrice = tds.eq(length - 3).find("input").val();
-                sku.invitationPrice = invitationPrice;
+                if(invitationPrice != ""){
+                    sku.invitationPrice = invitationPrice;
+                }
 
                 //兑换所需金额
                 var scorePrice = tds.eq(length - 2).find("input").val();
-                sku.scorePrice = scorePrice;
+                if(scorePrice != ""){
+                    sku.scorePrice = scorePrice;
+                }
                 //兑换所需积分
                 var scoreCount = tds.eq(length - 1).find("input").val();
-                sku.scoreCount = scoreCount;
+                if(scoreCount != ""){
+                    sku.scoreCount = scoreCount;
+                }
 
                 skus.push(sku);
             }

--
Gitblit v1.9.1