| | |
| | | {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', |
| | |
| | | } |
| | | } |
| | | }; |
| | | 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(); |
| | |
| | | area: ['100%', '100%'], //宽高 |
| | | fix: false, //不固定 |
| | | maxmin: true, |
| | | content: Feng.ctxPath + '/operatorUser/proportion/' + 5 |
| | | content: Feng.ctxPath + '/operatorUser/proportion/' + TSite.seItem.operatorId |
| | | }); |
| | | this.layerIndex = index; |
| | | |