From 6c0d8fb2db64b8982c4162c7527e72841547110b Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期五, 27 十二月 2024 15:28:50 +0800
Subject: [PATCH] 修改推单规则

---
 ManagementAHTravel/guns-admin/src/main/webapp/static/modular/system/tDriver/yesDriver.js |   67 ++++++++++++++++++++++++---------
 1 files changed, 49 insertions(+), 18 deletions(-)

diff --git a/ManagementAHTravel/guns-admin/src/main/webapp/static/modular/system/tDriver/yesDriver.js b/ManagementAHTravel/guns-admin/src/main/webapp/static/modular/system/tDriver/yesDriver.js
index 4b847e2..9654a5e 100644
--- a/ManagementAHTravel/guns-admin/src/main/webapp/static/modular/system/tDriver/yesDriver.js
+++ b/ManagementAHTravel/guns-admin/src/main/webapp/static/modular/system/tDriver/yesDriver.js
@@ -183,7 +183,8 @@
             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>']
                 }
@@ -499,9 +500,9 @@
     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();
         });
@@ -511,10 +512,10 @@
  * 导入合同
  */
 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';
@@ -527,12 +528,12 @@
         }
     }
 }
-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('');
@@ -541,18 +542,18 @@
             }
             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();
 });
 
@@ -565,3 +566,33 @@
     };
     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;
+    }
+}
\ No newline at end of file

--
Gitblit v1.7.1