Index.html 3.33 KB
<%include '../../common/__ui/header'%>
<%include '../../common/__partail/ListHeader'%>

<div class="contentpanel">
    <!-- 量贩 -->
    <div class="panel panel-default" style="margin-bottom: 10px;">

        <div class="panel-body" style="padding-bottom: 0px; padding-left: 10px;">
            <div class="col-md-12">
                <a href="/product/batch/import" class="btn btn-primary"><span class="glyphicon glyphicon-circle-arrow-up"></span>&nbsp;导入</a>
                <a href="javascript:void(0);" id="exportsearch" class="btn btn-success"><span class="glyphicon glyphicon-circle-arrow-down"></span>&nbsp;导出</a>
            </div>
        </div>

        <div class="panel-body">
            <div class="row">
                <div class="panel-col" style="width: 154px;">
                    <input name="productSkn" id="productSkn" type="text" value="" class="form-control" placeholder="SKN" />
                </div>
                <div class="panel-col" style="width: 154px;">
                    <input name="productName" id="productName" type="text" value="" class="form-control" placeholder="商品名称" />
                </div>
                <div class="panel-col2">
                    <select name="time-sort" id="brand-name" tabindex="-1" title="" class="form-control">
                        <option value="-1">选择品牌</option>
                    </select>
                </div>
                <div class="panel-col" style="width: 154px;">
                    <input name="minCount" id="minCount" type="text" value="" class="form-control" placeholder="起购件数"
                    onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}"  
                    onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'0')}else{this.value=this.value.replace(/\D/g,'')}"
                    />
                </div>
                <div class="panel-col2" style="position: relative">
                    <a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
                    <a id="all-btn" href="" class="btn btn-info">全部</a>
                </div>
            </div>
        </div>

    </div>

    <div class="panel">
        <div class="panel-body nopadding">
            <div id="table-box" class="dataTables_wrapper no-footer">
            </div>
        </div>
    </div>

</div>

<script id="history_template" type="text/html" charset="utf-8">
    <table class="table table-bordered">
      <thead>
        <tr>
          <th>SKN</th>
          <th>商品名称</th>
          <th>品牌</th>
          <th>类目</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>{{item.productSkn}}</td>
          <td>{{item.productName}}</td>
          <td>{{item.brand}}</td>
          <td>{{item.sort}}</td>
        </tr>
      </tbody>
    </table>
    <table class="table table-bordered">
      <thead>
        <tr>
          <th>起购件数</th>
          <th>折扣</th>
          <th>操作信息</th>
        </tr>
      </thead>
      <tbody>
        {{each data as r }}
        <tr>
          <td>{{r.minCount}}</td>
          <td>{{r.discount}}</td>
          <td>{{r.operator}}&nbsp;{{r.createTime  | dateFormat: 'yyyy-MM-dd hh:mm:ss'}}</td>
        </tr>
        {{/each}}
      </tbody>
    </table>
</script>