修改单面凹凸
This commit is contained in:
@@ -23,6 +23,10 @@
|
||||
margin-top: 3px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
#color_type .layui-form-select .layui-edge {
|
||||
right: 20px;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div class="big_box">
|
||||
@@ -96,10 +100,18 @@
|
||||
title="双面覆哑膜" checked/>
|
||||
</span>
|
||||
|
|
||||
<input type="radio" name="kind2Value" value="无" title="无" checked>
|
||||
<input type="radio" name="kind2Value" value="单面烫黄金" title="单面烫黄金">
|
||||
<input type="radio" name="kind2Value" value="单面凹凸" title="单面凹凸">
|
||||
<input type="radio" name="kind2Value" value="单面烫黄金+凹凸" title="单面烫黄金+凹凸">
|
||||
<input type="radio" name="kind2Value" lay-filter="kind2Value" value="无" title="无" checked>
|
||||
<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" 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>
|
||||
<option value="有色">有色</option>
|
||||
<option value="有色加凹凸">有色加激凸/有色加压凹</option>
|
||||
</select>
|
||||
</span>
|
||||
<%-- <input type="radio" name="kind2Value" value="单面烫黄金+凹凸" title="单面烫黄金+凹凸">--%>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item fixcount" id="fixcount" style="display: none">
|
||||
@@ -247,6 +259,27 @@
|
||||
return false;
|
||||
}
|
||||
});
|
||||
form.on('radio(kind2Value)', function (data) {
|
||||
let at = data.value;
|
||||
if (at == '击凸' || at == '压凹') {
|
||||
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);
|
||||
}
|
||||
form.render();
|
||||
})
|
||||
|
||||
function getProductImage(craft) {
|
||||
|
||||
@@ -303,6 +336,7 @@
|
||||
|
||||
// 选中‘自定义数量’
|
||||
var kindValue = $('input[name="kindValue"]:checked').val();
|
||||
var kind2Value = $('input[name="kind2Value"]:checked').val();
|
||||
var craftQie = $('input[name="craftQie"]:checked').val();
|
||||
var craftMo = $('input[name="craftMo"]:checked').val();
|
||||
var size = $("#size").val();
|
||||
@@ -372,7 +406,12 @@
|
||||
return false;
|
||||
}
|
||||
var data = result.data.proList;
|
||||
|
||||
if ("无" != kind2Value) {
|
||||
arr.push(kind2Value)
|
||||
if (kind2Value == "击凸" || kind2Value == "压凹") {
|
||||
arr.push($("select[name='craft'] option:selected").val())
|
||||
}
|
||||
}
|
||||
var span_result = '杯垫 - ' + kindValueData[kindValue] + ' - ' + size + '厘米\n'
|
||||
if (kindValue == "3" || kindValue == "4" || kindValue == "6") {
|
||||
span_result += "工艺: " + craftQie + ', ' + arr + "\n";
|
||||
|
||||
@@ -177,7 +177,7 @@
|
||||
<select name="craft" class="select" disabled>
|
||||
<option value="无色" selected>无色</option>
|
||||
<option value="有色">有色</option>
|
||||
<option value="有色加凹凸">有色加凹凸</option>
|
||||
<option value="有色加凹凸">有色加激凸/有色加压凹</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
@@ -489,6 +489,16 @@
|
||||
}
|
||||
|
||||
if (craft_list.indexOf("击凸") > -1 || craft_list.indexOf("压凹") > -1) {
|
||||
if(craft_list.indexOf("击凸") > -1){
|
||||
$("#color_type select").empty().append(` <option value="无色" selected>无色</option>
|
||||
<option value="有色">有色</option>
|
||||
<option value="有色加激凸">有色加激凸</option>`)
|
||||
}
|
||||
if(craft_list.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 {
|
||||
|
||||
@@ -7,8 +7,8 @@ class="layui-input" value="吊牌"> -->
|
||||
<p>
|
||||
尺寸(CM/厘米) <span style="font-size:14px;color:red">输入格式: 长 * 宽</span>
|
||||
<!-- <span class="addOrCut"> -->
|
||||
<%-- <button type="button" title="点击添加尺寸" class="layui-btn layui-btn-primary layui-btn-sm button" onclick="AddInput()"><i--%>
|
||||
<%-- class="layui-icon">组合</i></button>--%>
|
||||
<%-- <button type="button" title="点击添加尺寸" class="layui-btn layui-btn-primary layui-btn-sm button" onclick="AddInput()"><i--%>
|
||||
<%-- class="layui-icon">组合</i></button>--%>
|
||||
<button type="button" title="点击移除尺寸" class="layui-btn layui-btn-primary layui-btn-sm button" onclick="CutInput()"><i
|
||||
class="layui-icon">单张</i></button>
|
||||
<!-- </span> -->
|
||||
@@ -40,8 +40,15 @@ class="layui-input" value="吊牌"> -->
|
||||
<div class="layui-form-item">
|
||||
<input type="radio" name="kind2Value" lay-filter="kind2Value" value="无" title="无" checked="checked">
|
||||
<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" lay-filter="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="tcolor_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>
|
||||
<span class="craftSheng">
|
||||
<input type="checkbox" class="craftSheng2" name="craftSheng" lay-filter="switch" value="棉绳" title="棉绳"
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user