yohoCoin.html 11.2 KB
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>

<div class="pageheader">
    <div class="media">
        <div class="pageicon pull-left">
            <i class="fa fa-th-list"></i>
        </div>
        {{#pagetitle}}
        <div class="media-body">
            <ul class="breadcrumb">
                <li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
                <li><a href="">{{level1title}}</a></li>
                <li>{{level2title}}</li>
            </ul>
            <div>
                <div style="width: 30%;float: left;">
                    <h4>{{level3title}}</h4>
                </div>
            </div>
        </div>
        {{/pagetitle}}
    </div>
</div>

<div class="contentpanel">
    <div id="yohoCoinSearch" class="panel panel-default" style="margin-bottom:10px;">
        {{# filter}}
        <div class="panel-body">
            <div class="row">
                {{# skn}}
                <div class="panel-col">
                    <input id="skn" class="form-control panel-input height40" type="text" placeholder="请输入SKN" onkeyup="this.value=this.value.replace(/\D/gi,'')">
                </div>
                {{/ skn}}

                {{# store}}
                <div class="panel-col">
                    <select name="shop" id="shop"  tabindex="-1" title="" class="form-control">
                        <option value="-1">请选择店铺</option>
                    </select>
                </div>
                {{/ store}}

                {{# brand}}
                <div class="panel-col">
                    <select name="brand" id="brand"  tabindex="-1" title="" class="form-control">
                        <option value="-1">请选择品牌</option>
                    </select>
                </div>
                {{/ brand}}

                {{# supplier}}
                <div class="panel-col">
                    <select name="supplier" id="supplier"  tabindex="-1" title="" class="form-control">
                        <option value="-1">请选择供应商</option>
                    </select>
                </div>
                {{/ supplier}}

                {{# gender}}
                <div class="panel-col">
                    <select name="gender" id="gender"  tabindex="-1" title="" class="form-control">
                        <option value="-1">选择性别</option>
                        <option value="1"></option>
                        <option value="2"></option>
                        <option value="3">通用</option>
                    </select>
                </div>
                {{/ gender}}

                {{# gender}}
                <div class="panel-col">
                    <select name="auditStatus" id="auditStatus"  tabindex="-1" title="" class="form-control">
                        <option value="-1">选择审核状态</option>
                        <option value="0">未设置</option>
                        <option value="1">待审核</option>
                        <option value="2">通过</option>
                        <option value="3">驳回</option>
                    </select>
                </div>
                {{/ gender}}

                {{# cate_1}}
                <div class="panel-col2">
                    <div id="sortTree"></div>
                </div>
                {{/ cate_1}}


                {{# returnCoinTime}}
                <div class="panel-col form-inline" style="width: auto">
                    <div class="form-group" style="margin-right: 0">
                        <label>反币时间:</label>
                        <input type="text" class="form-control" jsaction="date:end:endDate" id="startDate" placeholder="开始时间">
                    </div>
                    <label>~</label>
                    <div class="form-group">
                        <input type="text" class="form-control" jsaction="date:start:startDate" id="endDate" placeholder="结束时间">
                    </div>
                </div>
                {{/ returnCoinTime}}

                <div class="panel-col" style="width: auto">
                    <a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
                    <a id="all-btn" href="javascript:;" class="btn btn-info">全部</a>
                    {{# bulkImport}}
                    <a id="import-btn" href="javascript:;" class="btn btn-info">批量导入</a>
                    {{/ bulkImport}}
                </div>
            </div>
        </div>
        {{/ filter}}
    </div>

    <div class="panel">
        <div class="dataTables_wrapper no-footer" id="yohoCoin_table"></div>

        <div class="panel bulk-import">
            <a id="return-btn" href="javascript:;" class="btn btn-info">返回列表</a>

            <table class="table table-bordered" style="border:1px solid #ddd; margin-top: 10px">
                <tr>
                    <td width="120px" style="line-height: 37px"><b>上传EXCEL:</b></td>
                    <td style="position: relative;">
                        <input id="yohoCoinUpload" name="file" type="file" style="cursor: pointer; height: 37px; top: 8px;">
                        <div class="file-name btn btn-primary">请选择文件</div>
                    </td>
                </tr>
                <tr>
                    <td width="120px"><b>说明:</b></td>
                    <td>
                        1、上传文件必须是<span style="color:red;">.xlsx</span>文件<br>
                        2、Excel表头为:<span style="color: #67D267;">SKN、品牌、吊牌价、返币金额(大于零,最多俩位小数)</span><br>
                        3、第一行为表头内容,第二行开始为正式内容<br>
                        4、每个文件控制在2500行以内<br>
                        5、<a href="#" style="margin: 0; text-decoration: underline">下载样例</a>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</div>

<input type="hidden" id="gridurl" value="{{gridurl}}">

<script id="coinListHead" type="text/template">
    <div class="coinListHead dataForShow">
        <table><tbody>
            <tr>
                <td style="width: 10%">SKN</td>
                <td style="width: 25%">商品信息</td>
                <td style="width: 20%">供应商 / 店铺</td>
                <td style="width: 5%">性别</td>
                <td style="width: 5%">吊牌价</td>
                <td style="width: 5%">销售价</td>
                <td style="width: 5%">返币数</td>
                <td style="width: 8%">状态</td>
                <td style="width: 12%">操作信息</td>
                <td style="width: 5%">操作</td>
            </tr>
        </tbody></table>
    </div>
</script>

<script id="coinList" type="text/template">
    <div class="dataForShow _[[productSkn]]">
        <table><tbody>
            <tr>
                <td rowspan="2" span="2" class="center" style="width: 10%">[[productSkn]]</td>
                <td class="" style="width: 25%">
                    <p>名称:[[productName]]</p>
                    <p>品牌:[[brandName]]</p>
                    <div>
                        类目:[[if maxSortName]][[maxSortName]][[/if]]
                        [[if middleSortName]]&nbsp;>&nbsp;[[middleSortName]][[/if]]
                        [[if smallSortName]]&nbsp;>&nbsp;[[smallSortName]][[/if]]
                    </div>
                </td>
                <td style="width: 20%">
                    [[if supplierName]][[supplierName]][[/if]]
                    [[if shopName]]&nbsp;/&nbsp;[[shopName]][[/if]]
                </td>
                <td class="center" style="width: 5%">[[genderName]]</td>
                <td class="center retailPrice" style="width: 5%">[[retailPrice]]</td>
                <td class="center salesPrice" style="width: 5%">[[salesPrice]]</td>
                <td class="center returnYohoCoin" style="width: 5%">[[productPrice.returnCoin]]</td>
                <td class="center" style="width: 8%">[[statusName]]</td>
                <td style="width: 12%">
                    [[if productPrice.founder]][[productPrice.founder]][[/if]]
                    [[if productPrice.updateTime]]<br>[[productPrice.updateTime]][[/if]]
                </td>
                <td class="center" style="width: 5%"><button type="button" class="btn btn-info btn-sm btn-modify">修改</button></td>
            </tr>

            <tr class="dataForEditor">
                <td colspan="9" style="padding: 0">
                    <table>
                        <tr class="center">
                            <!--td width="50%"><b>反币时间</b></td-->
                            <td width="40%"><b>返回YOHO</b></td>
                            <td width="40%"><b>审核人</b></td>
                            <td width="20%"><b>操作</b></td>
                        </tr>
                        <tr>
                            <!--td>
                                <div class="radio" style="margin-top: 0">
                                    <label><input type="radio" name="returnCoinTime" value="option1" checked>永久</label>
                                </div>
                                <div class="radio" style="margin-bottom: 0">
                                    <label>
                                        <input type="radio" name="returnCoinTime" value="option1" checked>
                                        <form class="form-inline">
                                            <div class="form-group" style="margin-right: 0"><input type="text" class="form-control"></div> ~
                                            <div class="form-group" style="margin-right: 0"><input type="text" class="form-control"></div>
                                        </form>
                                    </label>
                                </div>
                            </td-->
                            <td class="center">
                                <input type="text" class="form-control center editor-yohoCoin" placeholder="YOHO币数量" value="[[productPrice.returnCoin]]" style="width: 100px">
                            </td>
                            <td class="center">
                                <select class="form-control center editor-auditor" tabindex="-1" style="width: 150px">
                                    <option value="">-- 请选择审核人 --</option>
                                    <option value="2965">Tracy</option>
                                    <option value="10235">David Wong</option>
                                </select>
                            </td>
                            <td class="center">
                                <button type="submit" class="btn btn-primary btn-sm btn-save" data-productskn="[[productSkn]]">保存</button>
                            </td>
                        </tr>
                        <tr>
                            <td class="editorTip" colspan="3">* 提示:若返币YOHO币金额&nbsp;&nbsp;<b>大于等于</b>&nbsp;&nbsp;销售价的20%,审核人必须填写,审核通过后才能进入该状态。</td>
                        </tr>
                    </table>
                </td>
            </tr>
        </tbody></table>
    </div>
</script>

</body>
</html>