復(fù)制代碼 代碼如下:
function checkwo(){
var vales = "";
$("#vales").val(vales);
var flag = false;
var bo = true;
$("#data_table").find("tr").each(function(){
$(this).find("td input").each(function(){
if($(this).attr("name")=="rid")
{
vales+=$(this).val()+"&";
}
if($(this).attr("name")=="qty")
{
var qty = $(this).val();
if(qty<0)
{
alert("實(shí)盤數(shù)量不能為負(fù)數(shù)");
bo = false;
return;
}
if(qty>0)
{
flag = true;
}
vales+=qty+",";
}
});
});
if(bo==false)
{
return;
}
$("#vales").val(vales);
if(flag==false)
{
alert("請輸入實(shí)盤數(shù)量");
return;
}
document.all.sys_submit.click();
}
新聞熱點(diǎn)
疑難解答
圖片精選