mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
fix aparecer
This commit is contained in:
@@ -275,6 +275,12 @@ export class ProcessesService {
|
||||
}
|
||||
|
||||
CompleteTask(body:Excludetask) {
|
||||
|
||||
if(!body.dataFields.DraftIds) {
|
||||
body.dataFields.DraftIds = ""
|
||||
}
|
||||
|
||||
// double check
|
||||
const geturl = environment.apiURL + 'Tasks/CompleteTask';
|
||||
|
||||
let options = {
|
||||
@@ -335,7 +341,24 @@ export class ProcessesService {
|
||||
return this.http.post<any>(`${geturl}`, body, options)
|
||||
}
|
||||
|
||||
postParecer(body:any){
|
||||
postParecer(body:any) {
|
||||
|
||||
try {
|
||||
if(!body.AttachmentList) {
|
||||
body.AttachmentList = {}
|
||||
}
|
||||
if(!body?.dataFields) {
|
||||
body.dataFields = {}
|
||||
}
|
||||
if(!body.dataFields?.DraftIds) {
|
||||
body.dataFields.DraftIds = ""
|
||||
}
|
||||
if(!body.AttachmentList?.DraftIds) {
|
||||
body.AttachmentList.DraftIds = ""
|
||||
}
|
||||
} catch (error) {}
|
||||
|
||||
|
||||
const geturl = environment.apiURL + 'Processes/CreateParecer';
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
@@ -343,7 +366,23 @@ export class ProcessesService {
|
||||
return this.http.post<any>(`${geturl}`, body, options)
|
||||
}
|
||||
|
||||
postParecerPr(body:any){
|
||||
postParecerPr(body:any) {
|
||||
try {
|
||||
if(!body.AttachmentList) {
|
||||
body.AttachmentList = {}
|
||||
}
|
||||
if(!body?.dataFields) {
|
||||
body.dataFields = {}
|
||||
}
|
||||
if(!body.dataFields?.DraftIds) {
|
||||
body.dataFields.DraftIds = ""
|
||||
}
|
||||
if(!body.AttachmentList?.DraftIds) {
|
||||
body.AttachmentList.DraftIds = ""
|
||||
}
|
||||
} catch(error) {}
|
||||
|
||||
|
||||
const geturl = environment.apiURL + 'Processes/CreateParecerPR';
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
|
||||
Reference in New Issue
Block a user