|
|
|
@ -40,11 +40,12 @@ export class EditAnnualInspectionComponent implements OnInit {
|
|
|
|
|
ok() { |
|
|
|
|
if (this.validateForm.valid) { |
|
|
|
|
this.isLoading = true |
|
|
|
|
let params = { |
|
|
|
|
id: this.dataCopy.licenseTypeId, |
|
|
|
|
date: moment(this.validateForm.value.time).format('YYYY-MM-MM')//开业时间格式化
|
|
|
|
|
let body = { |
|
|
|
|
licenseTypeId: this.dataCopy.licenseTypeId, |
|
|
|
|
organizationId: JSON.parse(sessionStorage.getItem('userdata')).organization.id, |
|
|
|
|
yearlyCheckDate: moment(this.validateForm.value.time).format('YYYY-MM-MM')//开业时间格式化
|
|
|
|
|
} |
|
|
|
|
this.http.put('/api/services/app/OrganizationValidityLicenseRule/UpdateYearlyCheckDate', null, { params: params }).subscribe((data) => { |
|
|
|
|
this.http.put('/api/services/app/OrganizationValidityLicenseRule/UpdateYearlyCheckDate', body).subscribe((data) => { |
|
|
|
|
this.message.create('success', '修改成功'); |
|
|
|
|
this.isLoading = false |
|
|
|
|
this.modal.triggerOk() |
|
|
|
|