新增抠图
This commit is contained in:
@@ -983,8 +983,16 @@
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<hr>
|
||||
</div>
|
||||
<form class="layui-form">
|
||||
<div class="layui-input-block">
|
||||
|
||||
<input type="checkbox" name="craft" lay-filter="ui_craft" value="抠图" title="抠图">
|
||||
<div class="layui-inline crop" style="display:none;width: 80px">
|
||||
<input class="layui-input" type="text" name="cropNumber">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<form class="layui-form">
|
||||
<div class="layui-form-item">
|
||||
<button class="layui-btn" lay-submit="" lay-filter="acount_btn" id="queryCondBtn">计算</button>
|
||||
@@ -2811,7 +2819,26 @@
|
||||
form.render();
|
||||
}
|
||||
})
|
||||
form.on('checkbox(ui_craft)', function (data) {
|
||||
let craft_list = [];
|
||||
let kindValue = $('input[name="kindValue"]:checked').val();
|
||||
craft_list.push($("select[name='craft'] option:selected").val());
|
||||
$("input[name='craft']:checked").each(function () {
|
||||
if (!$(this).is(':disabled')) {
|
||||
craft_list.push($(this).val());
|
||||
}
|
||||
});
|
||||
|
||||
if (data.value == '抠图') {
|
||||
$(".crop").hide();
|
||||
$(".crop").find("input").prop("disabled", true)
|
||||
if (data.elem.checked) {
|
||||
$(".crop").show();
|
||||
$(".crop").find("input").prop("disabled", false)
|
||||
}
|
||||
}
|
||||
form.render();
|
||||
})
|
||||
// 监听工艺多选框
|
||||
form.on('checkbox(switchMQ)', function (data) {
|
||||
var kind = $('input[name="kind"]:checked').val();
|
||||
@@ -3468,6 +3495,10 @@
|
||||
arr.push(oppdai + oppSize);
|
||||
return;
|
||||
}
|
||||
if ($(this).val() == "抠图") {
|
||||
arr.push($(this).val() + $("input[name='cropNumber']").val());
|
||||
return;
|
||||
}
|
||||
if ($(this).val() == "内部模切") {
|
||||
return;
|
||||
}
|
||||
@@ -4117,7 +4148,7 @@
|
||||
}
|
||||
|
||||
addLog(span_result);
|
||||
$("#span_result").val(span_result);
|
||||
$("#span_result").val(span_result);
|
||||
|
||||
var switchCount = [];
|
||||
$("input:checkbox[name='switchCount']:checked").each(function (i) {
|
||||
|
||||
Reference in New Issue
Block a user