From 94e9cc4bfd0db0dfbeeb7344bea11a0832fd5f1e Mon Sep 17 00:00:00 2001
From: zhangdi <1104545947@qq.com>
Date: Wed, 1 Apr 2026 14:19:38 +0800
Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=B5=81=E7=AE=A1=E7=90=86=E9=97=AE?=
=?UTF-8?q?=E9=A2=98=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/materialDetails.vue | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/views/logisticsManagement/components/materialDetails.vue b/src/views/logisticsManagement/components/materialDetails.vue
index f6d83d3..0ff0f98 100644
--- a/src/views/logisticsManagement/components/materialDetails.vue
+++ b/src/views/logisticsManagement/components/materialDetails.vue
@@ -19,8 +19,12 @@
-
- {{ scope.row.actualWeighing<0?'0g' : scope.row.actualWeighing+'g' }}
+
+ {{
+ (scope.row.actualWeighing || scope.row.actualWeighing == null < 0)
+ ? '0g'
+ : scope.row.actualWeighing + 'g'
+ }}
@@ -106,7 +110,7 @@ export default {
prop: 'partCode',
span: 24,
},
- {
+ {
label: '零件名称',
prop: 'partName',
span: 24,
@@ -124,7 +128,7 @@ export default {
mounted() {
this.openShow = this.showDialog;
console.log(8989898989, this.rowData);
- this.init()
+ this.init();
},
methods: {
init() {