From 9b51a95fa8bc9b3a86108c6900e17fc55f8db467 Mon Sep 17 00:00:00 2001 From: Administrator <15274802129@163.com> Date: Mon, 19 May 2025 17:02:07 +0800 Subject: [PATCH] refactor(vip): 优化积分和返佣计算逻辑 --- src/main/resources/templates/febs/views/modules/goods/goodsUpdateNew.html | 43 ++++++++++++++++++++++++++++--------------- 1 files changed, 28 insertions(+), 15 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 ddd65fa..1733b60 100644 --- a/src/main/resources/templates/febs/views/modules/goods/goodsUpdateNew.html +++ b/src/main/resources/templates/febs/views/modules/goods/goodsUpdateNew.html @@ -112,21 +112,21 @@ </div> </div> - <div class="layui-form-item"> - <label class="layui-form-label">推销员返积分比例</label> - <div class="layui-input-block"> - <input type="text" name="staticMulti" placeholder="请输入推销员返积分比例" autocomplete="off" class="layui-input"> - </div> - </div> +<!-- <div class="layui-form-item">--> +<!-- <label class="layui-form-label">推销员返积分比例(%)</label>--> +<!-- <div class="layui-input-block">--> +<!-- <input type="text" name="staticMulti" placeholder="请输入推销员返积分比例" autocomplete="off" class="layui-input">--> +<!-- </div>--> +<!-- </div>--> - <div class="layui-form-item febs-hide tc-set"> - <label class="layui-form-label">静态占比(%)</label> - <div class="layui-input-block"> - <input type="text" name="staticProp" placeholder="请输入静态占比" - autoComplete="off" class="layui-input"> - <div class="layui-form-mid layui-word-aux">所有套餐静态占比相加应等于100%</div> - </div> - </div> +<!-- <div class="layui-form-item febs-hide tc-set">--> +<!-- <label class="layui-form-label">静态占比(%)</label>--> +<!-- <div class="layui-input-block">--> +<!-- <input type="text" name="staticProp" placeholder="请输入静态占比"--> +<!-- autoComplete="off" class="layui-input">--> +<!-- <div class="layui-form-mid layui-word-aux">所有套餐静态占比相加应等于100%</div>--> +<!-- </div>--> +<!-- </div>--> </div> <div class="layui-tab-item"> @@ -236,6 +236,16 @@ <label class="layui-form-label febs-form-item-require">成本价:</label> <div class="layui-input-block"> <input type="text" name="costPrice" lay-verify="required" placeholder="" autocomplete="off" class="layui-input"> + </div> + </div> + + <div class="layui-col-lg6"> + <label class="layui-form-label febs-form-item-require">积分折扣(%)</label> + <div class="layui-input-block"> + <input type="text" name="staticProp" lay-verify="required" placeholder="请输入积分折扣" lay-reqText="请输入积分折扣" autocomplete="off" class="layui-input"> + <div class="layui-form-mid layui-word-aux">折扣积分=售价*积分折扣(%)*积分换算比例</div> + <div class="layui-form-mid layui-word-aux">不允许使用积分设置成:0%</div> + <div class="layui-form-mid layui-word-aux">全部使用积分设置成:大于等于100%</div> </div> </div> </div> @@ -529,7 +539,10 @@ autoRow: true, }); - initValue(); + + setTimeout(() => { + initValue(); + }, 500); }) var carriageRule = xmSelect.render({ -- Gitblit v1.9.1