diff --git a/src/views/modules/ecss/pallet_upload_excel.vue b/src/views/modules/ecss/pallet_upload_excel.vue index e6b21d9..cdae60c 100644 --- a/src/views/modules/ecss/pallet_upload_excel.vue +++ b/src/views/modules/ecss/pallet_upload_excel.vue @@ -68,7 +68,7 @@ - 保存 + 保存 关闭 @@ -91,6 +91,7 @@ buList: [], titleCon: '文件导入', visible: false, + saveLoading: false, fileList: [], pageData: { site: '', @@ -296,7 +297,7 @@ return false } } - + this.saveLoading = true const formData = new FormData() formData.append("buNo",this.pageData.buNo) formData.append("site",this.pageData.site) @@ -318,6 +319,11 @@ confirmButtonText: '确定' }) } + }).catch((error) => { + console.error('保存失败:', error) + this.$message.error('保存失败,请重试') + }).finally(() => { + this.saveLoading = false }) },