basic-info.html 8.22 KB
<div class="panel panel-default">
    <div class="panel-heading">
      <a class="netsale-position" href="javascript:;" name="position2"></a>
        <div class="panel-btns" style="display: none;">
            <a href="" class="panel-minimize tooltips" data-toggle="tooltip" title=""><i class="fa fa-minus"></i></a>
        </div>
        <h2 class="panel-title">基本信息</h2>
    </div>
    <div id="basicInfoWrap" class="panel-body nopadding">
        <div id="basic-info"></div>
        <div id="goods-table">
            <div class="form-group">
               <!--  <h5>能否补货</h5> -->
                <div id="suppled-table" class="dataTables_wrapper no-footer">
                </div>
            </div>
        </div>
        <div id="product-ext"></div>
    </div>
    <div class="panel-footer">
        <a id="saveBasicInfo" href="javascript:;" class="btn btn-primary">保存文本</a>
    </div>
</div>

<script type="text/template" id="basicInfo">
    <div class="form-group">
        <div class="col-sm-3">店铺:[[shopName]]</div>
        <div class="col-sm-3">品牌:[[brandName]]</div>
        <div class="col-sm-3">供应商:[[supplierName]]</div>
        <div class="col-sm-3">经营模式:[[sellType]]</div>
    </div>
    <div class="form-group">
        <div class="col-sm-3">品类:[[maxSortName]]/[[middleSortName]]/[[smallSortName]]</div>
        <div class="col-sm-3">货品年:[[goodsYears]]</div>
        <div class="col-sm-3">货品季:[[goodsSeason]]</div>
        [[if renderType=='edit']]
        <div class="col-sm-3">厂家编号:[[factoryCode]]</div>
        [[else]]
        <div class="col-sm-3"><img src="[[productImageUrl]]" width="100" height="100" alt=""></div>
        [[/if]]
    </div>
    <div class="form-group">
        <div class="col-sm-3">SKN[[productSkn]]</div>
        <div class="col-sm-3">商品类型:[[attribute]]</div>
        [[if renderType=='info']]
        <div class="col-sm-3">厂家编号:[[factoryCode]]</div>
        [[/if]]
    </div>
    <div class="form-group">
        <div class="col-sm-1"> <label>商品名称<i class="red">*</i>:</label></div>
        <div class="col-sm-11">
            [[if renderType=='edit']]
            <input id="productName" class="form-control" placeholder="基础商品名称" type="text" value="[[productName]]" required maxlength="100">
            [[else]]
            <span>[[productName]]</span>
            [[/if]]
        </div>

        [[if renderType=='edit']]
        <div class="col-sm-12" style="color: red;padding: 0 0 0 85px;"><span class="red">建议名称:【品牌英文+性别+图案纹理+版型+风格+三级类目+商家款号+(款型)】,如此可增加商品在搜索页的展示。</span></div>
        [[/if]]

    </div>
    <div class="form-group">
        <div class="col-sm-4">品牌上市日期:[[brandSaleTimeStr]]</div>
        <div class="col-sm-4">预计上市日期:[[expectSaleTimeStr]]</div>
        <div class="col-sm-4">品牌经典款:[[classic]]</div>
    </div>
    <!--  <div class="form-group">
        <div class="col-sm-12">商品话题:[[productTag]]</div>
    </div> -->

    <div class="form-group">
        <div class="col-sm-3">
            <label>性别:[[gender]]
            </label>
        </div>
        <div class="col-sm-3">
            <label>年龄层:[[ageLevel]]
            </label>
        </div>
        <!-- <div class="col-sm-3">
            <label>重点款<span class="red">*</span>:</label>
            <label >
                <input type="radio" name="grade" value="1"></label>
            <label >
                <input type="radio" name="grade" value="0"></label>
        </div>
        <input type="hidden" id="grade" value="[[grade||'0']]" for="radio" required/> -->
    </div>
    <div class="form-group">
        <div class="col-sm-3">
            <label>适销季<span class="red">*</span>:</label>
            <label>
                <input type="radio" name="seasons" value="spring">春秋</label>
            <label >
                <input type="radio" name="seasons" value="summer"></label>
            <!-- <label >
                <input type="checkbox" name="seasons" value="autumn"></label> -->
            <label >
                <input type="radio" name="seasons" value="winter"></label>
            <label >
                <input type="radio" name="seasons" value="seasons">四季</label>
            <input type="hidden" id="seasons" name="seasons" value="[[seasons||'seasons']]" for="radio" placeholder="年龄层" />
        </div>

        <div class="col-sm-3">
            <label>限量款:</label>
            <label >
                <input type="radio" name="isLimited" value="Y"></label>
            <label >
                <input type="radio" name="isLimited" value="N"></label>
        </div>
        <input id="isLimited" type="hidden" value="[[isLimited||'N']]" for="radio" />

        <!-- <div class="col-sm-3">
            <label>是否奥莱:</label>
            <label >
                <input type="radio" name="isOutLets" value="Y"></label>
            <label >
                <input type="radio" name="isOutLets" value="N"></label>
            <input type="hidden" id="isOutlets"  value="[[isOutLets||'N']]" for="radio" />
        </div> -->
    </div>

    <div class="form-group">
        <div class="col-sm-3">是否预售:[[isAdvance]]</div>
        [[if isAdvance=='是']]
        <div class="col-sm-3" style="color: #ccc;">预售库存:[[stock]]</div>
        [[/if]]
        <div class="col-sm-3">预计到货时间:[[expectArrivalTime]]</div>
    </div>
    <div class="form-group">
        <div class="col-sm-3">吊牌价:[[retailPrice]]</div>
        <div class="col-sm-3">销售价:[[salesPrice]]</div>
    </div>
    <!-- <div class="form-group">
        <div class="col-sm-3">是否VIP[[isVip]]</div>
    </div> -->
