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: [],