修改卡片选择限制
This commit is contained in:
@@ -1632,7 +1632,7 @@
|
|||||||
if (kindValueData.value == 2) {
|
if (kindValueData.value == 2) {
|
||||||
//$('input[class = mq]').prop('checked', true);
|
//$('input[class = mq]').prop('checked', true);
|
||||||
form.on('checkbox(switchMQ)', function (switchData) {
|
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).next().attr("class", "layui-unselect layui-form-checkbox");
|
||||||
$(switchData.elem).prop("checked", false);
|
$(switchData.elem).prop("checked", false);
|
||||||
layer.msg('[裁切- 模切]不能同时选择!', {offset: ['300px', '300px']}, {icon: 5});
|
layer.msg('[裁切- 模切]不能同时选择!', {offset: ['300px', '300px']}, {icon: 5});
|
||||||
@@ -1931,7 +1931,7 @@
|
|||||||
$(".tj").find(":input").attr("disabled", true);
|
$(".tj").find(":input").attr("disabled", true);
|
||||||
}
|
}
|
||||||
form.on('checkbox(switchMQ)', function (switchData) {
|
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).next().attr("class", "layui-unselect layui-form-checkbox");
|
||||||
$(switchData.elem).prop("checked", false);
|
$(switchData.elem).prop("checked", false);
|
||||||
layer.msg('[裁切- 模切]不能同时选择!', {offset: ['300px', '300px']}, {icon: 5});
|
layer.msg('[裁切- 模切]不能同时选择!', {offset: ['300px', '300px']}, {icon: 5});
|
||||||
@@ -2480,6 +2480,13 @@
|
|||||||
layer.msg('单面覆膜和双面覆膜只能选一种!', {offset: ['300px', '300px']}, {icon: 5});
|
layer.msg('单面覆膜和双面覆膜只能选一种!', {offset: ['300px', '300px']}, {icon: 5});
|
||||||
return false;
|
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 = [];
|
let craft_list = [];
|
||||||
$("input:checkbox[name='craft']:checked").each(function (i) {
|
$("input:checkbox[name='craft']:checked").each(function (i) {
|
||||||
if (!$(this).is(':disabled')) {
|
if (!$(this).is(':disabled')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user