From e753326d0ba069b4d9b538f31f6bd0d711b45f47 Mon Sep 17 00:00:00 2001
From: kyy <3283105747@qq.com>
Date: 星期三, 15 十月 2025 16:10:58 +0800
Subject: [PATCH] 周转箱数量比较修改

---
 H5/Js/Zzxdb.js |   14 ++++++++------
 H5/Zzxdb.aspx  |    2 +-
 2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/H5/Js/Zzxdb.js b/H5/Js/Zzxdb.js
index 1441f6f..aeb8c9a 100644
--- a/H5/Js/Zzxdb.js
+++ b/H5/Js/Zzxdb.js
@@ -169,15 +169,17 @@
             var that = this;
             that.isLoading = true;
 
-            if (that.dbNum <= 0) {
+            const dbNum = Number(that.dbNum);
+            const kcNum = Number(that.kcNum);
+            if (dbNum <= 0) {
                 that.$toast.fail("璋冩嫧鏁伴噺涓嶈兘涓�0");
-                that.isLoading = false;  // 娣诲姞杩欒
-                return;  // 娣诲姞杩斿洖
+                that.isLoading = false;
+                return;
             }
-            if (that.dbNum > that.kcNum) {
+            if (dbNum > kcNum) {
                 that.$toast.fail("璋冩嫧鏁伴噺涓嶈兘澶т簬鍗虫椂搴撳瓨");
-                that.isLoading = false;  // 娣诲姞杩欒
-                return;  // 娣诲姞杩斿洖
+                that.isLoading = false;
+                return;
             }
 
             that.AxiosHttp("post", 'Zzxdb/saveDbsq', {
diff --git a/H5/Zzxdb.aspx b/H5/Zzxdb.aspx
index dced747..6a403d2 100644
--- a/H5/Zzxdb.aspx
+++ b/H5/Zzxdb.aspx
@@ -209,5 +209,5 @@
 </asp:Content>
 
 <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
- <script src="Js/Zzxdb.js?<%=11117 %>"></script>
+ <script src="Js/Zzxdb.js?<%=11118 %>"></script>
 </asp:Content>
\ No newline at end of file

--
Gitblit v1.9.3