Files
SIPAIIS_WMS_JSSW/WebRoot/jsp/sparepart/goodsReserveAdd.jsp
2026-01-16 14:13:44 +08:00

104 lines
4.0 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page language="java" pageEncoding="UTF-8"%>
<style type="text/css">
.select2-container .select2-selection--single{
height:34px;
line-height: 34px;
}
.select2-selection__arrow{
margin-top:3px;
}
/* table[ip] tr th,table[ip] tr td{
border: 1px solid grey;
text-align: center;
height: 30px;
width:25%;
} */
</style>
<script type="text/javascript">
function doReservesave() {
$("#subFormReserve").serialize().bizId = unitId
$.post(ext.contextPath + "/sparepart/goodsReserve/save.do", $("#subFormReserve").serialize(), function(data) {
if (data.res == 1) {
$("#table_Reserve").bootstrapTable('refresh');
document.getElementById("subReserveModal").setAttribute("class", "modal hidden fade");
$(".modal-backdrop").remove();
}else if(data.res == 0){
showAlert('d','保存失败');
}else{
showAlert('d',data.res);
}
},'json');
}
$("#subFormReserve").bootstrapValidator({
// live: 'disabled',//验证时机enabled是内容有变化就验证默认disabled和submitted是提交再验证
// fields: {
// name: {
// validators: {
// notEmpty: {
// message: '用户名不能为空'
// }
// }
// },
// }
});
$(function() {
});
</script>
<div class="modal fade" id="subReserveModal">
<div class="modal-dialog modal-lg">
<div class="modal-content" style="width: 850px;">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span></button>
<h4 class="modal-title">新增物资报警</h4>
</div>
<div class="modal-body">
<!-- 新增界面formid强制为subForm -->
<form class="form-horizontal" id="subFormReserve" enctype="multipart/form-data" >
<div id="fault4SelectDiv"></div>
<!-- 界面提醒div强制id为alertDiv -->
<input type="hidden" id="pid" name="pid" value="${pid}">
<input type="hidden" id="bizId" name="bizId" value="${bizId}">
<div id="alertDiv"></div>
<div class="form-group">
<label class="col-sm-2 control-label">物品最大数</label>
<div class="col-sm-4">
<input type="number" id="max" name="max" class="form-control pull-right" placeholder="物品最大数">
</div>
<label class="col-sm-2 control-label">是否启用</label>
<div class="col-sm-4">
<select class="form-control select2 " id="maxStatus" name ="maxStatus">
<option value=1 selected>启用</option>
<option value=0 >停用</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">物品最小数</label>
<div class="col-sm-4">
<input type="number" id="min" name="min" class="form-control pull-right" placeholder="物品最小数">
</div>
<label class="col-sm-2 control-label">是否启用</label>
<div class="col-sm-4">
<select class="form-control select2 " id="minStatus" name ="minStatus">
<option value=1 selected>启用</option>
<option value=0 >停用</option>
</select>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">关闭</button>
<button type="button" class="btn btn-primary" onclick="doReservesave()" >保存</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
</div>