Merge pull request '结算单编辑功能负数可编辑' (#228) from feature/add_item into release

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/228
master
郑永星 4 years ago
commit 841e875e40

@ -529,7 +529,13 @@
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('结算单中的罚款和税率必须是数字,且不能为空');
dom.val(vdata);
return false;
@ -580,6 +586,7 @@
}
var CHECK = {
number: /^\d+(\.{1}\d+)?$/,
othernumber: /^\-?\d+(\.{1}\d+)?$/,
mobile: /^1[3456789]\d{9}$/,
BankNo: /^([1-9]{1})\d{10,19}$/,
money: /((^[1-9]\d*)|^0)(\.\d{0,2}){0,1}$/

Loading…
Cancel
Save