From f43970a061d3c90520b4e8f48caa17a204d9a085 Mon Sep 17 00:00:00 2001 From: 移动系统liao <liaoxujun@qq.com> Date: 星期四, 15 八月 2024 10:19:38 +0800 Subject: [PATCH] 完供应商自主维护商品api和后台基础管理页面 --- CoreCms.Net.Web.Admin/wwwroot/views/good/goods/edit.html | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CoreCms.Net.Web.Admin/wwwroot/views/good/goods/edit.html b/CoreCms.Net.Web.Admin/wwwroot/views/good/goods/edit.html index 47a6359..82815bb 100644 --- a/CoreCms.Net.Web.Admin/wwwroot/views/good/goods/edit.html +++ b/CoreCms.Net.Web.Admin/wwwroot/views/good/goods/edit.html @@ -323,6 +323,7 @@ <th style="width: 60px;">鎺ㄥ箍缁忛攢鍟嗛噰璐繑鐜�</th> <th>鎺ㄥ箍鐢ㄦ埛璐拱杩旂幇</th> + <th style="width: 80px;">鏄惁鏀寔瀹氬埗</th> <!-- <th>浜岀骇杩旂幇</th> <!-- <th>涓夌骇杩旂幇</th> --> --> @@ -397,6 +398,9 @@ </td> <td> <input type="text" name="product[cutMoney][]" value="{{item.cutMoney||'0'}}" placeholder="鎺ㄥ箍鏅�氱敤鎴疯喘涔拌繑鐜�" class="layui-input layui-inline-1"> + </td> + <td> + <input type="checkbox" name="product[isCustomizable][]" {{item.isCustomizable==true? 'checked':""}} value="{{item.isCustomizable||'false'}}" title="鏀寔|涓嶆敮鎸�" lay-skin="switch" lay-filter="isCustomizable" > </td> <!-- <td> <input type="text" name="product[levelTwo][]" value="{{item.levelTwo}}" placeholder="浜岀骇杩旂幇" class="layui-input layui-inline-1"> @@ -763,7 +767,7 @@ } else { oldSingleData = d.data.products[0]; } - + //鍒濆鍖栧晢鍝佷俊鎭� var getTpl = getSpec_tpl.innerHTML, viewBox = document.getElementById('more_spec'); var tmpData = oldMultitermData; @@ -1077,7 +1081,12 @@ }); } }); - + // 鐩戝惉寮�鍏冲垏鎹簨浠� + form.on('switch(isCustomizable)', function(data){ + var elem = data.elem; // 褰撳墠寮�鍏冲厓绱� + elem.value=true; + + }); //鍥鹃泦涓婁紶 $('#upBtnimageIds').click(function () { cropperImg.cropImg({ @@ -1995,6 +2004,7 @@ productModel.pointsDeduction = field['product[pointsDeduction][' + i + ']']; productModel.points = field['product[points][' + i + ']']; //娣诲姞 鐧惧垎鍏垫硶 + productModel.isCustomizable = field['product[isCustomizable][' + i + ']']; productModel.distributionPrice = field['product[distributionPrice][' + i + ']']; productModel.distributionCutMoney = field['product[distributionCutMoney][' + i + ']']; productModel.cutMoney = field['product[cutMoney][' + i + ']']; -- Gitblit v1.9.1