优化供应商和商品的单据填写框
This commit is contained in:
@@ -275,4 +275,16 @@
|
||||
}
|
||||
}
|
||||
return newArr;
|
||||
}
|
||||
|
||||
/**
|
||||
* 验证单据
|
||||
* @param id
|
||||
*/
|
||||
function validateForm(id) {
|
||||
if(!$('#'+ id).form('validate')) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -457,6 +457,9 @@
|
||||
});
|
||||
//保存信息
|
||||
$("#saveSupplier").off("click").on("click", function () {
|
||||
if(validateForm("supplierFM")) {
|
||||
return;
|
||||
}
|
||||
if (checkSupplierName()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user