From 0ab421eb9c844a7e34173ea58b94e6f6a1e2cba3 Mon Sep 17 00:00:00 2001 From: zhuyiyi <649091362@qq.com> Date: Wed, 15 Oct 2025 09:37:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8D=A1=E7=89=87=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/views/product/coupon.jsp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/views/product/coupon.jsp b/src/main/webapp/views/product/coupon.jsp index af94cde..81d7557 100644 --- a/src/main/webapp/views/product/coupon.jsp +++ b/src/main/webapp/views/product/coupon.jsp @@ -1632,7 +1632,7 @@ if (kindValueData.value == 2) { //$('input[class = mq]').prop('checked', true); form.on('checkbox(switchMQ)', function (switchData) { - if ($(".mq:checked").length > 1) { + if ($(".normalCountHideCraft .mq:checked").length > 1) { $(switchData.elem).next().attr("class", "layui-unselect layui-form-checkbox"); $(switchData.elem).prop("checked", false); layer.msg('[裁切- 模切]不能同时选择!', {offset: ['300px', '300px']}, {icon: 5}); @@ -1931,7 +1931,7 @@ $(".tj").find(":input").attr("disabled", true); } form.on('checkbox(switchMQ)', function (switchData) { - if ($(".mq:checked").length > 1) { + if ($(".normalCountHideCraft .mq:checked").length > 1) { $(switchData.elem).next().attr("class", "layui-unselect layui-form-checkbox"); $(switchData.elem).prop("checked", false); layer.msg('[裁切- 模切]不能同时选择!', {offset: ['300px', '300px']}, {icon: 5}); @@ -2480,6 +2480,13 @@ layer.msg('单面覆膜和双面覆膜只能选一种!', {offset: ['300px', '300px']}, {icon: 5}); return false; } + if (!data.elem.checked && data.value == "双面覆哑膜") { + layer.msg('不能取消 [覆膜] 工艺!', {offset: ['300px', '300px']}, function () { + }); + $(data.elem).prop("checked", true); + form.render(); + return; + } let craft_list = []; $("input:checkbox[name='craft']:checked").each(function (i) { if (!$(this).is(':disabled')) {