このコミットが含まれているのは:
2025-06-17 17:20:57 +08:00
コミット d188743f49
8個のファイルの変更1132行の追加387行の削除
+33 -4
ファイルの表示
@@ -479,6 +479,13 @@
});
return false;
}
if (craft_list.indexOf("打码") > -1 && craft_list.indexOf("异形模切") > -1) {
$(data.elem).next().attr("class", "layui-unselect layui-form-checkbox");
$(data.elem).prop("checked", false);
layer.msg("打码 - 异形模切不能同时选择", {offset: ['300px', '300px']}, function () {
});
return false;
}
if (craft_list.indexOf("击凸") > -1 || craft_list.indexOf("压凹") > -1) {
$("#color_type").show();
$("#color_type").find("select").attr("disabled", false);
@@ -513,6 +520,13 @@
}
}
);
if (craft_list.indexOf("打码") > -1 && craft_list.indexOf("异形模切") > -1) {
$(data.elem).next().attr("class", "layui-unselect layui-form-checkbox");
$(data.elem).prop("checked", false);
layer.msg("打码 - 异形模切不能同时选择", {offset: ['300px', '300px']}, function () {
});
return false;
}
$("#dakong").removeAttr('disabled');
$("#craft_mo").removeAttr('disabled');
$(".newCraft").children().removeAttr('disabled');
@@ -651,22 +665,37 @@
}
}
var arr = []
let ma_num = $("select[name='maxian'] option:selected").val();
let is_dama = false;
$("input:checkbox[name='craft']:checked").each(function (i) {
if (!$(this).is(':disabled')) {
if ($(this).val() != "双面覆哑膜") {
if ($(this).val() == "单面烫金" || $(this).val() == "双面烫金") {
let tangColor = $("#tang_type select[name='craft'] option:selected").val();
arr.push($(this).val() + tangColor);
}
else if ($(this).val() == "打码") {
let ma_num = $("select[name='maxian'] option:selected").val();
} else if ($(this).val() == "打码") {
is_dama = true;
arr.push($(this).val() + ma_num + "个");
}else {
} else {
arr.push($(this).val());
}
}
}
});
if (is_dama) {
if ((size.split("*")[0] < 9 || size.split("*")[1] < 5.4) && (size.split("*")[0] < 5.4 || size.split("*")[1] < 9)) {
layer.msg("打码尺寸不能小于9*5.4 cm", {offset: ['300px', '300px']}, function () {
});
return false;
}
if (ma_num > 1) {
if ((size.split("*")[0] < 13 || size.split("*")[1] < 4.5) && (size.split("*")[0] < 4.5 || size.split("*")[1] < 13)) {
layer.msg("打码尺寸小于13*4.5 cm不能打多个码", {offset: ['300px', '300px']}, function () {
});
return false;
}
}
}
if (kindValueSelect == '素芸') {
let color = $("select[name='craft']:not(:disabled) option:selected").val()
if (color) {