Browse Source
按照新版prd调整: 新增 修改可用库存前端页面,修改数量加上校验,只能为数字且最小为1,必填 库存查询前端页面:新增 操作栏:新增 修改可用库存按钮,加工方式为生产加工和生产装配不显示该按钮;新增对应的方法;前端列表页面新增共享可用库存数,固定可用库存数,锁定库存数,盘亏数字段 库存查询实体类新增 未占用共享可用库存,修改库存数量,修改类型字段,对应的mapper.xml层所有方法新增 这三个字段 库存查询前端页面新增 修改可用库存接口,改保存可用库存接口; 库存查询impl层新增 显示修改可用库存信息页面满足关联采购订单,未占用共享可用库存:【共享可用库存】-【采购订单-审核中】的【占用共享库存数】;修改可用库存信息方法,分为两个:1, 【共享可用库存】修改为【固定可用库存】:修改类型=增加固定可用库存,则0<【修改数量】 ≤【未占用共享可用库存】,若超过,则自动修改为=【未占用共享可用库存】;2,【固定可用库存】修改为【共享可用库存】修改类型=减少固定可用库存,则0<【修改数量】<【固定可用库存】,若超过,则自动修改为=【固定可用库存】 采购订单新增 通过采购订单编号查询采购订单集合方法dev
12 changed files with 344 additions and 14 deletions
@ -0,0 +1,83 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" > |
||||
|
<head> |
||||
|
<th:block th:include="include :: header('修改可用库存')" /> |
||||
|
</head> |
||||
|
<body class="white-bg"> |
||||
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> |
||||
|
<form class="form-horizontal m" id="form-inventoryInquiry-editAvailableStock" th:object="${warehouseInventoryInquiry}"> |
||||
|
<input name="inventoryInquiryId" th:field="*{inventoryInquiryId}" type="hidden"> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-4 control-label">料号:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<input name="materialNo" th:field="*{materialNo}" class="form-control" type="text" readonly> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-4 control-label">物料名称:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<input name="materialName" th:field="*{materialName}" class="form-control" type="text" readonly> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-4 control-label">固定可用库存数:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<input name="fixedAvailableStockNum" th:field="*{fixedAvailableStockNum}" class="form-control" type="text" readonly> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-4 control-label">未占用共享可用库存数:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<input name="noOccupancyNum" th:field="*{noOccupancyNum}" class="form-control" type="text" readonly> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-4 control-label is-required">修改类型:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<select name="inventoryEditType" class="form-control m-b" th:with="type=${@dict.getType('inventory_edit_type')}"> |
||||
|
<!-- 默认选项 --> |
||||
|
<option value="" selected="selected">请选择</option> |
||||
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{inventoryEditType}" required></option> |
||||
|
</select> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="form-group"> |
||||
|
<label class="col-sm-4 control-label is-required">修改数量:</label> |
||||
|
<div class="col-sm-8"> |
||||
|
<input name="editStockNum" th:field="*{editStockNum}" class="form-control" type="text" required> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
</form> |
||||
|
</div> |
||||
|
<th:block th:include="include :: footer" /> |
||||
|
<script th:inline="javascript"> |
||||
|
var prefix = ctx + "warehouse/inventoryInquiry"; |
||||
|
$("#form-inventoryInquiry-editAvailableStock").validate({ |
||||
|
|
||||
|
rules: { |
||||
|
editStockNum: { |
||||
|
number: true, |
||||
|
min: 1 |
||||
|
}, |
||||
|
}, |
||||
|
messages: { |
||||
|
editStockNum: { |
||||
|
number: "请输入有效的数字", |
||||
|
min: "修改数量必须大于0" |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
|
||||
|
focusCleanup: true |
||||
|
}); |
||||
|
|
||||
|
function submitHandler() { |
||||
|
if ($.validate.form()) { |
||||
|
$.operate.save(prefix + "/editAvailableStock", $('#form-inventoryInquiry-editAvailableStock').serialize()); |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
</body> |
||||
|
</html> |
Loading…
Reference in new issue