var CCIndex=0;
var JWIndex=0;
for(var storeIndex = 0;storeIndex < tempStoreDetailList.length;storeIndex++){
if(tempStoreDetailList[storeIndex]!=null){
if(tempStoreDetailList[storeIndex].type=="1"){
if(CCIndex > 0){
$('#addTr').click();
}
//多条件判断直接动态赋值
$("input[name=warehouseNo][type='1']:eq("+CCIndex+")").val(tempStoreDetailList[storeIndex].warehouseNo);
//多条件判断直接动态赋值
$("input[name=warehouseNum][type='1']:eq("+CCIndex+")").val(tempStoreDetailList[storeIndex].warehouseNum);
CCIndex++;
//多条件判断直接动态取值
console.log($("input[name=warehouseNum][type='1']:eq("+CCIndex+")").val());
}
if(tempStoreDetailList[storeIndex].type=="2"){
if(JWIndex > 0){
$('#JWaddTr').click();
}
$("input[name=warehouseNo][type='2']:eq("+JWIndex+")").val(tempStoreDetailList[storeIndex].warehouseNo);
$("input[name=warehouseNum][type='2']:eq("+JWIndex+")").val(tempStoreDetailList[storeIndex].warehouseNum);
JWIndex++;
}
}
}