function checkInput() {
  var $tr = $("#tb_confirmed .scrollContent").find("tr");
  var flag = 0;
  var antiqueTypes = [];
  
  $tr.each( function( index, item ){
      var type = $(item).find("input[type='text']").val();
          
      antiqueTypes.push(type);
  }); 
  $.each(antiqueTypes, function(index, item){
    
       if( item.length == 0 ){
        flag += 1;  
        $("order-tips").find("span").text("请输入商品物流单号");
     }
  });
  return flag;
}
// 调用此方法, 可以在别的方法中调用它
if( checkInput > 0 ){
  $("order-tips").find("span").text("请输入商品物流单号");
   return false;
} else {
   ajax() // 请求
}