新增特种纸工艺
Цей коміт міститься в:
@@ -30,6 +30,7 @@
|
||||
<div class="layui-form-item">
|
||||
<input type="radio" lay-filter="kind" name="kind" value="金属标" title="金属标">
|
||||
<input type="radio" lay-filter="kind" name="kind" value="UV转印贴" title="UV转印贴">
|
||||
<input type="radio" lay-filter="kind" name="kind" value="宠物转印贴" title="宠物uv转印贴">
|
||||
</div>
|
||||
<div class="metal">
|
||||
<p>
|
||||
@@ -192,10 +193,13 @@
|
||||
class="craftZhuan">
|
||||
<input type="checkbox" name="craft" lay-filter="craftZhuan" value="双面贴" title="双面贴"
|
||||
class="craftZhuan">
|
||||
<input type="checkbox" name="craft" lay-filter="craftZhuan" value="烫画" title="烫画"
|
||||
class="craftZhuan">
|
||||
<input type="checkbox" name="craft" lay-filter="craftZhuan" value="冷转印" title="冷转印"
|
||||
class="craftZhuan">
|
||||
<span class="zhuanuv">
|
||||
<input type="checkbox" name="craft" lay-filter="craftZhuan" value="烫画" title="烫画"
|
||||
class="craftZhuan">
|
||||
<input type="checkbox" name="craft" lay-filter="craftZhuan" value="冷转印" title="冷转印"
|
||||
class="craftZhuan">
|
||||
</span>
|
||||
|
||||
<span id="sehu_number" style="display:none">
|
||||
<span>色数:</span>
|
||||
<div class="layui-inline" style="width:60px;">
|
||||
@@ -354,26 +358,41 @@
|
||||
if ($("#number").val() > 1) {
|
||||
// $("#ui_des").show();
|
||||
}
|
||||
$(".zhuanuv").hide();
|
||||
$(".zhuanuv").find(":input").attr("disabled", true);
|
||||
let craftChecked = $(`input[name='craft'][value='烫画']`).is(":checked");
|
||||
if (craftChecked) {
|
||||
$(`input[name='craft'][value='烫画']+div`).click();
|
||||
}
|
||||
craftChecked = $(`input[name='craft'][value='冷转印']`).is(":checked");
|
||||
if (craftChecked) {
|
||||
$(`input[name='craft'][value='冷转印']+div`).click();
|
||||
}
|
||||
|
||||
if (kindData.value == "UV转印贴") {
|
||||
$(".zhuanuv").show();
|
||||
$(".zhuanuv").find(":input").attr("disabled", false);
|
||||
}
|
||||
}
|
||||
form.render();//必须写
|
||||
})
|
||||
|
||||
// 自定义数量
|
||||
/* form.on('checkbox(switchCount)', function(data) {
|
||||
if(data.elem.checked){
|
||||
$(".diyCount").show();
|
||||
$(".count").hide();
|
||||
$(".diyCount").find(":input").attr("disabled", false);
|
||||
$(".count").find(":input").attr("disabled", true);
|
||||
} else {
|
||||
$(".count").show();
|
||||
$(".diyCount").hide();
|
||||
$(".count").find(":input").attr("disabled", false);
|
||||
$(".diyCount").find(":input").attr("disabled", true);
|
||||
// 恢复标准数量的时候会被禁用,加这个解决
|
||||
form.render();
|
||||
}
|
||||
}) */
|
||||
/* form.on('checkbox(switchCount)', function(data) {
|
||||
if(data.elem.checked){
|
||||
$(".diyCount").show();
|
||||
$(".count").hide();
|
||||
$(".diyCount").find(":input").attr("disabled", false);
|
||||
$(".count").find(":input").attr("disabled", true);
|
||||
} else {
|
||||
$(".count").show();
|
||||
$(".diyCount").hide();
|
||||
$(".count").find(":input").attr("disabled", false);
|
||||
$(".diyCount").find(":input").attr("disabled", true);
|
||||
// 恢复标准数量的时候会被禁用,加这个解决
|
||||
form.render();
|
||||
}
|
||||
}) */
|
||||
|
||||
form.on('checkbox(craftZhuan)', function (data) {
|
||||
// 专金专银只能选一个
|
||||
@@ -407,7 +426,7 @@
|
||||
if (craftZhuan > most) {
|
||||
$(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 (craft_list.indexOf("烫金") > -1) {
|
||||
|
||||
@@ -182,7 +182,7 @@
|
||||
<input type="checkbox" name="craft" lay-filter="switch" value="压痕" title="压痕">
|
||||
</div>
|
||||
<div id="mianka" style="display: none">
|
||||
<div id="ccolor_type" class="layui-inline" style="width: 180px;display: flex;align-items: center">
|
||||
<div id="ccolor_type" class="layui-inline" style="display: flex;align-items: center">
|
||||
<div style="flex-shrink: 0">纸张颜色:</div>
|
||||
<select name="craft" class="select">
|
||||
<option value="黑色" selected>黑色</option>
|
||||
@@ -192,6 +192,10 @@
|
||||
<option value="浅棕色">浅棕色</option>
|
||||
<option value="白色">白色</option>
|
||||
</select>
|
||||
<span class="printColor" style="display: none;align-items: center;">
|
||||
<input type="checkbox" name="craft" lay-filter="mianka" value="印刷颜色" title="印刷颜色" checked>
|
||||
<input type="text" name="co_number" class="layui-input" value="1">
|
||||
</span>
|
||||
</div>
|
||||
<div class="layui-inline">
|
||||
裁切方式:
|
||||
@@ -526,8 +530,12 @@
|
||||
$("input[name='craft'][value='压凹']").prop("checked", false);
|
||||
$("#color_type").hide();
|
||||
$("#color_type").find("select").attr("disabled", true);
|
||||
$(".printColor").hide()
|
||||
$(".printColor").find("input").attr("disabled", true);
|
||||
if (data.value == "300克") {
|
||||
colorHtml = `<option value="白色">白色</option>`;
|
||||
$(".printColor").css("display", "flex")
|
||||
$(".printColor").find("input").attr("disabled", false);
|
||||
}
|
||||
|
||||
$("#ccolor_type select[name='craft']").empty();
|
||||
@@ -599,6 +607,13 @@
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (craft_list.indexOf("印刷颜色") == -1 && kindValueSelect == "素芸") {
|
||||
$(data.elem).prop("checked", true);
|
||||
layer.msg("印刷颜色无法取消", {offset: ['300px', '300px']}, function () {
|
||||
});
|
||||
form.render();
|
||||
return false;
|
||||
}
|
||||
// if (kindValue == "300克" && craft_list.indexOf("压凹") > -1) {
|
||||
// $(data.elem).next().attr("class", "layui-unselect layui-form-checkbox");
|
||||
// $(data.elem).prop("checked", false);
|
||||
@@ -637,6 +652,7 @@
|
||||
$("#leishe_type").hide();
|
||||
$("#leishe_type").find("select").attr("disabled", true);
|
||||
}
|
||||
|
||||
form.render();
|
||||
})
|
||||
// 监听工艺
|
||||
@@ -854,6 +870,8 @@
|
||||
arrs.push($(this).val() + "印刷");
|
||||
} else if ($(this).val() == "压凹" || $(this).val() == "击凸") {
|
||||
arrs.push($("#color_type select option:selected").val() + $(this).val());
|
||||
} else if ($(this).val() == "印刷颜色") {
|
||||
arrs.push($(this).val() + $(".printColor input[name='co_number']").val());
|
||||
} else {
|
||||
arrs.push($(this).val());
|
||||
}
|
||||
|
||||
Посилання в новій задачі
Заблокувати користувача