【优化】优化多种全局促销及优惠券组合模式下,后端管理促销显示误差的问题。

This commit is contained in:
jianweie code
2023-11-12 23:54:27 +08:00
parent 26734139fb
commit 5e5aacdf59
3 changed files with 21 additions and 8 deletions

View File

@@ -213,9 +213,9 @@
<th>商品名称</th>
<th width="30">商品<br />单价</th>
<th width="30">购买<br />数量</th>
<th width="30">优惠<br />金额</th>
<th width="30">促销<br />金额</th>
<th width="40">商品<br />总价</th>
<th width="110">优惠券名称</th>
<th width="110">促销名称</th>
<th width="120">货品编码</th>
<th width="120">商品编码</th>
<th width="30">商品总重量</th>
@@ -231,7 +231,19 @@
<td>{{item.nums}}</td>
<td>{{item.promotionAmount}}</td>
<td>{{item.amount}}</td>
<td>{{# if(item.promotionObj){ }}{{item.promotionObj.name}}{{# } else { }}{{# } }}</td>
<td>
{{# if(item.promotionObj){ }}
{{# layui.each(item.promotionObj, function(indexP, itemP){ }}
{{itemP.name}}
{{# }); }}
{{# } }}
</td>
<td>{{item.sn}}</td>
<td>{{item.bn}}</td>
<td>{{item.weight}}</td>