From 8b154e4e32bdc351e18acae01fd75a718c12469d Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期六, 18 四月 2026 10:49:32 +0800
Subject: [PATCH] fix: 打印生产流程卡提示

---
 src/views/salesManagement/salesLedger/index.vue |   34 ++++++++++++++++++++++++++++++++--
 1 files changed, 32 insertions(+), 2 deletions(-)

diff --git a/src/views/salesManagement/salesLedger/index.vue b/src/views/salesManagement/salesLedger/index.vue
index 4e214f7..f09b997 100644
--- a/src/views/salesManagement/salesLedger/index.vue
+++ b/src/views/salesManagement/salesLedger/index.vue
@@ -461,7 +461,7 @@
                            :key="item.id"
                            :label="item.customerName"
                            :value="item.id">
-{{ item.customerName + (item.taxpayerIdentificationNumber ? "鈥斺��" + item.taxpayerIdentificationNumber : "") }}
+                  {{ item.customerName + (item.taxpayerIdentificationNumber ? "鈥斺��" + item.taxpayerIdentificationNumber : "") }}
                 </el-option>
               </el-select>
             </el-form-item>
@@ -1529,6 +1529,7 @@
     <FormDialog v-model="importUpload.open"
                 :title="importUpload.title"
                 :width="'600px'"
+                :loading="importUpload.isUploading"
                 @close="onClose"
                 @confirm="submitImportFile"
                 @cancel="onClose">
@@ -1542,6 +1543,7 @@
                  :on-error="importUpload.onError"
                  :on-progress="importUpload.onProgress"
                  :on-change="importUpload.onChange"
+                 :on-exceed="importUpload.onExceed"
                  :auto-upload="false"
                  drag>
         <i class="el-icon-upload"></i>
@@ -2579,6 +2581,13 @@
     },
     onChange: (file, fileList) => {
       console.log("鏂囦欢鐘舵�佹敼鍙�", file, fileList);
+    },
+    onExceed: (files, fileList) => {
+      if (importUploadRef.value) {
+        importUploadRef.value.clearFiles();
+        const file = files[0];
+        importUploadRef.value.handleStart(file);
+      }
     },
     onProgress: (event, file, fileList) => {
       console.log("涓婁紶涓�...", event.percent);
@@ -3635,7 +3644,28 @@
       } else {
         const res = await getProcessCard(selectedId);
         const processCardData = res?.data ?? {};
-        printFinishedProcessCard(processCardData);
+        const routeNodes = processCardData?.routeNodes;
+        const isProcessRouteEmpty =
+          !Array.isArray(routeNodes) || routeNodes.length === 0;
+        if (isProcessRouteEmpty) {
+          proxy.$modal.closeLoading();
+          try {
+            await ElMessageBox.confirm(
+              "褰撳墠璁㈠崟鏈粦瀹氬伐鑹鸿矾绾夸篃娌℃湁璁剧疆榛樿鐨勫伐鑹鸿矾绾匡紝鏄惁浠嶈鎵撳嵃锛�",
+              "鎻愮ず",
+              {
+                confirmButtonText: "鎵撳嵃",
+                cancelButtonText: "鍙栨秷",
+                type: "warning",
+              }
+            );
+          } catch {
+            return;
+          }
+          printFinishedProcessCard(processCardData);
+        } else {
+          printFinishedProcessCard(processCardData);
+        }
       }
     } catch (error) {
       console.error(

--
Gitblit v1.9.3