Index.html 8.81 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 id="add-btn" href="/market/couponList/add" class="btn btn-success "><i class="fa fa-plus"></i> 添加优惠券</a>
        </div>
        <div class="panel-body">
            <div class="row">
                <div class="panel-col" id="couponsIds"></div>
                <div class="panel-col">
                    <input id="filter-couponName" class="form-control panel-input" type="text" placeholder="名称">
                </div>
                 <div class="panel-col" id="departments"></div>
                <div class="panel-col">
                    <a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
                    <a id="all-btn" href="/market/couponList/index" class="btn btn-info">全部</a>
                </div>
            </div>
        </div>
    </div>
    <div class="panel panel-primary-head">
        <div class="dataTab_wrapper" id="basicTab" style="margin-bottom: 10px"></div>
        <div class="basicTable_wrapper" id="basicTable"></div>
    </div>
</div>

<script type="text/template" id="template">
    <p>[[name]]</p>
    <label class="col-sm-3 control-label"><i class="red">*请填写原因</i></label>
    <input id="reason" type="text" class="form-control" name="agreement-code" style="width:280px;">
</script>

<script type="text/template" id="search-coupon">
    <select id="choose-coupon" title="" class=" select2-offscreen form-control">
        <option value="">选择优惠券ID</option>
        [[each data as item index]]
        <option value="[[item.id]]">[[item.id]]</option>
        [[/each]]
    </select>
</script>
<script type="text/template" id="search-department">
    <select id="choose-department" title="" class=" select2-offscreen form-control">
        <option value="-1">申请部门</option>
        [[each data as item index]]
        <option value="[[item.department]]">[[item.departmentName]]</option>
        [[/each]]
    </select>
</script>
<script type="text/template" id="templateInfo">
    <div class="panel panel-default">
        <div class="panel-heading">
            <h4 class="panel-title">优惠券ID:[[id]]</h4>
            <h4 class="panel-title">申请时间:[[createTime]]</h4>
        </div>
        <div class="panel-body">
            <div class="row">
                <div class="form-group">
                    <label class="col-sm-2 control-label">类型</label>
                    <div class="col-sm-8">
                        <p> [[couponType]]</p>
                    </div>
                </div>
            </div>
        </div>
        <div class="panel-heading">
            <h4 class="panel-title">基本信息</h4>
        </div>
        <div class="panel-body">
            <div class="row">
                <div class="form-group">
                    <label class="col-sm-2 control-label">名称 </label>

                    <div class="col-sm-8">
                        <p>[[couponName]]</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">数量</label>

                    <div class="col-sm-8">
                        <p>[[couponNum]]</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">申请部门</label>

                    <div class="col-sm-8">
                        <p>[[departmentName]]</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">领取开始时间</label>

                    <div class="col-sm-8">
                        <p>[[limitStartTime]]</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">使用期限</label>
                    <div class="col-sm-3">
                        <p>[[startTime]]</p>
                    </div>
                    <div class="col-sm-1">
                        <p></p>
                    </div>
                    <div class="col-sm-3">
                        <p>[[endTime]]</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">优惠券说明</label>

                    <div class="col-sm-8">
                        <p>[[explains]]</p>
                    </div>
                </div>
            </div>
        </div>
        <div class="panel-heading">
            <h4 class="panel-title">使用条件</h4>
        </div>
        <div class="panel-body">
            <div class="row">
                <div class="form-group">
                    <label class="col-sm-2 control-label">优惠类型</label>

                    <div class="col-sm-8">
                        <p>[[useLimitType]]</p>
                    </div>
                </div>
                [[if useLimitType!='无限制']]
                <div class="form-group">
                    <label class="col-sm-2 control-label">优惠条件</label>
                    [[if useLimitType=='货物件数限制']]
                    <div class="col-sm-4">
                        <p>件数满&emsp;[[useLimit]]</p>
                    </div>
                    [[/if]]
                    [[if useLimitType=='订单金额限制']]
                    <div class="col-sm-4">
                        <p>金额满&emsp;[[useLimit]]</p>
                    </div>
                    [[/if]]
                </div>
                [[/if]]
                <div class="form-group">
                    <label class="col-sm-2 control-label">优惠结果</label>

                    <div class="col-sm-4">
                        <p>面额&emsp;[[couponAmount]]</p>
                    </div>
                    <div class="col-sm-4">
                        <p>倍数&emsp;[[multipleNum]]</p>
                    </div>
                </div>
                [[if brandsList]]
                <div class="form-group">
                    <label class="col-sm-2 control-label">品牌限制</label>

                    <div class="col-sm-10">
                        <p>[[brandsList]]</p>
                    </div>
                </div>
                [[/if]]
                [[if sortsList]]
                <div class="form-group">
                    <label class="col-sm-2 control-label">分类限制</label>

                    <div class="col-sm-10">
                        <p>[[sortsList]]</p>
                    </div>
                </div>
                [[/if]]
                <div class="form-group">
                    <label class="col-sm-2 control-label">互斥配置</label>
                    <div class="col-sm-8">
                        <p>[[shopPriceLimits]]</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">SKN除外</label>
                    <div class="col-sm-8">
                        <textarea class="form-control observe" prompt="SKN除外" data-field="sknExclude"
                                  placeholder="" style="resize: none" disabled >[[sknExclude]]</textarea>
                    </div>
                </div>
            </div>
        </div>
        <div class="panel-heading">
            <h4 class="panel-title">领券条件</h4>
        </div>
        <div class="panel-body">
            <div class="row">
                <div class="form-group">
                    <label class="col-sm-2 control-label">会员身份</label>

                    <div class="col-sm-8">
                        <p>[[customType]]</p>
                    </div>
                </div>
            </div>

        </div>

    </div>
</script>
<script type="text/template" id="operation-record-template">
    <div class="historyList">
        <table class="table table-striped table-bordered">
            <thead>
            <tr>
                <th>操作类型</th>
                <th>操作人</th>
                <th>部门</th>
                <th>执行时间</th>
            </tr>
            </thead>
            <tbody>
            [[if list.length > 0]]
            [[each list as item index]]
            <tr>
                <td>[[item.operationType]]</td>
                <td>[[item.operator]]</td>
                <td>[[item.deptName]]</td>
                <td>[[item.createTime]]</td>
            </tr>
            [[/each]]
            [[else]]
            <tr><td colspan="7">没有操作记录!</td></tr>
            [[/if]]
            </tbody>
        </table>
    </div>
</script>
<%include '../../common/__ui/footer'%>