tBStockInfoList.jsp 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <script type="text/javascript">
  4. $(document).ready(function(){
  5. if(location.href.indexOf("load=detail")!=-1){
  6. $(":input").attr("disabled","true");
  7. }
  8. // 科学计数法转为数字
  9. /** 库存相关 */
  10. //参考成本
  11. var referenceCost = $("input[name='tBStockInfoList[0].referenceCost']").val();
  12. if(referenceCost != null && referenceCost != ''){
  13. $("input[name='tBStockInfoList[0].referenceCost']").val(new Number(referenceCost));
  14. }
  15. //最新成本
  16. var latestCost = $("input[name='tBStockInfoList[0].latestCost']").val();
  17. if(latestCost != null && latestCost != ''){
  18. $("input[name='tBStockInfoList[0].latestCost']").val(new Number(latestCost));
  19. }
  20. //平均成本
  21. var averageCost = $("input[name='tBStockInfoList[0].averageCost']").val();
  22. if(averageCost != null && averageCost != ''){
  23. $("input[name='tBStockInfoList[0].averageCost']").val(new Number(averageCost));
  24. }
  25. //最低库存
  26. var minStock = $("input[name='tBStockInfoList[0].minStock']").val();
  27. if(minStock != null && minStock != ''){
  28. $("input[name='tBStockInfoList[0].minStock']").val(new Number(minStock));
  29. }
  30. //最高库存
  31. var maxStock = $("input[name='tBStockInfoList[0].maxStock']").val();
  32. if(maxStock != null && maxStock != ''){
  33. $("input[name='tBStockInfoList[0].maxStock']").val(new Number(maxStock));
  34. }
  35. //安全库存
  36. var safeStock = $("input[name='tBStockInfoList[0].safeStock']").val();
  37. if(safeStock != null && safeStock != ''){
  38. $("input[name='tBStockInfoList[0].safeStock']").val(new Number(safeStock));
  39. }
  40. });
  41. </script>
  42. <div style="margin: 0 15px; background-color: white;">
  43. <!-- Table -->
  44. <table id="tBStockInfo_table" class="table table-bordered table-hover" style="margin-bottom: 0;">
  45. <tbody id="add_tBStockInfo_table" >
  46. <c:if test="${fn:length(tBStockInfoList) <= 0 }">
  47. <tr>
  48. <input name="tBStockInfoList[0].id" type="hidden" value="${poVal.id}"/>
  49. <input name="tBStockInfoList[0].createName" type="hidden" value="${poVal.createName}"/>
  50. <input name="tBStockInfoList[0].createBy" type="hidden" value="${poVal.createBy}"/>
  51. <input name="tBStockInfoList[0].createDate" type="hidden" value="${poVal.createDate}"/>
  52. <input name="tBStockInfoList[0].updateName" type="hidden" value="${poVal.updateName}"/>
  53. <input name="tBStockInfoList[0].updateBy" type="hidden" value="${poVal.updateBy}"/>
  54. <input name="tBStockInfoList[0].updateDate" type="hidden" value="${poVal.updateDate}"/>
  55. <input name="tBStockInfoList[0].goodsId" type="hidden" value="${poVal.goodsId}"/>
  56. <input name="tBStockInfoList[0].deleteFlag" type="hidden" value="${poVal.deleteFlag}"/>
  57. </tr>
  58. <tr>
  59. <td class="text-center">
  60. <span color="red" class="requiredIcon">*</span><b>参考成本:</b>
  61. </td>
  62. <td>
  63. <input name="tBStockInfoList[0].referenceCost" maxlength="10"
  64. type="text" style="width:120px;" class="form-control"><b> 元</b>
  65. <span class="Validform_checktip" style="float:left;height:0px;"></span>
  66. <label class="Validform_label" style="display: none;">参考成本</label>
  67. </td>
  68. <td class="text-center">
  69. <b>到货周期:</b>
  70. </td>
  71. <td>
  72. <input name="tBStockInfoList[0].arrivalCycle" maxlength="5" ignore="ignore"
  73. type="text" style="width:120px;" class="form-control" datatype="n1-5"><b> 天</b>
  74. <label class="Validform_label" style="display: none;">到货周期</label>
  75. </td>
  76. </tr>
  77. <tr>
  78. <td class="text-center">
  79. <span color="red" class="requiredIcon">*</span><b>最低库存:</b>
  80. </td>
  81. <td>
  82. <input name="tBStockInfoList[0].minStock" maxlength="10"
  83. type="text" style="width:120px;" class="form-control" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/"><b> 基本单位</b>
  84. <label class="Validform_label" style="display: none;">最低库存</label>
  85. </td>
  86. <td class="text-center">
  87. <span color="red" class="requiredIcon">*</span><b>最高库存:</b>
  88. </td>
  89. <td>
  90. <input name="tBStockInfoList[0].maxStock" maxlength="10"
  91. type="text" style="width:120px;" class="form-control" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/"><b> 基本单位</b>
  92. <label class="Validform_label" style="display: none;">最高库存</label>
  93. </td>
  94. </tr>
  95. </c:if>
  96. <c:if test="${fn:length(tBStockInfoList) > 0 }">
  97. <c:forEach items="${tBStockInfoList}" var="poVal" varStatus="stuts" begin="0" end="0">
  98. <tr>
  99. <input name="tBStockInfoList[0].id" type="hidden" value="${poVal.id}"/>
  100. <input name="tBStockInfoList[0].createName" type="hidden" value="${poVal.createName}"/>
  101. <input name="tBStockInfoList[0].createBy" type="hidden" value="${poVal.createBy}"/>
  102. <input name="tBStockInfoList[0].createDate" type="hidden" value="${poVal.createDate}"/>
  103. <input name="tBStockInfoList[0].updateName" type="hidden" value="${poVal.updateName}"/>
  104. <input name="tBStockInfoList[0].updateBy" type="hidden" value="${poVal.updateBy}"/>
  105. <input name="tBStockInfoList[0].updateDate" type="hidden" value="${poVal.updateDate}"/>
  106. <input name="tBStockInfoList[0].goodsId" type="hidden" value="${poVal.goodsId}"/>
  107. <input name="tBStockInfoList[0].deleteFlag" type="hidden" value="${poVal.deleteFlag}"/>
  108. </tr>
  109. <tr>
  110. <td class="text-center">
  111. <span color="red" class="requiredIcon">*</span><b>参考成本:</b>
  112. </td>
  113. <td>
  114. <input name="tBStockInfoList[0].referenceCost" maxlength="10"
  115. type="text" style="width:120px;" class="form-control" value="${poVal.referenceCost }" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/"><b> 元</b>
  116. <label class="Validform_label" style="display: none;">参考成本</label>
  117. </td>
  118. <td class="text-center">
  119. <b>到货周期:</b>
  120. </td>
  121. <td>
  122. <input name="tBStockInfoList[0].arrivalCycle" maxlength="5" ignore="ignore"
  123. type="text" style="width:120px;" class="form-control" value="${poVal.arrivalCycle }" datatype="n1-5"><b> 天</b>
  124. <label class="Validform_label" style="display: none;">到货周期</label>
  125. </td>
  126. </tr>
  127. <tr>
  128. <td class="text-center">
  129. <span color="red" class="requiredIcon">*</span><b>最低库存:</b>
  130. </td>
  131. <td>
  132. <input name="tBStockInfoList[0].minStock" maxlength="10"
  133. type="text" style="width:120px;" class="form-control" value="${poVal.minStock }" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/"><b> 基本单位</b>
  134. <label class="Validform_label" style="display: none;">最低库存</label>
  135. </td>
  136. <td class="text-center">
  137. <span color="red" class="requiredIcon">*</span><b>最高库存:</b>
  138. </td>
  139. <td>
  140. <input name="tBStockInfoList[0].maxStock" maxlength="10"
  141. type="text" style="width:120px;" class="form-control" value="${poVal.maxStock }" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/"><b> 基本单位</b>
  142. <label class="Validform_label" style="display: none;">最高库存</label>
  143. </td>
  144. </tr>
  145. </c:forEach>
  146. </c:if>
  147. </tbody>
  148. </table>
  149. </div>