From 528d0da19f5fc3f5c78af3c99a1f2cfa914a27dd Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期四, 01 二月 2024 17:00:08 +0800 Subject: [PATCH] # --- zy-asrs-wms/src/main/webapp/static/js/order/order.js | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/zy-asrs-wms/src/main/webapp/static/js/order/order.js b/zy-asrs-wms/src/main/webapp/static/js/order/order.js index 682849f..65e68c7 100644 --- a/zy-asrs-wms/src/main/webapp/static/js/order/order.js +++ b/zy-asrs-wms/src/main/webapp/static/js/order/order.js @@ -244,8 +244,12 @@ condition: decodeURI(docName) }, success: function (res) { - $("#docType").val(res.data[0].id) - $(document.getElementById("docType$")).val(res.data[0].value) + if (res.code == 200) { + if (res.data.length > 0) { + $("#docType").val(res.data[0].id); + $(document.getElementById("docType$")).val(res.data[0].value) + } + } } }) -- Gitblit v1.9.1