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() {