裱冷板新增配件
This commit is contained in:
@@ -250,6 +250,17 @@
|
||||
<input type="checkbox" name="craft" lay-filter="switch" class="pvcHide tang" value="模切" title="模切">
|
||||
<input type="checkbox" name="craft" lay-filter="switch" class="pvcHide tang" value="打孔" title="打孔">
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
配件:
|
||||
<input type="checkbox" name="craft" lay-filter="switch" value="铁架支架" title="铁架支架">
|
||||
<div class="layui-inline zheye-lay" style="width: 50px;display: none">
|
||||
<input type="text" value="1" name="zheye" class="layui-input">
|
||||
</div>
|
||||
<input type="checkbox" name="craft" lay-filter="switch" value="伸缩支架" title="伸缩支架">
|
||||
<div class="layui-inline yaheng-lay" style="width: 50px;display: none">
|
||||
<input type="text" value="1" name="yaheng" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 条幅 -->
|
||||
<div class="banner" style="display:none">
|
||||
@@ -580,6 +591,23 @@
|
||||
}
|
||||
}
|
||||
|
||||
form.on('checkbox(switch)', function (data) {
|
||||
if (data.value == "铁架支架") {
|
||||
if (data.elem.checked) {
|
||||
$(".zheye-lay").show();
|
||||
} else {
|
||||
$(".zheye-lay").hide();
|
||||
}
|
||||
}
|
||||
if (data.value == "伸缩支架") {
|
||||
if (data.elem.checked) {
|
||||
$(".yaheng-lay").show();
|
||||
} else {
|
||||
$(".yaheng-lay").hide();
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
// 根据类目获取产品名称
|
||||
form.on('radio(kindValue)', function (data) {
|
||||
kind = data.value;
|
||||
@@ -1539,7 +1567,13 @@
|
||||
$("input:checkbox[name='craft']:checked").each(function (i) {
|
||||
// 没有被禁用的工艺加到arr中
|
||||
if (!$(this).is(':disabled')) {
|
||||
arr.push($(this).val());
|
||||
if ($(this).val() == "铁架支架") {
|
||||
arr.push($("input[name='zheye']").val() + "个" + $(this).val());
|
||||
} else if ($(this).val() == "伸缩支架") {
|
||||
arr.push($("input[name='yaheng']").val() + "个" + $(this).val());
|
||||
} else {
|
||||
arr.push($(this).val());
|
||||
}
|
||||
}
|
||||
});
|
||||
var craftBu = [$('input[name="craftBu"]:checked').val()];
|
||||
|
||||
Reference in New Issue
Block a user