| | |
| | | <div class="layui-col-md10"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">登录账户:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" placeholder="登录账户" name="accountLogin" 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" placeholder="名称" name="name" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">账号:</label> |
| | | <label class="layui-form-label">手机号码:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" placeholder="账号" name="phone" autocomplete="off" class="layui-input"> |
| | | <input type="text" placeholder="手机号码" name="phone" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">会员类型:</label> |
| | | <label class="layui-form-label">状态:</label> |
| | | <div class="layui-input-inline"> |
| | | <select name="status"> |
| | | <option value="">请选择</option> |
| | |
| | | </div> |
| | | <script type="text/html" id="charge-flow-list-option"> |
| | | {{# if(d.status === 1) { }} |
| | | <!-- <button class="layui-btn layui-btn-normal layui-btn-xs" type="button" shiro:hasPermission="chargeAgree:update" lay-event="chargeAgree">同意</button>--> |
| | | <button class="layui-btn layui-btn-normal layui-btn-xs" type="button" shiro:hasPermission="chargeAgree:update" lay-event="chargeAgree">同意</button> |
| | | <button class="layui-btn layui-btn-normal layui-btn-xs" type="button" shiro:hasPermission="searchInfo:view" lay-event="searchInfo">查询结果</button> |
| | | <button class="layui-btn layui-btn-normal layui-btn-xs" type="button" shiro:hasPermission="accountInfo:view" lay-event="accountInfo">账户余额</button> |
| | | <button class="layui-btn layui-btn-normal layui-btn-xs" type="button" shiro:hasPermission="chargeDisagree:update" lay-event="chargeDisagree" >拒绝</button> |
| | | <button class="layui-btn layui-btn-normal layui-btn-xs" type="button" shiro:hasPermission="paymentInfo:update" lay-event="paymentInfo">查看收款方式</button> |
| | | {{# } else { }} |
| | | <button class="layui-btn layui-btn-normal layui-btn-xs" type="button" shiro:hasPermission="paymentInfo:update" lay-event="paymentInfo">查看收款方式</button> |
| | | <button class="layui-btn layui-btn-normal layui-btn-xs" type="button" shiro:hasPermission="searchInfo:view" lay-event="searchInfo">查询结果</button> |
| | | {{# } }} |
| | | </script> |
| | | <!-- 表格操作栏 end --> |
| | |
| | | table.on('tool(moneyFlowChargeTable)', function (obj) { |
| | | var data = obj.data, |
| | | layEvent = obj.event; |
| | | // if (layEvent === 'chargeAgree') { |
| | | // febs.modal.confirm('同意', '同意提现?', function () { |
| | | // chargeAgree(data.id); |
| | | // }); |
| | | // } |
| | | if (layEvent === 'chargeAgree') { |
| | | febs.modal.confirm('同意', '同意提现?', function () { |
| | | chargeAgree(data.id); |
| | | febs.modal.open( '提现方式', 'modules/mallMember/chargeFlowListType/' + data.id, { |
| | | btn: ['提交', '取消'], |
| | | yes: function (index, layero) { |
| | | $('#charge-update').find('#submit').trigger('click'); |
| | | }, |
| | | btn2: function () { |
| | | layer.closeAll(); |
| | | } |
| | | }); |
| | | } |
| | | if (layEvent === 'chargeDisagree') { |
| | | febs.modal.confirm('拒绝', '拒绝提现?', function () { |
| | | chargeDisagree(data.id); |
| | | }); |
| | | } |
| | | if (layEvent === 'searchInfo') { |
| | | febs.modal.confirm('查询结果', '查看银行转账结果?', function () { |
| | | searchInfo(data.id); |
| | | }); |
| | | } |
| | | if (layEvent === 'accountInfo') { |
| | | febs.modal.confirm('账户余额', '查看银行账户余额是否大于此次转账金额?', function () { |
| | | accountInfo(data.id); |
| | | }); |
| | | } |
| | | if (layEvent === 'paymentInfo') { |
| | |
| | | }); |
| | | } |
| | | }); |
| | | function searchInfo(id) { |
| | | febs.get(ctx + 'admin/mallMember/searchInfo/' + id, null, function (data) { |
| | | febs.alert.success(data.message); |
| | | // febs.alert.success('操作成功'); |
| | | // window.location.reload(); |
| | | $query.click(); |
| | | }); |
| | | } |
| | | function accountInfo(id) { |
| | | febs.get(ctx + 'admin/mallMember/accountInfo/' + id, null, function (data) { |
| | | febs.alert.success(data.message); |
| | | // febs.alert.success('操作成功'); |
| | | // window.location.reload(); |
| | | $query.click(); |
| | | }); |
| | | } |
| | | function chargeAgree(id) { |
| | | febs.get(ctx + 'admin/mallMember/chargeAgree/' + id, null, function () { |
| | | febs.alert.success('操作成功'); |
| | |
| | | totalRow: true ,// 开启合计行 |
| | | cols: [[ |
| | | {field: 'withdrawNo', title: '编号', minWidth: 100,align:'left', totalRowText: '合计:'}, |
| | | {field: 'accountLogin', title: '登录账户', minWidth: 100,align:'left'}, |
| | | {field: 'name', title: '名称', minWidth: 100,align:'left'}, |
| | | {field: 'phone', title: '账号', minWidth: 150,align:'left'}, |
| | | {field: 'bindPhone', title: '手机号', minWidth: 150,align:'left'}, |
| | | {field: 'phone', title: '手机号码', minWidth: 150,align:'left'}, |
| | | // {field: 'bindPhone', title: '手机号', minWidth: 150,align:'left'}, |
| | | {field: 'amount', title: '金额', minWidth: 150,align:'left',totalRow: '{{= parseInt(d.amount) }}'}, |
| | | {field: 'amountFee', title: '手续费', minWidth: 150,align:'left',totalRow: '{{= parseInt(d.amountFee) }}'}, |
| | | {field: 'remark', title: '错误信息', minWidth: 150,align:'left'}, |
| | | {field: 'remark', title: '类型', minWidth: 150,align:'left'}, |
| | | {field: 'status', title: '状态', |
| | | templet: function (d) { |
| | | if (d.status === 1) { |
| | | return '<span style="color:green;">提现中</span>' |
| | | } else if (d.status === 2) { |
| | | return '<span style="color:red;">成功</span>' |
| | | return '<span style="color:blue;">成功</span>' |
| | | } else if (d.status === 3) { |
| | | return '<span style="color:red;">拒绝</span>' |
| | | } else{ |
| | |
| | | } |
| | | }, minWidth: 80,align:'center'}, |
| | | {field: 'createdTime', title: '创建时间', minWidth: 180,align:'center'}, |
| | | {title: '操作', minWidth: 250 ,toolbar: '#charge-flow-list-option'} |
| | | {title: '操作', minWidth: 400 ,toolbar: '#charge-flow-list-option'} |
| | | ]] |
| | | }); |
| | | } |
| | |
| | | function getQueryParams() { |
| | | return { |
| | | name: $searchForm.find('input[name="name"]').val().trim(), |
| | | accountLogin: $searchForm.find('input[name="accountLogin"]').val().trim(), |
| | | phone: $searchForm.find('input[name="phone"]').val().trim(), |
| | | status: $searchForm.find("select[name='status']").val(), |
| | | }; |