From 3840a854c56e77b3fa65270117084c5282dd78f3 Mon Sep 17 00:00:00 2001
From: cdk <2441919651@qq.com>
Date: 星期三, 19 十一月 2025 16:47:19 +0800
Subject: [PATCH] 到货单收货修改判断逻辑

---
 H5/Dhdsh.aspx  |    2 +-
 H5/Js/Dhdsh.js |    8 +++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/H5/Dhdsh.aspx b/H5/Dhdsh.aspx
index 0aaa39f..e2e5c54 100644
--- a/H5/Dhdsh.aspx
+++ b/H5/Dhdsh.aspx
@@ -188,5 +188,5 @@
 </asp:Content>
 
 <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
-    <script src="Js/Dhdsh.js?<%=1111111111 %>"></script>
+    <script src="Js/Dhdsh.js?<%=111111111 %>"></script>
 </asp:Content>
\ No newline at end of file
diff --git a/H5/Js/Dhdsh.js b/H5/Js/Dhdsh.js
index aa9d5df..62dd4ab 100644
--- a/H5/Js/Dhdsh.js
+++ b/H5/Js/Dhdsh.js
@@ -47,7 +47,13 @@
                     if (json.status == 0) {
 
                         that.ItemList = json.data.tbBillList;
-                        that.dhdGuid = json.data.tbBillList[0].ddhid;
+                        for (let i = 0; i < json.data.tbBillList.length; i++) {
+                            if (json.data.tbBillList[i].ddhid) {
+                                that.dhdGuid = json.data.tbBillList[i].ddhid;
+                                foundValidDdhid = true;
+                                break;
+                            }
+                        }
                         that.BarList = json.data.tbMesItems;
                         that.$refs.Bar.focus();
                     }

--
Gitblit v1.9.3