Index.html 7.76 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 target="_blank" href="/base/goods/add" class="btn btn-success"><i class="fa fa-plus"></i> 添加基础商品</a>
        </div>
        <div class="panel-body">
            <div class="row">
                <div class="panel-col">
                    <input type="text" id="productSkn" value="" class="form-control" placeholder="SKN"
                           style="height: 39px;" maxlength="9" />
                </div>
                <div class="panel-col">
                    <input id="productSku" class="form-control panel-input" maxlength="9" type="text" placeholder="请输入SKU" onkeyup="this.value=this.value.replace(/\D/gi,'')">
                </div>
                <div class="panel-col">
                    <input type="text" id="productName" class="form-control" placeholder="商品名称" style="height: 39px;"/>
                </div>
                <div class="panel-col">
                    <input type="text" id="founderName" class="form-control" placeholder="创建人" style="height: 39px;"/>
                </div>
                <div class="panel-col">
                    <select id="shopId" class="form-control">
                        <option value="-1">请选择店铺</option>
                    </select>
                </div>
                <div class="panel-col">
                    <select id="brandId" class="form-control">
                        <option value="-1">请选择品牌</option>
                    </select>
                </div>
                <div class="panel-col">
                    <select id="isOutLets" class="form-control">
                        <option value="-1">是否奥莱</option>
                        <option value="Y"></option>
                        <option value="N"></option>

                    </select>
                </div>
                <div class="panel-col">
                    <select id="isAdvance" class="form-control">
                        <option value="-1">是否预售</option>
                        <option value="Y">普通预售</option>
                        <option value="E">定金预售</option>
                        <option value="N"></option>

                    </select>
                </div>
                <div class="panel-col">
                    <select id="gender" class="form-control">
                        <option value="-1">请选择性别</option>
                        <option value="1"></option>
                        <option value="2"></option>
                        <option value="3">通用</option>

                    </select>
                </div>
                <div class="panel-col" style="width: 200px">
                    <select id="isJit" multiple="multiple" class="form-control">
                        <option value="1">经销</option>
                        <option value="2">代销</option>
                        <option value="3">JIT</option>
                        <option value="4">专营店代销入库</option>
                        <option value="5">专营店代销不入库</option>
                        <option value="10">经销保税</option>
                    </select>
                </div>
                <div class="panel-col">
                    <select id="appType" class="form-control">
                        <option value="-1">是否BLK商品</option>
                        <option value="1">是BLK</option>
                        <option value="0">非BLK</option>
                    </select>
                </div>
                <div class="panel-col">
                    <input type="text" id="factoryCode" class="form-control" placeholder="厂家编号" style="height: 39px;"/>
                </div>
                <div class="panel-col">
                    <input type="text" id="skuFactoryCode" class="form-control" placeholder="条码" style="height: 39px;"/>
                </div>
                <div class="panel-col2">
                    <div id="sort"></div>
                </div>
                <div id="goodsYearsDiv" class="panel-col" style="width: 200px">
                </div>
                <div class="panel-col" style="width: 200px">
                    <select id="goodsSeason" multiple="multiple" class="form-control">
                      <option value="1"></option>
                      <option value="2"></option>
                      <option value="3"></option>
                      <option value="4"></option>
                      <option value="5">春夏</option>
                      <option value="6">秋冬</option>
                    </select>
                </div>
                <div class="panel-col">
                    <input type="text" id="nationalCode" class="form-control" placeholder="品牌条码" style="height: 39px;"/>
                </div>
                <div class="panel-col">
                    <a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
                    <a id="all-btn" href="" class="btn btn-info">全部</a>
                </div>

               <!--  <div class="panel-col">
                    <a id="pass-btn" href="javascript:;" class="btn btn-success">通过</a>
                    <a id="reject-btn" href="javascript:;" class="btn btn-danger">驳回</a>
                </div> -->

                <div class="panel-col2">
                    <a id="import-btn" href="/goods/base/batch" class="btn btn-primary">基础商品导入</a>
                    <a id="importFun-btn" href="/goods/piliang/batch" class="btn btn-primary">批量功能</a>
                </div>

                <div class="panel-col" style="" id="daochu">
                    <a href="javascript:;" class="btn btn-info" id="basedaochu">基础商品导出</a>
                </div>
            </div>
        </div>
    </div>
    <div class="panel panel-primary-head">
        <div class="dataTab_wrapper" id="basicTab" style="margin-bottom: 10px"></div>
        <div class="dataTab_wrapper" id="basicTable"></div>
    </div>
</div>

<script>
  var htmlStr = '<select id="goodsYears" multiple="multiple" class="form-control">';
  for(var i=2005;i<(new Date).getFullYear()+10;i++){
		htmlStr += '<option value="' + i + '">' + i + '</option>';
	}
  htmlStr += '</select>';
  document.getElementById('goodsYearsDiv').innerHTML= htmlStr;
</script>

<script type="text/template" id="template">
    <div class="rows" style="height: 100px;">
        <div class="form-group">
            <span class="col-sm-2 control-label">驳回原因:</span>

            <div class="col-sm-8">
                <textarea id="bohui" class="form-control" rows="3"></textarea>
            </div>
        </div>
    </div>
    </div>
</script>
<!-- <script type="text/template" id="template">
    <p style="color: red;">SKN:{productSkn} 品牌:{brandName}</p>
    <p style="color: red;">商品名称:{productName}</p>
    <div id="shelve-table" class="dataTables_wrapper no-footer"></div>

</script>  -->

<script type="text/template" id="template2">
[[each goodsSizeList as item index]]
    <div class="subhhead">
    <span>[[item.productSku]]</span>
    <span>[[item.sizeName]]</span>
    <span>[[item.storageNum]]</span>
    <span>[[ ["下架","上架"][item.status] ]]</span>
    <span>
        [[if item.status]]
        <a class="btn btn-danger btnsku" data-subindex='[[index]]' data-index=[[__index]] href="javascript:;">下架</a>
        [[else]]
        <a class="btn btn-success btnsku" data-subindex='[[index]]' data-index=[[__index]]  href="javascript:;">上架</a>
        [[/if]]
    </span>
    </div>
[[/each]]
</script>
<%include '../../common/__ui/footer'%>