From 7157373c20c4016f6a10c0d6a90852ec00c26f2e Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期日, 15 十二月 2024 01:34:55 +0800
Subject: [PATCH] 新增加功能

---
 ManagementAHTravel/guns-admin/src/main/webapp/static/modular/system/tDriver/yesDriver.js |   64 +++++++++++++++++++++++--------
 1 files changed, 47 insertions(+), 17 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..1af6d57 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
@@ -499,9 +499,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 +511,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 +527,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 +541,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 +565,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