From 0c4bdf3dca76f9b8c348f2f7e48f9a6319dee4e1 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 17 四月 2026 17:09:22 +0800
Subject: [PATCH] 进销存升级 1.销售台账不能删除和编辑别人维护的数据 2.产品维护固定产品大类为:成品、半成品、原材料。

---
 src/views/personnelManagement/classsSheduling/index.vue |   21 ++++++++++-----------
 1 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/src/views/personnelManagement/classsSheduling/index.vue b/src/views/personnelManagement/classsSheduling/index.vue
index 6891a57..140ffba 100644
--- a/src/views/personnelManagement/classsSheduling/index.vue
+++ b/src/views/personnelManagement/classsSheduling/index.vue
@@ -49,13 +49,11 @@
           <div class="search-actions">
             <el-button size="small"
                        type="primary"
-                       @click="refreshTable()"
-                       :icon="Search">
+                       @click="refreshTable()">
               鏌ヨ
             </el-button>
             <el-button size="small"
                        @click="refresh()"
-                       :icon="Refresh"
                        style="margin-left: 8px">
               閲嶇疆
             </el-button>
@@ -63,22 +61,19 @@
           <div class="search-buttons">
             <el-button size="small"
                        type="primary"
-                       @click="configTime"
-                       :icon="Setting">
+                       @click="configTime">
               鐝閰嶇疆
             </el-button>
             <el-button size="small"
                        type="success"
                        @click="handleDown"
                        :loading="downLoading"
-                       :icon="Download"
                        style="margin-left: 8px">
               瀵煎嚭
             </el-button>
             <el-button size="small"
                        type="warning"
                        @click="schedulingVisible = true"
-                       :icon="Calendar"
                        style="margin-left: 8px">
               鎺掔彮
             </el-button>
@@ -674,10 +669,12 @@
     })
       .then(res => {
         proxy.$modal.msgSuccess("涓嬭浇鎴愬姛");
-        downLoading.value = false;
-        const blob = new Blob([res], {
-          type: "application/force-download",
-        });
+        const blob =
+          res instanceof Blob
+            ? res
+            : new Blob([res], {
+                type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
+              });
         let fileName = "";
         if (query.month) {
           fileName = year + "-" + query.month + " 鐝淇℃伅";
@@ -687,6 +684,8 @@
         proxy.$download.saveAs(blob, fileName + ".xlsx");
       })
       .catch(err => {
+      })
+      .finally(() => {
         downLoading.value = false;
       });
   };

--
Gitblit v1.9.3