From 1cb17d950a9a88963adb6c583ce1360b64451263 Mon Sep 17 00:00:00 2001 From: xusd Date: Tue, 12 Nov 2024 14:38:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=BA=E5=BA=8A=E5=AE=A2=E6=88=B7=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=20=E6=89=8B=E6=9C=BA=E5=8F=B7=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E3=80=81=E7=A7=9F=E6=88=B7=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/baseData/vo/CustomerInfoRespVO.java | 3 +++ .../baseData/customerInfo/CustomerInfoForm.vue | 13 +++++++++++++ 2 files changed, 16 insertions(+) diff --git a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/baseData/vo/CustomerInfoRespVO.java b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/baseData/vo/CustomerInfoRespVO.java index e7594de..4f0c87f 100644 --- a/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/baseData/vo/CustomerInfoRespVO.java +++ b/imt-server/imt-module-system/imt-module-system-biz/src/main/java/com/inspur/module/system/controller/baseData/vo/CustomerInfoRespVO.java @@ -61,4 +61,7 @@ public class CustomerInfoRespVO { @ExcelProperty("备注") private String remark; + @Schema(description = "租户id") + private Long tenantId; + } \ No newline at end of file diff --git a/imt-ui/src/views/system/baseData/customerInfo/CustomerInfoForm.vue b/imt-ui/src/views/system/baseData/customerInfo/CustomerInfoForm.vue index 03acb63..8e49ae7 100644 --- a/imt-ui/src/views/system/baseData/customerInfo/CustomerInfoForm.vue +++ b/imt-ui/src/views/system/baseData/customerInfo/CustomerInfoForm.vue @@ -156,6 +156,15 @@ export default { name: "CustomerInfoForm", components: {}, data() { + // 定义验证规则 + var validatePhoneNumber = (rule, value, callback) => { + const reg = /^1[3|4|5|6|7|8|9][0-9]{9}$/ + if (!reg.test(value)) { + callback(new Error('请输入有效的手机号码')) + } else { + callback() + } + }; return { areaTree: [], areaTreeData: [], @@ -188,6 +197,10 @@ export default { industryType: [ { required: true, message: "请选择所属行业", trigger: "change" }, ], + contactPhone: [ + { required: true, message: '请输入手机号码', trigger: 'blur' }, + { validator: validatePhoneNumber, trigger: 'blur' } + ], }, tenantLists: [],