Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
48a77f50
Commit
48a77f50
authored
Jun 19, 2020
by
zhaoxiqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
50a222e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
bpo-web/app/base/controller/impl/econtractCtl.js
+6
-6
No files found.
bpo-web/app/base/controller/impl/econtractCtl.js
View file @
48a77f50
...
...
@@ -17,6 +17,7 @@ class EcontractCtl extends CtlBase {
this
.
Mail
=
system
.
getObject
(
"util.mailClient"
);
this
.
excelClient
=
system
.
getObject
(
"util.excelClient"
);
this
.
econtractDao
=
system
.
getObject
(
"db.econtractDao"
)
this
.
eSignBaoRedirectBossUrl
=
settings
.
apiconfig
.
eSignBaoRedirectBossUrl
();
}
...
...
@@ -39,7 +40,7 @@ class EcontractCtl extends CtlBase {
return
system
.
getErrResult2
(
rs
.
msg
);
}
else
{
return
system
.
getResult2
(
rs
);
}
}
}
catch
(
e
)
{
console
.
log
(
e
);
return
system
.
getErrResult2
(
"您的网络不稳, 请稍后重试"
);
...
...
@@ -261,9 +262,9 @@ class EcontractCtl extends CtlBase {
return
system
.
getErrResult2
(
"协议不存在,请刷新重新选择"
);
}
let
sinedTemplateIds
=
await
this
.
service
.
findUserSinedTemplateIds
(
eaccount_id
)
;
if
(
sinedTemplateIds
.
indexOf
(
Number
(
etemplate
.
id
))
!=
-
1
)
{
let
todays
=
moment
().
format
(
"YYYY-MM-DD"
)
+
" 00:00:00"
;
let
contractId
=
await
this
.
econtractDao
.
findSignedContractId
({
idno
:
eaccount
.
personsSign
,
ecid
:
etemplateid
,
today
:
todays
})
||
0
;
if
(
contractId
)
{
return
system
.
getErrResult2
(
"你已经签署该公司协议,不可以重复签署"
);
}
...
...
@@ -492,4 +493,4 @@ class EcontractCtl extends CtlBase {
}
}
module
.
exports
=
EcontractCtl
;
\ No newline at end of file
module
.
exports
=
EcontractCtl
;
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