From 61416df10faaf5cad945e729eb0a1797bf2053af Mon Sep 17 00:00:00 2001 From: Taric Xin Date: Mon, 10 Jan 2022 17:21:51 +0800 Subject: [PATCH] edit --- .../freight/list/new/new.component.html | 2 +- .../freight/list/new/new.component.ts | 26 ++++++++++++++----- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/src/app/routes/usercenter/components/freight/list/new/new.component.html b/src/app/routes/usercenter/components/freight/list/new/new.component.html index 3002aa5c..a445f1f3 100644 --- a/src/app/routes/usercenter/components/freight/list/new/new.component.html +++ b/src/app/routes/usercenter/components/freight/list/new/new.component.html @@ -56,7 +56,7 @@
请上传该企业授权您成为本系统企业管理员的文件的高清照片,需加盖公司印章
上传后系统会自动识别并填写
-
+ diff --git a/src/app/routes/usercenter/components/freight/list/new/new.component.ts b/src/app/routes/usercenter/components/freight/list/new/new.component.ts index ff551416..8fd7f12a 100644 --- a/src/app/routes/usercenter/components/freight/list/new/new.component.ts +++ b/src/app/routes/usercenter/components/freight/list/new/new.component.ts @@ -565,14 +565,28 @@ export class FreightComponentsListNewComponent implements OnInit { registerPhone: { title: ' 注册电话', type: 'string', - ui: { grid: { xxl: 13, xl: 18, lg: 24, md: 24 }, placeholder: '请输入注册电话' } + format: 'mobile', + minLength: 1, + maxLength: 11, + ui: { + grid: { xxl: 13, xl: 18, lg: 24, md: 24 }, + placeholder: '请输入注册电话', + errors: { required: '请输入注册电话', format: '手机号格式错误' } + } }, title99: { title: '', type: 'string', ui: { widget: 'custom' } }, adminMobile: { title: ' 企业管理员手机号', type: 'string', - ui: { grid: { xxl: 13, xl: 18, lg: 24, md: 24 }, placeholder: '请输入业务员电话' } + minLength: 1, + format: 'mobile', + maxLength: 11, + ui: { + grid: { xxl: 13, xl: 18, lg: 24, md: 24 }, + placeholder: '请输入企业管理员手机号', + errors: { required: '请输入企业管理员手机号', format: '手机号格式错误' } + } }, tipsA: { title: '企业管理员证件照', @@ -664,6 +678,7 @@ export class FreightComponentsListNewComponent implements OnInit { ui: { grid: { xxl: 13, xl: 18, lg: 24, md: 24 }, widget: 'select', + placeholder: '请选择', visibleIf: { expand: (value: boolean) => value } @@ -673,13 +688,12 @@ export class FreightComponentsListNewComponent implements OnInit { title: '推广业务员手机号', type: 'string', minLength: 1, + format: 'mobile', maxLength: 32, ui: { grid: { xxl: 13, xl: 18, lg: 24, md: 24 }, - placeholder: '请输入您的真实姓名', - errors: { - required: '请输入您的真实姓名' - } + placeholder: '请输入推广业务员手机号', + errors: { required: '请输入推广业务员手机号', format: '手机号格式错误' } } }, networkTransporter: {