| | |
| | | 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(); |
| | |
| | | success: function(result) { |
| | | if (result.code == "0000") { |
| | | depotList = result.data; |
| | | console.log(JSON.stringify(depotList)) |
| | | renderDepotList(); |
| | | } else { |
| | | mui.alert(result.msg, '提示', ["确定"], function() {}, "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>'; |