netsale.html 11.5 KB
<div class="pageheader">
    <div class="media">
        <div class="pageicon pull-left">
            <i class="fa fa-th-list"></i>
        </div>
        <div class="media-body">
            <ul class="breadcrumb">
                <li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
                <li><a href="">商品管理</a></li>
                <li>商品内容管理</li>
            </ul>

        </div>
    </div>
</div>

<div class="contentpanel">
    <div class="panel panel-default" style="margin-bottom:10px;">
        <div class="panel-body">
            <div class="row">
                <div class="panel-col">
                    <input id="productSkn" class="form-control panel-input" type="text" placeholder="请输入SKN" onkeyup="this.value=this.value.replace(/\D/gi,'')">
                </div>
                <div class="panel-col">
                    <input id="productSkc" class="form-control panel-input" type="text" placeholder="请输入SKC" onkeyup="this.value=this.value.replace(/\D/gi,'')">
                </div>
                <div class="panel-col">
                    <input id="productSku" class="form-control panel-input" type="text" placeholder="请输入SKU" onkeyup="this.value=this.value.replace(/\D/gi,'')">
                </div>
                <div class="panel-col2">
                    <input id="productName" class="form-control panel-input" type="text" placeholder="商品名称">
                </div>
                <!-- <div class="panel-col2">
                    <select name="shopId" id="shopId"  tabindex="-1" title="" class="form-control">
                        <option value="-1">请选择店铺</option>           
                    </select>     
                </div> -->
                <div class="panel-col">
                    <select name="brandId" id="brandId"  tabindex="-1" title="" class="form-control">
                        <option value="-1">请选择品牌</option>           
                    </select>     
                </div>
                <div class="panel-col">
                    <select name="stock" id="stock"  tabindex="-1" title="" class="form-control">
                        <option value="-1">库存情况</option>
                        <option value="1">有库存</option>
                        <option value="0">无库存</option>
                    </select>     
                </div>
                <div class="panel-col">
                    <select name="isScreen" id="isScreen"  tabindex="-1" title="" class="form-control height40">
                        <option value="">拍摄状态</option>
                        <option value="Y">已拍摄</option>
                        <option value="N">未拍摄</option>
                    </select>     
                </div>
                <div class="panel-col">
                    <select name="isMeasure" id="isMeasure"  tabindex="-1" title="" class="form-control height40">
                        <option value="">测量状态</option>
                        <option value="Y">已测量</option>
                        <option value="N">未测量</option>
                    </select>     
                </div>
                <div class="panel-col">
                    <select name="gender" id="gender"  tabindex="-1" title="" class="form-control height40">
                        <option value="-1">选择性别</option>
                        <option value="1"></option>
                        <option value="2"></option>
                        <option value="3">通用</option>
                    </select>     
                </div>
                <!-- <div class="panel-col">
                    <select name="maxSortId" id="maxSortId"  tabindex="-1" title="" class="form-control height40">
                        <option value="-1">请选择一级类目</option>
                    </select>     
                </div>
                <div class="panel-col">
                    <select name="middleSortId" id="middleSortId"  tabindex="-1" title="" class="form-control height40">
                        <option value="-1">请选择二级类目</option>
                    </select>     
                </div>
                <div class="panel-col">
                    <select name="smallSortId" id="smallSortId"  tabindex="-1" title="" class="form-control height40">
                        <option value="-1">请选择三级类目</option>
                    </select>     
                </div> -->
                <div class="panel-col2">
                    <div id="sortTree"></div>  
                </div>
                <div class="panel-col">
                    <select name="isOutLets" id="isOutLets"  tabindex="-1" title="" class="form-control height40">
                        <option value="-1">是否奥莱</option>
                        <option value="Y">奥莱</option>
                        <option value="N">非奥莱</option>
                        <option value="B">品牌设置</option>
                    </select>     
                </div>
                <div class="panel-col">
                    <select name="productStatus" id="productStatus"  tabindex="-1" title="" class="form-control height40">
                        <option value="">上架状态</option>
                        <option value="8">待上架</option>
                        <option value="2">待审核</option>
                        <option value="3">驳回</option>
                        <option value="4">通过</option>
                        <option value="5">再次上架待审核</option>
                        <option value="6">再次上架驳回</option>
                        <option value="7">再次上架通过</option>
                        <option value="1">已上架</option>
                        <option value="0">已下架</option>
                    </select>     
                </div>

                <div class="panel-col">
                    <select name="isJit" id="isJit"  tabindex="-1" title="" class="form-control">
                        <option value="-1">是否JIT商品</option>
                        <option value="Y"></option>
                        <option value="N"></option>
                    </select>     
                </div>
                <div class="panel-col">
                    <select name="size" id="size"  tabindex="-1" title="" class="form-control">
                        <option value="10">单页显示条数</option>
                        <option value="10">10条</option>
                        <option value="20">20条</option>
                        <option value="30">30条</option>
                        <option value="50">50条</option>
                        <option value="100">100条</option>
                    </select>     
                </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>

            <div class="row" style="margin: 0 0 0 -5px;">
                <a id="onshelve" href="javascript:;" class="btn btn-info" >上架</a>
                <a id="offshelve" href="javascript:;" class="btn btn-info">下架</a>
                <a id="export-btn" href="javascript:;" class="btn btn-info">导出</a>
                <a id="import-btn" href="/goods/netsale/batch" class="btn btn-info">批量(排序、款型系列)</a>
            </div>
        </div>
        
    </div>
    <div class="panel">
        <div class="panel-body nopadding">
            <div class="dataTab_wrapper" id="basicTab"></div>
            <div class="dataTables_wrapper no-footer" id="basicTable"></div>
        </div>
    </div>
    
