| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@include file="/context/mytags.jsp"%>
- <script type="text/javascript">
- $(document).ready(function(){
- if(location.href.indexOf("load=detail")!=-1){
- $(":input").attr("disabled","true");
- }
-
- // 科学计数法转为数字
-
- /** 库存相关 */
- //参考成本
- var referenceCost = $("input[name='tBStockInfoList[0].referenceCost']").val();
- if(referenceCost != null && referenceCost != ''){
- $("input[name='tBStockInfoList[0].referenceCost']").val(new Number(referenceCost));
- }
- //最新成本
- var latestCost = $("input[name='tBStockInfoList[0].latestCost']").val();
- if(latestCost != null && latestCost != ''){
- $("input[name='tBStockInfoList[0].latestCost']").val(new Number(latestCost));
- }
- //平均成本
- var averageCost = $("input[name='tBStockInfoList[0].averageCost']").val();
- if(averageCost != null && averageCost != ''){
- $("input[name='tBStockInfoList[0].averageCost']").val(new Number(averageCost));
- }
- //最低库存
- var minStock = $("input[name='tBStockInfoList[0].minStock']").val();
- if(minStock != null && minStock != ''){
- $("input[name='tBStockInfoList[0].minStock']").val(new Number(minStock));
- }
- //最高库存
- var maxStock = $("input[name='tBStockInfoList[0].maxStock']").val();
- if(maxStock != null && maxStock != ''){
- $("input[name='tBStockInfoList[0].maxStock']").val(new Number(maxStock));
- }
- //安全库存
- var safeStock = $("input[name='tBStockInfoList[0].safeStock']").val();
- if(safeStock != null && safeStock != ''){
- $("input[name='tBStockInfoList[0].safeStock']").val(new Number(safeStock));
- }
-
- });
- </script>
- <div style="margin: 0 15px; background-color: white;">
- <!-- Table -->
- <table id="tBStockInfo_table" class="table table-bordered table-hover" style="margin-bottom: 0;">
-
- <tbody id="add_tBStockInfo_table" >
- <c:if test="${fn:length(tBStockInfoList) <= 0 }">
- <tr>
- <input name="tBStockInfoList[0].id" type="hidden" value="${poVal.id}"/>
- <input name="tBStockInfoList[0].createName" type="hidden" value="${poVal.createName}"/>
- <input name="tBStockInfoList[0].createBy" type="hidden" value="${poVal.createBy}"/>
- <input name="tBStockInfoList[0].createDate" type="hidden" value="${poVal.createDate}"/>
- <input name="tBStockInfoList[0].updateName" type="hidden" value="${poVal.updateName}"/>
- <input name="tBStockInfoList[0].updateBy" type="hidden" value="${poVal.updateBy}"/>
- <input name="tBStockInfoList[0].updateDate" type="hidden" value="${poVal.updateDate}"/>
- <input name="tBStockInfoList[0].goodsId" type="hidden" value="${poVal.goodsId}"/>
- <input name="tBStockInfoList[0].deleteFlag" type="hidden" value="${poVal.deleteFlag}"/>
- </tr>
- <tr>
- <td class="text-center">
- <span color="red" class="requiredIcon">*</span><b>参考成本:</b>
- </td>
- <td>
- <input name="tBStockInfoList[0].referenceCost" maxlength="10"
- type="text" style="width:120px;" class="form-control"><b> 元</b>
- <span class="Validform_checktip" style="float:left;height:0px;"></span>
- <label class="Validform_label" style="display: none;">参考成本</label>
- </td>
-
-
- <td class="text-center">
- <b>到货周期:</b>
- </td>
- <td>
- <input name="tBStockInfoList[0].arrivalCycle" maxlength="5" ignore="ignore"
- type="text" style="width:120px;" class="form-control" datatype="n1-5"><b> 天</b>
- <label class="Validform_label" style="display: none;">到货周期</label>
- </td>
- </tr>
- <tr>
- <td class="text-center">
- <span color="red" class="requiredIcon">*</span><b>最低库存:</b>
- </td>
- <td>
- <input name="tBStockInfoList[0].minStock" maxlength="10"
- type="text" style="width:120px;" class="form-control" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/"><b> 基本单位</b>
- <label class="Validform_label" style="display: none;">最低库存</label>
- </td>
- <td class="text-center">
- <span color="red" class="requiredIcon">*</span><b>最高库存:</b>
- </td>
- <td>
- <input name="tBStockInfoList[0].maxStock" maxlength="10"
- type="text" style="width:120px;" class="form-control" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/"><b> 基本单位</b>
- <label class="Validform_label" style="display: none;">最高库存</label>
- </td>
- </tr>
-
- </c:if>
- <c:if test="${fn:length(tBStockInfoList) > 0 }">
- <c:forEach items="${tBStockInfoList}" var="poVal" varStatus="stuts" begin="0" end="0">
- <tr>
- <input name="tBStockInfoList[0].id" type="hidden" value="${poVal.id}"/>
- <input name="tBStockInfoList[0].createName" type="hidden" value="${poVal.createName}"/>
- <input name="tBStockInfoList[0].createBy" type="hidden" value="${poVal.createBy}"/>
- <input name="tBStockInfoList[0].createDate" type="hidden" value="${poVal.createDate}"/>
- <input name="tBStockInfoList[0].updateName" type="hidden" value="${poVal.updateName}"/>
- <input name="tBStockInfoList[0].updateBy" type="hidden" value="${poVal.updateBy}"/>
- <input name="tBStockInfoList[0].updateDate" type="hidden" value="${poVal.updateDate}"/>
- <input name="tBStockInfoList[0].goodsId" type="hidden" value="${poVal.goodsId}"/>
- <input name="tBStockInfoList[0].deleteFlag" type="hidden" value="${poVal.deleteFlag}"/>
- </tr>
- <tr>
- <td class="text-center">
- <span color="red" class="requiredIcon">*</span><b>参考成本:</b>
- </td>
- <td>
- <input name="tBStockInfoList[0].referenceCost" maxlength="10"
- type="text" style="width:120px;" class="form-control" value="${poVal.referenceCost }" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/"><b> 元</b>
- <label class="Validform_label" style="display: none;">参考成本</label>
- </td>
-
- <td class="text-center">
- <b>到货周期:</b>
- </td>
- <td>
- <input name="tBStockInfoList[0].arrivalCycle" maxlength="5" ignore="ignore"
- type="text" style="width:120px;" class="form-control" value="${poVal.arrivalCycle }" datatype="n1-5"><b> 天</b>
- <label class="Validform_label" style="display: none;">到货周期</label>
- </td>
- </tr>
- <tr>
- <td class="text-center">
- <span color="red" class="requiredIcon">*</span><b>最低库存:</b>
- </td>
- <td>
- <input name="tBStockInfoList[0].minStock" maxlength="10"
- type="text" style="width:120px;" class="form-control" value="${poVal.minStock }" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/"><b> 基本单位</b>
- <label class="Validform_label" style="display: none;">最低库存</label>
- </td>
- <td class="text-center">
- <span color="red" class="requiredIcon">*</span><b>最高库存:</b>
- </td>
- <td>
- <input name="tBStockInfoList[0].maxStock" maxlength="10"
- type="text" style="width:120px;" class="form-control" value="${poVal.maxStock }" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/"><b> 基本单位</b>
- <label class="Validform_label" style="display: none;">最高库存</label>
- </td>
- </tr>
-
- </c:forEach>
- </c:if>
- </tbody>
- </table>
- </div>
|