From 18c69a897526867550f3778671f28f23e0fca005 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期四, 30 五月 2024 09:36:32 +0800
Subject: [PATCH] #订单页面

---
 zy-asrs-wms/src/main/webapp/static/js/order/order.js |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 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..8717868 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
@@ -163,8 +163,8 @@
                             {field: 'maktx', title: '鍟嗗搧鍚嶇О', width: 160},
                             {field: 'batch', title: '搴忓垪鐮�'},
                             {field: 'anfme', title: '鏁伴噺'},
-                            {field: 'qty', title: '浣滀笟鏁伴噺', style: 'font-weight: bold'},
-                            // {field: 'unit', title: '鍗曚綅'},
+                            {field: 'workQty', title: '浣滀笟鏁伴噺', style: 'font-weight: bold'},
+                            {field: 'qty', title: '瀹屾垚鏁伴噺'},
                             // {
                             //     field: 'createTime$', title: '鍒涘缓鏃堕棿', sort: true, templet: function (d) {
                             //         return util.toDateString(d.createTime);
@@ -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