From 95d0aa46ecc5655e17e4071afe7c519e0ddb6f94 Mon Sep 17 00:00:00 2001
From: 张诺 <zhang_12370@163.com>
Date: 星期五, 24 四月 2026 19:02:48 +0800
Subject: [PATCH] fix(生产报表): 为显示字段添加空值回退处理并移除冗余标题
---
src/pages/productionManagement/productionReport/index.vue | 19 +++++++------------
1 files changed, 7 insertions(+), 12 deletions(-)
diff --git a/src/pages/productionManagement/productionReport/index.vue b/src/pages/productionManagement/productionReport/index.vue
index 9ad4115..e8b3967 100644
--- a/src/pages/productionManagement/productionReport/index.vue
+++ b/src/pages/productionManagement/productionReport/index.vue
@@ -36,10 +36,10 @@
<view class="document-icon">
<up-icon name="file-text" size="16" color="#ffffff"></up-icon>
</view>
- <text class="item-id">{{ item.workOrderNo }}</text>
+ <text class="item-id">{{ item.workOrderNo || '鏃�' }}</text>
</view>
<view class="item-right">
- <text class="item-tag tag-type">{{ item.workOrderType }}</text>
+ <text class="item-tag tag-type">{{ item.workOrderType || '鏃�' }}</text>
</view>
</view>
@@ -48,23 +48,23 @@
<view class="item-details">
<view class="detail-row">
<text class="detail-label">浜у搧鍚嶇О</text>
- <text class="detail-value">{{ item.productName }}</text>
+ <text class="detail-value">{{ item.productName || '鏃�' }}</text>
</view>
<view class="detail-row">
<text class="detail-label">瑙勬牸鍨嬪彿</text>
- <text class="detail-value">{{ item.model }}</text>
+ <text class="detail-value">{{ item.model || '鏃�' }}</text>
</view>
<view class="detail-row">
<text class="detail-label">鏈哄彴鍚嶇О</text>
- <text class="detail-value">{{ item.deviceName }}</text>
+ <text class="detail-value">{{ item.deviceName || '鏃�' }}</text>
</view>
<view class="detail-row">
<text class="detail-label">宸ュ簭鍚嶇О / 璁¢噺鍗曚綅</text>
- <text class="detail-value">{{ item.processName }} / {{ item.unit }}</text>
+ <text class="detail-value">{{ item.processName || '鏃�' }} / {{ item.unit || '鏃�' }}</text>
</view>
<view class="detail-row">
<text class="detail-label">闇�姹�/瀹屾垚鏁伴噺</text>
- <text class="detail-value">{{ item.planQuantity }} / {{ item.completeQuantity }}</text>
+ <text class="detail-value">{{ item.planQuantity || '鏃�' }} / {{ item.completeQuantity || '鏃�' }}</text>
</view>
<view class="progress-section">
@@ -178,7 +178,6 @@
</view>
<view class="form-section">
- <text class="section-title">鐝粍淇℃伅</text>
<up-form-item label="鐝粍浜哄憳">
<up-input
v-model="teamDisplayText"
@@ -188,10 +187,6 @@
suffixIcon="arrow-down"
/>
</up-form-item>
- </view>
-
- <view class="form-section">
- <text class="section-title">瀹℃牳淇℃伅</text>
<up-form-item label="瀹℃牳浜�" required>
<up-input
v-model="endReportForm.auditUserName"
--
Gitblit v1.9.3