bankTransfer.js 879 Bytes
/**
 * 返佣查询
 */
var bankTransfer = function() {
	
	return {

		search : function() {
			$('#data-grid').datagrid({
				url : '/report/fund/bankTransfer?' + $('#search-form').serialize()
			});
		},
		
		export : function(){
			window.open('/report/fund/exportRebate?' + $('#search-form').serialize());
		},
		
		formatChargeType : function(value, row, index) {
			switch (value) {
			case '01':
				return '快捷';
			case '02': 
				return '网银';
			default:
				return value;
			}
		},
		
		formatTransType : function(value, row, index) {
			switch (value) {
			case '01':
				return '充值';
			case '02': 
				return '提现';
			default:
				return value;
			}
		},
		
		formatBkTransStatus : function(value, row, index) {
			switch (value) {
			case '2':
				return '成功';
			case '3': 
				return '失败';
			default:
				return value;
			}
		}
	};
	
}();