From fc3b62d42600aaf8e70f920b7fa5489857242f08 Mon Sep 17 00:00:00 2001
From: hayu <1604366271@qq.com>
Date: Wed, 26 Nov 2025 18:34:17 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A2=86=E6=96=99=E5=87=BA=E5=BA=93=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../lease/machinesOutStorageBydeviceCode.html | 2 +-
.../www/js/machinesOutStorageBydeviceCode.js | 64 ++++++++++++++++---
2 files changed, 56 insertions(+), 10 deletions(-)
diff --git a/app/src/main/assets/apps/H52D34F00/www/html/lease/machinesOutStorageBydeviceCode.html b/app/src/main/assets/apps/H52D34F00/www/html/lease/machinesOutStorageBydeviceCode.html
index 0b31a53..5b82a90 100644
--- a/app/src/main/assets/apps/H52D34F00/www/html/lease/machinesOutStorageBydeviceCode.html
+++ b/app/src/main/assets/apps/H52D34F00/www/html/lease/machinesOutStorageBydeviceCode.html
@@ -127,7 +127,7 @@
-
+
";
html += "";
html += "";
- $("#machinesInfo").append(html);
+ $("#machinesInfos").append(html);
}
} else {
html = "";
html += ""
html += "请输入设备编码
";
- $("#machinesInfo").append(html);
+ $("#machinesInfos").append(html);
}
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
@@ -207,11 +207,56 @@ function confirmOutTaskList() {
var completedRequests = 0;
var totalRequests = selectedDevices.length;
-
+ var deviceList = [];
selectedDevices.forEach(function(device) {
completedRequests++;
- doOutBydeviceCode(device.deviceCode, device.batchStatus, device.maId,completedRequests,totalRequests);
+ deviceList.push({
+ id:id,
+ taskId: taskId,
+ typeId: typeId,
+ maId: device.maId,
+ deviceCode: device.deviceCode,
+ machineStatus: device.batchStatus,
+ outPersonId:outPersonId,
+ preOutNum:preOutNum,
+ thisOutNum:1
+
+ });
+// doOutBydeviceCode(device.deviceCode, device.batchStatus, device.maId,completedRequests,totalRequests);
});
+ doOutBydeviceCodeNew(deviceList,completedRequests);
+
+}
+
+function doOutBydeviceCodeNew(deviceList,completedRequests) {
+ layer.open({
+ type: 2,
+ content: '加载中'
+ });
+ $.ajax({
+ type: "post",
+ url: bnsUrl + '/backstage/app/out/doOutBydeviceCodeNew',
+ contentType: "application/json",
+ data: JSON.stringify(deviceList),
+ dataType: "json",
+ success: function(data) {
+ layer.closeAll('loading');
+ if(data == "1" || data == 1){
+ refreshData(completedRequests)
+ }
+ else if(data == "-3"){
+ alert("机具编码重复");
+ }
+ else if(data == "2" || data == '2') {
+ alert("已达到出库数量");
+ } else {
+ alert("出库失败");
+ }
+ },
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
+ alert("未连接到服务器,请检查网络!");
+ }
+ });
}
@@ -269,7 +314,8 @@ var alOutNumNew = parseInt(alOutNum) + completedRequests;
function refreshData(completedRequests) {
alert("全部出库成功");
alOutNum = parseInt(alOutNum) + completedRequests;
- sureSerch()
+ sureSerch();
+ showAlOutInfo();
}