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;
|
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(){
|
onSubmit2(){
|
||||||
|
|
||||||
|
|
||||||
@ -879,10 +888,15 @@ this.onCreateConfirm()
|
|||||||
|
|
||||||
|
|
||||||
this._api.CreateOrder (param).subscribe(res => {
|
this._api.CreateOrder (param).subscribe(res => {
|
||||||
|
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
this.showToast('success', 'Updated Successfully', '');
|
this.showToast('success', 'Updated Successfully', '');
|
||||||
|
|
||||||
|
|
||||||
|
if(this.selectStatus == "Out For Delivery"){
|
||||||
|
this.notify(this.selectDriver , this.setData.orderId , this.selectCustomer );
|
||||||
|
}
|
||||||
this.selectStatus =[];
|
this.selectStatus =[];
|
||||||
}else{
|
}else{
|
||||||
this.showToast('warning', 'Somthing is Wrong...!', '');
|
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`.
|
// The list of which env maps to which file can be found in `.angular-cli.json`.
|
||||||
|
|
||||||
export const environment = {
|
export const environment = {
|
||||||
apiEndpoint:'https://dev.venbait.in/vnms/api/',
|
apiEndpoint:'https://api.vnms.in/api/',
|
||||||
// apiEndpoint:'http://localhost:8081/api/',
|
// apiEndpoint:'http://localhost:8081/api/',
|
||||||
mailUrl:'',
|
mailUrl:'',
|
||||||
production: false,
|
production: false,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user