tBRelatedUnitPriceInfoList.jsp 7.0 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_TBRelatedUnitPriceInfo" type="button" class="btn btn-default">添加</button>
  7. <button id="delBtn_TBRelatedUnitPriceInfo" type="button" class="btn btn-default">删除</button>
  8. <script type="text/javascript">
  9. $('#addBtn_TBRelatedUnitPriceInfo').bind('click', function(){
  10. var tr = $("#add_tBRelatedUnitPriceInfo_table_template tr").clone();
  11. $("#add_tBRelatedUnitPriceInfo_table").append(tr);
  12. resetTrNum('add_tBRelatedUnitPriceInfo_table');
  13. return false;
  14. });
  15. $('#delBtn_TBRelatedUnitPriceInfo').bind('click', function(){
  16. $("#add_tBRelatedUnitPriceInfo_table").find("input:checked").parent().parent().remove();
  17. resetTrNum('add_tBRelatedUnitPriceInfo_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_tBRelatedUnitPriceInfo_table');
  26. });
  27. </script>
  28. </div>
  29. </div>
  30. <div style="margin: 0 15px; background-color: white;">
  31. <!-- Table -->
  32. <table id="tBRelatedUnitPriceInfo_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_tBRelatedUnitPriceInfo_table">
  52. <c:if test="${fn:length(tBRelatedUnitPriceInfoList) <= 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="tBRelatedUnitPriceInfoList[0].id" type="hidden"/>
  57. <input name="tBRelatedUnitPriceInfoList[0].createName" type="hidden"/>
  58. <input name="tBRelatedUnitPriceInfoList[0].createBy" type="hidden"/>
  59. <input name="tBRelatedUnitPriceInfoList[0].createDate" type="hidden"/>
  60. <input name="tBRelatedUnitPriceInfoList[0].updateName" type="hidden"/>
  61. <input name="tBRelatedUnitPriceInfoList[0].updateBy" type="hidden"/>
  62. <input name="tBRelatedUnitPriceInfoList[0].updateDate" type="hidden"/>
  63. <input name="tBRelatedUnitPriceInfoList[0].goodsId" type="hidden"/>
  64. <input name="tBRelatedUnitPriceInfoList[0].deleteFlag" type="hidden"/>
  65. <input name="tBRelatedUnitPriceInfoList[0].relatedunitid" type="hidden"/>
  66. <td>
  67. <input name="tBRelatedUnitPriceInfoList[0].relatedunitname" maxlength="10"
  68. type="text" class="form-control" style="width:260px;" >
  69. <label class="Validform_label" style="display: none;">供应商</label>
  70. </td>
  71. <td>
  72. <t:dictSelect field="tBRelatedUnitPriceInfoList[0].meteringUnit" type="list" extendJson="{class:'form-control',style:'width:150px'}"
  73. typeGroupCode="metering_calcu_unit" defaultVal="${tBPriceInfoPage.meteringUnit}" hasLabel="false" title="计量单位" datatype="*"></t:dictSelect>
  74. <label class="Validform_label" style="display: none;">计量单位</label>
  75. </td>
  76. <td>
  77. <input name="tBRelatedUnitPriceInfoList[0].retailPrice" maxlength="10"
  78. type="text" class="form-control" style="width:120px;" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/">
  79. <label class="Validform_label" style="display: none;"></label>
  80. </td>
  81. <td>
  82. <input name="tBRelatedUnitPriceInfoList[0].setPrice1" maxlength="10"
  83. type="text" class="form-control" style="width:120px;" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/">
  84. <label class="Validform_label" style="display: none;"></label>
  85. </td>
  86. </tr>
  87. </c:if>
  88. <c:if test="${fn:length(tBRelatedUnitPriceInfoList) > 0 }">
  89. <c:forEach items="${tBRelatedUnitPriceInfoList}" var="poVal" varStatus="stuts">
  90. <tr>
  91. <th scope="row"><div name="xh">${stuts.index+1 }</div></th>
  92. <td><input style="width:20px;" type="checkbox" name="ck"/></td>
  93. <input name="tBRelatedUnitPriceInfoList[${stuts.index }].id" type="hidden" value="${poVal.id }"/>
  94. <input name="tBRelatedUnitPriceInfoList[${stuts.index }].createName" type="hidden" value="${poVal.createName }"/>
  95. <input name="tBRelatedUnitPriceInfoList[${stuts.index }].createBy" type="hidden" value="${poVal.createBy }"/>
  96. <input name="tBRelatedUnitPriceInfoList[${stuts.index }].createDate" type="hidden" value="${poVal.createDate }"/>
  97. <input name="tBRelatedUnitPriceInfoList[${stuts.index }].updateName" type="hidden" value="${poVal.updateName }"/>
  98. <input name="tBRelatedUnitPriceInfoList[${stuts.index }].updateBy" type="hidden" value="${poVal.updateBy }"/>
  99. <input name="tBRelatedUnitPriceInfoList[${stuts.index }].updateDate" type="hidden" value="${poVal.updateDate }"/>
  100. <input name="tBRelatedUnitPriceInfoList[${stuts.index }].goodsId" type="hidden" value="${poVal.goodsId }"/>
  101. <input name="tBRelatedUnitPriceInfoList[${stuts.index }].deleteFlag" type="hidden" value="${poVal.deleteFlag }"/>
  102. <input name="tBRelatedUnitPriceInfoList[${stuts.index }].relatedunitid" type="hidden"/>
  103. <td>
  104. <input name="tBRelatedUnitPriceInfoList[${stuts.index }].relatedunitname" maxlength="10"
  105. type="text" class="form-control" style="width:260px;" value="${poVal.relatedunitname }" >
  106. <label class="Validform_label" style="display: none;">供应商</label>
  107. </td>
  108. <td align="left">
  109. <t:dictSelect field="tBRelatedUnitPriceInfoList[${stuts.index }].meteringUnit" type="list" extendJson="{class:'form-control',style:'width:150px'}"
  110. typeGroupCode="metering_calcu_unit" defaultVal="${poVal.meteringUnit }" hasLabel="false" title="计量单位" datatype="*"></t:dictSelect>
  111. <label class="Validform_label" style="display: none;">计量单位</label>
  112. </td>
  113. <td align="left">
  114. <input name="tBRelatedUnitPriceInfoList[${stuts.index }].retailPrice" maxlength="10"
  115. type="text" class="form-control" style="width:120px;" value="${poVal.retailPrice }" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/">
  116. <label class="Validform_label" style="display: none;">采购价格</label>
  117. </td>
  118. <td align="left">
  119. <input name="tBRelatedUnitPriceInfoList[${stuts.index }].setPrice1" maxlength="10"
  120. type="text" class="form-control" style="width:120px;" value="${poVal.setPrice1 }" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/">
  121. <label class="Validform_label" style="display: none;">对外价格</label>
  122. </td>
  123. </tr>
  124. </c:forEach>
  125. </c:if>
  126. </tbody>
  127. </table>