Commit 709345c6 authored by Samir Sadyhov's avatar Samir Sadyhov 🤔

fix openDocument.js

parent 4fe64316
...@@ -432,7 +432,7 @@ const activateDocument = async _doc => { ...@@ -432,7 +432,7 @@ const activateDocument = async _doc => {
try { try {
Cons.showLoader(); Cons.showLoader();
const asfData = formPlayer.model.getAsfData(); const asfData = formPlayer.model.getAsfData();
await AS.FORMS.ApiUtils.saveAsfData(asfData.data, asfData.form, asfData.uuid); await AS.FORMS.ApiUtils.saveAsfData(asfData.data, asfData.form, asfData.uuid);
...@@ -1009,7 +1009,7 @@ class Document { ...@@ -1009,7 +1009,7 @@ class Document {
break; break;
case 'resolution-action-single': console.log('Резолюция? хммм....'); break; // Резолюция case 'resolution-action-single': console.log('Резолюция? хммм....'); break; // Резолюция
} }
} else if(AS.OPTIONS.currentUser.userid == author.id) { } else if(AS.OPTIONS.currentUser.userid == author.id && ['null', 'assignment-single'].includes(parent_process)) {
if(completionForm && completionForm.hasOwnProperty('is_result_free') && !completionForm.is_result_free) { if(completionForm && completionForm.hasOwnProperty('is_result_free') && !completionForm.is_result_free) {
createButton(this._doc, i18n.tr("Завершить"), 'arm_action_button3', () => { createButton(this._doc, i18n.tr("Завершить"), 'arm_action_button3', () => {
_WORK.acceptWork(this._doc); _WORK.acceptWork(this._doc);
...@@ -1029,7 +1029,6 @@ class Document { ...@@ -1029,7 +1029,6 @@ class Document {
} }
} }
} }
} }
resizePanels(this._doc); resizePanels(this._doc);
...@@ -2026,7 +2025,7 @@ class ARMFooter { ...@@ -2026,7 +2025,7 @@ class ARMFooter {
_doc.process = await AS.FORMS.ApiUtils.simpleAsyncGet(`rest/api/workflow/get_execution_process?documentID=${_doc.documentID}&locale=${AS.OPTIONS.locale}`); _doc.process = await AS.FORMS.ApiUtils.simpleAsyncGet(`rest/api/workflow/get_execution_process?documentID=${_doc.documentID}&locale=${AS.OPTIONS.locale}`);
_doc.processResponsible = getResponsibleUserWork(_doc.process); _doc.processResponsible = getResponsibleUserWork(_doc.process);
_doc.process = getUserWork(_doc.process, AS.OPTIONS.currentUser.userid); _doc.process = getUserWork(_doc.process, AS.OPTIONS.currentUser.userid);
if(_doc.type == 'document') { if(_doc.type == 'document') {
if(_doc.process.length) { if(_doc.process.length) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment