From 87bf944a61068a47f56cd2f27b585c70437ef1f7 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期五, 20 三月 2026 09:54:04 +0800
Subject: [PATCH] fix: 生产详情样式优化

---
 src/views/productionManagement/productionReporting/components/Detail.vue |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/src/views/productionManagement/productionReporting/components/Detail.vue b/src/views/productionManagement/productionReporting/components/Detail.vue
index 5983d1c..8820727 100644
--- a/src/views/productionManagement/productionReporting/components/Detail.vue
+++ b/src/views/productionManagement/productionReporting/components/Detail.vue
@@ -1,5 +1,5 @@
 <script setup lang="ts">
-import {computed} from "vue";
+import {computed, onMounted} from "vue";
 
 defineOptions({
   name: "ReportingDetail"
@@ -16,11 +16,23 @@
   }
 });
 
+const emits = defineEmits(["update:isShow"]);
 
 const visible = computed({
   get: () => props.isShow,
   set: (value: boolean) => emits("update:isShow", value),
 });
+
+const otherData = ref([])
+const init = () => {
+  if (props.row.otherData !== null && props.row.otherData !== '') {
+    otherData.value = JSON.parse(props.row.otherData);
+  }
+};
+
+onMounted(() => {
+  init();
+})
 
 </script>
 
@@ -39,6 +51,12 @@
       <el-descriptions-item label="鎶ュ簾鏁伴噺">{{ row.quantity || '-' }}</el-descriptions-item>
       <el-descriptions-item label="鍗曚綅">{{ row.scrapQty || '-' }}</el-descriptions-item>
       <el-descriptions-item label="鍒涘缓鏃堕棿">{{ row.createTime || '-' }}</el-descriptions-item>
+      <el-descriptions-item
+          v-for="item in otherData"
+          :label="`${item.parameterItem}`"
+      >
+        {{ item.value || '-' }}
+      </el-descriptions-item>
     </el-descriptions>
     <template #footer>
         <span class="dialog-footer">

--
Gitblit v1.9.3