limitcode-edit.html 14.4 KB
<div class="contentpanel">
    <div class="row">
        <div class="col-md-12">
            <form id="basicForm" role="{{type}}" class="form-horizontal form-bordered" method="get" action="{{action}}">
                <div class="panel panel-default">
                  {{# data}}
                    <div class="panel-heading">
                        <h4 class="panel-title">基本信息</h4>
                    </div><!-- panel-heading -->
                    <div class="panel-body">
                        <div class="row">
                             <div class="form-group">
                                <label class="col-sm-2 control-label">名称 <span class="red">*</span></label>
                                <div class="col-sm-8">
                                  <input type="text"  id="name" placeholder="名称建议30字以内"  class="form-control" required maxlength="30" value="{{name}}">
                                </div>
                            </div>

                            <div class="form-group">
                              <label for="numbers" class="col-sm-2 control-label">数量<i class="red">*</i></label>
                              <div class="col-sm-8">
                              <input type="text"  id="limitTimes" placeholder="数量" class="form-control" required pattern="^[0-9]+$" value="{{limitTimes}}">
                              </div>
                              <!--required pattern="^[0-9]+$"-->
                            </div>




                            <div class="form-group">
                                <label class="col-sm-2 control-label">申请部门</label>
                                <div class="col-sm-3">
                                    <select  id="department1" class="form-control">
                                      <option value="零售部">零售部</option>
                                      <option value="市场部">市场部</option>
                                      <option value="会员部">会员部</option>
                                      <option value="品牌合作部">品牌合作部</option>
                                      <option value="潮流资源部">潮流资源部</option>
                                      <option value="其他">其他</option>
                                    </select>
                                </div>
                                <div class="col-sm-3">
                                <select  id="department2" class="form-control">
                                  <option value="营销策划">营销策划</option>
                                  <option value="类目运营">类目运营</option>
                                  <option value="店铺运营">店铺运营</option>
                                </select>
                                </div>
                                 <input type="hidden" id="reqDepartment" value="{{reqDepartment}}">
                            </div>


                            <div class="form-group">
                                <label class="col-sm-2 control-label">使用期限<span class="red">*</span></label>
                                <div class="col-sm-6">
                                 <!--  <div class="col-sm-2">
                                    <label><input name="limitTimeType" type="radio" value="1">指定时间</label>
                                  </div> -->
                                  <div class="col-sm-6">
                                    <input type="text" class="form-control" jsaction="time:end:limitDateTo" id="limitDateFrom" placeholder="开始时间" value="{{limitDateFrom}}" readonly required>
                                  </div>
                                  <div class="col-sm-6">
                                      <input type="text" class="form-control" jsaction="time:start:limitDateFrom" id="limitDateTo" placeholder="结束时间" value="{{limitDateTo}}" readonly required>
                                  </div>
                                 <!--  <div class="col-sm-6">
                                    <label id="no-limit-time"><input name="limitTimeType" type="radio" value="2">不指定</label>
                                  </div> -->
                                </div>
                                <!-- <input type="hidden" value="{{limitTimeType}}" id="limitTimeType" for="radio" required placeholder="使用期限">  -->
                                <!-- readonly  require-->
                            </div>


                            <div class="form-group">
                              <label for="name" class="col-sm-2 control-label">限购码说明<i class="red">*</i></label>
                              <div class="col-sm-8">
                              <textarea class="form-control" id="describe" maxlength="100" placeholder="限购码使用条件简介,最多100个字" required>{{describe}}</textarea>
                              </div>
                               <!-- require-->
                            </div>
                        </div>
                     </div>


                    <div class="panel-heading">
                        <h4 class="panel-title">使用条件</h4>
                    </div>
                    <!-- <div class="form-group">
                        <label for="userSourceLimit" class="col-sm-2 control-label">用户来源<i class="red">*</i></label>
                        <div class="col-sm-8">
                            <label class="checkbox-inline">
                              <input type="checkbox"  value="1" name="userSourceLimit" > IOS
                            </label>
                            <label class="checkbox-inline">
                              <input type="checkbox"  value="2" name="userSourceLimit" > 安卓
                            </label>
                            <label class="checkbox-inline">
                              <input type="checkbox"  value="3" name="userSourceLimit" > PC
                            </label>
                            <label class="checkbox-inline">
                              <input type="checkbox"  value="4" name="userSourceLimit" > WAP
                            </label>
                            <label class="checkbox-inline">
                              <input type="checkbox"  value="5" name="userSourceLimit" > IPAD
                            </label>
                        </div>
                      <input type="hidden" value="{{userSourceLimit}}" id="userSourceLimit" for="checkbox" required placeholder="用户来源">
                    </div> -->

                    <div class="form-group">
                        <label for="name" class="col-sm-2 control-label">会员身份<i class="red">*</i></label>
                        <div class="col-sm-10">
                            <label class="checkbox-inline">
                              <input type="checkbox"  value="新注册" name="userTypeLimit" > 新注册
                            </label>
                            <label class="checkbox-inline">
                              <input type="checkbox"  value="注册未购买" name="userTypeLimit"> 注册未购买
                            </label>
                            <label class="checkbox-inline">
                              <input type="checkbox"  value="普通会员" name="userTypeLimit"> 普通会员
                            </label>
                            <label class="checkbox-inline">
                              <input type="checkbox"  value="银卡会员" name="userTypeLimit"> 银卡会员
                            </label>
                            <label class="checkbox-inline">
                              <input type="checkbox"  value="金卡会员" name="userTypeLimit"> 金卡会员
                            </label>
                            <label class="checkbox-inline">
                              <input type="checkbox"  value="白金会员" name="userTypeLimit"> 白金会员
                            </label>
                            <label class="checkbox-inline">
                              <input type="checkbox"  value="指定用户" name="userTypeLimit"> 指定用户
                            </label>
                        </div>

                        <div class="col-sm-2">
                          <input type="text" class="form-control" id="UID" placeholder="UID">
                        </div>

                        <input type="hidden" value="{{userTypeLimit}}" id="userTypeLimit" for="checkbox" required placeholder="会员身份">
                    </div>
                    <div class="form-group">
                        <label for="userUseLimit" class="col-sm-2 control-label">限用次数<i class="red">*</i></label>
                        <div class="col-sm-8">
                        <input type="text"  id="userUseLimit" placeholder="0 表示不限制" class="form-control" required pattern="^[0-9]+$" value="{{userUseLimit}}">
                        </div>
                    </div>

                    <div class="form-group">
                      <label for="name" class="col-sm-2 control-label">指定商品</label>
                      <div class="col-sm-2">
                        <input type="number" id="limitSkn" placeholder="SKN/SKU/SKC" class="form-control" value="{{limitSkn}}">
                      </div>
                    </div>

                  <!--   <div class="form-group">
                      <label for="name" class="col-sm-2 control-label">限制次数<i class="red">*</i></label>
                      <div class="col-sm-8">
                        <input type="text"  id="userUseLimit" placeholder="限制次数" class="form-control" value="{{userUseLimit}}" required pattern="^[1-9]+$">
                      </div>
                    </div> -->

                   <!--  <div class="form-group">
                        <label for="name" class="col-sm-2 control-label">商品性别</label>
                        <div class="col-sm-10">
                            <label class="checkbox-inline">
                              <input type="checkbox"  value="1" name="userSex" > 男
                            </label>
                            <label class="checkbox-inline">
                              <input type="checkbox"  value="2" name="userSex"> 女
                            </label>
                            <label class="checkbox-inline">
                              <input type="checkbox"  value="3" name="userSex"> 通用
                            </label>
                        </div>
                        <input type="hidden" value="{{userSex}}" id="userSex" for="checkbox">
                    </div> -->

                   <!--  <div class="panel-heading">
                        <h4 class="panel-title">优惠互斥</h4>
                    </div>

                    <div class="form-group">
                      <label  class="col-sm-2 control-label">SKN除外</label>
                      <div class="col-sm-2">
                        <input class="form-control" type="text" placeholder="SKN">
                      </div>
                    </div>

                    <div class="form-group">
                        <label for="name" class="col-sm-2 control-label">优惠互斥</label>
                        <div class="col-sm-10">
                            <label class="checkbox-inline">
                              <input type="checkbox"  value="1" name="discountReject" > 销售折扣
                            </label>
                            <label class="checkbox-inline">
                              <input type="checkbox"  value="2" name="discountReject" > VIP折扣-商品
                            </label>
                            <label class="checkbox-inline">
                              <input type="checkbox"  value="3" name="discountReject" > VIP折扣-运营
                            </label>
                            <label class="checkbox-inline">
                              <input type="checkbox"  value="4" name="discountReject" > 促销活动
                            </label>
                            <label class="checkbox-inline">
                              <input type="checkbox"  value="5" name="discountReject" > YOHO币-商品
                            </label>
                            <label class="checkbox-inline">
                              <input type="checkbox"  value="6" name="discountReject" > YOHO币-运营
                            </label>
                            <label class="checkbox-inline">
                              <input type="checkbox"  value="7" name="discountReject" > 优惠券
                            </label>
                            <label class="checkbox-inline">
                              <input type="checkbox"  value="8" name="discountReject" > 红包
                            </label>
                            <label class="checkbox-inline">
                              <input type="checkbox"  value="9" name="discountReject" > 优惠码
                            </label>
                        </div>
                        <input type="hidden" value="{{discountReject}}" id="discountReject" for="checkbox">
                    </div> -->



                    <input type="hidden" value="{{status}}" id="status" >
                    <input type="hidden" value="{{id}}" id="id" >
                    <input type="hidden" value="{{batchNo}}" id="batchNo" >
                  {{/ data}}

                   <div class="form-group">
                      <label  class="col-sm-2 control-label">申请人</label>
                      <div class="col-sm-8">
                        <label  class="form-label control-label" id="creatorName">{{auth.name}}</label>
                      </div>
                    </div>
                    <input type="hidden" value="{{auth.uid}}" id="creatorId" >
                    <input type="hidden" value="{{auth.name}}" id="creatorName" >
                    <div class="panel-footer">
                          <div class="row">
                            <div class="col-sm-8 col-sm-offset-2">
                                <a href="javascript:;"  onclick="history.go(-1);"  class="btn btn-default">取消</a>
                                <button id="save_brand" type="submit" data-loading-text="保存中..." class="btn btn-primary">保存</button>
                            </div>
                          </div>
                    </div>
                 </div>
             </form>
         </div>
    </div>
</div>