字段判空顺序修改

parent 59c53115
......@@ -75,18 +75,19 @@ function comboboxXszl(){
function submit(flag,type){
if(type == 0) {
//标识号类型(线索种类)
var xszl = $('#xszl').combobox('getText');
if (!xszl) {
$.messager.alert({title: '提示', msg: '标识号类型不能为空'});
return;
}
//标识号
var xsvalue = $("#xsvalue").val();
if (!xsvalue) {
$.messager.alert({title: '提示', msg: '标识号不能为空'});
return;
}
//线索种类
var xszl = $('#xszl').combobox('getText');
if (!xszl) {
$.messager.alert({title: '提示', msg: '线索种类不能为空'});
return;
}
//发现时间
var fxsj = $("#fxsj").val();
if (fxsj == null || fxsj == '') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment