From c03ee3f08abb3c7ffaed5b1f70ba1c9c4df15543 Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期三, 13 十二月 2023 17:33:35 +0800 Subject: [PATCH] 11.27,9 --- cloud-server-management/src/main/webapp/static/modular/system/operatorUser/operatorUser.js | 134 +++++++++++++++++++++++++++++--------------- 1 files changed, 89 insertions(+), 45 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 16b5c64..058b173 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 @@ -27,32 +27,32 @@ {title: '认证平台', field: 'platform', visible: true, align: 'center', valign: 'middle'}, {title: '认证类型', field: 'type', visible: true, align: 'center', valign: 'middle', formatter:function (data) { - if (data==1){ - return "个人" - }else if (data==2){ - return "企业" - }else{ - return "未认证" - } + if (data==1){ + return "个人" + }else if (data==2){ + return "企业" + }else{ + return "未认证" + } } }, {title: '分账比例', field: 'proportion', visible: true, align: 'center', valign: 'middle'}, {title: '审核状态', field: 'audit', visible: true, align: 'center', valign: 'middle', formatter:function (data) { - return {1:"待审核",2:"审核中",3:"已通过",4:"已拒绝"}[data] + return {0:"未认证",1:"审核中",2:"待联系人确认",3:"待法人确认",4:"审核通过",5:"审核失败",6:"已冻结",7:"已撤回",8:"联系人处理中"}[data] } }, {title: '操作', field: 'audit', visible: true, align: 'center', valign: 'middle', formatter: function (data,row) { var btn = ""; - if(data==1) { + if(data==0) { var str = '<button class="btn btn-outline btn-primary" onclick="TSite.auth('+row.operatorId+')" >去认证</button>' btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="" onfocus="TUser.tooltip()">' + str + '</p>'] - }else if (data==2){ - var str = '<button class="btn btn-outline btn-primary" onclick="TSite.auth('+row.operatorId+')" >详情</button>' - btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="" onfocus="TUser.tooltip()">' + str + '</p>'] - }else if(data==4){ + }else if(data !=4){ + var str = '<button class="btn btn-outline btn-primary" onclick="TSite.auth('+row.operatorId+')" >详情</button>' + btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="" onfocus="TUser.tooltip()">' + str + '</p>'] + } else if(data==4){ var str = '<h3>已绑定</h3>' btn = [str] } @@ -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(); @@ -102,25 +140,25 @@ Feng.error("请选择主体类型"); return; } - if ("" == $("#name").val() || null == $("#name").val()){ + if ("" == $("#name").val() ){ Feng.error("请输入联系人姓名"); return; } - if ("" == $("#phone").val() || null == $("#phone").val()){ + if ("" == $("#phone").val() ){ Feng.error("请输入联系人电话"); return; } - if ("" == $("#number").val() || null == $("#number").val()){ + if ("" == $("#number").val() ){ Feng.error("请输入联系人身份证号"); return; } var platform = $("input[name='platform']:checked").val(); - if ("" == $("#merchantName").val() || null == $("#merchantName").val()){ + if ("" == $("#merchantName").val() ){ Feng.error("请输入营业执照商户名称"); return; } - if ("" == $("#lrName").val() || null == $("#lrName").val()){ + if ("" == $("#lrName").val() ){ Feng.error("请输入法定代表人姓名"); return; } @@ -135,18 +173,18 @@ Feng.error("请输入营业执照生效期间"); return; } - if ("" == $("#licenseRegistration").val() || null == $("#licenseRegistration").val()){ + if ("" == $("#licenseRegistration").val() ){ Feng.error("请输入营业执照注册号"); return; } - if ("" == $("#registerAddress").val() || null == $("#registerAddress").val()){ + if ("" == $("#registerAddress").val() ){ Feng.error("请输入注册地址"); return; } - if ("" == $("#legalPerson").val() || null == $("#legalPerson").val()){ + if ("" == $("#legalPerson").val()){ Feng.error("请输入法人姓名"); return; - }if ("" == $("#legalPhone").val() || null == $("#legalPhone").val()){ + }if ("" == $("#legalPhone").val()){ Feng.error("请输入法人手机号"); return; } @@ -157,44 +195,43 @@ return; } } - if ("" == $("#IDCardTime").val() || null == $("#IDCardTime").val()){ + if ("" == $("#IDCardTime").val()){ Feng.error("请输入法人身份证开始时间"); return; } - if ("" == $("#lIDNumber").val() || null == $("#lIDNumber").val()){ + if ("" == $("#lIDNumber").val()){ Feng.error("请输入法人身份证号"); return; - }if ("" == $("#lEmail").val() || null == $("#lEmail").val()){ + }if ("" == $("#lEmail").val()){ Feng.error("请输入法人邮箱"); return; - }if ("" == $("#lIDAddress").val() || null == $("#lIDAddress").val()){ + }if ("" == $("#lIDAddress").val()){ Feng.error("请输入法人身份证地址"); return; } - if(type=="ENTERPRISE"){ - if ("" == $("#bName").val() || null == $("#bName").val()){ + if(bodyType=="ENTERPRISE"){ + if ("" == $("#bName").val()){ Feng.error("请输入受益人姓名"); return; - }if ("" == $("#bPhone").val() || null == $("#bPhone").val()){ - Feng.error("请输入受益人手机号"); - return; - }if ("" == $("#bAddress").val() || null == $("#bAddress").val()){ + } + + if ("" == $("#bAddress").val()){ Feng.error("请输入受益人身份证地址"); return; } var bIDCardT = document.getElementById("bIDCardT"); if (!bIDCardT.checked){ - if ("" == $("#bEnd").val() || null == $("#bEnd").val()){ + if ("" == $("#bEnd").val()){ Feng.error("请输入受益人身份证结束时间"); return; } } - if ("" == $("#bTime").val() || null == $("#bTime").val()){ + if ("" == $("#bTime").val()){ Feng.error("请输入受益人身份证开始时间"); return; } - if ("" == $("#bIDNumber").val() || null == $("#bIDNumber").val()){ + if ("" == $("#bIDNumber").val()){ Feng.error("请输入受益人身份证号"); return; } @@ -203,9 +240,21 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/operator/auth", function(data){ - Feng.success("操作成功!"); - window.parent.TSite.table.refresh(); - TSite.close(); + if (data==5001){ + Feng.error("未上传营业执照!"); + }else if(data==5002){ + Feng.error("未上传法人身份证正面照!"); + }else if(data==5003){ + Feng.error("未上传法人身份证背面照!"); + }else if(data==5004){ + Feng.error("未上传受益人身份证正面照!"); + }else if(data==5005){ + Feng.error("未上传受益人身份证背面照!"); + }else{ + Feng.success("操作成功!"); + window.parent.TSite.table.refresh(); + TSite.close(); + } },function(data){ Feng.error("操作失败!"); }); @@ -327,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; @@ -341,8 +390,6 @@ TSite.search = function () { var queryData = {}; - queryData['province'] = $("#pCode").val(); - queryData['city'] =$("#cCode").val(); queryData['userName'] =$("#name").val(); queryData['phone'] =$("#phone").val(); queryData['platform'] =$("#platform").val(); @@ -352,8 +399,6 @@ }; TSite.resetSearch = function () { - $("#pCode").val(""); - $("#cCode").val(""); $("#name").val(""); $("#phone").val(""); $("#platform").val(""); @@ -394,7 +439,7 @@ $(function () { - $("#benefit").hide() + var defaultColunms = TSite.initColumn(); var table = new BSTable(TSite.id, "/operatorUser/listAll", defaultColunms); table.setPaginationType("client"); @@ -417,5 +462,4 @@ c5.init(); c6.setUploadBarId("progressBar"); c6.init(); - }); -- Gitblit v1.7.1