From 408b576b8aa155c9f7c8b919be3cd82be52a1da8 Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期二, 25 十一月 2025 08:52:44 +0800
Subject: [PATCH] 1.标准代码更新(2025-11-25)

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

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