新增特种纸工艺
This commit is contained in:
@@ -182,7 +182,7 @@
|
||||
<input type="checkbox" name="craft" lay-filter="switch" value="压痕" title="压痕">
|
||||
</div>
|
||||
<div id="mianka" style="display: none">
|
||||
<div id="ccolor_type" class="layui-inline" style="width: 180px;display: flex;align-items: center">
|
||||
<div id="ccolor_type" class="layui-inline" style="display: flex;align-items: center">
|
||||
<div style="flex-shrink: 0">纸张颜色:</div>
|
||||
<select name="craft" class="select">
|
||||
<option value="黑色" selected>黑色</option>
|
||||
@@ -192,6 +192,10 @@
|
||||
<option value="浅棕色">浅棕色</option>
|
||||
<option value="白色">白色</option>
|
||||
</select>
|
||||
<span class="printColor" style="display: none;align-items: center;">
|
||||
<input type="checkbox" name="craft" lay-filter="mianka" value="印刷颜色" title="印刷颜色" checked>
|
||||
<input type="text" name="co_number" class="layui-input" value="1">
|
||||
</span>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
裁切方式:
|
||||
@@ -526,8 +530,12 @@
|
||||
$("input[name='craft'][value='压凹']").prop("checked", false);
|
||||
$("#color_type").hide();
|
||||
$("#color_type").find("select").attr("disabled", true);
|
||||
$(".printColor").hide()
|
||||
$(".printColor").find("input").attr("disabled", true);
|
||||
if (data.value == "300克") {
|
||||
colorHtml = `<option value="白色">白色</option>`;
|
||||
$(".printColor").css("display", "flex")
|
||||
$(".printColor").find("input").attr("disabled", false);
|
||||
}
|
||||
|
||||
$("#ccolor_type select[name='craft']").empty();
|
||||
@@ -599,6 +607,13 @@
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (craft_list.indexOf("印刷颜色") == -1 && kindValueSelect == "素芸") {
|
||||
$(data.elem).prop("checked", true);
|
||||
layer.msg("印刷颜色无法取消", {offset: ['300px', '300px']}, function () {
|
||||
});
|
||||
form.render();
|
||||
return false;
|
||||
}
|
||||
// if (kindValue == "300克" && craft_list.indexOf("压凹") > -1) {
|
||||
// $(data.elem).next().attr("class", "layui-unselect layui-form-checkbox");
|
||||
// $(data.elem).prop("checked", false);
|
||||
@@ -637,6 +652,7 @@
|
||||
$("#leishe_type").hide();
|
||||
$("#leishe_type").find("select").attr("disabled", true);
|
||||
}
|
||||
|
||||
form.render();
|
||||
})
|
||||
// 监听工艺
|
||||
@@ -854,6 +870,8 @@
|
||||
arrs.push($(this).val() + "印刷");
|
||||
} else if ($(this).val() == "压凹" || $(this).val() == "击凸") {
|
||||
arrs.push($("#color_type select option:selected").val() + $(this).val());
|
||||
} else if ($(this).val() == "印刷颜色") {
|
||||
arrs.push($(this).val() + $(".printColor input[name='co_number']").val());
|
||||
} else {
|
||||
arrs.push($(this).val());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user