From 81e08be6338ca4ab2f42bb757a47678797364bac Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期二, 17 三月 2026 15:25:25 +0800
Subject: [PATCH] fix: 物流logo替换
---
src/pages/consumablesLogistics/stockManagement/subtract.vue | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/pages/consumablesLogistics/stockManagement/subtract.vue b/src/pages/consumablesLogistics/stockManagement/subtract.vue
index 5e688bf..81fea14 100644
--- a/src/pages/consumablesLogistics/stockManagement/subtract.vue
+++ b/src/pages/consumablesLogistics/stockManagement/subtract.vue
@@ -164,6 +164,18 @@
uni.showToast({ title: `璇疯緭鍏� 1~${stockRecord.unLockedQuantity} 涔嬮棿鐨勬暟閲廯, icon: "none" });
return;
}
+ const net = Number(form.netWeight);
+ if (!isNaN(net) && net > 0) {
+ const max = Number(stockRecord.unLockedQuantity) || 0;
+ if (max > 0 && net > max) {
+ uni.showToast({ title: `鍑�閲嶄笉鑳藉ぇ浜庡彲鐢ㄥ簱瀛� ${max}`, icon: "none" });
+ return;
+ }
+ if (net > outNum) {
+ uni.showToast({ title: `鍑�閲嶄笉鑳藉ぇ浜庡嚭搴撴暟閲� ${outNum}`, icon: "none" });
+ return;
+ }
+ }
const api = isQualified.value ? subtractConsumablesIn : subtractConsumablesUnInventory;
api({
id: stockRecord.id,
--
Gitblit v1.9.3