This commit is contained in:
Taric Xin
2022-05-09 10:39:39 +08:00
parent 5b36842c5d
commit 1f462ebdfe
38 changed files with 367 additions and 580 deletions

View File

@ -1,13 +1,8 @@
import { AfterViewInit, ChangeDetectorRef, Component, OnChanges, OnInit, ViewChild } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { SFComponent, SFRadioWidgetSchema, SFSchema, SFSchemaEnumType, SFSelectWidgetSchema, SFTextareaWidgetSchema, SFUISchema } from '@delon/form';
import { _HttpClient } from '@delon/theme';
import { NzModalRef, NzModalService } from 'ng-zorro-antd/modal';
import { map } from 'rxjs/operators';
import { AmapPoiPickerComponent } from 'src/app/shared/components/amap';
import { Component, OnInit, ViewChild } from '@angular/core';
import { SFComponent, SFSchema, SFTextareaWidgetSchema, SFUISchema } from '@delon/form';
import { NzModalRef } from 'ng-zorro-antd/modal';
import { ClaimAuditService } from '../../services/claim-audit.service';
@Component({
selector: 'app-parter-claim-audit-partner-reject',
templateUrl: './partner-reject.component.html'
@ -19,14 +14,7 @@ export class ParterClaimAuditListPartnerRejectComponent implements OnInit {
i: any;
type: any;
constructor(
public http: _HttpClient,
private cdr: ChangeDetectorRef,
private route: ActivatedRoute,
private modalService: NzModalService,
public service: ClaimAuditService,
private modalRef: NzModalRef
) {}
constructor(public service: ClaimAuditService, private modalRef: NzModalRef) {}
ngOnInit(): void {
this.initSF();
@ -43,20 +31,20 @@ export class ParterClaimAuditListPartnerRejectComponent implements OnInit {
title: '合伙人(认领人)',
type: 'string',
ui: {
widget: 'text',
} ,
widget: 'text'
}
},
name2: {
title: '认领客户名称',
type: 'string',
ui: {
widget: 'text',
} ,
widget: 'text'
}
},
data: {
title: '结算起算日期',
type: 'string',
format: 'date',
format: 'date'
},
name3: {
type: 'string',
@ -65,9 +53,9 @@ export class ParterClaimAuditListPartnerRejectComponent implements OnInit {
ui: {
widget: 'textarea',
autosize: { minRows: 3, maxRows: 6 },
placeholder:'请不要超过50个字'
} as SFTextareaWidgetSchema,
},
placeholder: '请不要超过50个字'
} as SFTextareaWidgetSchema
}
},
required: ['name3']
};
@ -75,7 +63,7 @@ export class ParterClaimAuditListPartnerRejectComponent implements OnInit {
'*': {
spanLabelFixed: 120,
grid: { span: 24 }
},
}
};
}
@ -84,7 +72,7 @@ export class ParterClaimAuditListPartnerRejectComponent implements OnInit {
}
save() {
this.sf.validator({ emitError: true });
if(!this.sf.valid) return;
if (!this.sf.valid) return;
// this.service.request('', { ...this.sf?.value }).subscribe(res => {
// if (res) {
// this.modalRef.destroy(true);
@ -93,6 +81,4 @@ export class ParterClaimAuditListPartnerRejectComponent implements OnInit {
// }
// });
}
}