问题修复

This commit is contained in:
hongchao 2025-11-19 16:46:25 +08:00
parent 7f34405115
commit 1a5cbe0951
2 changed files with 3 additions and 3 deletions

View File

@ -179,7 +179,7 @@ export default {
{ t_prop: 'partModelName', t_label: '维修配件型号' },
{ t_prop: 'partNum', t_label: '使用数量' },
{ t_prop: 'partPrice', t_label: '配件单价' },
{ t_prop: 'partAllCosts', t_label: '配件总价' },
{ t_prop: 'partAllCosts', t_label: '配件费用' },
// { t_prop: '', t_label: '' },
// { t_prop: '', t_label: '' },
],

View File

@ -674,8 +674,8 @@ export default {
},
beforeUpload(file) {
const fileType = file.name.split('.').pop().toLowerCase();
if (fileType!== 'xls' && fileType!== 'xlsx') {
this.$message.error('只能上传 Excel 文件(.xls 或 .xlsx');
if (fileType!== 'xlsx') {
this.$message.error('只能上传 Excel 文件(.xlsx');
return false;
}
return true;