From 84e8be6264c5f8194067680f7361df029e46892a Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Sun, 14 Jun 2026 17:15:38 +0800
Subject: [PATCH] refactor(goods): 移除商品更新页面中的冗余代码
---
src/main/resources/templates/febs/views/modules/goods/goodsUpdateNew.html | 25 -------------------------
1 files changed, 0 insertions(+), 25 deletions(-)
diff --git a/src/main/resources/templates/febs/views/modules/goods/goodsUpdateNew.html b/src/main/resources/templates/febs/views/modules/goods/goodsUpdateNew.html
index 8526f9a..96822a4 100644
--- a/src/main/resources/templates/febs/views/modules/goods/goodsUpdateNew.html
+++ b/src/main/resources/templates/febs/views/modules/goods/goodsUpdateNew.html
@@ -854,23 +854,8 @@
arr.push(goodsInfo.categoryId)
category.setValue(arr);
- var arrCarriageRule = [];
- arrCarriageRule.push(goodsInfo.carriageRuleId)
- carriageRule.setValue(arrCarriageRule);
-
- couponRule.setValue(goodsInfo.couponIds);
-
if (goodsInfo.isNormal == 2) {
$(".tc-set").show();
- }
-
- if (goodsInfo.carriageType == 2) {
- $('.carriage-input').hide();
- $('.carriage-rule').show();
- } else {
- $('.carriage-input').show();
- $('.carriage-rule').hide();
- document.getElementById('carriageAmountDefault').value = goodsInfo.carriageAmount;
}
if (goodsInfo.isSku == 1) {
@@ -915,20 +900,10 @@
}
form.on('submit(goods-update-form-submit)', function (data) {
- 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.goodsType=1;
data.field.mailGoodsSkuDto = tableSkuData;
data.field.delSkuId=delSku;
data.field.categoryId = category.getValue('valueStr');
- data.field.carriageRuleId = carriageRule.getValue('valueStr');
- // data.field.goodsDetails = editor.getHtml();
data.field.goodsDetails = editor.txt.html();
$.ajax({
'url': ctx + 'admin/goods/updateMallGoods',
--
Gitblit v1.9.1