From 5b8422f9155c08f5a26840d7896bb0434d9013e7 Mon Sep 17 00:00:00 2001
From: qx <1084500556@qq.com>
Date: 星期四, 17 四月 2025 17:38:00 +0800
Subject: [PATCH] qx

---
 src/views/reservation/resercopy/index.vue |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/views/reservation/resercopy/index.vue b/src/views/reservation/resercopy/index.vue
index 5a19f42..65ac29d 100644
--- a/src/views/reservation/resercopy/index.vue
+++ b/src/views/reservation/resercopy/index.vue
@@ -209,7 +209,8 @@
       <el-upload
         ref="upload"
         :limit="1"
-        accept=".xlsx, .xls"
+        :key="uploadKey" 
+        accept=".xls"
         :headers="upload.headers"
         :data="data"
         :action="upload.url"
@@ -226,7 +227,7 @@
             <el-checkbox v-model="upload.updateSupport" />
             鏄惁鏇存柊宸茬粡瀛樺湪鐨勭敤鎴锋暟鎹�
           </div>
-          <span>浠呭厑璁稿鍏ls銆亁lsx鏍煎紡鏂囦欢銆�</span>
+          <span>浠呭厑璁稿鍏ls鏍煎紡鏂囦欢銆�</span>
           <el-link
             type="primary"
             :underline="false"
@@ -637,6 +638,7 @@
         ],
       },
       ListObj: {},
+      uploadKey:0,
       // 閬僵灞�
       loading: true,
       pacStatus: "鍚敤",
@@ -873,6 +875,8 @@
     /** 瀵煎叆鎸夐挳鎿嶄綔 */
     handleImport() {
       if (this.objs.drugManufacturerId && this.objs.reservationTime) {
+        this.$refs.upload?.clearFiles();
+        this.uploadKey = Date.now(); // 鏀瑰彉 key 寮哄埗閲嶆柊娓叉煋缁勪欢
         this.upload.title = "鐢ㄦ埛瀵煎叆";
         this.upload.open = true;
       } else {

--
Gitblit v1.8.0