offer response

This commit is contained in:
CHIEFSOFT\ameye
2023-10-01 16:34:19 -04:00
parent f32499e2d5
commit 25d705c627
@@ -34,20 +34,49 @@ export class FamilypendingComponent implements OnInit {
text: "Cancel",
role: "cancel",
handler: () => {
// this.getMyOffersData();
this.getMyOffersData();
},
},
{
text: "Start Now",
handler: () => {
// this.sessionDataProviderService.DestroySessionOnLogout();
this.getMyOffersData();
this.sendOfferResponse(item, 100); // accepted
// this.getMyOffersData();
},
},
],
});
await alert.present();
}
responseData: {
action:number,
member_id: number,
uid: string,
sessionid: string,
offer_result:number,
contract:string,
offer_code:string
};
offerRespData:any;
sendOfferResponse(item, respType){
this.responseData = {
action:15010,
member_id: this.sessionDataProviderService.member_id,
uid: this.sessionDataProviderService.member_uid,
sessionid: this.sessionDataProviderService.session ,
offer_result:respType,
contract:item.contract,
offer_code: item.contract
}
this.wrenchService.offferResponse(this.responseData).subscribe(
offerRespData => {
this.offerRespData = offerRespData;
console.log("offerRespData RETURN->", this.offerRespData);
this.getMyOffersData();
}
);
}
usrData: {
action:number, member_id: number, uid: string,