| | |
| | | {title: '联系电话', field: 'appUserPhone', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '会员卡名称', field: 'vipName', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '时长', field: 'vipTime', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '支付流水号', field: 'orderNumber', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '金额', field: 'amountValue', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '下单时间', field: 'insertTime', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '是否退费', field: 'isRefund', visible: true, align: 'center', valign: 'middle', |
| | |
| | | return {0:"否",1:"是"}[data] |
| | | } |
| | | }, |
| | | {title: '权限展示', field: 'menuShow', visible: false, align: 'center', valign: 'middle', |
| | | formatter:function (data) { |
| | | return {2:"否",1:"是"}[data] |
| | | } |
| | | }, |
| | | {title: '备注', field: 'remark', visible: true, align: 'center', valign: 'middle'}, |
| | | { title: '操作', field: 'remark', visible: true, align: 'center', valign: 'middle', |
| | | formatter: function (data,row) { |
| | | // row.redCode存储的设备二维码连接 |
| | | var temp = row.isRefund; |
| | | var menuShow = row.menuShow; |
| | | var id = row.id; |
| | | // 已退费不展示按钮 |
| | | if (temp==0){ |
| | | if (temp==0 && menuShow==1){ |
| | | var str = '<button class="btn btn-outline btn-primary" onclick="TCompetition.refund(\'' + id + '\')" >'+'会员退费'+'</button>' |
| | | btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="" onfocus="TUser.tooltip()">' + str + '</p>'] |
| | | return btn; |
| | | }else if (temp==0 && menuShow==2){ |
| | | return "-"; |
| | | }else{ |
| | | return '已退费'; |
| | | } |
| | | } |
| | | }, |
| | | ]; |
| | | }; |
| | | |
| | | TCompetition.check = function () { |
| | | var selected = $('#' + this.id).bootstrapTable('getSelections'); |
| | | if (selected.length === 0) { Feng.info('请先选中表格中的某一记录!'); return false; } |
| | | TCompetition.seItem = selected[0]; |
| | | return true; |
| | | }; |
| | | |
| | | TCompetition.viewSensitiveData = function () { |
| | | if (this.check()) SensitiveInfo.view('/system/sensitive/app-user/' + this.seItem.appUserId); |
| | | }; |
| | | |
| | | TCompetition.export = function (){ |
| | |
| | | var index = layer.load(1,{ |
| | | type: 1 |
| | | , title: '会员退费' |
| | | , area: ['800px', '600px'] |
| | | , area: ['600px', '550px'] |
| | | , offset: 'auto' //具体配置参考:http://www.layui.com/doc/modules/layer.html#offset |
| | | , id: 'layerDemo' //防止重复弹出cge |
| | | , content: '<div class="form-horizontal" style="padding-top: 20px;">' + |
| | |
| | | '<div class="col-sm-9">'+ |
| | | '<input style="width: 300px" class="form-control" id="vipEndTime" name="vipEndTime" type="date">'+ |
| | | '</div>'+ |
| | | |
| | | ' </div>' + |
| | | ' </div>' + |
| | | ' <div class="form-group refusal" >\n' + |
| | | ' <label class="col-sm-3 control-label">备注:</label>\n' + |
| | | ' <div class="col-sm-9">\n' + |
| | | ' <textarea id="refusal" class="form-control" style="width: 100%;height: 200px"></textarea>'+ |
| | | ' <textarea id="refusal" class="form-control" style="width: 100%;height: 120px"></textarea>'+ |
| | | ' </div>\n' + |
| | | ' </div>\n' + |
| | | ' </div>' + |
| | | ' </div>' + |
| | | '</div>' |
| | | , btn: ['保存', '关闭'] |
| | | , btnAlign: 'c' //按钮居中 |
| | |
| | | window.location.reload(); |
| | | layer.closeAll(); |
| | | }, |
| | | error: function(xhr, status, error) { |
| | | var errorMessage = xhr.responseText ? xhr.responseText : "退费失败!"; |
| | | Feng.error("退费失败!"); |
| | | error: function(response) { |
| | | Feng.error("退费失败!原因:"+response.msg); |
| | | } |
| | | }); |
| | | } |
| | |
| | | }else { |
| | | Feng.confirm("Apakah Anda pasti akan mengekspor informasi kendaraan?", operation); |
| | | } |
| | | } |
| | | } |