chenhj
3 天以前 55853d1a56d123b798bb30b53cb0dfefbeacb1a2
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">