| | |
| | | disagreeRefund(data.id); |
| | | }); |
| | | } |
| | | if (layEvent === 'refundConfirm') { |
| | | febs.modal.confirm('退款确认', '确认已退款?', function () { |
| | | refundConfirm(data.id); |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | function agreeRefund(id) { |
| | |
| | | |
| | | function disagreeRefund(id) { |
| | | febs.get(ctx + 'admin/order/disagreeRefund/' + id, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | }); |
| | | } |
| | | |
| | | function refundConfirm(id) { |
| | | febs.get(ctx + 'admin/order/refundConfirm/' + id, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | }); |
| | |
| | | return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="agree" shiro:hasPermission="user:update">同意</button>' |
| | | +'<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="disagree" shiro:hasPermission="user:update">拒绝</button>' |
| | | +'<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="refunding" shiro:hasPermission="user:update">退款进度</button>' |
| | | }else if(d.status === 4){ |
| | | return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="refunding" shiro:hasPermission="user:update">退款进度</button>' |
| | | +'<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="refundConfirm" shiro:hasPermission="user:update">退款确认</button>' |
| | | }else{ |
| | | return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="refunding" shiro:hasPermission="user:update">退款进度</button>' |
| | | } |