| | |
| | | TCompetition.initColumn = function () { |
| | | return [ |
| | | {field: 'selectItem', checkbox: true}, |
| | | {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle'}, |
| | | {title: '序号', field: 'id', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '所在省', field: 'province', visible: roleType==1?true:false, align: 'center', valign: 'middle'}, |
| | | {title: '所在市', field: 'city', visible: roleType==1?true:false, align: 'center', valign: 'middle'}, |
| | | {title: '消费门店', field: 'storeName', visible: roleType==1?true:false, align: 'center', valign: 'middle'}, |
| | |
| | | {title: '消费时间', field: 'insertTime', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '收入类型', field: 'incomeType', visible: true, align: 'center', valign: 'middle', |
| | | formatter:function (data) { |
| | | return{1:"加入会员",2:"充值",3:"报名课程",4:"报名赛事活动",5:"预约场地"}[data] |
| | | return{1:"加入会员",2:"充值",3:"报名课程",4:"报名赛事活动",5:"预约场地",6:"世界杯"}[data] |
| | | } |
| | | }, |
| | | {title: '状态', field: 'state', visible: true, align: 'center', valign: 'middle', |
| | | formatter:function (data) { |
| | | return{1:"已支付",2:"未支付"}[data] |
| | | return{1:"未支付",2:"已支付"}[data] |
| | | } |
| | | }, |
| | | ]; |
| | |
| | | TCompetition.seItem = selected[0]; |
| | | return true; |
| | | } |
| | | }; |
| | | |
| | | TCompetition.viewSensitiveData = function () { |
| | | if (!this.check()) return; |
| | | if (!this.seItem.appUserId) { Feng.info('该收入记录未关联可查询用户'); return; } |
| | | SensitiveInfo.view('/system/sensitive/app-user/' + this.seItem.appUserId); |
| | | }; |
| | | |
| | | |
| | |
| | | TCompetition.table = table.init(); |
| | | TCompetition.getData(); |
| | | }); |
| | | |