修改种子纸

This commit is contained in:
2026-07-18 17:11:07 +08:00
parent a6f3ae0538
commit 9218055d64
3 changed files with 58 additions and 26 deletions
+30 -19
View File
@@ -169,13 +169,13 @@
<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>
<div class="z3type">
<select id="material">
<option>400克种子纸</option>
<select id="material" name="kindLabel" lay-filter="kindLabel">
<option value="400">400克种子纸</option>
</select>
</div>
</form>
@@ -478,10 +478,8 @@
<div class="layui-input-block value7">
<div>
裁切工艺:
<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>
<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>
</div>
<div>
<span class="ui_fm_l">
@@ -1136,10 +1134,7 @@
}
if (kind == "种子纸") {
let z3type = $("input[name='z3type']:checked").val()
data.kind2Value = 400
if(z3type == 5){
data.kind2Value = 1000
}
data.kind2Value = $("#material option:selected").val()
}
$("#carousel").empty();
$("#remark").empty();
@@ -1251,7 +1246,7 @@
$("#size").val($('select[name="z3size1"]:not(:disabled) option:checked').val());//尺寸重新赋值
$(".qt").hide()
$("#3zValueForm").show();
let html = `<option>400克种子纸</option>`;
let html = `<option value="400">400克种子纸</option>`;
if (val == 0) {
let menpiao_size = $("#3z_menpiao_size select option:selected").val();
@@ -1314,6 +1309,8 @@
$(".z3_craft_yh").show();
$(".z3_craft_bm").show();
$(".z3_craft_mq").show();
html = `<option value="400">400克种子纸</option>
<option value="1000">1000克种子纸</option>`;
}
if (val == 5) {
$("#3z_jiangpai_size").show();
@@ -1333,7 +1330,7 @@
$(".gscolor").css("display", "inline-block")
$(".gscolor select").prop("disabled", false);
z3Craft($("#size").val())
html = `<option>1000克种子纸</option>`;
html = `<option value="1000">1000克种子纸</option>`;
}
$("#material").empty().append(html);
getProductImage()
@@ -1406,11 +1403,11 @@
$('input[class = mq]').prop('checked', false);
}
}
if (type == "少数量") {
if (type == "少数量" && type1 != "种子纸") {
$("#lesspeijian").show();
$("#lesspeijian").find(":input").attr("disabled", false);
}
if (type == "少数量" && (s.split("*")[0] > 42 || s.split("*")[1] > 28.5) && (s.split("*")[0] > 28.5 || s.split("*")[1] > 42)) {
if (type == "少数量" && 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);
@@ -1421,6 +1418,19 @@
form.render();
});
});
form.on("select(kindLabel)", function (data) {
$(".z3_craft_yh").show();
$(".z3_craft_yh").find("input").attr("disabled", false);
$(".z3_craft_ssx").show();
$(".z3_craft_ssx").find("input").attr("disabled", false);
if (data.value == "1000") {
$(".z3_craft_yh").hide();
$(".z3_craft_yh").find("input").attr("disabled", true);
$(".z3_craft_ssx").hide();
$(".z3_craft_ssx").find("input").attr("disabled", true);
}
form.render();
})
form.on("select(oppSelect)", function (data) {
if (data.value == "装opp袋") {
$("#peijian_ui .opp").hide();
@@ -3853,8 +3863,8 @@
if (kind == "种子纸") {
let type = $('input[name="z3type"]:checked').val();
let switchz3Size = $('input[name="switchz3Size"]:checked').val()
if ((size.split("*")[0] < 8 || size.split("*")[1] < 5) && (size.split("*")[0] < 5 || size.split("*")[1] < 8)) {
layer.msg("尺寸小于 8*5cm 无法报价", {offset: ['300px', '300px']}, function () {
if ((size.split("*")[0] < 3 || size.split("*")[1] < 3)) {
layer.msg("尺寸小于 3*3cm 无法报价", {offset: ['300px', '300px']}, function () {
});
return false;
}
@@ -4173,8 +4183,9 @@
}
span_result += "\n";
} else if (kindData[kind] == "种子纸") {
let switchz3Size = $('input[name="switchz3Size"]:checked').val()
var span_result = kindData[kind] + " -" + size + "厘米-(" + same + ")"
let switchz3Size = $('input[name="switchz3Size"]:checked').val();
let material = $("#material option:selected").text()
var span_result = kindData[kind] + " - " + material + " -" + size + "厘米-(" + same + ")"
if (($('input[name="z3type"]:checked').val() == 0 || $('input[name="z3type"]:checked').val() == 3) && !switchz3Size) {
span_result = span_result + " - " + $('input[name="3z_vice"]:checked')[0].title
}