|
|
@ -2,6 +2,7 @@ import { Component, OnInit, Input } from '@angular/core'; |
|
|
|
import { NzModalRef } from 'ng-zorro-antd/modal'; |
|
|
|
import { NzModalRef } from 'ng-zorro-antd/modal'; |
|
|
|
import { FormBuilder, FormGroup, Validators } from '@angular/forms'; |
|
|
|
import { FormBuilder, FormGroup, Validators } from '@angular/forms'; |
|
|
|
import { HttpClient } from '@angular/common/http'; |
|
|
|
import { HttpClient } from '@angular/common/http'; |
|
|
|
|
|
|
|
import { handleType,handleTypeList } from 'src/app/pages/license/inform/inform.component'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Component({ |
|
|
|
@Component({ |
|
|
@ -13,30 +14,21 @@ export class AddUpdateOfLicenseComponent implements OnInit { |
|
|
|
|
|
|
|
|
|
|
|
validateForm!: FormGroup; |
|
|
|
validateForm!: FormGroup; |
|
|
|
constructor(private modal: NzModalRef, private fb: FormBuilder, private http: HttpClient) { } |
|
|
|
constructor(private modal: NzModalRef, private fb: FormBuilder, private http: HttpClient) { } |
|
|
|
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: "到期评价" }, |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
ngOnInit(): void { |
|
|
|
this.validateForm = this.fb.group({ |
|
|
|
this.validateForm = this.fb.group({ |
|
|
|
name: [null, [Validators.required]], |
|
|
|
name: [null, [Validators.required]], |
|
|
|
handleRemindDays: [90, [Validators.required]], |
|
|
|
handleRemindDays: [90, [Validators.required]], |
|
|
|
closingRemindDays: [30, [Validators.required]], |
|
|
|
closingRemindDays: [30, [Validators.required]], |
|
|
|
handleType: [null, [Validators.required]], |
|
|
|
handleType: [[], [Validators.required]], |
|
|
|
isEctype: [true, [Validators.required]], |
|
|
|
isEctype: [false, [Validators.required]], |
|
|
|
isYearlyCheck: [true, [Validators.required]] |
|
|
|
isYearlyCheck: [true, [Validators.required]] |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
destroyModal(): void { |
|
|
|
destroyModal(): void { |
|
|
|
this.modal.destroy({ data: 'this the result data' }); |
|
|
|
this.modal.destroy({ data: 'this the result data' }); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
handleTypeList: handleTypeList[] = new handleType().list; //办理类型list
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|