tBPriceInfoList.jsp 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <!-- <h4>分类标题</h4> -->
  4. <div class="row">
  5. <div class="col-md-12 layout-header">
  6. <button id="addBtn_TBPriceInfo" type="button" class="btn btn-default">添加</button>
  7. <button id="delBtn_TBPriceInfo" type="button" class="btn btn-default">删除</button>
  8. <script type="text/javascript">
  9. $('#addBtn_TBPriceInfo').bind('click', function(){
  10. var tr = $("#add_tBPriceInfo_table_template tr").clone();
  11. $("#add_tBPriceInfo_table").append(tr);
  12. resetTrNum('add_tBPriceInfo_table');
  13. return false;
  14. });
  15. $('#delBtn_TBPriceInfo').bind('click', function(){
  16. $("#add_tBPriceInfo_table").find("input:checked").parent().parent().remove();
  17. resetTrNum('add_tBPriceInfo_table');
  18. return false;
  19. });
  20. $(document).ready(function(){
  21. if(location.href.indexOf("load=detail")!=-1){
  22. $(":input").attr("disabled","true");
  23. $(".datagrid-toolbar").hide();
  24. }
  25. resetTrNum('add_tBPriceInfo_table');
  26. });
  27. </script>
  28. </div>
  29. </div>
  30. <div style="margin: 0 15px; background-color: white;">
  31. <!-- Table -->
  32. <table id="tBPriceInfo_table" class="table table-bordered table-hover" style="margin-bottom: 0;">
  33. <thead>
  34. <tr>
  35. <th style="white-space:nowrap;width:50px;">序号</th>
  36. <th style="white-space:nowrap;width:50px;">操作</th>
  37. <th>
  38. <span color="red" class="requiredIcon">*</span>计量单位
  39. </th>
  40. <th>
  41. <span color="red" class="requiredIcon">*</span>与基本单位换算(倍数)
  42. </th>
  43. <th>
  44. <span color="red" class="requiredIcon">*</span>采购价格(元)
  45. </th>
  46. <th>
  47. <span color="red" class="requiredIcon">*</span>对外价格(元)
  48. </th>
  49. </tr>
  50. </thead>
  51. <tbody id="add_tBPriceInfo_table">
  52. <c:if test="${fn:length(tBPriceInfoList) <= 0 }">
  53. <tr>
  54. <th scope="row"><div name="xh"></div></th>
  55. <td><input style="width:20px;" type="checkbox" name="ck"/></td>
  56. <input name="tBPriceInfoList[0].id" type="hidden"/>
  57. <input name="tBPriceInfoList[0].createName" type="hidden"/>
  58. <input name="tBPriceInfoList[0].createBy" type="hidden"/>
  59. <input name="tBPriceInfoList[0].createDate" type="hidden"/>
  60. <input name="tBPriceInfoList[0].updateName" type="hidden"/>
  61. <input name="tBPriceInfoList[0].updateBy" type="hidden"/>
  62. <input name="tBPriceInfoList[0].updateDate" type="hidden"/>
  63. <input name="tBPriceInfoList[0].goodsId" type="hidden"/>
  64. <input name="tBPriceInfoList[0].deleteFlag" type="hidden"/>
  65. <td>
  66. <t:dictSelect field="tBPriceInfoList[0].meteringUnit" type="list" extendJson="{class:'form-control',style:'width:150px'}"
  67. typeGroupCode="metering_calcu_unit" defaultVal="${tBPriceInfoPage.meteringUnit}" hasLabel="false" title="计量单位" datatype="*"></t:dictSelect>
  68. <label class="Validform_label" style="display: none;">计量单位</label>
  69. </td>
  70. <td>
  71. <input name="tBPriceInfoList[0].conversion" maxlength="10"
  72. type="text" class="form-control" style="width:130px;" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/">
  73. <label class="Validform_label" style="display: none;">与基本单位换算</label>
  74. </td>
  75. <td>
  76. <input name="tBPriceInfoList[0].retailPrice" maxlength="10"
  77. type="text" class="form-control" style="width:120px;" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/">
  78. <label class="Validform_label" style="display: none;"></label>
  79. </td>
  80. <td>
  81. <input name="tBPriceInfoList[0].setPrice1" maxlength="10"
  82. type="text" class="form-control" style="width:120px;" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/">
  83. <label class="Validform_label" style="display: none;"></label>
  84. </td>
  85. </tr>
  86. </c:if>
  87. <c:if test="${fn:length(tBPriceInfoList) > 0 }">
  88. <c:forEach items="${tBPriceInfoList}" var="poVal" varStatus="stuts">
  89. <tr>
  90. <th scope="row"><div name="xh">${stuts.index+1 }</div></th>
  91. <td><input style="width:20px;" type="checkbox" name="ck"/></td>
  92. <input name="tBPriceInfoList[${stuts.index }].id" type="hidden" value="${poVal.id }"/>
  93. <input name="tBPriceInfoList[${stuts.index }].createName" type="hidden" value="${poVal.createName }"/>
  94. <input name="tBPriceInfoList[${stuts.index }].createBy" type="hidden" value="${poVal.createBy }"/>
  95. <input name="tBPriceInfoList[${stuts.index }].createDate" type="hidden" value="${poVal.createDate }"/>
  96. <input name="tBPriceInfoList[${stuts.index }].updateName" type="hidden" value="${poVal.updateName }"/>
  97. <input name="tBPriceInfoList[${stuts.index }].updateBy" type="hidden" value="${poVal.updateBy }"/>
  98. <input name="tBPriceInfoList[${stuts.index }].updateDate" type="hidden" value="${poVal.updateDate }"/>
  99. <input name="tBPriceInfoList[${stuts.index }].goodsId" type="hidden" value="${poVal.goodsId }"/>
  100. <input name="tBPriceInfoList[${stuts.index }].deleteFlag" type="hidden" value="${poVal.deleteFlag }"/>
  101. <td align="left">
  102. <t:dictSelect field="tBPriceInfoList[${stuts.index }].meteringUnit" type="list" extendJson="{class:'form-control',style:'width:150px'}"
  103. typeGroupCode="metering_calcu_unit" defaultVal="${poVal.meteringUnit }" hasLabel="false" title="计量单位" datatype="*"></t:dictSelect>
  104. <label class="Validform_label" style="display: none;">计量单位</label>
  105. </td>
  106. <td align="left">
  107. <input name="tBPriceInfoList[${stuts.index }].conversion" maxlength="10"
  108. type="text" class="form-control" style="width:130px;" value="${poVal.conversion }" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/">
  109. <label class="Validform_label" style="display: none;">与基本单位换算</label>
  110. </td>
  111. <td align="left">
  112. <input name="tBPriceInfoList[${stuts.index }].retailPrice" maxlength="10"
  113. type="text" class="form-control" style="width:120px;" value="${poVal.retailPrice }" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/">
  114. <label class="Validform_label" style="display: none;">采购价格</label>
  115. </td>
  116. <td align="left">
  117. <input name="tBPriceInfoList[${stuts.index }].setPrice1" maxlength="10"
  118. type="text" class="form-control" style="width:120px;" value="${poVal.setPrice1 }" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/">
  119. <label class="Validform_label" style="display: none;">对外价格</label>
  120. </td>
  121. </tr>
  122. </c:forEach>
  123. </c:if>
  124. </tbody>
  125. </table>