vcomply-workflow-engine 7.3.5 → 7.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -34023,12 +34023,12 @@ class WorkflowComplianceComponent {
|
|
|
34023
34023
|
cost_of_compliance: '',
|
|
34024
34024
|
created_by: entrustForm.assignors.list?.length < 1 ? 0 : this.memberId,
|
|
34025
34025
|
creation_window: 0,
|
|
34026
|
-
custom_tags: entrustForm
|
|
34026
|
+
custom_tags: entrustForm?.customFields?.length > 0 ? entrustForm?.customFields?.map((ele) => {
|
|
34027
34027
|
return {
|
|
34028
34028
|
id: ele.id,
|
|
34029
34029
|
value: ele.value,
|
|
34030
34030
|
};
|
|
34031
|
-
}),
|
|
34031
|
+
}) : [],
|
|
34032
34032
|
entity_tree: moreOptions?.RC
|
|
34033
34033
|
? this.isResponsibilityRcLinkEnabled &&
|
|
34034
34034
|
this.responsibilityCenterType == 1
|
|
@@ -34047,17 +34047,17 @@ class WorkflowComplianceComponent {
|
|
|
34047
34047
|
grc_relationship: '',
|
|
34048
34048
|
if_testplan_failed: 0,
|
|
34049
34049
|
impact: '',
|
|
34050
|
-
isGroupAssignTo: entrustForm
|
|
34051
|
-
is_key_compliance: entrustForm.responsibility
|
|
34050
|
+
isGroupAssignTo: entrustForm?.assignees?.whoCanComplete == 'ANY_ONE' ? 1 : 0,
|
|
34051
|
+
is_key_compliance: entrustForm.responsibility?.keyResponsibility ? 1 : 0,
|
|
34052
34052
|
allowEditDueDate: entrustForm?.allowEditDueDate ? true : false,
|
|
34053
34053
|
library_report_id: 0,
|
|
34054
34054
|
lifecycle_details: entrustForm.lifecycleDetails ?? '0000-00-00~~0',
|
|
34055
34055
|
link_for_details: moreOptions?.FORMATE_EVIDENCE
|
|
34056
|
-
? entrustForm.formatAndEvidence
|
|
34056
|
+
? entrustForm.formatAndEvidence?.formatLinks
|
|
34057
34057
|
: [],
|
|
34058
34058
|
linkages: { compliance: [] },
|
|
34059
|
-
member_id: this.returnIds(entrustForm.assignors
|
|
34060
|
-
? this.returnIds(entrustForm.assignors
|
|
34059
|
+
member_id: this.returnIds(entrustForm.assignors?.list, 'uid')?.length > 0
|
|
34060
|
+
? this.returnIds(entrustForm.assignors?.list, 'uid')[0]
|
|
34061
34061
|
: this.memberId,
|
|
34062
34062
|
objective: moreOptions?.OBJECTIVE ? objective : '',
|
|
34063
34063
|
on_completion_of: entrustForm.reportId ? [entrustForm.reportId] : [],
|
|
@@ -34073,38 +34073,38 @@ class WorkflowComplianceComponent {
|
|
|
34073
34073
|
? entrustForm.formatAndEvidence.formatFiles
|
|
34074
34074
|
: [],
|
|
34075
34075
|
isFormatUpload: moreOptions?.FORMATE_EVIDENCE &&
|
|
34076
|
-
entrustForm.formatAndEvidence
|
|
34076
|
+
entrustForm.formatAndEvidence?.formatRequired
|
|
34077
34077
|
? 1
|
|
34078
34078
|
: 0,
|
|
34079
34079
|
report_format_link: '',
|
|
34080
|
-
report_name: entrustForm.responsibility
|
|
34081
|
-
report_upload_flag: entrustForm.formatAndEvidence
|
|
34080
|
+
report_name: entrustForm.responsibility?.name,
|
|
34081
|
+
report_upload_flag: entrustForm.formatAndEvidence?.evidenceRequired
|
|
34082
34082
|
? 1
|
|
34083
34083
|
: 0,
|
|
34084
34084
|
review_after_days: moreOptions?.REVIEWER
|
|
34085
|
-
? entrustForm.reviewers.reviewFrequency
|
|
34085
|
+
? entrustForm.reviewers.reviewFrequency?.reviewCompleteDays === ''
|
|
34086
34086
|
? 0
|
|
34087
|
-
: Number(entrustForm.reviewers.reviewFrequency
|
|
34087
|
+
: Number(entrustForm.reviewers.reviewFrequency?.reviewCompleteDays)
|
|
34088
34088
|
: 0,
|
|
34089
34089
|
review_failed_after_days: moreOptions?.REVIEWER
|
|
34090
|
-
? entrustForm.reviewers.reviewFrequency
|
|
34090
|
+
? entrustForm.reviewers.reviewFrequency?.reviewNOtCompletedDays === ''
|
|
34091
34091
|
? 0
|
|
34092
|
-
: Number(entrustForm.reviewers.reviewFrequency
|
|
34092
|
+
: Number(entrustForm.reviewers.reviewFrequency?.reviewNOtCompletedDays)
|
|
34093
34093
|
: 0,
|
|
34094
34094
|
reviewer_arr: moreOptions?.REVIEWER
|
|
34095
34095
|
? {
|
|
34096
34096
|
level1: {
|
|
34097
|
-
reviewers: this.setReviewerPayload(this.reviewerUserList, 'list', entrustForm.reviewers.acceptedData, entrustForm.reviewers
|
|
34097
|
+
reviewers: this.setReviewerPayload(this.reviewerUserList, 'list', entrustForm.reviewers.acceptedData, entrustForm.reviewers?.sequentialWorkflow
|
|
34098
34098
|
? 'SEQUENTIAL'
|
|
34099
34099
|
: 'ANYONE'),
|
|
34100
|
-
type: entrustForm.reviewers
|
|
34100
|
+
type: entrustForm.reviewers?.sequentialWorkflow
|
|
34101
34101
|
? 'SEQUENTIAL'
|
|
34102
34102
|
: 'ANYONE',
|
|
34103
34103
|
},
|
|
34104
34104
|
}
|
|
34105
34105
|
: {},
|
|
34106
34106
|
userGroupIds: {
|
|
34107
|
-
assigneeAllGroupIds: entrustForm.assignees
|
|
34107
|
+
assigneeAllGroupIds: entrustForm.assignees?.whoCanComplete !== 'ANY_ONE'
|
|
34108
34108
|
? this.returnIds(entrustForm?.assigneeGroups?.list, 'ugid')
|
|
34109
34109
|
: [],
|
|
34110
34110
|
assigneeAnyoneGroupIds: entrustForm.assignees.whoCanComplete === 'ANY_ONE'
|