新增铜版纸汤镭射银价格
This commit is contained in:
@@ -21,6 +21,10 @@
|
||||
#ccolor_type .layui-form-select .layui-edge {
|
||||
right: 20px;
|
||||
}
|
||||
|
||||
#leishe_type .layui-form-select .layui-edge {
|
||||
right: 20px;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div class="big_box">
|
||||
@@ -197,14 +201,23 @@
|
||||
特殊工艺:
|
||||
<input type="checkbox" name="craft" lay-filter="mianka" value="击凸" title="击凸" disabled>
|
||||
<input type="checkbox" name="craft" lay-filter="mianka" value="压凹" title="压凹" disabled>
|
||||
<div id="color_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>
|
||||
</select>
|
||||
</div>
|
||||
<input type="checkbox" name="craft" lay-filter="mianka" value="烫镭射银" title="烫镭射银" disabled>
|
||||
<div id="leishe_type" class="layui-inline" style="display: none;width: 200px">
|
||||
<select name="craft" class="select" disabled>
|
||||
<option value="单面烫镭射银" selected>单面烫镭射银</option>
|
||||
<option value="双面烫镭射银">双面烫镭射银
|
||||
<option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div id="color_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>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<br/>
|
||||
<input type="checkbox" name="craft" lay-filter="mianka" value="单面烫金" title="单面烫金">
|
||||
@@ -490,12 +503,12 @@
|
||||
}
|
||||
}
|
||||
);
|
||||
const requiredCrafts = ["击凸", "压凹", "单面烫金", "双面烫金"];
|
||||
const requiredCrafts = ["击凸", "压凹", "单面烫金", "双面烫金", "烫镭射银"];
|
||||
const allExist = requiredCrafts.filter(craft => craft_list.includes(craft));
|
||||
if (allExist.length > 1) {
|
||||
$(data.elem).next().attr("class", "layui-unselect layui-form-checkbox");
|
||||
$(data.elem).prop("checked", false);
|
||||
layer.msg("击凸 - 压凹 - 单面烫金 - 双面烫金不能同时选择", {offset: ['300px', '300px']}, function () {
|
||||
layer.msg("击凸 - 压凹 - 单面烫金 - 双面烫金 - 烫镭射银不能同时选择", {offset: ['300px', '300px']}, function () {
|
||||
});
|
||||
return false;
|
||||
}
|
||||
@@ -549,6 +562,13 @@
|
||||
$("#tang_type").hide();
|
||||
$("#tang_type").find("select").attr("disabled", true);
|
||||
}
|
||||
if (craft_list.indexOf("烫镭射银") > -1) {
|
||||
$("#leishe_type").show();
|
||||
$("#leishe_type").find("select").attr("disabled", false);
|
||||
} else {
|
||||
$("#leishe_type").hide();
|
||||
$("#leishe_type").find("select").attr("disabled", true);
|
||||
}
|
||||
console.log(craft_list)
|
||||
form.render();
|
||||
})
|
||||
@@ -734,6 +754,9 @@
|
||||
if ($(this).val() == "单面烫金" || $(this).val() == "双面烫金") {
|
||||
let tangColor = $("#tang_type select[name='craft'] option:selected").val();
|
||||
arrs.push($(this).val().replace("烫金", "") + tangColor);
|
||||
} else if ($(this).val() == "烫镭射银") {
|
||||
let tangColor = $("#leishe_type select[name='craft'] option:selected").val();
|
||||
arrs.push(tangColor);
|
||||
} else if ($(this).val() == "打码") {
|
||||
is_dama = true;
|
||||
arrs.push($(this).val() + ma_num + "个");
|
||||
|
||||
Reference in New Issue
Block a user