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 ++++++++------
 1 files changed, 8 insertions(+), 6 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', {

--
Gitblit v1.9.3