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

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

<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-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 height40">
                        <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="gender" id="skcOnsaleStatus" class="form-control height40">
                        <option value="-1">SKC是否上架</option>
                        <option value="1"></option>
                        <option value="0"></option>
                    </select>     
                </div>
                <div class="panel-col">
                    <select name="gender" id="isAdvance"   class="form-control height40">
                        <option value="-1">是否预售</option>
                        <option value="Y"></option>
                        <option value="N"></option>
                    </select>     
                </div>
               
                <div class="panel-col2">
                    <div id="sortTree" class="form-control height40" style="border: 0px; padding: 0px;"></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="9">下架驳回</option>
                        <option value="10">下架待审核</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 height40">
                        <option value="-1">是否JIT商品</option>
                        <option value="Y"></option>
                        <option value="N"></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-col">
                    <select id="isScreen" class="form-control height40">
                        <option value="-1">是否已摄影传图</option>
                        <option value="Y">是</option>
                        <option value="N">否</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 class="panel-col">
                    <a id="onshelve" href="javascript:;" class="btn btn-info" >上架</a>
                    <a id="offshelve" href="javascript:;" class="btn btn-info">下架</a>
                </div>
                <div class="panel-col2">
                    <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>
    <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="shopId" value="<%shopId%>">
<!--<script type="text/template" id="onshelve-template">
    <form class="shelve-form form-horizontal ">
        <div class="panel panel-default">
            <div class="panel-body nopadding">
                
                <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>
                        <span class="red">预上架请填写上架时间</span>
                    </div>
                </div>
                <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-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="common-onshelve-template">
    <form class="shelve-form form-horizontal form-bordered">
        <div class="panel panel-default">
            <div class="panel-body nopadding">
                <div class="form-group">
                    <span class="label label-success">共选中{num}skn</span>
                </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>
                        <span class="red">预上架请填写上架时间</span>
                    </div>
                </div>
                <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>
        </div>
    </form>
</script>


<script type="text/template" id="presell-onshelve-template">
    <form class="shelve-form form-horizontal form-bordered">
        <div class="panel panel-default">
            <div class="panel-body nopadding">
                <div class="form-group">
                    <span class="label label-success">共选中{num}skn</span>
                </div>
                <div class="form-group">
                    <div class="col-sm-3 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="panel-col" style="margin-top: 6px;"><a class="btn btn-info" data-type="5" href="javascript:;">确定</a>
                        <button id="cancelShelve" type="button" data-id="cancel" class="modal-cancel btn btn-default">取消</button>
                    </div>
                </div>
            </div>
        </div>
    </form>
</script>


<script type="text/template" id="offshelve-template">
    <form class="shelve-form form-horizontal">
        <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>
<%include '../../../common/views/__ui/footer'%>