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