| | |
| | | if (result.code == "0000") { |
| | | inHandleData = result.data; |
| | | renderData(); |
| | | mui.toast(result.msg); |
| | | } else { |
| | | renderData(); |
| | | mui.toast(result.msg); |
| | |
| | | //渲染页面 |
| | | function renderData() { |
| | | var html = ''; |
| | | if(inHandleData){ |
| | | if (inHandleData && inHandleData.length > 0) { |
| | | $.each(inHandleData, function(index, item) { |
| | | html += '<li><div class="con"><div class="top">'; |
| | | html += '<div class="info">车牌号: <b>' + (item.plateNum == null ? "" : item.plateNum) +'</b></div>'; |
| | | html += '<a href="" id = "' + item.id + '" plateNum = "' + item.plateNum + '" depotName = "' + item.depotName + '" storeKeeperName = "' + (item.storeKeeperName == "" || item |
| | | .storeKeeperName == "" ? '--' : item.storeKeeperName) + '" class="link">值仓<span class="mui-icon mui-icon-arrowright"></span></a>'; |
| | | html += '</div><div class="box">'; |
| | | html += '<div class="item"><div class="conbox" style="background-image: url(images/icons/g-i19.png);">'; |
| | | html += '<div class="h3">' + (item.depotName == null ? "" : item.depotName) + '</div>'; |
| | | html += '<div class="bot">目标仓库</div></div></div>'; |
| | | html += '<div class="item"><div class="conbox" style="background-image: url(images/icons/g-i20.png);">'; |
| | | html += '<div class="h3">' + (item.foodVarietyName == null ? "" : item.foodVarietyName) + '</div>'; |
| | | html += '<div class="bot">粮食品种</div></div></div>'; |
| | | html += '<div class="item"><div class="conbox" style="background-image: url(images/icons/g-i21.png);">'; |
| | | html += '<div class="h3">' + (item.foodLevelName == null ? "" : item.foodLevelName) + '</div>'; |
| | | html += '<div class="bot">粮食等级</div></div></div>'; |
| | | html += '</div></div></li>'; |
| | | }) |
| | | } else { |
| | | html += '<li><div class="con"><div style="text-align: center;font-size: 20px;color:#dd524d;padding-top: 18px;">暂无入库待值仓信息</div></div></li>'; |
| | | } |
| | | }else{ |
| | | if (inHandleData && inHandleData.length > 0) { |
| | | $.each(inHandleData, function(index, item) { |
| | | html += '<li><div class="con"><div class="top">'; |
| | | html += '<div class="info">车牌号: <b>' + (item.plateNum == null ? "" : item.plateNum) +'</b></div>'; |
| | | html += '<a href="" id = "' + item.id + '" plateNum = "' + item.plateNum + '" depotName = "' + item.depotName + '" storeKeeperName = "' + (item.storeKeeperName == "" || item |
| | | .storeKeeperName == "" ? '--' : item.storeKeeperName) + '" class="link">值仓<span class="mui-icon mui-icon-arrowright"></span></a>'; |
| | | html += '</div><div class="box">'; |
| | | html += '<div class="item"><div class="conbox" style="background-image: url(images/icons/g-i19.png);">'; |
| | | html += '<div class="h3">' + (item.depotName == null ? "" : item.depotName) + '</div>'; |
| | | html += '<div class="bot">目标仓库</div></div></div>'; |
| | | html += '<div class="item"><div class="conbox" style="background-image: url(images/icons/g-i20.png);">'; |
| | | html += '<div class="h3">' + (item.foodVarietyName == null ? "" : item.foodVarietyName) + '</div>'; |
| | | html += '<div class="bot">粮食品种</div></div></div>'; |
| | | html += '<div class="item"><div class="conbox" style="background-image: url(images/icons/g-i21.png);">'; |
| | | html += '<div class="h3">' + (item.foodLevelName == null ? "" : item.foodLevelName) + '</div>'; |
| | | html += '<div class="bot">粮食等级</div></div></div>'; |
| | | html += '</div></div></li>'; |
| | | }) |
| | | } else { |
| | | html += '<li><div class="con"><div style="text-align: center;font-size: 20px;color:#dd524d;padding-top: 18px;">暂无入库待值仓信息</div></div></li>'; |
| | | } |
| | | $("#handleList").html(html); |
| | |
| | | picker.show(function(SelectedItem) { |
| | | console.log(JSON.stringify(SelectedItem)); |
| | | //现场值仓 |
| | | if(SelectedItem.value == 'photo'){ |
| | | if(SelectedItem[0].value == 'photo'){ |
| | | mui.openWindow({ |
| | | url: "inout-in-handle.html", |
| | | id: "inout-in-handle", |