From 9cb1c3c39136c89974bc4049fca5e450e757b1be Mon Sep 17 00:00:00 2001
From: 13404089107 <puwei@sinata.cn>
Date: 星期五, 15 八月 2025 17:51:03 +0800
Subject: [PATCH] fix

---
 laboratory/src/views/dataManagement/confirmation-sheet/components/confirm-dialog.vue |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/laboratory/src/views/dataManagement/confirmation-sheet/components/confirm-dialog.vue b/laboratory/src/views/dataManagement/confirmation-sheet/components/confirm-dialog.vue
index 45d6337..09add62 100644
--- a/laboratory/src/views/dataManagement/confirmation-sheet/components/confirm-dialog.vue
+++ b/laboratory/src/views/dataManagement/confirmation-sheet/components/confirm-dialog.vue
@@ -5,6 +5,7 @@
     width="80%"
     :close-on-click-modal="false"
     @close="handleClose"
+    @open='open'
     class="submit-confirm-dialog"
   >
     <div class="approval-content">
@@ -46,7 +47,7 @@
           <el-button type="primary" @click="openSignature">签名</el-button>
         </div>
         <div v-if="imgSrc" class="signature-preview">
-          <img :src="imgSrc" alt="签名" />
+          <img :src="getFullUrl(imgSrc)" alt="签名" />
         </div>
       </div>
     </div>
@@ -66,6 +67,9 @@
 
 <script>
 import SignatureCanvas from "@/components/SignatureCanvas.vue";
+import {queryDetail} from '@/components/service.js'
+import {getFullUrl} from '@/utils/utils.js'
+
 
 export default {
   name: "ConfirmDialog",
@@ -99,6 +103,13 @@
     };
   },
   methods: {
+    open(){
+      queryDetail().then(res=>{
+        if(res){
+          this.imgSrc=res.signPicture
+        }
+      })
+    },
     handleClose() {
       this.$emit("update:visible", false);
       this.imgSrc = "";
@@ -111,7 +122,10 @@
     },
     handleSignatureConfirm(imageData) {
       this.signatureDialogVisible = false;
-      this.imgSrc = imageData;
+      this.imgSrc = ""; // 先清空
+      this.$nextTick(() => {
+        this.imgSrc = imageData;
+      });
     },
     handleConfirm() {
       if (!this.imgSrc) {
@@ -125,6 +139,7 @@
       this.$emit("confirm", this.imgSrc);
       this.handleClose();
     },
+    getFullUrl
   },
 };
 </script>

--
Gitblit v1.7.1