|
|
|
@ -13,11 +13,30 @@
|
|
|
|
|
<app-nav-commercant></app-nav-commercant>
|
|
|
|
|
|
|
|
|
|
<h4 class="mb-5 mt-1 font-bold wow fadeInDown text-center" style="padding-top: 5%;">Operations commerciales ({{(opCommData | async)?.length}})</h4>
|
|
|
|
|
<div class="btn-block flex-center align-middle" style="padding-top: 2%;">
|
|
|
|
|
<button class="btn btn-primary btn-rounded waves-light" id="nouvelleOp" (click)="goToCreaOpCom()">Nouvelle opération commerciale</button>
|
|
|
|
|
<!--<button class="btn btn-primary btn-rounded waves-light" (click)="goToCarteEnvoyer()">Historique carte envoyer</button>-->
|
|
|
|
|
<!--<button class="btn btn-default btn-rounded waves-light" (click)="goToProfil()">Profil</button>-->
|
|
|
|
|
<div class="btn-block row" style="padding-top: 2%;">
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
<div class="float-left">
|
|
|
|
|
<button class="btn btn-primary btn-rounded waves-light" id="nouvelleOp" (click)="goToCreaOpCom()">Nouvelle opération commerciale</button>
|
|
|
|
|
<!--<button class="btn btn-primary btn-rounded waves-light" (click)="goToCarteEnvoyer()">Historique carte envoyer</button>-->
|
|
|
|
|
<!--<button class="btn btn-default btn-rounded waves-light" (click)="goToProfil()">Profil</button>-->
|
|
|
|
|
</div>
|
|
|
|
|
<div *ngIf="(opCommData | async)?.length != 0" class="float-right">
|
|
|
|
|
<div class="dropdown" dropdown>
|
|
|
|
|
<button dropdownToggle type="button" class="btn btn-info btn-rounded dropdown-toggle waves-light" mdbRippleRadius>
|
|
|
|
|
Filtres
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
<div class="dropdown-menu">
|
|
|
|
|
<a class="dropdown-item" id="opActive" (click)="activeOP('Active')">Actives</a>
|
|
|
|
|
<a class="dropdown-item" id="opToutes" (click)="activeOP('Toutes')">Toutes</a>
|
|
|
|
|
<a class="dropdown-item" id="opBloqué" (click)="activeOP('Bloqué')">Bloquées</a>
|
|
|
|
|
<a class="dropdown-item" id="opInactive" (click)="activeOP('Inactive')">Inactives</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div *ngIf="(opCommData | async)?.length == 0" class="alert alert-danger">
|
|
|
|
|
Cher,<strong><i> {{commercant.commercialName}} </i></strong>
|
|
|
|
|
<p>Le principe est simple :</p>
|
|
|
|
@ -29,66 +48,67 @@
|
|
|
|
|
<p>N'attends plus, crées tes opérations commerciale et envoie les aux futurs parrains affiliés de ton choix !</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="list-group wow fadeInUpBig">
|
|
|
|
|
|
|
|
|
|
<div class="card mainCard" *ngFor="let op of opCommData | async">
|
|
|
|
|
<div class="row no-margin" id="testt">
|
|
|
|
|
<div class="col-md-6 mb-1 subCard1" id="subCard1">
|
|
|
|
|
<img src="{{op.carteTemplate.downloadURL}}" id="image1" class="img-fluid mx-auto d-block flex-center card-img-overlay" alt="Responsive image">
|
|
|
|
|
<div class="view">
|
|
|
|
|
<div class="mask pattern-6">
|
|
|
|
|
<div class="row no-margin firstRow">
|
|
|
|
|
<div class="col-md-6 flex-center card-block cardPart1"><p class="white-text info-text font-bold">{{commercant.commercialName}}</p></div>
|
|
|
|
|
<div class="col-md-6 flex-center card-block card-image mb-1 cardPart2 image2" [ngStyle]="{ 'background-image': 'url(' + commercant.image.downloadURL + ')'}">
|
|
|
|
|
<div *ngIf="(op.status == statutAffiche) || (statutAffiche == 'Toutes')">
|
|
|
|
|
<div class="row no-margin" id="testt">
|
|
|
|
|
<div class="col-md-6 mb-1 subCard1" id="subCard1">
|
|
|
|
|
<img src="{{op.carteTemplate.downloadURL}}" id="image1" class="img-fluid mx-auto d-block flex-center card-img-overlay" alt="Responsive image">
|
|
|
|
|
<div class="view">
|
|
|
|
|
<div class="mask pattern-6">
|
|
|
|
|
<div class="row no-margin firstRow">
|
|
|
|
|
<div class="col-md-6 flex-center card-block cardPart1"><p class="white-text info-text font-bold">{{commercant.commercialName}}</p></div>
|
|
|
|
|
<div class="col-md-6 flex-center card-block card-image mb-1 cardPart2 image2" [ngStyle]="{ 'background-image': 'url(' + commercant.image.downloadURL + ')'}">
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row no-margin secondRow">
|
|
|
|
|
<div class="col-md-6 flex-center cardPart3"><p class="white-text info-text font-bold">{{op.name}}</p></div>
|
|
|
|
|
<div class="col-md-6 flex-center cardPart4"><p class="white-text info-text font-bold">{{op.uid}}</p></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row no-margin secondRow">
|
|
|
|
|
<div class="col-md-6 flex-center cardPart3"><p class="white-text info-text font-bold">{{op.name}}</p></div>
|
|
|
|
|
<div class="col-md-6 flex-center cardPart4"><p class="white-text info-text font-bold">{{op.uid}}</p></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-6 card subCard2">
|
|
|
|
|
<div class="card-block row no-margin">
|
|
|
|
|
<div class="col-md-8 col-sm-6" id="subCard2Part1">
|
|
|
|
|
<div id="opTitle">
|
|
|
|
|
<label>Operation Commerciale : {{op.name}}</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="opAvantages">
|
|
|
|
|
<p *ngIf="op.avantageParrain == ''"></p>
|
|
|
|
|
<label>Avantage parrain : {{op.avantageParrain === ''? '0' : op.avantageParrain}} €</label>
|
|
|
|
|
<label>Avantage filleul : {{op.avantageFilleul === ''? '0' : op.avantageFilleul}} €</label>
|
|
|
|
|
<div class="col-md-6 card subCard2">
|
|
|
|
|
<div class="card-block row no-margin">
|
|
|
|
|
<div class="col-md-8 col-sm-6" id="subCard2Part1">
|
|
|
|
|
<div id="opTitle">
|
|
|
|
|
<label>Operation Commerciale : {{op.name}}</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="opAvantages">
|
|
|
|
|
<p *ngIf="op.avantageParrain == ''"></p>
|
|
|
|
|
<label>Avantage parrain : {{op.avantageParrain === ''? '0' : op.avantageParrain}} €</label>
|
|
|
|
|
<label>Avantage filleul : {{op.avantageFilleul === ''? '0' : op.avantageFilleul}} €</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="opLogs">
|
|
|
|
|
<label>Carte(s) envoyée(s): {{op.nbEnvoie === ''? '0' : op.nbEnvoie}}</label>
|
|
|
|
|
<label>Carte(s) scannée(s): {{op.nbScan === ''? '0' : op.nbScan}}</label>
|
|
|
|
|
<label>Carte(s) débitée(s): {{op.nbDebiter === ''? '0' : op.nbDebiter}}</label>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="opLogs">
|
|
|
|
|
<label>Carte(s) envoyée(s): {{op.nbEnvoie === ''? '0' : op.nbEnvoie}}</label>
|
|
|
|
|
<label>Carte(s) scannée(s): {{op.nbScan === ''? '0' : op.nbScan}}</label>
|
|
|
|
|
<label>Carte(s) débitée(s): {{op.nbDebiter === ''? '0' : op.nbDebiter}}</label>
|
|
|
|
|
<div class="col-md-2" id="subCard2Part2">
|
|
|
|
|
<button class="btn btn-outline-primary btn-rounded" [disabled]="(op.validationXJC === 'En Cours') || (op.validationXJC === 'rejeté') || (op.validationXJC === 'bloqué')" (click)="goToEnCart(op.uid)">Envoyer</button>
|
|
|
|
|
<button class="btn btn-outline-default btn-rounded" [disabled]="(op.validationXJC === 'En Cours') || (op.validationXJC === 'rejeté') || (op.validationXJC === 'bloqué')" (click)="goToScanCart(op.uid)">Scanner</button>
|
|
|
|
|
<button class="btn btn-outline-info btn-rounded" [disabled]="(op.validationXJC === 'En Cours') || (op.validationXJC === 'rejeté') || (op.validationXJC === 'bloqué')" (click)="goToDebiterCart(op.uid)">Débiter</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-2" id="subCard2Part2">
|
|
|
|
|
<button class="btn btn-outline-primary btn-rounded" [disabled]="(op.validationXJC === 'En Cours') || (op.validationXJC === 'rejeté') || (op.validationXJC === 'bloqué')" (click)="goToEnCart(op.uid)">Envoyer</button>
|
|
|
|
|
<button class="btn btn-outline-default btn-rounded" [disabled]="(op.validationXJC === 'En Cours') || (op.validationXJC === 'rejeté') || (op.validationXJC === 'bloqué')" (click)="goToScanCart(op.uid)">Scanner</button>
|
|
|
|
|
<button class="btn btn-outline-info btn-rounded" [disabled]="(op.validationXJC === 'En Cours') || (op.validationXJC === 'rejeté') || (op.validationXJC === 'bloqué')" (click)="goToDebiterCart(op.uid)">Débiter</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- Card footer -->
|
|
|
|
|
<div class="card-data" id="footerCard">
|
|
|
|
|
<ul>
|
|
|
|
|
<li class="float-right"><i class="fa fa-check-square-o" aria-hidden="true"></i>Validation:
|
|
|
|
|
<label class="font-bold" *ngIf="op.validationXJC == 'Validé'" style="color:#00C851; margin-bottom: 0">{{op.validationXJC}}</label>
|
|
|
|
|
<label class="font-bold" *ngIf="op.validationXJC == 'En Cours'" style="color:#ffbb33; margin-bottom: 0">{{op.validationXJC}}</label>
|
|
|
|
|
<label class="font-bold" *ngIf="op.validationXJC == 'Rejeté'" style="color:#ff4444; margin-bottom: 0">{{op.validationXJC}}</label>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="float-right" style="padding-right: 2%"><i class="fa fa-info-circle" aria-hidden="true"></i>Statut:
|
|
|
|
|
<label class="font-bold" *ngIf="op.status == 'Active'" style="color:#00C851; margin-bottom: 0">{{op.status}}</label>
|
|
|
|
|
<label class="font-bold" *ngIf="op.status == 'Inactive'" style="color:#ffbb33; margin-bottom: 0">{{op.status}}</label>
|
|
|
|
|
<label class="font-bold" *ngIf="op.status == 'Bloqué'" style="color:#ff4444; margin-bottom: 0">{{op.status}}</label>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="float-left"><i class="fa fa-clock-o"></i>Valable du {{op.dateDebut | date:'dd/MM/yyyy'}} au {{op.dateFin | date:'dd/MM/yyyy'}}</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<!-- Card footer -->
|
|
|
|
|
<div class="card-data" id="footerCard">
|
|
|
|
|
<ul>
|
|
|
|
|
<li class="float-right"><i class="fa fa-check-square-o" aria-hidden="true"></i>Validation:
|
|
|
|
|
<label class="font-bold" *ngIf="op.validationXJC == 'Validé'" style="color:#00C851; margin-bottom: 0">{{op.validationXJC}}</label>
|
|
|
|
|
<label class="font-bold" *ngIf="op.validationXJC == 'En Cours'" style="color:#ffbb33; margin-bottom: 0">{{op.validationXJC}}</label>
|
|
|
|
|
<label class="font-bold" *ngIf="op.validationXJC == 'Rejeté'" style="color:#ff4444; margin-bottom: 0">{{op.validationXJC}}</label>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="float-right" style="padding-right: 2%"><i class="fa fa-info-circle" aria-hidden="true"></i>Statut:
|
|
|
|
|
<label class="font-bold" *ngIf="op.status == 'Active'" style="color:#00C851; margin-bottom: 0">{{op.status}}</label>
|
|
|
|
|
<label class="font-bold" *ngIf="op.status == 'Inactive'" style="color:#ffbb33; margin-bottom: 0">{{op.status}}</label>
|
|
|
|
|
<label class="font-bold" *ngIf="op.status == 'Bloqué'" style="color:#ff4444; margin-bottom: 0">{{op.status}}</label>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="float-left"><i class="fa fa-clock-o"></i>Valable du {{op.dateDebut | date:'dd/MM/yyyy'}} au {{op.dateFin | date:'dd/MM/yyyy'}}</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- Card footer -->
|
|
|
|
|
</div>
|
|
|
|
|