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