From f41b4b2fdca909f2fb0cec4242f5abd9882ee770 Mon Sep 17 00:00:00 2001 From: YYC <1833023622@qq.com> Date: 星期四, 11 五月 2023 18:22:04 +0800 Subject: [PATCH] 入库值仓,电子巡更 --- igds-app/js/admin/inout-out-handle-list.js | 152 ++++++++++++++++++-------------------------------- 1 files changed, 55 insertions(+), 97 deletions(-) diff --git a/igds-app/js/admin/inout-out-handle-list.js b/igds-app/js/admin/inout-out-handle-list.js index 24b8a53..d62554d 100644 --- a/igds-app/js/admin/inout-out-handle-list.js +++ b/igds-app/js/admin/inout-out-handle-list.js @@ -29,13 +29,15 @@ var selectDeptId = JSON.parse(localStorage.getItem('selectDeptId')); url = user.url + "/api-phone/v35/gateway"; data.tokenAuth = user.tokenAuth; + data1.tokenAuth = user.tokenAuth; data.data.deptId = selectDeptId; - getOutHandleList(); + getInHandleList(); } //鏌ヨ鍑哄簱璁板綍 -function getOutHandleList() { +function getInHandleList() { outHandleData = null; + //鏌ヨ鐨勮溅鐗屽彿 data.data.plateNum = mui("#plateNum")[0].value; //璇锋眰 mui.ajax(url, { @@ -59,55 +61,55 @@ 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" - // } - // ] + 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(); } @@ -121,8 +123,7 @@ 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>'; + .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>'; @@ -193,49 +194,6 @@ }) } }) - - // var btnArray = [{ - // title:"鐜板満鍊间粨" - // },{ - // title:"杩滅▼鍊间粨" - // }]; - // plus.nativeUI.actionSheet({ - // title:"璇烽�夋嫨", - // cancel:"鍙栨秷", - // buttons:btnArray - // },function(e) { - // var index = e.index; - // switch (index) { - // case 1: - // mui.openWindow({ - // url: "inout-out-handle.html", - // id: "inout-out-handle", - // extras: { - // data: { - // serialNumber: id, - // plateNum: plateNum, - // depotName: depotName, - // storeKeeperName: storeKeeperName - // } - // } - // }) - // break; - // case 2: - // mui.openWindow({ - // url: "inout-out-handle.html", - // id: "inout-out-handle", - // extras: { - // data: { - // serialNumber: id, - // plateNum: plateNum, - // depotName: depotName, - // storeKeeperName: storeKeeperName - // } - // } - // }) - // break; - // } - // }); }); /*---------------NFC璇诲崱鍔熻兘-------------------*/ @@ -350,7 +308,7 @@ waiting.close(); //璇诲彇id鎴愬姛锛岃祴鍊煎苟鍙戦�佽姹傛煡璇� - data.data.intelCard = id; + data1.data.intelCard = id; getInoutDetail(); } } else { -- Gitblit v1.9.3