From 60530101d70fd5887ae1152962882919fceab502 Mon Sep 17 00:00:00 2001
From: 张诺 <zhang_12370@163.com>
Date: 星期四, 16 四月 2026 16:44:47 +0800
Subject: [PATCH] feat(库存管理): 重构库存分类并新增原材料库存页面

---
 src/pages/inventoryManagement/stockManagement/Unqualified.vue |   60 +++++++++++++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 47 insertions(+), 13 deletions(-)

diff --git a/src/pages/inventoryManagement/stockManagement/Unqualified.vue b/src/pages/inventoryManagement/stockManagement/Unqualified.vue
index 48dafc4..5b7205b 100644
--- a/src/pages/inventoryManagement/stockManagement/Unqualified.vue
+++ b/src/pages/inventoryManagement/stockManagement/Unqualified.vue
@@ -27,7 +27,7 @@
             <text class="item-id">{{ item.productName }}</text>
           </view>
           <view class="item-right">
-            <text class="item-tag tag-type" style="background-color: #fde2e2; color: #f56c6c;">涓嶅悎鏍煎簱瀛�</text>
+           <text class="item-tag tag-type">杈呮潗搴撳瓨</text>  
           </view>
         </view>
         
@@ -35,24 +35,28 @@
 
         <view class="item-details">
           <view class="detail-row">
-            <text class="detail-label">瑙勬牸鍨嬪彿</text>
-            <text class="detail-value">{{ item.model }}</text>
+            <text class="detail-label">瀛樿揣/瑙勬牸</text>
+            <text class="detail-value">{{item.productName || "鏃�" }} / {{ item.model || "鏃�"  }}</text>
           </view>
           <view class="detail-row">
-            <text class="detail-label">搴撳瓨鏁伴噺</text>
-            <text class="detail-value">{{ item.qualitity }} {{ item.unit }}</text>
+            <text class="detail-label">涓绘暟閲�/涓诲崟浣�</text>
+            <text class="detail-value">{{ item.qualitity || "鏃�"  }} / {{ item.unit || "鏃�"  }}</text>
           </view>
           <view class="detail-row">
-            <text class="detail-label">閿佸畾/鍐荤粨</text>
-            <text class="detail-value">{{ item.lockedQuantity }} {{ item.unit }}</text>
+            <text class="detail-label">杈呮暟閲�/杈呭崟浣�</text>
+            <text class="detail-value">{{ item.subQualitity || "鏃�"  }} / {{ item.subUnit || "鏃�"  }}</text>
           </view>
           <view class="detail-row">
-            <text class="detail-label">鍙敤搴撳瓨</text>
-            <text class="detail-value" style="color: #f56c6c; font-weight: bold;">{{ item.unLockedQuantity }} {{ item.unit }}</text>
+            <text class="detail-label">浠撳簱缂栫爜/浠撳簱鍚嶇О</text>
+            <text class="detail-value">{{ item.warehouseCode || "鏃�"  }} / {{ item.warehouseName || "鏃�"  }}</text>
+          </view>
+          <view class="detail-row">
+            <text class="detail-label">瀛樿揣缂栫爜/搴撳瓨棰勮</text>
+            <text class="detail-value">{{ item.productCode || "鏃�" }} / {{ item.warnNum || "鏃�" }}</text>
           </view>
           <view class="detail-row">
             <text class="detail-label">鏇存柊鏃堕棿</text>
-            <text class="detail-value">{{ item.updateTime }}</text>
+            <text class="detail-value">{{ item.updateTime || "鏃�"  }}</text>
           </view>
         </view>
       </view>
@@ -66,14 +70,14 @@
 
 <script setup>
 import { ref, reactive, onMounted } from 'vue';
-import { getStockUninventoryListPage } from "@/api/inventoryManagement/stockUninventory.js";
+import { getStockInventoryListPage } from "@/api/inventoryManagement/stockInventory.js";
 
 const tableData = ref([]);
 const loading = ref(false);
 const loadStatus = ref('loadmore');
 const page = reactive({ current: 1, size: 10 });
 const total = ref(0);
-const searchForm = reactive({ productName: '' });
+const searchForm = reactive({ productName: '', rootName: '杈呮潗' });
 
 const handleQuery = () => {
   page.current = 1;
@@ -85,7 +89,7 @@
   if (loading.value) return;
   loading.value = true;
   loadStatus.value = 'loading';
-  getStockUninventoryListPage({ ...searchForm, ...page, type: 'unqualified' }).then(res => {
+  getStockInventoryListPage({ ...searchForm, ...page }).then(res => {
     loading.value = false;
     const records = res.data.records || [];
     tableData.value = page.current === 1 ? records : [...tableData.value, ...records];
@@ -131,4 +135,34 @@
 .no-data {
   padding-top: 100px;
 }
+
+.tag-type {
+  background-color: #e8f5e9;
+  color: #4caf50;
+  padding: 2px 8px;
+  border-radius: 4px;
+  font-size: 12px;
+}
+
+.item-actions {
+  display: flex;
+  justify-content: flex-end;
+  gap: 10px;
+  padding: 5px 0;
+}
+
+.fab-button {
+  position: fixed;
+  right: 20px;
+  bottom: 80px;
+  width: 50px;
+  height: 50px;
+  background-color: #2979ff;
+  border-radius: 25px;
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
+  z-index: 100;
+}
 </style>

--
Gitblit v1.9.3