From b0a7f824ec000a13d49e9e0e7e8e15e8e0401d25 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期四, 19 三月 2026 15:41:06 +0800
Subject: [PATCH] feat:1.工序检验时,需要加入【不良数量】(不良数量+合格数量=报工总数)、【原因】字段(不良原因做成字典)

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

diff --git a/src/views/productionManagement/productionReporting/components/Detail.vue b/src/views/productionManagement/productionReporting/components/Detail.vue
index a4aec9a..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"
@@ -23,6 +23,17 @@
   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>
 
 <template>
@@ -40,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