修复业务模块bug

This commit is contained in:
2026-08-13 14:07:04 +08:00
parent 6554ad80dd
commit f62e36e846
15 changed files with 941 additions and 186 deletions
+9
View File
@@ -322,6 +322,7 @@ import { config, excelOption, option } from '@/option/business/common-route';
import { getToken } from '@/utils/auth';
import { openImportDialog } from '@/utils/import-excel';
import { downloadXls } from '@/utils/util';
import { isMobile } from '@/utils/validate';
import { List, Search } from '@element-plus/icons-vue';
import { mapGetters } from 'vuex';
import NProgress from 'nprogress';
@@ -789,6 +790,14 @@ export default {
this.$message.warning('收货地址不能超过255个字符');
return false;
}
const invalidPhone = [
[row.departurePhone, '发货联系方式'],
[row.arrivalPhone, '收货联系方式'],
].find(([value]) => value && !isMobile(value));
if (invalidPhone) {
this.$message.warning(`${invalidPhone[1]}格式不正确`);
return false;
}
if (row.remark && row.remark.length > 500) {
this.$message.warning('备注不能超过500个字符');
return false;