edit
This commit is contained in:
@ -86,7 +86,27 @@ export class FreightComponentsListNewComponent implements OnInit {
|
||||
this.service.msgSrv.warning('请修改填写错误信息');
|
||||
return;
|
||||
}
|
||||
|
||||
const enterpriseRegistrationTime = new Date(this.sf1.value.enterpriseRegistrationTime);
|
||||
const operatingStartTime = new Date(this.sf1.value.operatingStartTime);
|
||||
if (enterpriseRegistrationTime.getTime() > operatingStartTime.getTime()) {
|
||||
this.service.msgSrv.warning('营业期限不能小于成立日期');
|
||||
return;
|
||||
}
|
||||
if (this.sf1.value.operatingEndTime) {
|
||||
const operatingEndTime = new Date(this.sf1.value.operatingEndTime);
|
||||
if (operatingStartTime.getTime() > operatingEndTime.getTime()) {
|
||||
this.service.msgSrv.warning('营业期限不能小于期限开始日期');
|
||||
return;
|
||||
}
|
||||
}
|
||||
const validStartTime = new Date(this.sf1.value.legalPersonIdentityDTO.validStartTime);
|
||||
if (this.sf1.value.legalPersonIdentityDTO.validEndTime) {
|
||||
const validEndTime = new Date(this.sf1.value.legalPersonIdentityDTO.validEndTime);
|
||||
if (validStartTime.getTime() > validEndTime.getTime()) {
|
||||
this.service.msgSrv.warning('法人证件有效截止日期小于开始日期');
|
||||
return;
|
||||
}
|
||||
}
|
||||
const sfVlaue = this.sf.value;
|
||||
const params = {};
|
||||
Object.assign(
|
||||
@ -511,7 +531,7 @@ export class FreightComponentsListNewComponent implements OnInit {
|
||||
required: '请选择截止日期'
|
||||
},
|
||||
change: i => {
|
||||
this.sf1?.setValue('/isLoingDate', false);
|
||||
this.sf1?.setValue('/legalPersonIdentityDTO/isLoingDate', false);
|
||||
}
|
||||
} as SFDateWidgetSchema
|
||||
},
|
||||
@ -691,7 +711,7 @@ export class FreightComponentsListNewComponent implements OnInit {
|
||||
type: 'string',
|
||||
minLength: 1,
|
||||
format: 'mobile',
|
||||
maxLength: 32,
|
||||
maxLength: 11,
|
||||
ui: {
|
||||
grid: { xxl: 13, xl: 18, lg: 24, md: 24 },
|
||||
placeholder: '请输入推广业务员手机号',
|
||||
|
||||
Reference in New Issue
Block a user