From 3ea1ff641e1c680a5a1727fb4034797bfe65d93e Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期三, 18 三月 2026 15:29:17 +0800
Subject: [PATCH] fix: 质量、耗材物流

---
 src/pages/consumablesLogistics/stockManagement/view.vue |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/pages/consumablesLogistics/stockManagement/view.vue b/src/pages/consumablesLogistics/stockManagement/view.vue
index fd68338..d809a93 100644
--- a/src/pages/consumablesLogistics/stockManagement/view.vue
+++ b/src/pages/consumablesLogistics/stockManagement/view.vue
@@ -64,7 +64,7 @@
 const detail = ref(null);
 const loading = ref(true);
 
-function normalizeDetail(raw, type) {
+function normalizeDetail(raw) {
   if (!raw) return null;
   const d = typeof raw === "object" ? raw : {};
   return {
@@ -76,7 +76,7 @@
     lockedQuantity: d.lockedQuantity,
     unLockedQuantity: d.unLockedQuantity ?? (d.qualitity - (d.lockedQuantity || 0)),
     updateTime: d.updateTime,
-    typeLabel: type === "1" ? "涓嶅悎鏍煎簱瀛�" : "鍚堟牸搴撳瓨",
+    typeLabel: "鍚堟牸搴撳瓨",
   };
 }
 
@@ -86,8 +86,7 @@
     try {
       const payload = typeof cached === "string" ? JSON.parse(cached) : cached;
       const item = payload && payload.item != null ? payload.item : payload;
-      const type = payload && payload.type != null ? payload.type : "0";
-      detail.value = normalizeDetail({ ...item, index: 1 }, type);
+      detail.value = normalizeDetail({ ...item, index: 1 });
       uni.removeStorageSync("stockDetailItem");
     } catch (e) {
       uni.removeStorageSync("stockDetailItem");

--
Gitblit v1.9.3