From 3b016972b095b65892d515f8e53bd7682ba93dd1 Mon Sep 17 00:00:00 2001 From: wangshiming Date: Wed, 2 Mar 2022 16:39:24 +0800 Subject: [PATCH] fix bug --- .../components/network-freight/new/new.component.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/routes/sys-setting/components/network-freight/new/new.component.ts b/src/app/routes/sys-setting/components/network-freight/new/new.component.ts index 63df1d8c..2deb983e 100644 --- a/src/app/routes/sys-setting/components/network-freight/new/new.component.ts +++ b/src/app/routes/sys-setting/components/network-freight/new/new.component.ts @@ -148,12 +148,12 @@ export class NetworkFreightNewComponent implements OnInit { }); } submitForm() { - // if (!this.sf1.valid || !this.sf.valid) { - // this.sf.validator({ emitError: true }); - // this.sf1.validator({ emitError: true }); - // this.service.msgSrv.warning('请修改填写错误信息'); - // return; - // } + if (!this.sf1.valid || !this.sf.valid) { + this.sf.validator({ emitError: true }); + this.sf1.validator({ emitError: true }); + 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()) {