From 8d5c70aef9cbacbcc412d73c4b730e21f94e6514 Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期一, 30 六月 2025 09:04:10 +0800
Subject: [PATCH] 1

---
 src/main/webapp/static/wms/js/crnOperate/crnOperate.js |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/src/main/webapp/static/wms/js/crnOperate/crnOperate.js b/src/main/webapp/static/wms/js/crnOperate/crnOperate.js
index f931f02..1bf52c0 100644
--- a/src/main/webapp/static/wms/js/crnOperate/crnOperate.js
+++ b/src/main/webapp/static/wms/js/crnOperate/crnOperate.js
@@ -40,6 +40,34 @@
             }
         }
     })
+
+    $.ajax({
+        url: baseUrl + "/crn/table/crn/" + crnNo + "/msg",
+        headers: {'token': localStorage.getItem('token')},
+        method: 'POST',
+        traditional:true,
+        success: function (res) {
+            if (res.code == 200) {
+                layer.msg('杩炴帴鎴愬姛')
+                console.log(res)
+                let data = res.data
+                $("#__sourceStaNo").val(data.sourceStaNo)
+                $("#__staNo").val(data.staNo)
+                $("#__sourceLocNo").val(data.sourceLocNo)
+                $("#__locNo").val(data.locNo)
+                $("#xspeed").val(data.xspeed)
+                $("#yspeed").val(data.yspeed)
+                $("#zspeed").val(data.zspeed)
+                $("#xdistance").val(data.xdistance)
+                $("#ydistance").val(data.ydistance)
+                $("#xduration").val(data.xduration)
+                $("#yduration").val(data.yduration)
+                $("#__workNo").val(data.workNo)
+            }else {
+                layer.msg(res.msg)
+            }
+        }
+    })
 }
 
 // 鍏ュ簱
@@ -92,6 +120,10 @@
 }
 
 function getReqParam() {
+    if (crnNo == null || crnNo == "") {
+        layer.msg('璇烽�夋嫨鍫嗗灈鏈�');
+        return false;
+    }
     var sourceStaNo = $('#sourceStaNo').val();
     var sourceRow = $('#sourceRow').val();
     var sourceBay = $('#sourceBay').val();

--
Gitblit v1.9.1