CHANGES:notification api call GWM
This commit is contained in:
parent
765586281c
commit
6fff882d7d
Binary file not shown.
@ -847,6 +847,15 @@ onSelectChange1(newValue: string) {
|
||||
this.hiddenBtn = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
notify(id,ordId,cusName){
|
||||
let obj = { "id" : id , "ordId" : ordId , 'cusName' : cusName }
|
||||
this._api.Notification(obj).subscribe(res => { console.log( "success");
|
||||
})
|
||||
}
|
||||
|
||||
onSubmit2(){
|
||||
|
||||
|
||||
@ -866,7 +875,7 @@ onSubmit2(){
|
||||
|
||||
if(this.selectStatus == "Delivered"){
|
||||
|
||||
this.onCreateConfirm()
|
||||
this.onCreateConfirm()
|
||||
|
||||
}else{
|
||||
|
||||
@ -879,11 +888,16 @@ this.onCreateConfirm()
|
||||
|
||||
|
||||
this._api.CreateOrder (param).subscribe(res => {
|
||||
|
||||
if (res.status == 200) {
|
||||
console.log(res)
|
||||
this.showToast('success', 'Updated Successfully', '');
|
||||
|
||||
this.selectStatus =[];
|
||||
console.log(res)
|
||||
this.showToast('success', 'Updated Successfully', '');
|
||||
|
||||
|
||||
if(this.selectStatus == "Out For Delivery"){
|
||||
this.notify(this.selectDriver , this.setData.orderId , this.selectCustomer );
|
||||
}
|
||||
this.selectStatus =[];
|
||||
}else{
|
||||
this.showToast('warning', 'Somthing is Wrong...!', '');
|
||||
}
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
// The list of which env maps to which file can be found in `.angular-cli.json`.
|
||||
|
||||
export const environment = {
|
||||
apiEndpoint:'https://dev.venbait.in/vnms/api/',
|
||||
apiEndpoint:'https://api.vnms.in/api/',
|
||||
// apiEndpoint:'http://localhost:8081/api/',
|
||||
mailUrl:'',
|
||||
production: false,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user