From cce8b8793ca1466ca1330f3bd62e11ae6551261e Mon Sep 17 00:00:00 2001 From: cpT <1@123> Date: 星期二, 01 七月 2025 13:51:58 +0800 Subject: [PATCH] #改造 --- src/main/webapp/static/wms/js/crnOperate/crnOperate.js | 39 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 39 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..a1bd0db 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) + } + } + }) } // 鍏ュ簱 @@ -77,6 +105,13 @@ }); } +// 浠诲姟瀹屾垚 +function taskCompleteClearCommand() { + http.post(baseUrl+"/crn/operator/taskCompleteClearCommand", getReqParam(), function (res) { + layer.msg(res.msg); + }); +} + // 娓呴櫎鍛戒护 function clearCommand() { http.post(baseUrl+"/crn/operator/clearCommand", getReqParam(), function (res) { @@ -92,6 +127,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