From 646135b9c54d6ccf5d47af30bf208bdfe5005017 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期二, 09 十二月 2025 10:31:44 +0800
Subject: [PATCH] fix: 二维码内容简化,只传一个id。根据id查询详细信息。
---
src/pages/production/twist/components/StatisticsModal.vue | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/pages/production/twist/components/StatisticsModal.vue b/src/pages/production/twist/components/StatisticsModal.vue
index 4c1f988..f8ea690 100644
--- a/src/pages/production/twist/components/StatisticsModal.vue
+++ b/src/pages/production/twist/components/StatisticsModal.vue
@@ -47,7 +47,7 @@
</view>
<view class="layer-details">
<text class="detail-text">閲嶉噺锛歿{ layer.weight.toFixed(2) }} kg</text>
- <text class="detail-text">闀垮害锛歿{ layer.length.toFixed(2) }} M</text>
+ <text class="detail-text"> 闀垮害锛歿{ layer.length.toFixed(2) }} M</text>
</view>
</view>
</view>
@@ -111,7 +111,7 @@
node.strandedWireDish.forEach((item: any) => {
stats[layerName].count++;
stats[layerName].weight += parseFloat(item.actuallyWeight || 0);
- stats[layerName].length += parseFloat(item.amount || 0);
+ stats[layerName].length += parseFloat(item.actuallyLength || 0);
});
}
});
@@ -145,9 +145,12 @@
<style lang="scss" scoped>
.statistics-modal {
width: 320px;
+ max-height: 70vh;
background: #fff;
border-radius: 12px;
overflow: hidden;
+ display: flex;
+ flex-direction: column;
}
.modal-header {
@@ -156,6 +159,7 @@
align-items: center;
padding: 16px 20px;
border-bottom: 1px solid #f0f0f0;
+ flex-shrink: 0;
.title {
font-size: 18px;
@@ -166,6 +170,9 @@
.modal-content {
padding: 20px;
+ overflow-y: auto;
+ flex: 1;
+ min-height: 0;
}
.summary-section {
@@ -240,6 +247,7 @@
gap: 12px;
padding: 16px 20px;
border-top: 1px solid #f0f0f0;
+ flex-shrink: 0;
.cancel-btn {
flex: 1;
--
Gitblit v1.9.3