新增UV磁吸贴

This commit is contained in:
2026-07-21 16:59:33 +08:00
parent b40c6a76f8
commit 02f8b03f64
5 changed files with 667 additions and 80 deletions
+99 -7
View File
@@ -97,6 +97,7 @@
<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="反转胶片">
</span>
</div>
<div id="doorList" style="display: none">
@@ -149,6 +150,12 @@
checked="checked">
<input type="radio" name="kindValue7" lay-filter="kindValue7" value="8" title="250克牛皮纸">
</div>
<div class="kindValue8" style="display:none">
<input type="radio" name="kindValue" lay-filter="kindValue8" value="0" title="700克对裱铜版纸" checked="checked">
<input type="radio" name="kindValue" lay-filter="kindValue8" value="1" title="700克对裱白卡纸">
<input type="radio" name="kindValue" lay-filter="kindValue8" value="2" title="700克对裱珠光纸">
<input type="radio" name="kindValue" lay-filter="kindValue8" value="3" title="700克对裱棉纸">
</div>
<div class="ui_sdk" style="display:none">
<input type="radio" name="ui_sdk_cz" value="1" title="700克白卡纸" checked>
</div>
@@ -169,7 +176,7 @@
<input type="radio" lay-filter="z3type" name="z3type" value="1" title="卡片">
<input type="radio" lay-filter="z3type" name="z3type" value="2" title="圆形">
<input type="radio" lay-filter="z3type" name="z3type" value="3" title="开窗">
<%-- <input type="radio" lay-filter="z3type" name="z3type" value="5" title="奖牌">--%>
<%-- <input type="radio" lay-filter="z3type" name="z3type" value="5" title="奖牌">--%>
<input type="radio" name="z3type" lay-filter="z3type" value="4" title="自定义">
</div>
<p>材质</p>
@@ -906,6 +913,30 @@
</div>
</form>
</div>
<div class="ui_fzjp" style="display: none;">
<form class="layui-form">
<p>
工艺
</p>
<div class="layui-input-block">
<div>
印面工艺:
<input type="checkbox" name="craft" value="单面" lay-filter="kindValue8" title="单面" checked>
<input type="checkbox" name="craft" value="双面" lay-filter="kindValue8" title="双面">
</div>
<div>
裁切工艺:
<input type="checkbox" name="craft" value="直角裁切" lay-filter="kindValue8" title="直角裁切" checked>
<input type="checkbox" name="craft" value="模切" lay-filter="kindValue8" title="模切">
</div>
<div>
配件:
<input type="checkbox" name="craft" value="装OPP袋" lay-filter="kindValue8" title="装OPP袋" checked>
</div>
</div>
</form>
</div>
<div class="peijian_ui" id="peijian_ui" style="display: none;">
<form class="layui-form">
<span style="font-size:12px;color:red">opp袋:规格尺寸长度包含胶边2厘米(如8*5厘米规格,含胶边2厘米实际可装尺寸6*5厘米)</span>
@@ -1403,11 +1434,11 @@
$('input[class = mq]').prop('checked', false);
}
}
if (type == "少数量" && type1 != "种子纸") {
if (type == "少数量" && type1 != "种子纸" && type1 != "反转胶片") {
$("#lesspeijian").show();
$("#lesspeijian").find(":input").attr("disabled", false);
}
if (type == "少数量" && type1 != "种子纸" && (s.split("*")[0] > 42 || s.split("*")[1] > 28.5) && (s.split("*")[0] > 28.5 || s.split("*")[1] > 42)) {
if (type == "少数量" && type1 != "种子纸" && type1 != "反转胶片" && (s.split("*")[0] > 42 || s.split("*")[1] > 28.5) && (s.split("*")[0] > 28.5 || s.split("*")[1] > 42)) {
$("#lesspeijian input").prop("checked", false);
$("#lesspeijian").hide();
$("#lesspeijian").find(":input").attr("disabled", true);
@@ -1805,8 +1836,10 @@
$(".ui_fm_l").show();
$('.ui_fm_l').find(":input").attr("disabled", false);
$('.ui_fm_l').find(":input").prop('checked', false);
$("#peijian_ui form")[0].reset();
peijianuiHide()
if (data.value == '直角卡片' || data.value == '异形卡片' || data.value == '贺卡' || data.value == '特种纸名片') {
if (data.elem.checked) {
$("#lesspeijian").show();
@@ -1831,7 +1864,8 @@
$("#specialCard").find(":input").attr("disabled", true);
$(".doublefumo").find(":input").prop("checked", false);
}
$(".ui_fzjp").hide();
$(".ui_fzjp").find(":input").attr("disabled", true);
if (data.value == 10 && $("input[name='kindValue7']:checked").val() == 8) {
$(".ui_xgt").show();
$(".ui_xgt").attr("disabled", false);
@@ -2389,8 +2423,12 @@
$(".ui_menu_size").find(":input").attr("disabled", true);
$(".ui_tzmp").hide();
$(".ui_tzmp").find(":input").attr("disabled", true);
$(".ui_fzjp").hide();
$(".ui_fzjp").find(":input").attr("disabled", true);
$(".kindValue6").hide();
$(".kindValue6").find(":input").attr("disabled", true);
$(".kindValue8").hide();
$(".kindValue8").find(":input").attr("disabled", true);
if ($("#number").val() > 1) {
$("#ui_des").show();
}
@@ -2498,6 +2536,18 @@
$('input[name="switchz3Size"]').prop('checked', false);
$(".size-tip-z3").show();
$(".size-tip-other").hide();
} else if (data.value == "反转胶片") {
$(".kindValue8").show();
$(".kindValue8").find(":input").attr("disabled", false);
$(".kindValue2").hide();
$(".kindValue2").find(":input").attr("disabled", true);
$(".lessCountHideCraft").hide();
$(".lessCountHideCraft").find(":input").attr("disabled", true);
$(".ui_fzjp").show();
$(".ui_fzjp").find(":input").attr("disabled", false);
} else {
}
@@ -3376,7 +3426,33 @@
$(".n_mq_input input").prop("disabled", true);
}
})
form.on("checkbox(kindValue8)", function (data) {
let craft_list = [];
$("input:checkbox[name='craft']:checked").each(function (i) {
// 没有被禁用的工艺加到arr中
if (!$(this).is(':disabled')) {
craft_list.push($(this).val());
}
});
const craft_arr = ["单面", "双面"];
const craft1 = craft_arr.filter(craft => craft_list.includes(craft));
if (craft1.length > 1) {
$(data.elem).prop("checked", false);
layer.msg("印面工艺不能同时选择", {offset: ['300px', '300px']}, function () {
});
form.render();
return false;
}
const craft_arr1 = ["直角裁切", "模切"];
const craft2 = craft_arr1.filter(craft => craft_list.includes(craft));
if (craft2.length > 1) {
$(data.elem).prop("checked", false);
layer.msg("裁切工艺不能同时选择", {offset: ['300px', '300px']}, function () {
});
form.render();
return false;
}
})
//点击计算,计算价格
form.on('submit(acount_btn)', function (data) {
/* var wangwang = $("#wangwang").val();
@@ -3470,7 +3546,8 @@
"菜单": "菜单",
"婚礼报纸": "婚礼报纸",
"特种纸名片": "特种纸名片",
"种子纸": "种子纸"
"种子纸": "种子纸",
"反转胶片": "反转胶片"
}, kindValueData = {
0: "157克铜版纸",
1: "200克铜版纸",
@@ -3881,6 +3958,17 @@
}
}
} else if (kind == "反转胶片") {
if ((size.split("*")[0] < 5 || size.split("*")[1] < 5)) {
layer.msg("反转胶片尺寸最小5*5CM", {offset: ['300px', '300px']}, function () {
});
return false;
}
if ((size.split("*")[0] > 20 || size.split("*")[1] > 30) && (size.split("*")[0] > 30 || size.split("*")[1] > 20)) {
layer.msg("尺寸超过 20.0*30.cm 无法报价", {offset: ['300px', '300px']}, function () {
});
return false;
}
} else if (kind != "异形卡片") {
if ((size.split("*")[0] > 70 || size.split("*")[1] > 70)) {
if ($("#count").val() != 1 && $("#count").val() != 5 && $("#count").val() % 10 != 0) {
@@ -3977,7 +4065,7 @@
// arr.push("双面不覆膜")
// }
} else {
if (kind != "种子纸") {
if (kind != "种子纸" && kind != "反转胶片") {
arr.push($('input[name="craftShua"]:checked').val())
}
let shengz = $(".shengz:checked").length;
@@ -4193,6 +4281,10 @@
arr.push($("#kaichuang select option:selected").val());
}
span_result = span_result + " \n" + "工艺 :" + arr + ",不覆膜" + "\n";
} else if (kindData[kind] == "反转胶片") {
var span_result = kindData[kind] + " -" + size + "厘米-(" + same + ")"
span_result = span_result + " \n" + "工艺 :" + arr + "\n";
} else {
if (couponKind == "少数量") {