This commit is contained in:
bitbucket 2023-12-30 13:09:52 +05:30
parent 25ffa9c641
commit fba470b826
3 changed files with 10 additions and 8 deletions

View File

@ -41,7 +41,7 @@
</nb-select>
<hr>
<div style="font-size: larger;margin-top: 1rem;;margin-bottom: 1rem;"> Shipping Information</div>
<div style="font-size: larger;margin-top: 1rem;margin-bottom: 1rem;"> Shipping Information</div>
<div class="row show-grid" *ngIf="product.length>0">
<div class="col-6 col-md-4">
<div>
@ -79,12 +79,12 @@
<p style="text-transform: capitalize;" *ngIf="fieldTitle == 'View Order' " [ngStyle] = "{'color':setData.status =='ordered'?'#1f1dc9f5':setData.status =='Delivered' ?'green':'red' }" > {{setData.status}} <br> <span *ngIf="setData.status == 'Delivered' || setData.status == 'Out For Delivery'" style="color: black;">({{setData['UserDetails.userName']}}) </span></p>
<nb-select selected="" *ngIf="fieldTitle != 'View Order'" (ngModelChange)="onSelectChange($event)" placeholder="Change Status" clearable style="width: 57% !important;margin-top: 1rem;" [(ngModel)]="selectStatus" >
<!-- <nb-option value="">Change Status</nb-option> -->
<nb-option value="ordered" >Ordered</nb-option>
<nb-option value="In Progress" >In Progresss</nb-option>
<nb-option value="Out For Delivery" >Out For Delivery</nb-option>
<nb-option *ngIf="setData.status == 'ordered'" value="ordered">Ordered</nb-option>
<nb-option value="In Progress">In Progresss</nb-option>
<nb-option value="Out For Delivery">Out For Delivery</nb-option>
<nb-option value="Delivered" >Delivered</nb-option>
<nb-option value="Cancelled" >Cancelled</nb-option>
<nb-option value="Delivered">Delivered</nb-option>
<nb-option value="Cancelled">Cancelled</nb-option>
</nb-select>

View File

@ -69,8 +69,9 @@ fieldTitle:any ='New Order'
if(res){
this.addFormBtn = 1
this. setData = res
this.dropdown_data = this.setData['OrderDetails.status'];
this.setData = res
this.dropdown_data = this.setData['status'];
// alert(this.setData['status'])
console.log(this.setData)
this.selectStatus = res.status
console.log(this.selectStatus)
@ -122,6 +123,7 @@ fieldTitle:any ='New Order'
this.getDriverlistApi()
console.log(this.setData)
// this.dropdown_data = this.setData['OrderDetails.status'];
if(this.setData != undefined){

Binary file not shown.