董国庆
2025-06-26 dae39dea7e2874ebe2f17438949255ce8331ecef
laboratory/src/views/dataManagement/sampleSubmissionList/components/receiveConfirmDialog.vue
@@ -4,6 +4,7 @@
    :visible.sync="visible"
    width="500px"
    :close-on-click-modal="false"
    @open='open'
    @close="handleClose"
  >
    <div class="receive-dialog">
@@ -20,7 +21,7 @@
        <img
          v-if="imgSrc"
          style="width: 200px; height: 100px; margin-left: 25px"
          :src="imgSrc"
          :src="getFullUrl(imgSrc)"
          fit="fit"
        />
      </div>
@@ -43,6 +44,8 @@
<script>
import SignatureCanvas from "@/components/SignatureCanvas.vue";
import {getFullUrl} from '@/utils/utils.js'
import {queryDetail} from '@/components/service.js'
export default {
  name: "ReceiveConfirmDialog",
@@ -66,6 +69,14 @@
    };
  },
  methods: {
    getFullUrl,
    open(){
      queryDetail().then(res=>{
        if(res){
          this.imgSrc=res.signPicture
        }
      })
    },
    handleClose() {
      this.$emit("update:visible", false);
      this.imgSrc = "";
@@ -75,7 +86,10 @@
    },
    handleSignatureConfirm(imageData) {
      this.signatureDialogVisible = false;
      this.imgSrc = imageData;
      this.imgSrc = ""; // 先清空
      this.$nextTick(() => {
        this.imgSrc = imageData;
      });
    },
    handleConfirm() {
      if (!this.imgSrc) {