| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@include file="/context/mytags.jsp"%>
- <!-- <h4>分类标题</h4> -->
- <div class="row">
- <div class="col-md-12 layout-header">
- <button id="addBtn_TBPriceInfo" type="button" class="btn btn-default">添加</button>
- <button id="delBtn_TBPriceInfo" type="button" class="btn btn-default">删除</button>
- <script type="text/javascript">
- $('#addBtn_TBPriceInfo').bind('click', function(){
- var tr = $("#add_tBPriceInfo_table_template tr").clone();
- $("#add_tBPriceInfo_table").append(tr);
- resetTrNum('add_tBPriceInfo_table');
- return false;
- });
- $('#delBtn_TBPriceInfo').bind('click', function(){
- $("#add_tBPriceInfo_table").find("input:checked").parent().parent().remove();
- resetTrNum('add_tBPriceInfo_table');
- return false;
- });
- $(document).ready(function(){
- if(location.href.indexOf("load=detail")!=-1){
- $(":input").attr("disabled","true");
- $(".datagrid-toolbar").hide();
- }
- resetTrNum('add_tBPriceInfo_table');
- });
- </script>
- </div>
- </div>
- <div style="margin: 0 15px; background-color: white;">
- <!-- Table -->
- <table id="tBPriceInfo_table" class="table table-bordered table-hover" style="margin-bottom: 0;">
- <thead>
- <tr>
- <th style="white-space:nowrap;width:50px;">序号</th>
- <th style="white-space:nowrap;width:50px;">操作</th>
- <th>
- <span color="red" class="requiredIcon">*</span>计量单位
- </th>
- <th>
- <span color="red" class="requiredIcon">*</span>与基本单位换算(倍数)
- </th>
- <th>
- <span color="red" class="requiredIcon">*</span>采购价格(元)
- </th>
- <th>
- <span color="red" class="requiredIcon">*</span>对外价格(元)
- </th>
-
- </tr>
- </thead>
-
- <tbody id="add_tBPriceInfo_table">
- <c:if test="${fn:length(tBPriceInfoList) <= 0 }">
- <tr>
- <th scope="row"><div name="xh"></div></th>
- <td><input style="width:20px;" type="checkbox" name="ck"/></td>
- <input name="tBPriceInfoList[0].id" type="hidden"/>
- <input name="tBPriceInfoList[0].createName" type="hidden"/>
- <input name="tBPriceInfoList[0].createBy" type="hidden"/>
- <input name="tBPriceInfoList[0].createDate" type="hidden"/>
- <input name="tBPriceInfoList[0].updateName" type="hidden"/>
- <input name="tBPriceInfoList[0].updateBy" type="hidden"/>
- <input name="tBPriceInfoList[0].updateDate" type="hidden"/>
- <input name="tBPriceInfoList[0].goodsId" type="hidden"/>
- <input name="tBPriceInfoList[0].deleteFlag" type="hidden"/>
-
- <td>
- <t:dictSelect field="tBPriceInfoList[0].meteringUnit" type="list" extendJson="{class:'form-control',style:'width:150px'}"
- typeGroupCode="metering_calcu_unit" defaultVal="${tBPriceInfoPage.meteringUnit}" hasLabel="false" title="计量单位" datatype="*"></t:dictSelect>
- <label class="Validform_label" style="display: none;">计量单位</label>
- </td>
- <td>
- <input name="tBPriceInfoList[0].conversion" maxlength="10"
- type="text" class="form-control" style="width:130px;" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/">
- <label class="Validform_label" style="display: none;">与基本单位换算</label>
- </td>
- <td>
- <input name="tBPriceInfoList[0].retailPrice" maxlength="10"
- type="text" class="form-control" style="width:120px;" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/">
- <label class="Validform_label" style="display: none;"></label>
- </td>
- <td>
- <input name="tBPriceInfoList[0].setPrice1" maxlength="10"
- type="text" class="form-control" style="width:120px;" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/">
- <label class="Validform_label" style="display: none;"></label>
- </td>
-
- </tr>
- </c:if>
- <c:if test="${fn:length(tBPriceInfoList) > 0 }">
- <c:forEach items="${tBPriceInfoList}" var="poVal" varStatus="stuts">
- <tr>
- <th scope="row"><div name="xh">${stuts.index+1 }</div></th>
- <td><input style="width:20px;" type="checkbox" name="ck"/></td>
- <input name="tBPriceInfoList[${stuts.index }].id" type="hidden" value="${poVal.id }"/>
- <input name="tBPriceInfoList[${stuts.index }].createName" type="hidden" value="${poVal.createName }"/>
- <input name="tBPriceInfoList[${stuts.index }].createBy" type="hidden" value="${poVal.createBy }"/>
- <input name="tBPriceInfoList[${stuts.index }].createDate" type="hidden" value="${poVal.createDate }"/>
- <input name="tBPriceInfoList[${stuts.index }].updateName" type="hidden" value="${poVal.updateName }"/>
- <input name="tBPriceInfoList[${stuts.index }].updateBy" type="hidden" value="${poVal.updateBy }"/>
- <input name="tBPriceInfoList[${stuts.index }].updateDate" type="hidden" value="${poVal.updateDate }"/>
- <input name="tBPriceInfoList[${stuts.index }].goodsId" type="hidden" value="${poVal.goodsId }"/>
- <input name="tBPriceInfoList[${stuts.index }].deleteFlag" type="hidden" value="${poVal.deleteFlag }"/>
-
- <td align="left">
- <t:dictSelect field="tBPriceInfoList[${stuts.index }].meteringUnit" type="list" extendJson="{class:'form-control',style:'width:150px'}"
- typeGroupCode="metering_calcu_unit" defaultVal="${poVal.meteringUnit }" hasLabel="false" title="计量单位" datatype="*"></t:dictSelect>
- <label class="Validform_label" style="display: none;">计量单位</label>
- </td>
- <td align="left">
- <input name="tBPriceInfoList[${stuts.index }].conversion" maxlength="10"
- type="text" class="form-control" style="width:130px;" value="${poVal.conversion }" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/">
- <label class="Validform_label" style="display: none;">与基本单位换算</label>
- </td>
- <td align="left">
- <input name="tBPriceInfoList[${stuts.index }].retailPrice" maxlength="10"
- type="text" class="form-control" style="width:120px;" value="${poVal.retailPrice }" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/">
- <label class="Validform_label" style="display: none;">采购价格</label>
- </td>
- <td align="left">
- <input name="tBPriceInfoList[${stuts.index }].setPrice1" maxlength="10"
- type="text" class="form-control" style="width:120px;" value="${poVal.setPrice1 }" datatype="/^[0-9]+([.]{1}[0-9]+){0,1}$/">
- <label class="Validform_label" style="display: none;">对外价格</label>
- </td>
-
- </tr>
- </c:forEach>
- </c:if>
- </tbody>
- </table>
|