Index.html 3.76 KB
<%include '../../common/__ui/header'%>

<%include '../../common/__partail/ListHeader'%>

<div class="contentpanel">
    <div class="panel panel-default" style="...">
        <div class="panel-body" style="padding-bottom: 0">
            <a class="btn btn-success " href="/meterManage/meterSize/add" id="add-sizeInfo"><i class="fa fa-plus"></i> 添加测量数据</a>
        </div>
        <div class="panel-body">
            <div class="row" id="filter">
                <div class="panel-col">
                    <input type="text" value="" name="productSkn" id="skn-filter" placeholder="SKN" class="form-control">
                </div>
                <div class="panel-col">
                    <input type="text" value="" name="productSku" id="sku-filter" placeholder="SKU" class="form-control">
                </div>
                <div class="panel-col">
                    <select name="brandId" id="brand-filter" tabindex="-1" title="" class="form-control">
                        <option value="">选择品牌</option>
                    </select>
                </div>
                <div class="panel-col">
                    <div id="category-filter"></div>
                </div>
                <div class="panel-col">
                    <select name="isMeasure" id="hasMeasure-filter" tabindex="-1" title="" class="form-control">
                        <option value="">是否测量</option>
                        <option value="N">未测量</option>
                        <option value="Y">已测量</option>
                    </select>
                </div>
                <div class="panel-col">
                    <input type="text" id="startTime" jsaction="time:end:endTime" class="form-control panel-input hasDatepicker " name="start_time" placeholder="开始时间"/>
                </div>
                <div class="panel-col">
                    <input type="text" id="endTime" jsaction="time:start:startTime" class="form-control panel-input hasDatepicker" name="end_time" placeholder="结束时间"/>
                </div>
                <div class="panel-col">
                    <a id="filter-btn" href="javascript:;" class="btn btn-info">查询</a>
                    <a id="filter-all" href="/meterManage/meterSize/index" class="btn btn-info">全部</a>
                </div>
            </div>
        </div>
    </div>
    <div id="content-list"></div>
</div>

<script type="text/template" id="sizeinfo-template">
    [[if sizeRelationsList && sizeRelationsList.length > 0]]
    <table class="table table-striped table-hover table-bordered responsive dataTable no-footer">
        <thead>
        <tr>
            <td>尺码</td>
            <td>参考尺码([[genderName]])</td>
            [[each sizeRelationsList[0].prdSizeAttributeBoList as item index]]
            <td>[[item.sizeAttributeName]]</td>
            [[/each]]
        </tr>
        </thead>

        <tbody>
        [[each sizeRelationsList as item index]]
        <tr>
            <td>[[item.sizeName]]</td>
            <td>[[item.referenceName?item.referenceName:""]]</td>
            [[each item.prdSizeAttributeBoList as item1 index1]]
            <td>[[item1.sizeValue]]</td>
            [[/each]]
        </tr>
        [[/each]]
        </tbody>
    </table>
    [[/if]]
</script>

<script type="text/template" id="modifySize-template" style="width: 900px">
    <div id="base-form">
        <table style="width: 100%">
            <tr>
                <th>SKN[[productSkn]]</th>
                <th> 名称:[[productName]]</th>
                <th> 品牌:[[brandName]]</th>
                <th>分类:[[productType]]</th>
                <th> 性别:[[genderName]]</th>
                <input type="hidden" id="productSkn" value="[[productSkn]]" />
            </tr>
        </table>
    </div>
</script>