修改特种纸烫金
This commit is contained in:
@@ -10,6 +10,13 @@
|
||||
</head>
|
||||
<!-- 特种纸名片 -->
|
||||
<style>
|
||||
#tang_type .layui-form-select .layui-edge {
|
||||
right: 20px;
|
||||
}
|
||||
|
||||
#dama .layui-form-select .layui-edge {
|
||||
right: 20px;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div class="big_box">
|
||||
@@ -172,22 +179,29 @@
|
||||
<option value="有色加凹凸">有色加凹凸</option>
|
||||
</select>
|
||||
</div>
|
||||
<br/>
|
||||
<input type="checkbox" name="craft" lay-filter="mianka" value="单面烫金" title="单面烫金" disabled>
|
||||
<input type="checkbox" name="craft" lay-filter="mianka" value="双面烫金" title="双面烫金" disabled>
|
||||
<div id="tang_type" class="layui-inline" style="display: none;width: 200px">
|
||||
<select name="craft" class="select" disabled>
|
||||
<option value="烫金" selected>烫金</option>
|
||||
<option value="烫银">烫银</option>
|
||||
<option value="烫蓝">烫蓝</option>
|
||||
<option value="烫绿">烫绿</option>
|
||||
<option value="烫紫">烫紫</option>
|
||||
<option value="烫玫瑰">烫玫瑰</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<br/>
|
||||
<input type="checkbox" name="craft" lay-filter="mianka" value="单面烫金" title="单面烫金">
|
||||
<input type="checkbox" name="craft" lay-filter="mianka" value="双面烫金" title="双面烫金">
|
||||
<div id="tang_type" class="layui-inline" style="display: none;width: 90px">
|
||||
<select name="craft" class="select">
|
||||
<option value="烫金" selected>烫金</option>
|
||||
<option value="烫银">烫银</option>
|
||||
<option value="烫蓝">烫蓝</option>
|
||||
<option value="烫绿">烫绿</option>
|
||||
<option value="烫紫">烫紫</option>
|
||||
<option value="烫玫瑰">烫玫瑰</option>
|
||||
</select>
|
||||
</div>
|
||||
<input type="checkbox" name="craft" lay-filter="switch" value="打码" title="打码">
|
||||
<div id="dama" class="layui-inline" style="display: none;width: 90px">
|
||||
<select name="maxian" class="select">
|
||||
<option value="1" selected>1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<!--<input type="checkbox" name="craft" lay-filter="switch" value="烫金/" title="烫金" class="hasCraft ui_ls_craft">
|
||||
<input type="checkbox" name="craft" lay-filter="switch" value="击凸" title="击凸" class="hasCraft">
|
||||
<input type="checkbox" name="craft" lay-filter="switch" value="凹凸" title="凹凸" class="ui_ls_craft" disabled="disabled">
|
||||
@@ -492,6 +506,13 @@
|
||||
// $('.niupikaNoMQCraft').removeAttr('disabled');
|
||||
// }
|
||||
// }
|
||||
let craft_list = [];
|
||||
$("input[name='craft']:checked").each(function () {
|
||||
if (!$(this).is(':disabled')) {
|
||||
craft_list.push($(this).val());
|
||||
}
|
||||
}
|
||||
);
|
||||
$("#dakong").removeAttr('disabled');
|
||||
$("#craft_mo").removeAttr('disabled');
|
||||
$(".newCraft").children().removeAttr('disabled');
|
||||
@@ -509,6 +530,13 @@
|
||||
$("#craft_yuanjiao").prop('disabled', 'disabled');
|
||||
$("#craft_dianxian").prop('disabled', 'disabled');
|
||||
}
|
||||
if (craft_list.indexOf("打码") > -1) {
|
||||
$("#dama").show();
|
||||
$("#dama").find("select").attr("disabled", false);
|
||||
} else {
|
||||
$("#dama").hide();
|
||||
$("#dama").find("select").attr("disabled", true);
|
||||
}
|
||||
|
||||
form.render();
|
||||
setRemark()
|
||||
@@ -626,7 +654,16 @@
|
||||
$("input:checkbox[name='craft']:checked").each(function (i) {
|
||||
if (!$(this).is(':disabled')) {
|
||||
if ($(this).val() != "双面覆哑膜") {
|
||||
arr.push($(this).val());
|
||||
if ($(this).val() == "单面烫金" || $(this).val() == "双面烫金") {
|
||||
let tangColor = $("#tang_type select[name='craft'] option:selected").val();
|
||||
arr.push($(this).val() + tangColor);
|
||||
}
|
||||
else if ($(this).val() == "打码") {
|
||||
let ma_num = $("select[name='maxian'] option:selected").val();
|
||||
arr.push($(this).val() + ma_num + "个");
|
||||
}else {
|
||||
arr.push($(this).val());
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user