| | |
| | | validators: { |
| | | notEmpty: { |
| | | message: '姓名不能为空' |
| | | }, |
| | | regexp: { |
| | | regexp: /^[\u4E00-\u9FA5A-Za-z\s]+$/, |
| | | message: '不能输入特殊字符和数字' |
| | | } |
| | | } |
| | | }, |
| | |
| | | validators: { |
| | | notEmpty: { |
| | | message: '手机号不能为空' |
| | | }, |
| | | regexp: { |
| | | regexp: /^1[3-9]\d{9}$/, |
| | | message: '请输入合法手机号' |
| | | } |
| | | } |
| | | }, |
| | |
| | | validators: { |
| | | notEmpty: { |
| | | message: '紧急联系人姓名不能为空' |
| | | }, |
| | | regexp: { |
| | | regexp: /^[\u4E00-\u9FA5A-Za-z\s]+$/, |
| | | message: '不能输入特殊字符和数字' |
| | | } |
| | | } |
| | | }, |
| | |
| | | validators: { |
| | | notEmpty: { |
| | | message: '紧急联系人电话不能为空' |
| | | }, |
| | | regexp: { |
| | | regexp: /^1[3-9]\d{9}$/, |
| | | message: '请输入合法手机号' |
| | | } |
| | | } |
| | | }, |
| | |
| | | validators: { |
| | | notEmpty: { |
| | | message: '身份证号码不能为空' |
| | | }, |
| | | regexp: { |
| | | regexp: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/, |
| | | message: '请输入合法身份证号码' |
| | | } |
| | | } |
| | | }, |
| | |
| | | .set('approvalTime') |
| | | .set('serverStatus') |
| | | .set('integral') |
| | | .set('firstCertificateTime') |
| | | .set('status') |
| | | .set('area') |
| | | .set('areaId') |
| | |
| | | if(data.code == 500){ |
| | | Feng.error("添加失败!" + data.message + "!"); |
| | | return false; |
| | | }else { |
| | | Feng.success("添加成功!"); |
| | | window.parent.TDriver.table.refresh(); |
| | | TDriverInfoDlg.close(); |
| | | } |
| | | Feng.success("添加成功!"); |
| | | window.parent.TDriver.table.refresh(); |
| | | TDriverInfoDlg.close(); |
| | | },function(data){ |
| | | Feng.error("添加失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | |
| | | if(data.code == 500){ |
| | | Feng.error("修改失败!" + data.message + "!"); |
| | | return false; |
| | | }else { |
| | | Feng.success("修改成功!"); |
| | | window.parent.TDriver.table.refresh(); |
| | | TDriverInfoDlg.close(); |
| | | } |
| | | Feng.success("修改成功!"); |
| | | window.parent.TDriver.table.refresh(); |
| | | TDriverInfoDlg.close(); |
| | | },function(data){ |
| | | Feng.error("修改失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | |
| | | ajax.start(); |
| | | } |
| | | |
| | | function search() { |
| | | var ajax = new $ax(Feng.ctxPath + "/tDriver/querySummaryData", function(data){ |
| | | $('#balance').text('钱包余额:¥' + data.balance); |
| | | $('#cumulativeOrderCount').text(data.cumulativeOrderCount); |
| | | $('#inviterDriverCount').text(data.inviterDriverCount); |
| | | $('#inviterCommission').text(data.inviterCommission); |
| | | $('#effectiveOrderCount').text(data.effectiveOrderCount); |
| | | $('#inviterUserCount').text(data.inviterUserCount); |
| | | $('#commission').text(data.commission); |
| | | $('#cumulativeIncome').text(data.cumulativeIncome); |
| | | $('#cancelOrderCount').text(data.cancelOrderCount); |
| | | $('#onlineTime').text(data.onlineTime); |
| | | },function(data){ |
| | | Feng.error("查询失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set('id', $('#driverId').val()); |
| | | ajax.set('time', $('#time').val()) |
| | | ajax.start(); |
| | | } |
| | | |
| | | $(function() { |
| | | Feng.initValidator("driverInfoForm", TDriverInfoDlg.validateFields); |
| | | }); |