vcomply-workflow-engine 2.6.80 → 2.6.81
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.
- package/bundles/vcomply-workflow-engine.umd.js +5 -4
- package/bundles/vcomply-workflow-engine.umd.js.map +1 -1
- package/esm2015/lib/workflow-compliance/workflow-compliance.component.js +6 -5
- package/fesm2015/vcomply-workflow-engine.js +5 -4
- package/fesm2015/vcomply-workflow-engine.js.map +1 -1
- package/package.json +1 -1
|
@@ -4496,7 +4496,7 @@
|
|
|
4496
4496
|
};
|
|
4497
4497
|
WorkflowComplianceComponent.prototype.entrustResponsibility = function (entrustForm) {
|
|
4498
4498
|
var _this = this;
|
|
4499
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
|
|
4499
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4;
|
|
4500
4500
|
this.loader = true;
|
|
4501
4501
|
this.uiKitService.isLoader = true;
|
|
4502
4502
|
var startDate = moment__namespace(parseInt(entrustForm.startDate) * 1000).format("YYYY-MM-DD HH:mm:ss");
|
|
@@ -4546,7 +4546,7 @@
|
|
|
4546
4546
|
var objective = (((_g = entrustForm.objective) === null || _g === void 0 ? void 0 : _g.replace(/\ /g, '').trim()) !== '') ? entrustForm.objective : '';
|
|
4547
4547
|
var payload = {
|
|
4548
4548
|
app_association: [],
|
|
4549
|
-
assigned_to: this.returnIds(entrustForm.assignees.list, 'employee_id').toString(),
|
|
4549
|
+
assigned_to: (entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.responsibility_type) == '1' ? '0' : this.returnIds(entrustForm.assignees.list, 'employee_id').toString(),
|
|
4550
4550
|
program_cat_ids: (moreOptions === null || moreOptions === void 0 ? void 0 : moreOptions.PROGRAM) ? (((_h = entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.program) === null || _h === void 0 ? void 0 : _h.length) ? [entrustForm.program[0].category_id] : []) : [],
|
|
4551
4551
|
linked_program_ids: linkedProgramIds,
|
|
4552
4552
|
linked_category_ids: this.getUniqueIds(__spreadArray(__spreadArray([], __read(categoryIdsExceptDefault)), __read(linkedCategoryIds))),
|
|
@@ -4593,7 +4593,7 @@
|
|
|
4593
4593
|
reminder_before_days: entrustForm.reminder_before_days,
|
|
4594
4594
|
report_format: (moreOptions.FORMATE_EVIDENCE) ? entrustForm.formatAndEvidence.formatFiles : [],
|
|
4595
4595
|
report_format_link: '',
|
|
4596
|
-
report_name: (entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.responsibility_type) == '
|
|
4596
|
+
report_name: (entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.responsibility_type) == '1' ? (_w = entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.systemResponsibilities[0]) === null || _w === void 0 ? void 0 : _w.name : (_x = entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.responsibility) === null || _x === void 0 ? void 0 : _x.name,
|
|
4597
4597
|
report_upload_flag: entrustForm.formatAndEvidence.evidenceRequired ? 1 : 0,
|
|
4598
4598
|
review_after_days: (moreOptions.REVIEWER) ? entrustForm.reviewers.reviewFrequency.reviewCompleteDays === '' ? 0 : Number(entrustForm.reviewers.reviewFrequency.reviewCompleteDays) : 0,
|
|
4599
4599
|
review_failed_after_days: (moreOptions.REVIEWER) ? entrustForm.reviewers.reviewFrequency.reviewNOtCompletedDays === '' ? 0 : Number(entrustForm.reviewers.reviewFrequency.reviewNOtCompletedDays) : 0,
|
|
@@ -4633,7 +4633,7 @@
|
|
|
4633
4633
|
},
|
|
4634
4634
|
assessment_checkpoint: moreOptions.CHECKPOINTS_NEW ? (Object.keys(entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.new_checkpoints).length > 0 ? entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.new_checkpoints : {}) : {},
|
|
4635
4635
|
questionnaire_type: moreOptions.CHECKPOINTS_NEW ? (Object.keys(entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.new_checkpoints).length > 0 ? 'assessment_checkpoint' : (moreOptions.ASSESSMENT && ((_2 = entrustForm === null || entrustForm === void 0 ? void 0 : entrustForm.assessment) === null || _2 === void 0 ? void 0 : _2.category_id) ? 'assessment' : (JSON.stringify(this.responsibilityForm.checkpoints) != '' && moreOptions.CHECKPOINTS ? 'checkpoint' : ''))) : '',
|
|
4636
|
-
linked_system_responsibility: (_3 = this.responsibilityForm) === null || _3 === void 0 ? void 0 : _3.systemResponsibilities.map(function (val) { return val === null || val === void 0 ? void 0 : val._id; }),
|
|
4636
|
+
linked_system_responsibility: (_4 = (_3 = this.responsibilityForm) === null || _3 === void 0 ? void 0 : _3.systemResponsibilities) === null || _4 === void 0 ? void 0 : _4.map(function (val) { return val === null || val === void 0 ? void 0 : val._id; }),
|
|
4637
4637
|
};
|
|
4638
4638
|
this.responsibilityPayload = payload;
|
|
4639
4639
|
if (this.mode == 'CREATE' && !this.isDuplicateEntrust) {
|
|
@@ -4664,6 +4664,7 @@
|
|
|
4664
4664
|
});
|
|
4665
4665
|
}
|
|
4666
4666
|
if (this.mode == 'EDIT' || this.isDuplicateEntrust) {
|
|
4667
|
+
console.log('update');
|
|
4667
4668
|
this.smileyMessage = "The responsibility has been modified.";
|
|
4668
4669
|
this.responsibilityService.updateEntrust(payload, this.responsibilityId, true).subscribe(function (res) {
|
|
4669
4670
|
_this.responsibilityData = res;
|