|
|
@@ -27,6 +27,14 @@
|
|
|
.shengz .layui-edge {
|
|
|
right: 40px;
|
|
|
}
|
|
|
+
|
|
|
+ #color_type .layui-form-select .layui-edge {
|
|
|
+ right: 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ #tcolor_type .layui-form-select .layui-edge {
|
|
|
+ right: 20px;
|
|
|
+ }
|
|
|
</style>
|
|
|
<body>
|
|
|
<div class="big_box">
|
|
|
@@ -128,8 +136,16 @@
|
|
|
<input type="radio" name="craftMo" lay-filter="craftMo" value="不覆膜" title="不覆膜">
|
|
|
|
|
|
|
<!-- <input type="checkbox" class="craftSheng" name="craftSheng" lay-filter="switch" value="棉绳" title="棉绳" lay-skin="primary">
|
|
|
- | --><input type="checkbox" name="aotu" lay-filter="switch" value="凹凸"
|
|
|
- title="凹凸" lay-skin="primary">
|
|
|
+ | -->
|
|
|
+ <input type="checkbox" name="aotu" lay-filter="switch" value="击凸" title="击凸" lay-skin="primary">
|
|
|
+ <input type="checkbox" name="aotu" lay-filter="switch" value="压凹" title="压凹" lay-skin="primary">
|
|
|
+ <span id="color_type" class="layui-inline" style="display: none;width: 100px">
|
|
|
+ <select name="craft" class="select" disabled>
|
|
|
+ <option value="无色" selected>无色</option>
|
|
|
+ <option value="有色">有色</option>
|
|
|
+ <option value="有色加凹凸">有色加激凸/有色加压凹</option>
|
|
|
+ </select>
|
|
|
+ </span>
|
|
|
|
|
|
|
<div>
|
|
|
<input type="checkbox" class="tang" name="craftTang" lay-filter="switch" value="单面烫金"
|
|
|
@@ -282,13 +298,13 @@
|
|
|
html += "福建:异形模切、双面烫金(4-5天发货) 圆通 顺丰<br>"
|
|
|
html += "广东:异形模切、双面烫金(4-5天发货) 中通 顺丰<br>"
|
|
|
}
|
|
|
- if (craftQie == "直角打孔" && auto == "凹凸") {
|
|
|
- html += "福建:直角打孔、凹凸(3-4天发货) 圆通 顺丰<br>"
|
|
|
- html += "广东:直角打孔、凹凸(3-4天发货) 中通 顺丰<br>"
|
|
|
+ if (craftQie == "直角打孔" && (auto == "击凸" || auto == "压凹")) {
|
|
|
+ html += "福建:直角打孔、击凸、压凹(3-4天发货) 圆通 顺丰<br>"
|
|
|
+ html += "广东:直角打孔、击凸、压凹(3-4天发货) 中通 顺丰<br>"
|
|
|
}
|
|
|
- if (craftQie == "异形模切" && auto == "凹凸") {
|
|
|
- html += "福建:异形模切、凹凸(4-5天发货) 圆通 顺丰<br>"
|
|
|
- html += "广东:异形模切、凹凸(4-5天发货) 中通 顺丰<br>"
|
|
|
+ if (craftQie == "异形模切" && (auto == "击凸" || auto == "压凹")) {
|
|
|
+ html += "福建:异形模切、击凸、压凹(4-5天发货) 圆通 顺丰<br>"
|
|
|
+ html += "广东:异形模切、击凸、压凹(4-5天发货) 中通 顺丰<br>"
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -422,8 +438,27 @@
|
|
|
}
|
|
|
form.render();
|
|
|
});
|
|
|
- form.on('radio(kind2Value)', () => {
|
|
|
- getRemoker()
|
|
|
+ form.on('radio(kind2Value)', function (data) {
|
|
|
+ let at = data.value;
|
|
|
+ if (at == '击凸' || at == '压凹') {
|
|
|
+ if (at.indexOf("击凸") > -1) {
|
|
|
+ $("#tcolor_type select").empty().append(` <option value="无色" selected>无色</option>
|
|
|
+ <option value="有色">有色</option>
|
|
|
+ <option value="有色加激凸">有色加激凸</option>`)
|
|
|
+ }
|
|
|
+ if (at.indexOf("压凹") > -1) {
|
|
|
+ $("#tcolor_type select").empty().append(` <option value="无色" selected>无色</option>
|
|
|
+ <option value="有色">有色</option>
|
|
|
+ <option value="有色加压凹">有色加压凹</option>`)
|
|
|
+ }
|
|
|
+ $("#tcolor_type").show();
|
|
|
+ $("#tcolor_type").find("select").attr("disabled", false);
|
|
|
+ } else {
|
|
|
+ $("#tcolor_type").hide();
|
|
|
+ $("#tcolor_type").find("select").attr("disabled", true);
|
|
|
+ }
|
|
|
+ getRemoker();
|
|
|
+ form.render();
|
|
|
})
|
|
|
form.on('checkbox(switch)', function (data) {
|
|
|
// 压痕压点线只能选一个
|
|
|
@@ -444,9 +479,32 @@
|
|
|
if (tangLen == 1 && at != null) {
|
|
|
$(data.elem).next().attr("class", "layui-unselect layui-form-checkbox");
|
|
|
$(data.elem).prop("checked", false);
|
|
|
- layer.msg('烫金和凹凸不能同时选择!', {offset: ['300px', '300px']}, {icon: 5});
|
|
|
+ layer.msg('烫金和击凸、压凹不能同时选择!', {offset: ['300px', '300px']}, {icon: 5});
|
|
|
return false;
|
|
|
}
|
|
|
+ if ($("input[name='aotu']:checked").length > 1) {
|
|
|
+ $(data.elem).next().attr("class", "layui-unselect layui-form-checkbox");
|
|
|
+ $(data.elem).prop("checked", false);
|
|
|
+ layer.msg('击凸、压凹不能同时选择!', {offset: ['300px', '300px']}, {icon: 5});
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (at != null) {
|
|
|
+ if (at.indexOf("击凸") > -1) {
|
|
|
+ $("#color_type select").empty().append(` <option value="无色" selected>无色</option>
|
|
|
+ <option value="有色">有色</option>
|
|
|
+ <option value="有色加激凸">有色加激凸</option>`)
|
|
|
+ }
|
|
|
+ if (at.indexOf("压凹") > -1) {
|
|
|
+ $("#color_type select").empty().append(` <option value="无色" selected>无色</option>
|
|
|
+ <option value="有色">有色</option>
|
|
|
+ <option value="有色加压凹">有色加压凹</option>`)
|
|
|
+ }
|
|
|
+ $("#color_type").show();
|
|
|
+ $("#color_type").find("select").attr("disabled", false);
|
|
|
+ } else {
|
|
|
+ $("#color_type").hide();
|
|
|
+ $("#color_type").find("select").attr("disabled", true);
|
|
|
+ }
|
|
|
var craftSheng = $(".craftSheng2:checked").length;
|
|
|
if (craftSheng == 2) {
|
|
|
$(data.elem).next().attr("class", "layui-unselect layui-form-checkbox");
|
|
|
@@ -463,6 +521,7 @@
|
|
|
$(".craftSheng .tscolor").prop("disabled", true);
|
|
|
}
|
|
|
}
|
|
|
+ form.render();
|
|
|
getRemoker()
|
|
|
})
|
|
|
|