Index.html 3.79 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: 0">
            <a class="btn btn-success " id="addPool"><i class="fa fa-plus"></i> 添加商品池</a>
        </div>
        <div class="panel-body">
            <div class="row">
                <div class="panel-col">
                    <input type="text" class="form-control" id="search-id" placeholder="输入编号" onkeyup="this.value=this.value.replace(/\D/gi,'')" />
                </div>
                <div class="panel-col">
                    <input type="text" class="form-control" id="search-name" placeholder="输入名称" />
                </div>
                <div class="panel-col">
                    <a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
                    <a id="filter-all" href="/market/productPool/index" class="btn btn-info">全部</a>
                </div>
            </div>
        </div>
    </div>
    <div class="panel">
        <div class="panel-body nopadding">
            <div id="product-pool"></div>
        </div>
    </div>
</div>

<script type="text/template" id="template">
    <div class="form-horizontal" id="productEdit">
        <input type="hidden" value="[[id]]" id="id" />

        <div class="form-group">
            <label for="poolName" class="col-sm-3 control-label">商品池名称:</label>
            <div class="col-sm-5">
                <input type="text" id="poolName" value="[[poolName]]" class="form-control" />
            </div>
            <div class="col-sm-2"><label style="color: #ff0000; line-height: 40px"> * 必填</label></div>
        </div>

        <div class="form-group">
            <label for="comment" class="col-sm-3 control-label">说明:</label>
            <div class="col-sm-5">
                <input type="text" id="comment" value="[[comment]]" class="form-control" />
            </div>
        </div>

        <div class="form-group">
            <label for="producttype" class="col-sm-3 control-label">商品:</label>
            <div class="col-sm-5">
                <select id="producttype" class="form-control" >
                    <option value="-1">-- 请选择添加商品类型 --</option>
                    <option value="1">SKN</option>
                    <option value="2" disabled>SKU(暂不支持)</option>
                    <option value="3" disabled>SKC(暂不支持)</option>
                </select>
            </div>
            <div class="col-sm-4"><label style="color: #ff0000; line-height: 40px"> * 必选(当前只支持SKN</label></div>
        </div>

        <div class="form-group">
            <label class="col-sm-3 control-label">上传:</label>
            <div class="col-sm-9">
                <div class="row">
                    <div class="col-sm-7">
                        <input id="path" class="form-control" type="text" disabled="disabled" style="cursor:default; width: 218px">
                    </div>
                    <div class="col-sm-4" style="position: relative; padding-left: 0;">
                        <input id="productSkn" name="productSkn" class="btn btn-default excel-upload" type="file" style="position: absolute; top: 0;left: 10px; height:37px">
                        <div class="file-name btn btn-info">请选择文件</div>
                        <input type="hidden" id="sknVal" />
                    </div>
                </div>
                <div style="margin: 10px 0 0; color:#f0ad4e">
                    * 要导入的数据类型必须和所选类型相同。<br>
                    &nbsp;&nbsp;EXCEL文件只有一列。
                </div>
            </div>
        </div>
    </div>
</script>