Type de customer ajouté
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
<nz-card style="width:400px;" [nzActions]="[edit, delete]">
|
||||
<h2 style="text-align: center; font-weight: bold">Client n°{{ customer().id }}</h2>
|
||||
<p>Note : {{ customer().note }}</p>
|
||||
<p> Type de Contact : {{ customer().customerType}}</p>
|
||||
</nz-card>
|
||||
<ng-template #edit>
|
||||
<nz-icon (click)="Edit()" nzType="edit" nzTheme="fill" />
|
||||
|
||||
@@ -49,6 +49,9 @@ export class OpportunityAddForm {
|
||||
async submitForm() {
|
||||
if (this.communicationForm.invalid) return;
|
||||
|
||||
const raw = this.communicationForm.getRawValue();
|
||||
console.log('contactId:', raw.contactId, 'type:', typeof raw.contactId);
|
||||
|
||||
console.log(this.communicationForm.getRawValue())
|
||||
this.communicationPost.set(this.communicationForm.getRawValue())
|
||||
|
||||
@@ -63,7 +66,7 @@ export class OpportunityAddForm {
|
||||
calling: calling,
|
||||
email: email,
|
||||
meeting: meeting,
|
||||
contactId: contactId
|
||||
contactId: Number(contactId)
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
@@ -13,5 +13,6 @@ export interface GetCustomerDto {
|
||||
id?: number;
|
||||
note?: string | null;
|
||||
customerTypeId?: number;
|
||||
customerType?: string | null;
|
||||
}
|
||||
|
||||
|
||||
@@ -16,6 +16,6 @@ export interface GetStaffDto {
|
||||
profession?: string | null;
|
||||
email?: string | null;
|
||||
f4T2NumberApproval?: string | null;
|
||||
f4T2ExpirationDate?: string;
|
||||
f4T2ExpirationDate?: Date | null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user