| | |
| | | <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="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 --> |
| | |
| | | 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') { |
| | | febs.modal.open( '收款信息', 'modules/mallMember/paymentInfo/' + data.id, { |
| | | maxmin: true, |
| | | }); |
| | | } |
| | | }); |
| | | 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('操作成功'); |
| | |
| | | } |
| | | }, 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'} |
| | | ]] |
| | | }); |
| | | } |