新增杯垫镭射银工艺
This commit is contained in:
@@ -151,7 +151,10 @@
|
||||
</span>
|
||||
<input type="radio" name="kind2Value" lay-filter="kind2Value" value="击凸" title="击凸">
|
||||
<input type="radio" name="kind2Value" lay-filter="kind2Value" value="压凹" title="压凹">
|
||||
<input type="radio" name="kind2Value" value="单面烫黄金+凹凸" title="单面烫黄金+凹凸">
|
||||
<input type="radio" name="kind2Value" lay-filter="kind2Value" value="单面烫金+压凹"
|
||||
title="单面烫金+压凹">
|
||||
<input type="radio" name="kind2Value" lay-filter="kind2Value" value="单面烫金+击凸"
|
||||
title="单面烫金+击凸">
|
||||
<span id="color_type" class="layui-inline" style="display: none;width: 100px">
|
||||
<select name="craft" class="select" disabled>
|
||||
<option value="无色" selected>无色</option>
|
||||
@@ -188,11 +191,16 @@
|
||||
<div class="layui-input-block">
|
||||
<span style="float:left;margin-top:10px">烫金 : </span>
|
||||
<input type="radio" name="craft" lay-filter="switch" value="烫金" title="烫金">
|
||||
<input type="radio" name="craft" lay-filter="switch" value="烫镭射银" title="烫镭射银">
|
||||
<div style="display: none" id="tangcolor">
|
||||
<input type="radio" name="tcolor" value="黑色" title="黑色" checked>
|
||||
<input type="radio" name="tcolor" value="金色" title="金色">
|
||||
<input type="radio" name="tcolor" value="红色" title="红色">
|
||||
</div>
|
||||
<div style="display: none" id="tangtype">
|
||||
<input type="radio" name="tcolor" value="单面烫镭射银" title="单面烫镭射银" checked>
|
||||
<input type="radio" name="tcolor" value="双面烫镭射银" title="双面烫镭射银">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -259,6 +267,7 @@
|
||||
$(".pvcCraft").find("select").attr("disabled", true);
|
||||
$("#jtcolor").hide();
|
||||
$("#tangcolor").hide();
|
||||
$("#tangtype").hide();
|
||||
$("#yaao").prop("checked", true);
|
||||
$("#size").val("").prop("readonly", false);
|
||||
$("#leishe_layout").hide();
|
||||
@@ -296,6 +305,9 @@
|
||||
$('#non').prop('checked', true);
|
||||
$("#double").parent('span').hide();
|
||||
$('#non').parent('span').show();
|
||||
$("#leishe_layout").show();
|
||||
$("#leishe_layout").find(":input").attr("disabled", false);
|
||||
$("#leishe_layout").find("select").attr("disabled", false);
|
||||
}
|
||||
if (kindValueData.value == '6') {
|
||||
$('#double').prop('checked', true);
|
||||
@@ -317,14 +329,23 @@
|
||||
$("#jtcolor").hide();
|
||||
$("#jtcolor").find(":input").attr("disabled", true);
|
||||
$("#tangcolor").hide();
|
||||
$("#tangtype").hide();
|
||||
$("#tangcolor").find(":input").attr("disabled", true);
|
||||
$("#tangtype").find(":input").attr("disabled", true);
|
||||
if ($(data.elem).is(":checked") && data.value == "击凸") {
|
||||
$("#jtcolor").show();
|
||||
$("#jtcolor").find(":input").attr("disabled", false);
|
||||
}
|
||||
$("input[name='tcolor']").prop("checked", false);
|
||||
if ($(data.elem).is(":checked") && data.value == "烫金") {
|
||||
$("#tangcolor").show();
|
||||
$("#tangcolor").find(":input").attr("disabled", false);
|
||||
$("#tangcolor input[name='tcolor']")[0].checked = true;
|
||||
}
|
||||
if ($(data.elem).is(":checked") && data.value == "烫镭射银") {
|
||||
$("#tangtype").show();
|
||||
$("#tangtype").find(":input").attr("disabled", false);
|
||||
$("#tangtype input[name='tcolor']")[0].checked = true;
|
||||
}
|
||||
form.render();
|
||||
});
|
||||
@@ -338,7 +359,7 @@
|
||||
});
|
||||
form.on('radio(kind2Value)', function (data) {
|
||||
let at = data.value;
|
||||
if (at == '击凸' || at == '压凹') {
|
||||
if (at == '击凸' || at == '压凹' || at == '单面烫金+压凹' || at == '单面烫金+击凸') {
|
||||
if (at.indexOf("击凸") > -1) {
|
||||
$("#color_type select").empty().append(` <option value="无色" selected>无色</option>
|
||||
<option value="有色">有色</option>
|
||||
@@ -515,8 +536,8 @@
|
||||
var data = result.data.proList;
|
||||
if ("无" != kind2Value) {
|
||||
|
||||
if (kind2Value == "击凸" || kind2Value == "压凹") {
|
||||
arr.push($("#color_type select[name='craft'] option:selected").val())
|
||||
if (kind2Value == "击凸" || kind2Value == "压凹" || kind2Value == "单面烫金+压凹" || kind2Value == "单面烫金+击凸") {
|
||||
arr.push(kind2Value + $("#color_type select[name='craft'] option:selected").val())
|
||||
} else if (kind2Value == '烫镭射银') {
|
||||
arr.push($("#leishe_type select[name='craft'] option:selected").val())
|
||||
} else if (kind2Value == '烫黄金') {
|
||||
@@ -537,17 +558,21 @@
|
||||
} else {
|
||||
let aotu = $("input[name='aotu']:checked").val();
|
||||
let craft = $("input[name='craft']:checked").val();
|
||||
let craft_list = [aotu, craft];
|
||||
let craft_list = [aotu];
|
||||
|
||||
if (craft == "击凸") {
|
||||
let ys = $("input[name='jtcolor']:checked");
|
||||
ys.each(item => {
|
||||
craft_list.push($(ys[item]).val());
|
||||
})
|
||||
}
|
||||
if (craft == "烫金") {
|
||||
} else if (craft == "烫金") {
|
||||
let ys = $("input[name='tcolor']:checked").val();
|
||||
craft_list.push(ys);
|
||||
} else if (craft == "烫镭射银") {
|
||||
let ys = $("input[name='tcolor']:checked").val();
|
||||
craft_list.push(ys);
|
||||
}else{
|
||||
craft_list.push(craft);
|
||||
}
|
||||
span_result += "工艺: " + craft_list.join(",") + "\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user