This commit is contained in:
wangshiming
2022-03-02 16:39:24 +08:00
parent 6bcc71ab8e
commit 3b016972b0

View File

@ -148,12 +148,12 @@ export class NetworkFreightNewComponent implements OnInit {
}); });
} }
submitForm() { submitForm() {
// if (!this.sf1.valid || !this.sf.valid) { if (!this.sf1.valid || !this.sf.valid) {
// this.sf.validator({ emitError: true }); this.sf.validator({ emitError: true });
// this.sf1.validator({ emitError: true }); this.sf1.validator({ emitError: true });
// this.service.msgSrv.warning('请修改填写错误信息'); this.service.msgSrv.warning('请修改填写错误信息');
// return; return;
// } }
const enterpriseRegistrationTime = new Date(this.sf1.value.enterpriseRegistrationTime); const enterpriseRegistrationTime = new Date(this.sf1.value.enterpriseRegistrationTime);
const operatingStartTime = new Date(this.sf1.value.operatingStartTime); const operatingStartTime = new Date(this.sf1.value.operatingStartTime);
if (enterpriseRegistrationTime.getTime() > operatingStartTime.getTime()) { if (enterpriseRegistrationTime.getTime() > operatingStartTime.getTime()) {