</script>


<script type="text/template" id="productExtBoTemp">
    <!-- <div class="form-group">
     <label class="col-sm-1 control-label">商品短评:</label>
     [[if renderType=='edit']]
        <div class="col-sm-11">
            <input id="phrase" class="form-control" placeholder="商品短评" type="text" value="[[phrase]]">
        </div>
    [[else]]
        <div class="col-sm-9">
            [[phrase]]
        </div>
    [[/if]]
    </div> -->
    <!-- <div class="form-group">
            <label class="col-sm-1 control-label">是否新品:</label>
            <div class="col-sm-4">
            <label ><input type="radio" name="isNew" value="Y"></label>
            <label ><input type="radio" name="isNew" value="N"></label>
            <input id="isNew" type="hidden" value="[[isNew||'Y']]" for="radio">
            </div>
            <label class="col-sm-1 control-label">上架渠道:</label>
            <div class="col-sm-4">
            <label ><input type="checkbox" name="sellChannels" value="1">网站</label>
            <label ><input type="checkbox" name="sellChannels" value="2">手机</label>
            <label ><input type="checkbox" name="sellChannels" value="3">场地</label>
            <input id="sellChannels" value="[[sellChannels||'1|2']]" type="hidden" for="checkbox">
            </div>
    </div> -->
    <div class="form-group">
        <label class="col-sm-1 control-label">展示时间:</label>
        <label class="col-sm-1 control-label">售罄</label>
        <div class="col-sm-2">
            [[if outSaleTime]]
            <input id="outSaleTime" value="[[outSaleTime]]" type="text" class="form-control" required>
            [[else]]
            <input id="outSaleTime" value="0" type="text" class="form-control" required>
            [[/if]]
        </div>
        <label class="col-sm-2 control-label" style="text-align: left;">天后不展示</label>
    </div>
    [[if shopList]]
    <div class="form-group">
        <div class="col-sm-12" style="display:none">
            <label class="col-sm-1 control-label">展示店铺:</label>
            <div class="col-sm-4">
            [[each shopList as a index]]
             <label ><input type="checkbox" name="shopIds" value="[[a.shopsId]]">[[a.shopName]]</label>
            [[/each]]
            </div>
        </div>
    </div>
    <input id="shopIds" value="[[shopIds]]" type="hidden" for="checkbox">
    [[/if]]
</script>