CHANGES:notification api call GWM

This commit is contained in:
bitbucket 2024-03-26 15:21:58 +05:30
parent 765586281c
commit 6fff882d7d
3 changed files with 20 additions and 6 deletions

View File

@ -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...!', '');
}

View File

@ -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,