| | |
| | | data.data.deptId = selectDeptId; |
| | | getInHandleList(); |
| | | } |
| | | |
| | | window.addEventListener('refresh1', function(e){//执行刷新 |
| | | getInHandleList(); |
| | | }); |
| | | //查询出库记录 |
| | | function getInHandleList() { |
| | | outHandleData = null; |
| | |
| | | success: function(result) { |
| | | if (result.code == "0000") { |
| | | outHandleData = result.data; |
| | | console.log("if", JSON.stringify(result)) |
| | | // console.log("if", JSON.stringify(result)) |
| | | renderData(); |
| | | } else { |
| | | renderData(); |
| | |
| | | mui.alert("系统繁忙,请重试!", "提示", ["确定"], function() {}, "div") |
| | | } |
| | | }) |
| | | // outHandleData = [{ |
| | | // "id": "44", |
| | | // "plateNum": "97", |
| | | // "deHandle": "ut", |
| | | // "depotId": "16", |
| | | // "depotName": "青张列做总", |
| | | // "foodVariety": "magna pariatur laboris sunt dolor", |
| | | // "foodVarietyName": "提清除", |
| | | // "foodLevel": "fugiat", |
| | | // "foodLevelName": "应发热四民是始", |
| | | // "storeKeeperName": "" |
| | | // }, |
| | | // { |
| | | // "id": "62", |
| | | // "plateNum": "71", |
| | | // "deHandle": "dolore ut non", |
| | | // "depotId": "79", |
| | | // "depotName": "增象定立样", |
| | | // "foodVariety": "Lorem est", |
| | | // "foodVarietyName": "市条群求被团两", |
| | | // "foodLevel": "ex labore", |
| | | // "foodLevelName": "持在写称情并", |
| | | // "storeKeeperName": "2" |
| | | // }, |
| | | // { |
| | | // "id": "96", |
| | | // "plateNum": "61", |
| | | // "deHandle": "nulla magna ut proident cillum", |
| | | // "depotId": "42", |
| | | // "depotName": "条全他", |
| | | // "foodVariety": "aliquip", |
| | | // "foodVarietyName": "连开阶动际干", |
| | | // "foodLevel": "in id sunt", |
| | | // "foodLevelName": "没置定使文", |
| | | // "storeKeeperName": "3" |
| | | // }, |
| | | // { |
| | | // "id": "61", |
| | | // "plateNum": "17", |
| | | // "deHandle": "commodo", |
| | | // "depotId": "80", |
| | | // "depotName": "展观快火全领", |
| | | // "foodVariety": "voluptate eu Lorem", |
| | | // "foodVarietyName": "他边派斯重离", |
| | | // "foodLevel": "dolor", |
| | | // "foodLevelName": "装第上", |
| | | // "storeKeeperName": "4" |
| | | // } |
| | | // ] |
| | | renderData(); |
| | | } |
| | | |
| | | //渲染页面 |
| | | function renderData() { |
| | | var html = ''; |
| | | if (outHandleData && outHandleData.length > 0) { |
| | | $.each(outHandleData, function(index, item) { |
| | | // console.log(JSON.stringify(item.depotName)) |
| | | 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 += '<a href="" id = "' + item.id + '" plateNum = "' + item.plateNum + '" depotName = "' + (item.depotName == null ? "" : item.depotName) + '" storeKeeperName = "' + |
| | | (item.storeKeeperName == null || 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>'; |