edit
このコミットが含まれているのは:
@@ -162,9 +162,9 @@
|
||||
</div>
|
||||
<div id="mianka" style="display: none">
|
||||
<input type="checkbox" name="craft" lay-filter="mianka" value="圆角" title="圆角" disabled>
|
||||
<input type="checkbox" name="craft" lay-filter="mianka" value="异形模切" title="异形模切" disabled>
|
||||
<input type="checkbox" name="craft" lay-filter="mianka" value="击凸" title="击凸" disabled>
|
||||
<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>
|
||||
@@ -172,6 +172,19 @@
|
||||
<option value="有色加凹凸">有色加凹凸</option>
|
||||
</select>
|
||||
</div>
|
||||
<br/>
|
||||
<input type="checkbox" name="craft" lay-filter="mianka" value="单面烫金" title="单面烫金" disabled>
|
||||
<input type="checkbox" name="craft" lay-filter="mianka" value="双面烫金" title="双面烫金" disabled>
|
||||
<div id="tang_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>
|
||||
<option value="烫绿">烫绿</option>
|
||||
<option value="烫紫">烫紫</option>
|
||||
<option value="烫玫瑰">烫玫瑰</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -214,6 +227,7 @@
|
||||
<%@include file="/views/copyResult.jsp" %>
|
||||
<script>
|
||||
setNumberOptions();
|
||||
|
||||
function setNumberOptions() {
|
||||
let html = '';
|
||||
if (window.parent.system_isPdd) {
|
||||
@@ -231,6 +245,7 @@
|
||||
}
|
||||
$("#desType").empty().append(html);
|
||||
}
|
||||
|
||||
layui.use(['table', 'form', 'carousel'], function () {
|
||||
var form = layui.form; //只有执行了这一步,部分表单元素才会自动修饰成功
|
||||
var carousel = layui.carousel;
|
||||
@@ -434,10 +449,12 @@
|
||||
}
|
||||
}
|
||||
);
|
||||
if (craft_list.indexOf("击凸") > -1 && craft_list.indexOf("压凹") > -1) {
|
||||
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;
|
||||
}
|
||||
@@ -455,6 +472,13 @@
|
||||
$("#color_type").hide();
|
||||
$("#color_type").find("select").attr("disabled", true);
|
||||
}
|
||||
if (craft_list.indexOf("双面烫金") > -1 || craft_list.indexOf("单面烫金") > -1) {
|
||||
$("#tang_type").show();
|
||||
$("#tang_type").find("select").attr("disabled", false);
|
||||
} else {
|
||||
$("#tang_type").hide();
|
||||
$("#tang_type").find("select").attr("disabled", true);
|
||||
}
|
||||
console.log(craft_list)
|
||||
form.render();
|
||||
})
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする