| | |
| | | heightList = result.data; |
| | | renderHeight(); |
| | | } else { |
| | | heightList = '' |
| | | renderHeight(); |
| | | mui.toast(result.msg); |
| | | console.log(JSON.stringify(result)) |
| | |
| | | if (heightList && heightList.length > 0) { |
| | | console.log(JSON.stringify(heightList)) |
| | | $.each(heightList, function(index, item) { |
| | | html += '<li><div class="con myfancy"><div class="tit">库区名称: <span>'+item.deptName+'</span></div><div class="txt">'; |
| | | html += '<div class="box"><div class="group c"><div class="desc">'+item.depotData.name+'</div><div class="ort">仓房名称</div></div></div>'; |
| | | html += '<div class="box"><div class="group c1"><div class="desc">'+item.depotData.foodVarietyName+'</div><div class="ort">粮食品种</div></div></div>'; |
| | | html += '<li><div class="con myfancy"><div class="tit">库区名称: <span>'+(item.deptName == null?"--":item.deptName)+'</span></div><div class="txt">'; |
| | | html += '<div class="box"><div class="group c"><div class="desc">'+(item.depotData.name == null?"--":item.depotData.name)+'</div><div class="ort">仓房名称</div></div></div>'; |
| | | html += '<div class="box"><div class="group c1"><div class="desc">'+(item.depotData.foodVarietyName == null?"--":item.depotData.foodVarietyName)+'</div><div class="ort">粮食品种</div></div></div>'; |
| | | html += '<div class="box"><div class="group level-1"><div class="desc">'+item.height+' 米</div><div class="ort">高度</div></div></div></div>'; |
| | | html += '<div class="tit coation">计算储量: <span>'+item.weight+' KG</span></div>'; |
| | | html += '<div class="time">检测时间: <span>'+item.receiveDate+'</span></div></div></li>'; |
| | | html += '<div class="tit coation">计算储量: <span>'+(item.weight == null?"--":item.weight)+' KG</span></div>'; |
| | | html += '<div class="time">检测时间: <span>'+(item.receiveDate == null?"--":item.receiveDate)+'</span></div></div></li>'; |
| | | |
| | | }) |
| | | } else { |