Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
synergy-components
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
synergy-components
Commits
773a78ea
Commit
773a78ea
authored
Apr 03, 2025
by
Samir Sadyhov
🤔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
openDocument.js - подписание через egov mobile
parent
cf596461
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
constructor/scripts/openDocument/openDocument.js
constructor/scripts/openDocument/openDocument.js
+13
-5
No files found.
constructor/scripts/openDocument/openDocument.js
View file @
773a78ea
...
...
@@ -505,19 +505,27 @@ const openDialogSelectSignType = handler => {
});
}
const
signDocument
=
async
(
documentID
,
signButton
)
=>
{
const
signDocument
=
async
(
_doc
,
signButton
)
=>
{
try
{
openDialogSelectSignType
(
async
signType
=>
{
switch
(
signType
)
{
case
'
egov
'
:
generateQRCodeEgov
(
documentID
,
'
sign
'
);
break
;
case
'
egov
'
:
{
generateQRCodeEgov
({
documentID
:
_doc
.
documentID
,
worktype
:
'
sign
'
},
()
=>
{
closeDocument
(
_doc
);
});
break
;
}
case
'
ncalayer
'
:
{
NCALayer
.
sign
(
'
SIGN
'
,
documentID
,
async
result
=>
{
NCALayer
.
sign
(
'
SIGN
'
,
_doc
.
documentID
,
async
result
=>
{
Cons
.
showLoader
();
try
{
const
signResult
=
await
AS
.
FORMS
.
ApiUtils
.
simpleAsyncPost
(
"
rest/api/docflow/sign
"
,
null
,
null
,
{
documentID
,
documentID
:
_doc
.
documentID
,
rawdata
:
result
.
dataForSign
,
signdata
:
result
.
signedData
,
certificate
:
result
.
certificate
,
...
...
@@ -993,7 +1001,7 @@ class ButtonsActions {
signButton
.
on
(
'
click
'
,
e
=>
{
e
.
preventDefault
();
e
.
target
.
blur
();
signDocument
(
this
.
_doc
.
documentID
,
signButton
);
signDocument
(
this
.
_doc
,
signButton
);
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment