From 1496904805dff921b79504ed29a71d297a84e674 Mon Sep 17 00:00:00 2001
From: wangfei <3597712270@qq.com>
Date: 星期二, 21 十月 2025 11:14:07 +0800
Subject: [PATCH] 中空线-创建任务-领取任务确认按钮,前端限制避免多次调用接口

---
 UI-Project/src/views/hollow/hollowequipment.vue |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/UI-Project/src/views/hollow/hollowequipment.vue b/UI-Project/src/views/hollow/hollowequipment.vue
index ac553f0..69b27e6 100644
--- a/UI-Project/src/views/hollow/hollowequipment.vue
+++ b/UI-Project/src/views/hollow/hollowequipment.vue
@@ -719,7 +719,7 @@
     </div>
     <template #footer>
       <div id="dialog-footer">
-        <el-button type="primary" @click="finisha">
+        <el-button type="primary" @click="finisha" :disabled="isSubmitting">
           {{ $t('reportWork.sure') }}
         </el-button>
         <el-button @click="dialogFormVisiblec = false">{{ $t('reportWork.cancel') }}</el-button>
@@ -1057,6 +1057,7 @@
 const dialogFormVisiblec = ref(false)
 const dialogFormVisibled = ref(false)
 const dialogFormVisiblee = ref(false)
+const isSubmitting = ref(false)
 const add = ref(false)
 const adda = ref(false)
 const currentRow = reactive({});
@@ -1823,9 +1824,15 @@
       cell.value = '';
       formulaName.value = '';
       totalPairQuantity.value = '';
+      isSubmitting.value = true
     } else {
+      ElMessage.error(response.message);
+      isSubmitting.value = true
     }
   } catch (error) {
+      ElMessage.error(response.message);
+  } finally {
+    isSubmitting.value = false
   }
 }
 // 寮哄埗鍑虹墖

--
Gitblit v1.8.0