Browse Source

[完善]完善bug

beijing
邵佳豪 3 years ago
parent
commit
b5ef5e5449
  1. 4
      src/app/pages/audit/annual-inspection/edit-annual-inspection/edit-annual-inspection.component.ts

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

Loading…
Cancel
Save