From 967ca126479ea5ca51726cdad1e6275571d4d3bc Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期六, 18 四月 2026 10:38:58 +0800
Subject: [PATCH] Merge branch 'dev_河南_鹤壁天沐玻璃厂' of http://114.132.189.42:9002/r/product-inventory-management into dev_河南_鹤壁天沐玻璃厂

---
 src/views/salesManagement/salesLedger/index.vue |   23 +++++++++++++++++++----
 1 files changed, 19 insertions(+), 4 deletions(-)

diff --git a/src/views/salesManagement/salesLedger/index.vue b/src/views/salesManagement/salesLedger/index.vue
index 3c13486..208c14c 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,9 +1529,10 @@
     <FormDialog v-model="importUpload.open"
                 :title="importUpload.title"
                 :width="'600px'"
-                @close="importUpload.open = false"
+                :loading="importUpload.isUploading"
+                @close="onClose"
                 @confirm="submitImportFile"
-                @cancel="importUpload.open = false">
+                @cancel="onClose">
       <el-upload ref="importUploadRef"
                  :limit="1"
                  accept=".xlsx,.xls"
@@ -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>
@@ -2580,6 +2582,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);
     },
@@ -3463,6 +3472,12 @@
   const downloadTemplate = () => {
     proxy.download("/sales/ledger/exportTemplate", {}, "閿�鍞彴璐﹀鍏ユā鏉�.xlsx");
   };
+  const onClose = () => {
+    importUpload.open = false;
+    if (importUploadRef.value) {
+      importUploadRef.value.clearFiles();
+    }
+  };
 
   // 鎻愪氦瀵煎叆鏂囦欢
   const submitImportFile = () => {
@@ -4056,7 +4071,7 @@
     const isTrue = true;
     selectedRows.value.forEach(row => {
       if (row.deliveryStatus != 1 && row.deliveryStatus != 3) {
-        proxy.$modal.msgWarning("浠呮湭鍙戣揣鎴栧鎵瑰け璐ョ殑鍙拌处鍙互鍚堝苟鍙戣揣");
+        proxy.$modal.msgWarning("浠呮湭鍙戣揣鎴栧鎵瑰け璐ョ殑鍙拌处鍙互鍙戣揣");
         isTrue = false;
         return;
       }

--
Gitblit v1.9.3