|
|
@ -529,7 +529,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
var type = $(this).attr("name");
|
|
|
|
var type = $(this).attr("name");
|
|
|
|
|
|
|
|
|
|
|
|
if(!CHECK.number.test(val)){
|
|
|
|
if(!CHECK.number.test(val)&&type!='other_amount'&&type!="sum_money"){
|
|
|
|
|
|
|
|
layer.msg('结算单中的罚款和税率必须是数字,且不能为空');
|
|
|
|
|
|
|
|
dom.val(vdata);
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!CHECK.othernumber.test(val)&&(type=='other_amount'||type=="sum_money")){
|
|
|
|
layer.msg('结算单中的罚款和税率必须是数字,且不能为空');
|
|
|
|
layer.msg('结算单中的罚款和税率必须是数字,且不能为空');
|
|
|
|
dom.val(vdata);
|
|
|
|
dom.val(vdata);
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
@ -580,6 +586,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var CHECK = {
|
|
|
|
var CHECK = {
|
|
|
|
number: /^\d+(\.{1}\d+)?$/,
|
|
|
|
number: /^\d+(\.{1}\d+)?$/,
|
|
|
|
|
|
|
|
othernumber: /^\-?\d+(\.{1}\d+)?$/,
|
|
|
|
mobile: /^1[3456789]\d{9}$/,
|
|
|
|
mobile: /^1[3456789]\d{9}$/,
|
|
|
|
BankNo: /^([1-9]{1})\d{10,19}$/,
|
|
|
|
BankNo: /^([1-9]{1})\d{10,19}$/,
|
|
|
|
money: /((^[1-9]\d*)|^0)(\.\d{0,2}){0,1}$/
|
|
|
|
money: /((^[1-9]\d*)|^0)(\.\d{0,2}){0,1}$/
|
|
|
|