Compare commits

..

2 Commits

Author SHA1 Message Date
JIAL 3a83940dd5 Merge branch 'main' of http://jialcheerful.club:3000/xd/JNBusiness 2024-07-08 09:28:55 +08:00
JIAL bbf6fb0631 1 2024-07-08 09:28:49 +08:00
1 changed files with 2 additions and 1 deletions

View File

@ -584,7 +584,8 @@ export default {
this.quotXjFileLoading = true; this.quotXjFileLoading = true;
let activeName = this.activeName; let activeName = this.activeName;
if(activeName=='quotXjFile'){ if(activeName=='quotXjFile'){
if(file.name.split('.')[1].toLowerCase() != 'xls' && file.name.split('.')[1].toLowerCase() != 'xlsx'){ const fileExtension = file.name.split('.').pop();
if(fileExtension.toLowerCase() != 'xls' && fileExtension.toLowerCase() != 'xlsx'){
this.$modal.msgError("清单附件必须是Excel格式"); this.$modal.msgError("清单附件必须是Excel格式");
this.quotXjFileLoading = false; this.quotXjFileLoading = false;
return false; return false;