增加其他单据的非空提示框

This commit is contained in:
季圣华 2017-06-29 23:37:25 +08:00
parent 7e4cb15eb5
commit 8b1dc817f2
4 changed files with 17 additions and 2 deletions

View File

@ -375,6 +375,10 @@
return; return;
else else
{ {
if(!$("#Type").val()){
$.messager.alert('提示','请选择类型!','warning');
return;
}
$.ajax({ $.ajax({
type:"post", type:"post",
url: url, url: url,

View File

@ -363,7 +363,10 @@
{ {
if(checkInOutItemName()) if(checkInOutItemName())
return; return;
if(!$("#type").val()){
$.messager.alert('提示','请选择类型!','warning');
return;
}
$('#inOutItemFM').form('submit',{ $('#inOutItemFM').form('submit',{
url: url, url: url,
onSubmit: function() onSubmit: function()

View File

@ -417,7 +417,11 @@
{ {
if(checkSupplierName()) if(checkSupplierName())
return; return;
if(!$("#type").val()){
$.messager.alert('提示','请选择类型!','warning');
return;
}
var reg = /^([0-9])+$/; var reg = /^([0-9])+$/;
var phonenum = $.trim($("#phonenum").val()); var phonenum = $.trim($("#phonenum").val());
if(phonenum.length>0 && !reg.test(phonenum)) if(phonenum.length>0 && !reg.test(phonenum))

View File

@ -390,6 +390,10 @@
return; return;
else else
{ {
if(!$("#Type").val()){
$.messager.alert('提示','请选择类型!','warning');
return;
}
$.ajax({ $.ajax({
type:"post", type:"post",
url: url, url: url,