修改特种子打码
This commit is contained in:
@@ -103,22 +103,26 @@
|
||||
<option value="6">五联风琴折</option>
|
||||
</select>
|
||||
</div>
|
||||
<input type="checkbox" name="craft" class="disab yh" lay-filter="switch" value="压痕" title="压痕" disabled>
|
||||
<div class="layui-inline edge yahenHide" style="width: 60px; display:none">
|
||||
<select name="yahen" class="select yahen" lay-filter="yahen">
|
||||
<option value="1" selected>1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="4">4</option>
|
||||
<option value="5">5</option>
|
||||
<option value="6">6</option>
|
||||
</select>
|
||||
</div>
|
||||
<input type="checkbox" name="craft" class="disab fm" lay-filter="switch" value="单面覆膜" title="单面覆膜"
|
||||
disabled>
|
||||
<input type="checkbox" name="craft" class="disab fm" lay-filter="switch" value="双面覆膜" title="双面覆膜"
|
||||
disabled>
|
||||
<input type="checkbox" name="craft" class="disab mq" lay-filter="switch" value="模切" title="异形模切">
|
||||
<span style="display:none;" id="non_157">
|
||||
<input type="checkbox" name="craft" class="disab yh" lay-filter="switch" value="压痕" title="压痕" disabled>
|
||||
<div class="layui-inline edge yahenHide" style="width: 60px; display:none">
|
||||
<select name="yahen" class="select yahen" lay-filter="yahen">
|
||||
<option value="1" selected>1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="4">4</option>
|
||||
<option value="5">5</option>
|
||||
<option value="6">6</option>
|
||||
</select>
|
||||
</div>
|
||||
<input type="checkbox" name="craft" class="disab fm" lay-filter="switch" value="单面覆膜" title="单面覆膜"
|
||||
disabled>
|
||||
<input type="checkbox" name="craft" class="disab fm" lay-filter="switch" value="双面覆膜" title="双面覆膜"
|
||||
disabled>
|
||||
</span>
|
||||
<span>
|
||||
<input type="checkbox" name="craft" class="disab mq" lay-filter="switch" value="模切" title="异形模切">
|
||||
</span>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="layui-form-item">
|
||||
@@ -197,16 +201,16 @@
|
||||
let kindValue = $("select[name='kindValue'] option:checked").val();
|
||||
$("#remark").empty();
|
||||
let html = '';
|
||||
if(kindValue == 3){
|
||||
if (kindValue == 3) {
|
||||
html = '预计发货时间:<br>福建:直角裁切 (2-3天发货) 圆通 顺丰 <br>江苏:直角裁切 (2-3天发货) 韵达 顺丰<br>福建:直角折页 (3-4天发货) 圆通 顺丰 <br>江苏:直角折页 (3-4天发货) 韵达 顺丰<br>福建:异形模切 (4-5天发货) 圆通 顺丰'
|
||||
}
|
||||
if(kindValue == 2){
|
||||
if (kindValue == 2) {
|
||||
html = '预计发货时间:<br>江苏:直角裁切 (2-3天发货) 韵达 顺丰<br>江苏:直角折页/压痕 (3-4天发货) 韵达 顺丰<br>江苏:异形模切 (4-5天发货) 韵达 顺丰'
|
||||
}
|
||||
if(kindValue == 1){
|
||||
if (kindValue == 1) {
|
||||
html = '预计发货时间:<br>江苏:直角裁切 (2-3天发货) 韵达 顺丰<br>江苏:直角折页/压痕 (3-4天发货) 韵达 顺丰<br>江苏:异形模切 (4-5天发货) 韵达 顺丰'
|
||||
}
|
||||
if(kindValue == 0){
|
||||
if (kindValue == 0) {
|
||||
html = '预计发货时间:<br>江苏:直角裁切 (2-3天发货) 韵达 顺丰<br>江苏:直角折页/压痕 (3-4天发货) 韵达 顺丰<br>福建:异形模切 (4-5天发货) 圆通 顺丰'
|
||||
}
|
||||
|
||||
@@ -215,16 +219,26 @@
|
||||
}
|
||||
|
||||
form.on('select(kindValue)', function (data) {
|
||||
$("#non_157").show()
|
||||
$("#non_157").find("input").prop("disabled", false);
|
||||
$(".mq").parent().show();
|
||||
$(".mq").attr("disabled", false);
|
||||
$(".disab").attr("disabled", false);
|
||||
|
||||
// 80克、157克纸张的时候无覆膜
|
||||
if (data.value == "0" || data.value == "3") {
|
||||
$(".disab").attr("disabled", true);
|
||||
} else {
|
||||
$(".disab").attr("disabled", false);
|
||||
$(".mq").parent().hide();
|
||||
$(".mq").attr("disabled", true);
|
||||
$("#non_157").hide()
|
||||
$("#non_157").find("input").prop("disabled", true);
|
||||
}
|
||||
|
||||
// 157克铜版纸的时候可以选择模切
|
||||
if (data.value == "3") {
|
||||
$(".mq").parent().show();
|
||||
$(".mq").attr("disabled", false);
|
||||
|
||||
}
|
||||
form.render('checkbox');
|
||||
setRemark()
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
</select>
|
||||
</div>
|
||||
<p>
|
||||
数量(套)
|
||||
数量(套)<span style="font-size: 14px; color: red">备注: 一套只可以4个图</span>
|
||||
</p>
|
||||
<div class="layui-form-item">
|
||||
<input type="text" name="count" id="count" placeholder="请输入整数" class="layui-input" autocomplete="off">
|
||||
@@ -90,7 +90,9 @@
|
||||
<div class="layui-input-block">
|
||||
背纸工艺:
|
||||
<input type="checkbox" name="craft" lay-filter="ui_craft" value="背卡" title="背卡">
|
||||
<input type="checkbox" name="craft" lay-filter="ui_craft" value="现货背卡" title="现货背卡">
|
||||
<span style="display: none">
|
||||
<input type="checkbox" name="craft" lay-filter="ui_craft" value="现货背卡" title="现货背卡">
|
||||
</span>
|
||||
</div>
|
||||
<div class="layui-input-block beika" style="display: none">
|
||||
背纸尺寸:
|
||||
@@ -228,7 +230,11 @@
|
||||
$("input[name='craft'][value='现货背卡']").prop("checked", false);
|
||||
$(".xhbeika").hide();
|
||||
$(".xhbeika").find("input").prop("disabled", true)
|
||||
$("input[name='craft'][value='现货背卡']").parent().hide();
|
||||
$("input[name='craft'][value='现货背卡']").find("input").prop("disabled", true);
|
||||
if (kindValue == "对联冰箱贴") {
|
||||
$("input[name='craft'][value='现货背卡']").parent().show();
|
||||
$("input[name='craft'][value='现货背卡']").find("input").prop("disabled", false);
|
||||
cailiaoHtml = `<option value="2.3">2.3mm</option>
|
||||
<option value="2.3滴塑">2.3mm滴塑</option>`;
|
||||
$("#ui_size").hide();
|
||||
|
||||
@@ -559,10 +559,10 @@
|
||||
return false;
|
||||
}
|
||||
if (craft_list.indexOf("打码") > -1 && craft_list.indexOf("异形模切") > -1) {
|
||||
if ((size.split("*")[0] < 9 || size.split("*")[1] < 5.4) || (size.split("*")[0] < 5.4 || size.split("*")[1] < 9)) {
|
||||
if ((size.split("*")[0] < 9 || size.split("*")[1] < 5.4) && (size.split("*")[0] < 5.4 || size.split("*")[1] < 9)) {
|
||||
$(data.elem).next().attr("class", "layui-unselect layui-form-checkbox");
|
||||
$(data.elem).prop("checked", false);
|
||||
layer.msg("打码 - 异形模切不能同时选择", {offset: ['300px', '300px']}, function () {
|
||||
layer.msg("9*5.4 打码 - 异形模切不能同时选择", {offset: ['300px', '300px']}, function () {
|
||||
});
|
||||
return false;
|
||||
}
|
||||
@@ -632,10 +632,10 @@
|
||||
);
|
||||
let kindValue = $("select[name='kindValue'] option:selected").val();
|
||||
if (craft_list.indexOf("打码") > -1 && craft_list.indexOf("异形模切") > -1) {
|
||||
if ((size.split("*")[0] < 9 || size.split("*")[1] < 5.4) || (size.split("*")[0] < 5.4 || size.split("*")[1] < 9)) {
|
||||
if ((size.split("*")[0] < 9 || size.split("*")[1] < 5.4) && (size.split("*")[0] < 5.4 || size.split("*")[1] < 9)) {
|
||||
$(data.elem).next().attr("class", "layui-unselect layui-form-checkbox");
|
||||
$(data.elem).prop("checked", false);
|
||||
layer.msg("打码 - 异形模切不能同时选择", {offset: ['300px', '300px']}, function () {
|
||||
layer.msg("9*5.4 打码 - 异形模切不能同时选择", {offset: ['300px', '300px']}, function () {
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user