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', '修改成功');