From d9a46d01c5a7a70589a49e5fb5578e5a20b3dc64 Mon Sep 17 00:00:00 2001
From: 44323 <443237572@qq.com>
Date: 星期二, 12 十二月 2023 20:16:04 +0800
Subject: [PATCH] 11.27,9

---
 cloud-server-management/src/main/webapp/static/modular/system/operatorUser/operatorUser.js |   42 ++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 40 insertions(+), 2 deletions(-)

diff --git a/cloud-server-management/src/main/webapp/static/modular/system/operatorUser/operatorUser.js b/cloud-server-management/src/main/webapp/static/modular/system/operatorUser/operatorUser.js
index dba4d34..e45db94 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/operatorUser/operatorUser.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/operatorUser/operatorUser.js
@@ -40,7 +40,7 @@
         {title: '分账比例', field: 'proportion', visible: true, align: 'center', valign: 'middle'},
         {title: '审核状态', field: 'audit', visible: true, align: 'center', valign: 'middle',
             formatter:function (data) {
-                return {0:"未认证",1:"审核中",2:"待联系人确认",3:"待法人确认",5:"审核失败",6:"已冻结",7:"已撤回",8:"联系人处理中"}[data]
+                return {0:"未认证",1:"审核中",2:"待联系人确认",3:"待法人确认",4:"审核通过",5:"审核失败",6:"已冻结",7:"已撤回",8:"联系人处理中"}[data]
             }
         },
         {title: '操作', field: 'audit', visible: true, align: 'center', valign: 'middle',
@@ -93,6 +93,44 @@
         }
     }
 };
+TSite.commit = function(){
+    var alipayProportion  = $("#alipayProportion").val();
+    var wechatProportion  = $("#wechatProportion").val();
+    if($("#alipayNum").val()=='' ){
+        Feng.info("请输入支付宝分账比例")
+        return;
+    }
+    if($("#wechatNum").val()=='' ){
+        Feng.info("请输入微信分账比例")
+        return;
+    }
+    if (Number(alipayProportion)+Number(wechatProportion)!=100){
+        Feng.info("总比例应该是100%,当前比例:"+Number(Number(alipayProportion)+Number(wechatProportion)));
+        return;
+    }
+
+    var ali = $("#alipayProportion").val()
+    var wechat = $("#wechatProportion").val()
+    if(Number(ali)+Number(wechat)!=100){
+        Feng.success("总比例需为100%!");
+        return;
+    }
+    //提交信息
+    var ajax = new $ax(Feng.ctxPath + "/operator/proportion", function(data){
+            Feng.success("设置成功!");
+            window.parent.TSite.table.refresh();
+            TSite.close();
+    },function(data){
+        Feng.error("操作失败!");
+    });
+    ajax.set("operatorIdOne",        $("#id").val()    );
+    ajax.set("alipayProportion",        $("#alipayProportion").val()    );
+    ajax.set("alipayNum",        $("#alipayNum").val()    );
+    ajax.set("wechatProportion",        $("#wechatProportion").val()    );
+    ajax.set("wechatNum",        $("#wechatNum").val()    );
+    ajax.start();
+};
+
 TSite.addSubmit = function(){
 
     var bodyType = $("input[name='bodyType']:checked").val();
@@ -338,7 +376,7 @@
         area: ['100%', '100%'], //宽高
         fix: false, //不固定
         maxmin: true,
-        content: Feng.ctxPath + '/operatorUser/proportion/' + 5
+        content: Feng.ctxPath + '/operatorUser/proportion/' + TSite.seItem.operatorId
     });
     this.layerIndex = index;
 

--
Gitblit v1.7.1