From b5ef5e5449f4b0f26e5ee45b9afcc6f70fa3b743 Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Sat, 14 May 2022 17:18:49 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E5=AE=8C=E5=96=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../edit-annual-inspection.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/pages/audit/annual-inspection/edit-annual-inspection/edit-annual-inspection.component.ts b/src/app/pages/audit/annual-inspection/edit-annual-inspection/edit-annual-inspection.component.ts index c2b330d..5f10426 100644 --- a/src/app/pages/audit/annual-inspection/edit-annual-inspection/edit-annual-inspection.component.ts +++ b/src/app/pages/audit/annual-inspection/edit-annual-inspection/edit-annual-inspection.component.ts @@ -24,7 +24,7 @@ export class EditAnnualInspectionComponent implements OnInit { ngOnInit(): void { this.dataCopy = JSON.parse(JSON.stringify(this.data)) this.validateForm = this.fb.group({ - time: [null, [Validators.required]], + time: [this.dataCopy.yearlyCheckDate, [Validators.required]], }); } @@ -43,7 +43,7 @@ export class EditAnnualInspectionComponent implements OnInit { let body = { licenseTypeId: this.dataCopy.licenseTypeId, organizationId: JSON.parse(sessionStorage.getItem('userdata')).organization.id, - yearlyCheckDate: moment(this.validateForm.value.time).format('YYYY-MM-MM')//开业时间格式化 + yearlyCheckDate: moment(this.validateForm.value.time).format('YYYY-MM-DD')//开业时间格式化 } this.http.put('/api/services/app/OrganizationValidityLicenseRule/UpdateYearlyCheckDate', body).subscribe((data) => { this.message.create('success', '修改成功');