From b25e11bb1e76255b4c05e10022e1ca9be5c7cc99 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期四, 19 三月 2026 16:53:56 +0800
Subject: [PATCH] 库存报表加日期选择
---
src/pages/consumablesLogistics/stockManagement/view.vue | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/src/pages/consumablesLogistics/stockManagement/view.vue b/src/pages/consumablesLogistics/stockManagement/view.vue
index fd68338..43d6cac 100644
--- a/src/pages/consumablesLogistics/stockManagement/view.vue
+++ b/src/pages/consumablesLogistics/stockManagement/view.vue
@@ -12,8 +12,8 @@
</view>
<view class="section-body">
<view class="detail-row">
- <text class="label">搴忓彿</text>
- <text class="value">{{ detail.index ?? '-' }}</text>
+ <text class="label">浜у搧绫诲瀷</text>
+ <text class="value">{{ detail.parentName ?? '-' }}</text>
</view>
<view class="detail-row">
<text class="label">浜у搧澶х被</text>
@@ -47,6 +47,10 @@
<text class="label">鏈�杩戞洿鏂版椂闂�</text>
<text class="value">{{ detail.updateTime || '-' }}</text>
</view>
+ <view class="detail-row">
+ <text class="label">澶囨敞</text>
+ <text class="value">{{ detail.remark || '-' }}</text>
+ </view>
</view>
</view>
</view>
@@ -64,11 +68,12 @@
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 {
index: d.index ?? 1,
+ parentName: d.parentName,
productName: d.productName,
model: d.model,
unit: d.unit,
@@ -76,7 +81,8 @@
lockedQuantity: d.lockedQuantity,
unLockedQuantity: d.unLockedQuantity ?? (d.qualitity - (d.lockedQuantity || 0)),
updateTime: d.updateTime,
- typeLabel: type === "1" ? "涓嶅悎鏍煎簱瀛�" : "鍚堟牸搴撳瓨",
+ typeLabel: "鍚堟牸搴撳瓨",
+ remark: d.remark,
};
}
@@ -86,8 +92,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