approve contract
This commit is contained in:
@@ -56,6 +56,7 @@ export class JobreviewPage implements OnInit {
|
|||||||
{
|
{
|
||||||
text: "Approve",
|
text: "Approve",
|
||||||
handler: () => {
|
handler: () => {
|
||||||
|
this.doJobAction("ACCEPT_COMPLETE");
|
||||||
// this.sessionDataProviderService.DestroySessionOnLogout();
|
// this.sessionDataProviderService.DestroySessionOnLogout();
|
||||||
// this.router.navigate(['logout']);
|
// this.router.navigate(['logout']);
|
||||||
},
|
},
|
||||||
@@ -80,12 +81,58 @@ export class JobreviewPage implements OnInit {
|
|||||||
{
|
{
|
||||||
text: "Send Reject",
|
text: "Send Reject",
|
||||||
handler: () => {
|
handler: () => {
|
||||||
// this.sessionDataProviderService.DestroySessionOnLogout();
|
this.doJobAction("REJECT_COMPLETE");
|
||||||
// this.router.navigate(['logout']);
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
await alert.present();
|
await alert.present();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
reqData: {
|
||||||
|
action:number,
|
||||||
|
member_id: number,
|
||||||
|
uid: string,
|
||||||
|
sessionid: string,
|
||||||
|
contract:string,
|
||||||
|
contract_uid:string,
|
||||||
|
job_action:string
|
||||||
|
};
|
||||||
|
myFilesTotalData:any;
|
||||||
|
doJobActionResponse:any;
|
||||||
|
/*
|
||||||
|
'sessionid' => '6AD58B08A9F458E6E6819DD603E202C657DB9BFFDD956C16386CC65975CE0D53,
|
||||||
|
'member_id' => 1,
|
||||||
|
'uid' => '3119b744-42ad-4834-bb83-b737588754ca',
|
||||||
|
'contract' => 'X2Y9WR5632',
|
||||||
|
'contract_uid' => '10654dc5-f574-4aa6-b8e6-93b95ac5fcec',
|
||||||
|
'job_action' => ‘ACCEPT_COMPLETE’,
|
||||||
|
'action' => 14015
|
||||||
|
|
||||||
|
*/
|
||||||
|
async doJobAction(actionType){
|
||||||
|
|
||||||
|
this.reqData = {
|
||||||
|
action:14015,
|
||||||
|
member_id: this.sessionDataProviderService.member_id,
|
||||||
|
uid: this.sessionDataProviderService.member_uid,
|
||||||
|
sessionid: this.sessionDataProviderService.session ,
|
||||||
|
contract:this.jobData.contract,
|
||||||
|
contract_uid:this.jobData.contract_uid,
|
||||||
|
job_action:actionType
|
||||||
|
};
|
||||||
|
|
||||||
|
this.wrenchService.getMyFiles(this.reqData).subscribe(
|
||||||
|
doJobActionResponse => {
|
||||||
|
this.doJobActionResponse = doJobActionResponse;
|
||||||
|
console.log("doJobAction RETURN->", this.doJobActionResponse);
|
||||||
|
// debugger;
|
||||||
|
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
// activeJobStatus(reqData){
|
||||||
|
// return this.getPostData("activejobstatus", reqData);
|
||||||
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -147,6 +147,10 @@ export class WrenchService {
|
|||||||
return this.getPostData('homebanners',usrData);
|
return this.getPostData('homebanners',usrData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
activeJobStatus(reqData){
|
||||||
|
return this.getPostData("activejobstatus", reqData);
|
||||||
|
}
|
||||||
|
|
||||||
assignTask(reqData){
|
assignTask(reqData){
|
||||||
return this.getPostData("assigntask", reqData);
|
return this.getPostData("assigntask", reqData);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user