From 9279a9aa47b462510408a0648a6ccb8b79ec5cb6 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期二, 17 三月 2026 15:18:52 +0800
Subject: [PATCH] fix: 仓储物流展示除耗材外的数据,耗材物料展示耗材的数据。两边菜单数据需要区分开来。
---
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