</div>

<input type="hidden" id="gridurl" value="{{gridurl}}">
<input type="hidden" id="shopId" value="{{auth.shopId}}">
<script type="text/template" id="onshelve-template">
    <form class="shelve-form form-horizontal form-bordered">
        <div class="panel panel-default">
            <div class="panel-body nopadding">
                <div class="form-group">
                    <a class="btn btn-info" data-type="2" href="javascript:;">上架上新</a>
                    <a class="btn btn-info" data-type="1" href="javascript:;">上架不上新</a>
                </div>
                <div class="form-group">
                    <div class="col-sm-3 height40">预上架时间:</div>
                    <div class="col-sm-6"><input id="shelveTime" class="form-control" jsaction="time" type="text" placeholder="预上架时间" readonly></div>
                    <div class="col-sm-1"><a class="btn btn-info" data-type="3" href="javascript:;">确定</a></div>
                </div>
                <div class="form-group">
                    <div class="col-sm-3 height40">预上架上新时间:</div>
                    <div class="col-sm-6"><input id="onNewTime" class="form-control" jsaction="time" type="text" placeholder="预上架上新时间" readonly></div>
                    <div class="col-sm-1"><a class="btn btn-info" data-type="4" href="javascript:;">确定</a></div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 height40">预售时间:</div>
                    <div class="col-sm-4"><input id="advanceBeginTime" class="form-control" jsaction="time:end:advanceEndTime" type="text" placeholder="预售开始时间" readonly></div>
                    <div class="col-sm-4"><input id="advanceEndTime" class="form-control" jsaction="time:start:advanceBeginTime"  type="text" placeholder="预售结束时间" readonly></div>
                    <div class="col-sm-1"><a class="btn btn-info" data-type="5" href="javascript:;">确定</a></div>
                </div>
            </div>
        </div>
    </form>
</script>

<script type="text/template" id="offshelve-template">
    <form class="shelve-form form-horizontal form-bordered">
        <div class="panel panel-default">
            <div class="panel-body nopadding">
                <div class="form-group">
                    <a class="btn btn-info" data-type="7" href="javascript:;">立即下架</a>
                </div>
                <div class="form-group">
                    <div class="col-sm-3 height40">预下架时间:</div>
                    <div class="col-sm-4">售罄<input id="outSaleTime" class="form-control" type="text" style="display:inline-block;width:60px;" value="0">天下架</div>
                    <div class="col-sm-1"><a class="btn btn-info"  data-type="6" href="javascript:;">确定</a></div>
                </div>

            </div>
        </div>
    </form>
</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>