From be568ef7fad7aaabf84d95b43dc4a80382edd297 Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期六, 13 六月 2026 19:55:00 +0800
Subject: [PATCH] fix: 加生产订单确认下发、确认发货、报工loading

---
 src/views/productionManagement/workOrderManagement/index.vue |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/views/productionManagement/workOrderManagement/index.vue b/src/views/productionManagement/workOrderManagement/index.vue
index a9cf39d..b0ba941 100644
--- a/src/views/productionManagement/workOrderManagement/index.vue
+++ b/src/views/productionManagement/workOrderManagement/index.vue
@@ -245,6 +245,7 @@
       <template #footer>
         <span class="dialog-footer">
           <el-button type="primary"
+                     :loading="reportLoading"
                      @click="handleReport">纭畾</el-button>
           <el-button @click="reportDialogVisible = false">鍙栨秷</el-button>
         </span>
@@ -414,6 +415,7 @@
   const transferCardQrUrl = ref("");
   const transferCardRowData = ref(null);
   const reportDialogVisible = ref(false);
+  const reportLoading = ref(false);
   const fileDialogVisible = ref(false);
   const currentWorkOrderId = ref(null);
   const reportFormRef = ref(null);
@@ -780,6 +782,7 @@
         productionOperationParamList: productionOperationParamList,
       };
 
+      reportLoading.value = true;
       addProductMain(submitParams)
         .then(res => {
           proxy.$modal.msgSuccess("鎶ュ伐鎴愬姛");
@@ -790,6 +793,9 @@
           ElMessageBox.alert("鎶ュ伐澶辫触", "鎻愮ず", {
             confirmButtonText: "纭畾",
           });
+        })
+        .finally(() => {
+          reportLoading.value = false;
         });
     });
   };

--
Gitblit v1.9.3