Этот коммит содержится в:
2025-09-05 14:41:05 +08:00
родитель ce095f4b7f
Коммит 520466e7dd
5 изменённых файлов: 43 добавлений и 12 удалений
+28 -10
Просмотреть файл
@@ -81,7 +81,7 @@
<input type="radio" lay-filter="kind" name="kind" value="11" title="圣诞卡">
</span>
<span class="lessCount" style="display:none">
<input type="radio" lay-filter="kind" name="kind" value="直角卡片" title="直角卡片">
<input type="radio" lay-filter="kind" name="kind" value="直角卡片" title="卡片">
<%-- <input type="radio" lay-filter="kind" name="kind" value="异形卡片" title="异形卡片">--%>
<input type="radio" lay-filter="kind" name="kind" value="腰封" title="腰封">
<input type="radio" lay-filter="kind" name="kind" value="贺卡" title="贺卡">
@@ -531,11 +531,14 @@
<div class="layui-input-block value7">
<input type="checkbox" name="craft" class="mq" lay-filter="switchMQ" value="模切"
title="异形模切">
<input type="checkbox" name="craft" class="mq" lay-filter="switchMQ" value="直角裁切"
title="直角裁切" checked>
<span class="ui_fm_l">
<input type="checkbox" name="craft" class="ui_fm" lay-filter="ui_yf_fm" value="双面覆膜"
title="双面覆膜"/>
</span>
<span class="yhydx">
<input type="checkbox" name="craft" class="layui-input" lay-filter="ui_yf_fm" value="压痕"
title="压痕">
<div class="layui-inline yhselect" style="width:60px; display:none">
@@ -1310,6 +1313,7 @@
layer.msg('[裁切- 模切 - 圆角]不能同时选择!', {offset: ['300px', '300px']}, {icon: 5});
return false;
}
if (data.value == "模切") {
if ($(data.elem).is(":checked")) {
$("#z4_craft .nomq").prop("checked", false).prop("disabled", true);
@@ -1518,6 +1522,10 @@
$("#craftForm")[0].reset();
$(".yhselect").hide();
$(".ydxselect").hide();
$(".yhydx").hide();
$(".yhydx").find(":input").attr("disabled", true);
$('input[class = mq]').prop('checked', false);
$('input[class = mq][value=直角裁切]').prop('checked', true);
if (data.value == 0 || data.value == 1) {
$("#kindValueForm")[0].reset();
$(".kindValue").show();
@@ -1549,6 +1557,7 @@
$(".switchCount").find(":input").attr("disabled", false);
$(".ui_fm_l").show();
$('.ui_fm_l').find(":input").attr("disabled", false);
form.on('radio(kindValue)', function (kindValueData) {
kindValue = kindValueData.value
$(".ui_fm_l").show();
@@ -1585,20 +1594,20 @@
$('.fm').hide();
$('.fm').prop('checked', false);
}
$('input[class = mq]').prop('checked', false);
$('input[class = mq][value=直角裁切]').prop('checked', true);
// 吊旗、腰封--300克铜版纸的时候勾选模切,且不能取消
if (data.value == 0) {
$('input[class = mq]').prop('checked', true);
form.on('checkbox(switchMQ)', function (switchData) {
// 吊旗/吊牌的模切
if (!switchData.elem.checked) {
layer.msg('吊旗不能取消 [ 模切 ] 工艺!', {offset: ['300px', '300px']}, function () {
});
$('input[class = mq]').prop('checked', true);
form.render('checkbox');
} else {
kindValueData.value = 1;
}
if (switchData.elem.checked) {
$(".disab").attr("disabled", true);
$('input[class = disab]').prop('checked', false);
@@ -1617,6 +1626,12 @@
if (kindValueData.value == 2) {
//$('input[class = mq]').prop('checked', true);
form.on('checkbox(switchMQ)', function (switchData) {
if ($(".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});
return false;
}
if (kindValueData.value == 2) {
// 吊旗/吊牌的模切
if (!switchData.elem.checked) {
@@ -1630,7 +1645,6 @@
}
})
} else {
$('input[class = mq]').prop('checked', false);
}
}
form.render();
@@ -1787,7 +1801,6 @@
$("#craft").show();
$(".craft").show();
$(".craft").find(":input").attr("disabled", false);
$('input[class = mq]').prop('checked', false);
$(".kindValue5").hide();
$(".kindValue5").attr("disabled", true);
$(".ui_shk_size").hide();
@@ -1867,7 +1880,6 @@
if (data.value == 7) {
$(".value7").find(":input").attr("checked", false);
$(".damaHide").hide();
$('input[class = mq]').prop('checked', true);
$('input[class = cjkDisab]').prop('checked', false);
$(".cjkDisab").attr("disabled", true);
// 打码勾选--编码类型说明显示
@@ -2953,6 +2965,14 @@
layer.msg("[ 卡片 ]尺寸小于4*4 cm请以 [ 插卡 - 异形插牌 ] 报价!",{offset:['300px','300px']},function(){});
return false;
} */
if (couponKind != "少数量" && (kind == 1 || kind == 3 || kind == 4 || kind == 5 || kind == 7 || kind == 13)) {
if ($(".mq:checked").length == 0) {
layer.msg("请选择裁切类型", {offset: ['300px', '300px']}, function () {
});
return false;
}
}
var kindData = {
0: "吊旗",
1: "腰封",
@@ -2967,7 +2987,7 @@
10: "吸管套",
11: "圣诞卡",
13: "刮刮卡",
"直角卡片": "直角卡片",
"直角卡片": "卡片",
"异形卡片": "异形卡片",
"腰封": "腰封",
"贺卡": "贺卡",
@@ -3412,7 +3432,6 @@
if (kind == 8) {
arr.push("模切")
} else {
arr.push("直角裁切")
}
}
} else {
@@ -3420,7 +3439,6 @@
if (kind == 8) {
arr.push("模切")
} else {
arr.push("直角裁切")
}
}