From 46de11510807648d990b3ad77354ca556da5893a Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期四, 04 九月 2025 08:53:27 +0800
Subject: [PATCH] 1.库位变更bug

---
 H5/Js/BarCf.js |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/H5/Js/BarCf.js b/H5/Js/BarCf.js
index 9f2065a..bdc9891 100644
--- a/H5/Js/BarCf.js
+++ b/H5/Js/BarCf.js
@@ -115,6 +115,16 @@
                 that.$toast.fail("鎷嗗垎鏁伴噺涓嶈兘涓虹┖锛�");
                 return;
             }
+            //if (that.formData.cfNum > that.formData.sumQuantity) {
+            //    that.$toast.fail("鎷嗗垎鏁伴噺涓嶈兘澶т簬鏉$爜鏁伴噺锛�");
+            //    return;
+            //}
+
+            if (parseFloat(that.formData.cfNum) > parseFloat(that.formData.sumQuantity)) {
+                that.$toast.fail("鎷嗗垎鏁伴噺涓嶈兘澶т簬鏉$爜鏁伴噺锛�");
+                return;
+            }
+
             if (that.formData.barcode.length * 1 <= 0) {
                 that.$toast.fail("鐗╂枡鏉$爜涓嶈兘涓虹┖锛�");
                 return;

--
Gitblit v1.9.3