fix
13404089107
2025-08-15 9cb1c3c39136c89974bc4049fca5e450e757b1be
laboratory/src/views/dataManagement/testResultReport/components/checkout-result.vue
@@ -1,7 +1,7 @@
<template>
    <el-dialog
      title="检验数据结果汇总"
      :visible.sync="visible"
      :visible="dialogVisible"
      width="80%"
      :close-on-click-modal="false"
      @close="handleClose"
@@ -16,12 +16,31 @@
                  <span>本次检验结果总表</span>
                </div>
              </div>
              <div class="content-box">
                <AiEditor
                  ref="descriptionEditor"
                  :readOnly="true"
                  :value="data?.testReason || ''"
                  height="400px"
                  placeholder="暂无检验说明..."
                />
              </div>
              
              <div class="header-title">
                <div class="header-title-left">
                  <img src="@/assets/public/headercard.png" />
                  <span>本次检验说明</span>
                </div>
              </div>
              <div class="content-box">
                <AiEditor
                  ref="descriptionEditor"
                  :readOnly="true"
                  :value="data?.testReason || ''"
                  height="400px"
                  placeholder="暂无检验说明..."
                />
              </div>
            </template>
          </Card>
@@ -31,21 +50,39 @@
  </template>
  
  <script>
  import AiEditor from "@/components/AiEditor";
  export default {
    name: "CheckoutResult",
    components: {
      AiEditor
    },
    props: {
      visible: {
        type: Boolean,
        default: false,
      },
      content: {
      data: {
        type: Object,
        default: () => ({}),
      },
    },
    data() {
      return {
        dialogVisible: false
      }
    },
    watch: {
      visible: {
        handler(val) {
          this.dialogVisible = val;
        },
        immediate: true
      }
    },
    methods: {
      handleClose() {
        this.$emit("update:visible", false);
        this.$emit("close");
      },
    },
  };
@@ -58,7 +95,7 @@
  
  .approval-dialog {
    display: flex;
    height: 300px;
    height: 600px;
  
    .approval-content {
      flex: 1;
@@ -77,12 +114,12 @@
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 38px;
  
    .header-title-left {
      display: flex;
      align-items: center;
      gap: 13px;
      margin-top: 38px;
  
      img {
        width: 12px;
@@ -101,8 +138,18 @@
  }
  
  .header-title:first-child {
    margin-top: 0;
    .header-title-left {
      margin-top: 0;
    }
  }
  .rwuTable {
    width: 100%;
    margin: 20px 0;
  }
  .content-box {
    margin: 20px 0;
  }
  </style>