| | |
| | | formatter: function (value, row) { |
| | | var btn = ""; |
| | | if(row.balance != '' && row.balance != null) { |
| | | btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="' + (row.laveActivityMoney + row.laveBusinessMoney) + '" onfocus="TUser.tooltip()">' + (row.laveActivityMoney + row.laveBusinessMoney) + '</p>'] |
| | | var balance = ((null != row.laveActivityMoney ? row.laveActivityMoney : 0) + (null != row.laveBusinessMoney ? row.laveBusinessMoney : 0)) |
| | | btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="' + balance + '" onfocus="TUser.tooltip()">' + balance + '</p>'] |
| | | }else{ |
| | | btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="0" onfocus="TUser.tooltip()">0</p>'] |
| | | } |
| | |
| | | window.location.href = Feng.ctxPath + "/tDriver/uploadDriverModel"; |
| | | } |
| | | |
| | | var agreement = function(){ |
| | | this.init = function(){ |
| | | //模拟上传excel |
| | | var agreement = function(){ |
| | | this.init = function(){ |
| | | //模拟上传excel |
| | | $("#uploadEventBtn").unbind("click").bind("click",function(){ |
| | | $("#uploadEventFile").click(); |
| | | }); |
| | |
| | | * 导入合同 |
| | | */ |
| | | YesDriver.exportDriver = function () { |
| | | var uploadEventFile = $("#uploadEventFile").val(); |
| | | if(uploadEventFile == ''){ |
| | | var uploadEventFile = $("#uploadEventFile").val(); |
| | | if(uploadEventFile == ''){ |
| | | Feng.info("请选择Excel,再上传"); |
| | | }else if(uploadEventFile.lastIndexOf(".xls")<0){//可判断以.xls和.xlsx结尾的excel |
| | | }else if(uploadEventFile.lastIndexOf(".xls")<0){//可判断以.xls和.xlsx结尾的excel |
| | | Feng.info("只能上传Excel文件"); |
| | | }else{ |
| | | var url = Feng.ctxPath + '/tDriver/exportDriver'; |
| | |
| | | } |
| | | } |
| | | } |
| | | YesDriver.sendAjaxRequest = function(url,type,data){ |
| | | YesDriver.sendAjaxRequest = function(url,type,data){ |
| | | $.ajax({ |
| | | url : url, |
| | | type : type, |
| | | data : data, |
| | | success : function(result) { |
| | | url : url, |
| | | type : type, |
| | | data : data, |
| | | success : function(result) { |
| | | if(result.code==500) { |
| | | Feng.info(result.message); |
| | | $('input[name=file]').val(''); |
| | |
| | | } |
| | | YesDriver.table.refresh(); |
| | | }, |
| | | error : function() { |
| | | error : function() { |
| | | Feng.error("excel上传失败!"); |
| | | }, |
| | | cache : false, |
| | | contentType : false, |
| | | processData : false |
| | | cache : false, |
| | | contentType : false, |
| | | processData : false |
| | | }); |
| | | }; |
| | | |
| | | var agreement; |
| | | var agreement; |
| | | $(function(){ |
| | | agreement = new agreement(); |
| | | agreement = new agreement(); |
| | | agreement.init(); |
| | | }); |
| | | |
| | |
| | | }; |
| | | Feng.confirm("是否确认导出司机信息?", operation); |
| | | } |
| | | |
| | | |
| | | YesDriver.driverCommissionSetting = function (){ |
| | | if (this.check()) { |
| | | var index = layer.open({ |
| | | type: 2, |
| | | title: '司机佣金设置', |
| | | area: ['100%', '100%'], //宽高 |
| | | fix: false, //不固定 |
| | | maxmin: true, |
| | | content: Feng.ctxPath + '/tDriver/driverCommissionSetting?id=' + YesDriver.seItem.id |
| | | }); |
| | | this.layerIndex = index; |
| | | } |
| | | } |
| | | |
| | | |
| | | YesDriver.freezingAmountOfWithdrawalSet = function (){ |
| | | if (this.check()) { |
| | | var index = layer.open({ |
| | | type: 2, |
| | | title: '提现冻结额度设置', |
| | | area: ['100%', '100%'], //宽高 |
| | | fix: false, //不固定 |
| | | maxmin: true, |
| | | content: Feng.ctxPath + '/tDriver/freezingAmountOfWithdrawalSet?id=' + YesDriver.seItem.id |
| | | }); |
| | | this.layerIndex = index; |
| | | } |
| | | } |