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/Qualified.vue | 50 ++++++++++++++++++++++++++++++++++++--------------
1 files changed, 36 insertions(+), 14 deletions(-)
diff --git a/src/pages/inventoryManagement/stockManagement/Qualified.vue b/src/pages/inventoryManagement/stockManagement/Qualified.vue
index 12b9060..dc2a06c 100644
--- a/src/pages/inventoryManagement/stockManagement/Qualified.vue
+++ b/src/pages/inventoryManagement/stockManagement/Qualified.vue
@@ -27,7 +27,7 @@
<text class="item-id">{{ item.productName }}</text>
</view>
<view class="item-right">
- <text class="item-tag tag-type">鍚堟牸搴撳瓨</text>
+ <text class="item-tag tag-type">鎴愬搧搴撳瓨</text>
</view>
</view>
@@ -35,28 +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: #2979ff; 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.warnNum }}</text>
+ <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>
@@ -77,7 +77,7 @@
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;
@@ -89,7 +89,7 @@
if (loading.value) return;
loading.value = true;
loadStatus.value = 'loading';
- getStockInventoryListPage({ ...searchForm, ...page, type: 'qualified' }).then(res => {
+ getStockInventoryListPage({ ...searchForm, ...page }).then(res => {
loading.value = false;
const records = res.data.records || [];
tableData.value = page.current === 1 ? records : [...tableData.value, ...records];
@@ -148,4 +148,26 @@
.no-data {
padding-top: 100px;
}
+
+.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