|
|
|
@ -15,6 +15,9 @@ export class UpdateOfLicenseComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
constructor(private modal: NzModalService, private viewContainerRef: ViewContainerRef, private message: NzMessageService, private http: HttpClient) { } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
|
this.getLicense() |
|
|
|
|
} |
|
|
|
@ -52,9 +55,9 @@ export class UpdateOfLicenseComponent implements OnInit {
|
|
|
|
|
licenseName: instance.validateForm.value.name, |
|
|
|
|
handleRemindDays: instance.validateForm.value.handleRemindDays, |
|
|
|
|
closingRemindDays: instance.validateForm.value.closingRemindDays, |
|
|
|
|
isYearlyCheck: instance.validateForm.value.isYearlyCheck, |
|
|
|
|
hasAttachment: instance.validateForm.value.hasAttachment, |
|
|
|
|
handleTypes: instance.validateForm.value.handleTypes, |
|
|
|
|
hasAttachment: instance.validateForm.value.isEctype, |
|
|
|
|
handleTypes: instance.validateForm.value.handleType, |
|
|
|
|
isYearlyCheck: instance.validateForm.value.isYearlyCheck |
|
|
|
|
} |
|
|
|
|
this.http.post('/api/services/app/ValidityLicenseType/Create', body).subscribe(data => { |
|
|
|
|
resolve(data) |
|
|
|
@ -94,9 +97,9 @@ export class UpdateOfLicenseComponent implements OnInit {
|
|
|
|
|
licenseName: instance.validateForm.value.name, |
|
|
|
|
handleRemindDays: instance.validateForm.value.handleRemindDays, |
|
|
|
|
closingRemindDays: instance.validateForm.value.closingRemindDays, |
|
|
|
|
isYearlyCheck: instance.validateForm.value.isYearlyCheck, |
|
|
|
|
hasAttachment: instance.validateForm.value.hasAttachment, |
|
|
|
|
handleTypes: instance.validateForm.value.handleTypes, |
|
|
|
|
hasAttachment: instance.validateForm.value.isEctype, |
|
|
|
|
handleTypes: instance.validateForm.value.handleType, |
|
|
|
|
isYearlyCheck: instance.validateForm.value.isYearlyCheck |
|
|
|
|
} |
|
|
|
|
this.http.put('/api/services/app/ValidityLicenseType/Update', body).subscribe(data => { |
|
|
|
|
resolve(data) |
|
|
|
@ -139,6 +142,31 @@ export class UpdateOfLicenseComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
handleTypeList = [ |
|
|
|
|
{ value: 0, name: "无" }, |
|
|
|
|
{ value: 1, name: "年度公示" }, |
|
|
|
|
{ value: 2, name: "年检" }, |
|
|
|
|
{ value: 3, name: "到期换证" }, |
|
|
|
|
{ value: 4, name: "年度执行报告" }, |
|
|
|
|
{ value: 5, name: "到期检测" }, |
|
|
|
|
{ value: 6, name: "年度复训" }, |
|
|
|
|
{ value: 7, name: "年度检测" }, |
|
|
|
|
{ value: 8, name: "到期备案" }, |
|
|
|
|
{ value: 9, name: "到期评价" }, |
|
|
|
|
] |
|
|
|
|
//获取办理类型
|
|
|
|
|
getHandleTypes(handleTypes: any[]): string { |
|
|
|
|
if (!handleTypes || !handleTypes.length) { |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
let names: string[] = [] |
|
|
|
|
let handleTypeList = JSON.parse(JSON.stringify(handleTypes)); |
|
|
|
|
let list = this.handleTypeList; |
|
|
|
|
handleTypeList.forEach(item => { |
|
|
|
|
list.find(element => { |
|
|
|
|
item == element.value ? names.push(element.name) : null |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
return names.join(',') |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|