From 8718ab2d5056bc5c48ce53871239db7f582290c1 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Thu, 20 Jul 2023 11:27:39 +0800 Subject: [PATCH] 商城商品修改 --- src/main/resources/templates/febs/views/modules/goods/goodsAddNew.html | 99 ++++++++++++++++++++++++++++++++----------------- 1 files changed, 64 insertions(+), 35 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 ea89db7..db71eb2 100644 --- a/src/main/resources/templates/febs/views/modules/goods/goodsAddNew.html +++ b/src/main/resources/templates/febs/views/modules/goods/goodsAddNew.html @@ -231,6 +231,26 @@ <!-- <input type="text" name="costPrice" lay-verify="required" placeholder="" autocomplete="off" class="layui-input">--> <!-- </div>--> <!-- </div>--> + <blockquote class="layui-elem-quote blue-border">购买商品,赠送卷</blockquote> + <div class="layui-form-item"> + <label class="layui-form-label">是否赠送:</label> + <div class="layui-input-block"> + <input type="radio" name="levelTwoPrice" value="1" title="是" lay-filter="hasRoll" /> + <input type="radio" name="levelTwoPrice" value="2" title="否" lay-filter="hasRoll" checked/> + </div> + </div> + + <div class="layui-form-item roll-input febs-hide"> + <div class="layui-col-lg6"> + <label class="layui-form-label">类型:</label> + <div class="layui-input-block"> + <select name="levelThreePrice"> + <option value="1">课程卷</option> + <option value="2">民宿卷</option> + </select> + </div> + </div> + </div> <blockquote class="layui-elem-quote blue-border">运费设置</blockquote> <div class="layui-form-item"> <label class="layui-form-label">运费:</label> @@ -259,42 +279,42 @@ </div> </div> - <blockquote class="layui-elem-quote blue-border">多规格设置</blockquote> - <div class="layui-col-lg6"> - <label class="layui-form-label">开启多规格:</label> - <div class="layui-input-block"> - <input type="radio" name="isSku" value="1" title="是" lay-filter="isSku" /> - <input type="radio" name="isSku" value="2" title="否" lay-filter="isSku" checked /> - </div> - </div> - <div class="layui-form-item multi-sku-table febs-hide"> - <div class="layui-row layui-col-space10 layui-form-item"> - <div class="layui-col-lg6"> - <label class="layui-form-label febs-form-item-require">样式:</label> - <div class="layui-input-block"> - <input type="text" name="addMallGoodsSkuDtos" autocomplete="off" class="layui-input" id="attrName"> - </div> - </div> - <div class="layui-col-lg1"> - <button type="button" - class="layui-btn layui-btn-normal layui-btn" id="test3"> - 添加 - </button> - </div> - <div class="layui-col-lg1"> - <button type="button" - class="layui-btn layui-btn-normal layui-btn" id="test4"> - 新增样品 - </button> - </div> - </div> +<!-- <blockquote class="layui-elem-quote blue-border">多规格设置</blockquote>--> +<!-- <div class="layui-col-lg6">--> +<!-- <label class="layui-form-label">开启多规格:</label>--> +<!-- <div class="layui-input-block">--> +<!-- <input type="radio" name="isSku" value="1" title="是" lay-filter="isSku" />--> +<!-- <input type="radio" name="isSku" value="2" title="否" lay-filter="isSku" checked />--> +<!-- </div>--> +<!-- </div>--> +<!-- <div class="layui-form-item multi-sku-table febs-hide">--> +<!-- <div class="layui-row layui-col-space10 layui-form-item">--> +<!-- <div class="layui-col-lg6">--> +<!-- <label class="layui-form-label febs-form-item-require">样式:</label>--> +<!-- <div class="layui-input-block">--> +<!-- <input type="text" name="addMallGoodsSkuDtos" autocomplete="off" class="layui-input" id="attrName">--> +<!-- </div>--> +<!-- </div>--> +<!-- <div class="layui-col-lg1">--> +<!-- <button type="button"--> +<!-- class="layui-btn layui-btn-normal layui-btn" id="test3">--> +<!-- 添加--> +<!-- </button>--> +<!-- </div>--> +<!-- <div class="layui-col-lg1">--> +<!-- <button type="button"--> +<!-- class="layui-btn layui-btn-normal layui-btn" id="test4">--> +<!-- 新增样品--> +<!-- </button>--> +<!-- </div>--> +<!-- </div>--> - <div class="layui-form-item"> - <div class="layui-input-block"> - <table id="multiSku" lay-filter="multiSku"></table> - </div> - </div> - </div> +<!-- <div class="layui-form-item">--> +<!-- <div class="layui-input-block">--> +<!-- <table id="multiSku" lay-filter="multiSku"></table>--> +<!-- </div>--> +<!-- </div>--> +<!-- </div>--> </div> </div> </div> @@ -519,6 +539,14 @@ } }); + form.on('radio(hasRoll)', function(data){ + if (data.value == 2) { + $('.roll-input').hide(); + } else { + $('.roll-input').show(); + } + }); + function addTableDate(data) { var hasData = table.cache['multiSku']; @@ -699,6 +727,7 @@ form.on('submit(goods-add-form-submit)', function (data) { data.field.goodsType = 1; + data.field.isSku = 2; data.field.addMallGoodsSkuDtos = tableSkuData; data.field.categoryId = category.getValue('valueStr'); data.field.carriageRuleId = carriageRule.getValue('valueStr'); -- Gitblit v1.9.1