123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <title>收费查询</title>
- <!-- Tell the browser to be responsive to screen width -->
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <!-- Font Awesome -->
- <link rel="stylesheet" href="${contextPath}/dist/js/layui/css/layui.css">
- <link rel="stylesheet" href="${contextPath}/dist/css/admin.css" media="all">
- </head>
- <body class="layui-layout-body">
- <div class="layui-layout layui-layout-admin">
- <!-- Navbar -->
- <#include "../body/top.html">
- <!-- /.navbar -->
- <!-- Main Sidebar Container -->
- <#include "../body/left.html">
- <!-- Content Wrapper. Contains page content -->
- <div class="layui-body">
- <!-- 内容主体区域 -->
- <div class="layui-card">
- <form id="searchForm" action="${contextPath}/count/tolist">
- <input type="hidden" id="currentPage" name="currentPage" value="${currentPage}"/>
- <div class="layui-form layui-card-header layuiadmin-card-header-auto">
- <div class="layui-form-item">
- <div class="layui-inline">
- <label class="layui-form-label">就诊卡号</label>
- <div class="layui-input-inline">
- <input type="text" name="id_number" value="${id_number}" placeholder="请输入" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-inline">
- <label class="layui-form-label">姓名</label>
- <div class="layui-input-inline">
- <input type="text" name="user_name" value="${user_name}" placeholder="请输入" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-inline">
- <label class="layui-form-label">支付类型</label>
- <div class="layui-input-inline">
- <select id="pay_type" name="pay_type" lay-filter="aihao">
- <option value="">请选择</option>
- <option value="0" <#if pay_type! == '0'>selected="selected"</#if>>微信</option>
- <option value="1" <#if pay_type! == '1'>selected="selected"</#if>>支付宝</option>
- </select>
- </div>
- </div>
- <div class="layui-inline">
- <button id="search_btn" class="layui-btn layuiadmin-btn-list" lay-submit lay-filter="LAY-app-contlist-search">
- <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
- </button>
- </div>
- </div>
- </div>
- </form>
- </div>
- <table class="layui-table">
- <tr>
- <th style="background-color: #009688; color: #fff;">订单号</th>
- <th style="background-color: #009688; color: #fff;">就诊卡</th>
- <th style="background-color: #009688; color: #fff;">姓名</th>
- <th style="background-color: #009688; color: #fff;">金额</th>
- <th style="background-color: #009688; color: #fff;">内容</th>
- <th style="background-color: #009688; color: #fff;">方式</th>
- <th style="background-color: #009688; color: #fff;">交易时间</th>
- <th style="background-color: #009688; color: #fff;">状态</th>
- <th style="background-color: #009688; color: #fff;">操作人</th>
- <th style="background-color: #009688; color: #fff;">已退费</th>
- <th style="background-color: #009688; color: #fff;">退费</th>
- <th style="background-color: #009688; color: #fff;">操作</th>
- </tr>
- <#list dataList as data>
- <tr>
- <td>${data.out_trade_no!}</td>
- <td>${data.id_number!}</td>
- <td>${data.user_name!}</td>
- <td>${data.total_fee!}分</td>
- <td>${data.memo!}</td>
- <td>
- <#if data.pay_type! == '0'>微信
- <#elseif data.pay_type! == '1'>支付宝
- </#if>
- </td>
- <td>${data.update_time!}</td>
- <td>
- <#if data.status! == '0'>未支付
- <#elseif data.status! == '1'>已支付
- <#elseif data.status! == '2'>部分退费
- <#elseif data.status! == '3'>已退费
- </#if>
- </td>
- <td>${data.user_name!}</td>
- <td>${data.tf_money!}</td>
- <td><input type="text" id="tf_money${data.id}" placeholder="请输入" autocomplete="off" class="layui-input" style="width:80px;"></td>
- <td style="width:80px;">
- <#if userAuth("${userModel.login_id}","ROLE_TF")>
- <a class="layui-btn layui-btn-normal layui-btn-xs tf" alt="${data.id}" title="退费">退费</a>
- </#if>
- <a class="layui-btn layui-btn-normal layui-btn-xs jc" alt="${data.out_trade_no}" title="检测">检测</a>
- </td>
- </tr>
- </#list>
- </table>
- <div id="page"></div>
- </div>
- <form id="tfForm" action="${contextPath}/count/refund">
- <input type="hidden" id="id" name="id" value=""/>
- <input type="hidden" id="tf_money" name="tf_money" value=""/>
- </form>
- <!-- /.content-wrapper -->
- <#include "../body/footer.html">
- </div>
- <!-- ./wrapper -->
- <script type="text/javascript" src="${contextPath}/dist/js/jquery-1.11.1.min.js"></script>
- <script src="${contextPath}/dist/js/layui/layui.js"></script>
- <script>
- //JavaScript代码区域
- layui.use(['element', 'laypage', 'layer', 'form'], function(){
- var element = layui.element;
- var form = layui.form;
- var laypage = layui.laypage
- ,layer = layui.layer;
- // 分页功能
- laypage.render({
- elem: 'page'
- ,count: ${totalRow}
- ,limits: [6,12,18,24,30]
- ,limit:6
- ,curr:${currentPage}
- ,layout: ['count', 'prev', 'page', 'next','limit', 'refresh', 'skip']
- ,jump: function(obj,first){
- console.log(first);
- if(!first){
- $("#currentPage").val(obj.curr);
- $("#searchForm").submit();
- }
- }
- });
- });
- $(document).ready( function() {
- // now we check to see which browser is being used
- $(".tf").click(function(){
- $("#id").val($(this).attr('alt'));
- $("#tf_money").val($("#tf_money"+$(this).attr('alt')).val());
- $("#tfForm").submit();
- });
-
- $(".jc").click(function(){
- $.get("${contextPath}/count/test_order?",{ order_no:$(this).attr('alt') },function(data,status){
- alert(data.data);
- });
- });
- });
- </script>
- </body>
- </html>
|