| | |
| | | function init() { |
| | | var user = JSON.parse(localStorage.getItem('user')); |
| | | var selectDeptId = JSON.parse(localStorage.getItem('selectDeptId')); |
| | | url = user.url + "/api-phone/v35/gateway"; |
| | | url = user.url + "/api/phone/v35/gateway"; |
| | | data.tokenAuth = user.tokenAuth; |
| | | data.data.deptId = selectDeptId; |
| | | getData(); |
| | |
| | | if(depotList && depotList.length > 0){ |
| | | $.each(depotList, function(index, item) { |
| | | html += '<li><div class="con">'; |
| | | html += '<div class="tit">仓库名称:<span>' + (item.name == null?"--":item.name) + '</span></div>'; |
| | | html += '<div class="tit">仓库名称:<span>' + (item.depotName == null?"--":item.depotName) + '</span></div>'; |
| | | html += '<div class="txt">'; |
| | | html += '<div class="box"><div class="group type"><div class="desc">'; |
| | | html += (item.depotTypeName == null?"--":item.depotTypeName) + '</div><div class="ort">仓库类型</div></div></div>'; |
| | | html += '<div class="box"><div class="group state"><div class="desc">'; |
| | | html += (item.depotStatusName == null?"--":item.depotStatusName) + '</div><div class="ort">仓库状态</div></div></div>'; |
| | | html += '<div class="box"><div class="group weight"><div class="desc">'; |
| | | html += (item.storageReal == null?"--":item.storageReal) + '<span class="w"> KG</span></div><div class="ort">实际储量</div></div></div></div>'; |
| | | html += (item.storageReal == null?"--":item.storageReal) + '</div><div class="ort">实际储量(KG)</div></div></div></div>'; |
| | | html += '<div class="edit"><div class="sel"><div class="name">粮食品种</div>'; |
| | | html += '<div class="cont">' + (item.foodVarietyName == null?"--":item.foodVarietyName) + '</div></div>'; |
| | | html += '<div class="peo"><div class="name">保管员</div>'; |
| | |
| | | html += '<div class="box"><div class="group state"><div class="desc">'; |
| | | html += '--</div><div class="ort">仓库状态</div></div></div>'; |
| | | html += '<div class="box"><div class="group weight"><div class="desc">'; |
| | | html += '--<span class="w"> KG</span></div><div class="ort">实际储量</div></div></div></div>'; |
| | | html += '--</div><div class="ort">实际储量(KG)</div></div></div></div>'; |
| | | html += '<div class="edit"><div class="sel"><div class="name">粮食品种</div>'; |
| | | html += '<div class="cont">--</div></div>'; |
| | | html += '<div class="peo"><div class="name">保管员</div>'; |