You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
3.3 KiB
87 lines
3.3 KiB
2 years ago
|
<!DOCTYPE html>
|
||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
|
||
|
<html xmlns:th="http://www.thymeleaf.org">
|
||
|
<head>
|
||
|
<th:block th:include="include :: header('修改合格数')"/>
|
||
|
<th:block th:include="include :: datetimepicker-css"/>
|
||
|
</head>
|
||
|
<body class="white-bg">
|
||
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||
|
<form class="form-horizontal m" id="form-notice-add" th:object="${warehousingNotice}">
|
||
|
<h4 class="form-header h4">修改检验信息</h4>
|
||
|
<div class="form-group">
|
||
|
<label class="col-sm-3 control-label">入库通知单号:</label>
|
||
|
<div class="col-sm-9">
|
||
|
<input type="text" name="warehousingnoticeNo" id="warehousingnoticeNo"
|
||
|
class="form-control" readonly th:field="*{warehousingnoticeNo}">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label class="col-sm-3 control-label">已合格数:</label>
|
||
|
<div class="col-sm-9">
|
||
|
<input type="text"
|
||
|
class="form-control" readonly th:field="*{spell2}">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label class="col-sm-3 control-label">合格数:</label>
|
||
|
<div class="col-sm-9">
|
||
|
<input type="text" name="num" class="form-control" placeholder="请输入合格数">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label class="col-sm-3 control-label">不合格数:</label>
|
||
|
<div class="col-sm-9">
|
||
|
<input type="text" name="spell3" class="form-control" placeholder="请输入不合格数">
|
||
|
</div>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
<th:block th:include="include :: footer"/>
|
||
|
<th:block th:include="include :: datetimepicker-js"/>
|
||
|
<script th:inline="javascript">
|
||
|
var prefix = ctx + "stock/notice"
|
||
|
$("#form-notice-add").validate({
|
||
|
focusCleanup: true
|
||
|
});
|
||
|
|
||
|
//提交合格数
|
||
|
function submit() {
|
||
|
let spell2 = $("input[name='num']").val();
|
||
|
let spell3 = $("input[name='spell3']").val();
|
||
|
if (spell2 == null || spell2 === "" || spell2 === "0") {
|
||
|
$.modal.msgError("请输入合格数信息!");
|
||
|
return false;
|
||
|
}
|
||
|
$.modal.confirm("请确认无误!是否确定?", function () {
|
||
|
let warehousingnoticeNo = $("#warehousingnoticeNo").val();
|
||
|
$.ajax({
|
||
|
url: prefix + "/edit",
|
||
|
type: "post",
|
||
|
dataType: "json",
|
||
|
data: {"spell2": spell2, "spell3": spell3, "warehousingnoticeNo": warehousingnoticeNo},
|
||
|
success: function (resp) {
|
||
|
if (resp.code === 0) {
|
||
|
alert("修改成功!");
|
||
|
var index = parent.layer.getFrameIndex(window.name);
|
||
|
var parent2 = window.parent;
|
||
|
parent2.$.table.refresh();
|
||
|
parent.layer.close(index);//关闭当前页
|
||
|
} else {
|
||
|
$.modal.msgError(resp.msg);
|
||
|
}
|
||
|
},
|
||
|
error: function () {
|
||
|
$.modal.msgError("后台出错啦!");
|
||
|
}
|
||
|
})
|
||
|
});
|
||
|
}
|
||
|
|
||
|
function submitHandler() {
|
||
|
submit();
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|