明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
J
jt_backend
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zengfanpei
jt_backend
Commits
27a0eeab
Commit
27a0eeab
authored
May 13, 2026
by
zfp1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
7be2acee
Pipeline
#111209
passed with stage
in 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
projectController.js
controller/projectController.js
+6
-6
No files found.
controller/projectController.js
View file @
27a0eeab
...
@@ -148,7 +148,7 @@ async function createProject(req, res, next) {
...
@@ -148,7 +148,7 @@ async function createProject(req, res, next) {
// });
// });
// // let approvers = await userModule.getProjectApprover(req.user.id, 'xmgs_xmspr');
// // let approvers = await userModule.getProjectApprover(req.user.id, 'xmgs_xmspr');
// // if (!(approvers && approvers.length > 0)) {
// // if (!(approvers && approvers.length > 0)) {
// // return res.sendError({ code: '60001', m
sg
: '项目已保存,请联系管理员为本公司添加【项目初审】角色人员' });
// // return res.sendError({ code: '60001', m
essage
: '项目已保存,请联系管理员为本公司添加【项目初审】角色人员' });
// // }
// // }
// // await DB.Message.create({
// // await DB.Message.create({
// // projectId: project.id,
// // projectId: project.id,
...
@@ -335,7 +335,7 @@ async function startLixiang(req, res, next) {
...
@@ -335,7 +335,7 @@ async function startLixiang(req, res, next) {
// 项目公司所属单位员工发起,发送消息给项目单位部门长核准
// 项目公司所属单位员工发起,发送消息给项目单位部门长核准
let
approvers
=
await
userModule
.
getCompanyProjectApprover
(
req
.
user
.
id
);
let
approvers
=
await
userModule
.
getCompanyProjectApprover
(
req
.
user
.
id
);
if
(
!
(
approvers
&&
approvers
.
length
>
0
))
{
if
(
!
(
approvers
&&
approvers
.
length
>
0
))
{
return
res
.
sendError
({
code
:
'60001'
,
m
sg
:
'项目已保存,请联系管理员为本公司添加【项目立项核准】角色人员'
});
return
res
.
sendError
({
code
:
'60001'
,
m
essage
:
'项目已保存,请联系管理员为本公司添加【项目立项核准】角色人员'
});
}
}
//更新信息和状态
//更新信息和状态
let
ret
=
await
xiangmulixianggengxin
(
req
.
body
,
"2"
);
//状态 2 -- 立项核准中
let
ret
=
await
xiangmulixianggengxin
(
req
.
body
,
"2"
);
//状态 2 -- 立项核准中
...
@@ -382,7 +382,7 @@ async function approvalLixiangByDepartHeader(req, res, next) {
...
@@ -382,7 +382,7 @@ async function approvalLixiangByDepartHeader(req, res, next) {
// 给投管部经办人发消息
// 给投管部经办人发消息
let
approvers
=
await
userModule
.
getTouGuanJbrProjectApprover
(
req
.
user
.
id
);
let
approvers
=
await
userModule
.
getTouGuanJbrProjectApprover
(
req
.
user
.
id
);
if
(
!
(
approvers
&&
approvers
.
length
>
0
))
{
if
(
!
(
approvers
&&
approvers
.
length
>
0
))
{
return
res
.
sendError
({
code
:
'60001'
,
m
sg
:
'项目已保存,请联系管理员添加【投管部经办人】角色人员'
});
return
res
.
sendError
({
code
:
'60001'
,
m
essage
:
'项目已保存,请联系管理员添加【投管部经办人】角色人员'
});
}
}
//部门长核准通过,更新项目信息和状态--立项初审
//部门长核准通过,更新项目信息和状态--立项初审
ret
=
await
xiangmulixianggengxin
(
body
,
"3"
);
ret
=
await
xiangmulixianggengxin
(
body
,
"3"
);
...
@@ -448,7 +448,7 @@ async function approvalLixiangByTouGuanJbr(req, res, next) {
...
@@ -448,7 +448,7 @@ async function approvalLixiangByTouGuanJbr(req, res, next) {
// 给投管部正副职发消息
// 给投管部正副职发消息
let
approvers
=
await
userModule
.
getTouGuanZfzProjectApprover
(
req
.
user
.
id
);
let
approvers
=
await
userModule
.
getTouGuanZfzProjectApprover
(
req
.
user
.
id
);
if
(
!
(
approvers
&&
approvers
.
length
>
0
))
{
if
(
!
(
approvers
&&
approvers
.
length
>
0
))
{
return
res
.
sendError
({
code
:
'60001'
,
m
sg
:
'请联系管理员添加【投管部正副职】角色人员'
});
return
res
.
sendError
({
code
:
'60001'
,
m
essage
:
'请联系管理员添加【投管部正副职】角色人员'
});
}
}
//投管部经办人审批通过,更新项目信息和状态为--立项终审
//投管部经办人审批通过,更新项目信息和状态为--立项终审
ret
=
await
xiangmulixianggengxin
(
body
,
"4"
);
ret
=
await
xiangmulixianggengxin
(
body
,
"4"
);
...
@@ -725,7 +725,7 @@ async function startJuece(req, res, next) {
...
@@ -725,7 +725,7 @@ async function startJuece(req, res, next) {
let
approvers
=
await
userModule
.
getTouGuanZfzProjectApprover
(
req
.
user
.
id
);
let
approvers
=
await
userModule
.
getTouGuanZfzProjectApprover
(
req
.
user
.
id
);
if
(
!
(
approvers
&&
approvers
.
length
>
0
))
{
if
(
!
(
approvers
&&
approvers
.
length
>
0
))
{
return
res
.
sendError
({
code
:
'60002'
,
m
sg
:
'请联系管理员为本公司添加【项目决策】角色人员'
});
return
res
.
sendError
({
code
:
'60002'
,
m
essage
:
'请联系管理员为本公司添加【项目决策】角色人员'
});
}
}
req
.
body
.
projectFqJueceUser
=
req
.
user
.
id
;
//记录一下项目决策发起人
req
.
body
.
projectFqJueceUser
=
req
.
user
.
id
;
//记录一下项目决策发起人
let
ret
=
await
xiangmujuecegengxin
(
req
.
body
,
"8"
);
//决策审批中
let
ret
=
await
xiangmujuecegengxin
(
req
.
body
,
"8"
);
//决策审批中
...
@@ -1407,7 +1407,7 @@ async function startZaiJuece(req, res, next) {
...
@@ -1407,7 +1407,7 @@ async function startZaiJuece(req, res, next) {
let
approvers
=
await
userModule
.
getTouGuanZfzProjectApprover
(
req
.
user
.
id
);
let
approvers
=
await
userModule
.
getTouGuanZfzProjectApprover
(
req
.
user
.
id
);
if
(
!
(
approvers
&&
approvers
.
length
>
0
))
{
if
(
!
(
approvers
&&
approvers
.
length
>
0
))
{
return
res
.
sendError
({
code
:
'60002'
,
m
sg
:
'项目已保存,请联系管理员为本公司添加【项目再决策】角色人员'
});
return
res
.
sendError
({
code
:
'60002'
,
m
essage
:
'项目已保存,请联系管理员为本公司添加【项目再决策】角色人员'
});
}
}
req
.
body
.
projectFqZaiJueceUser
=
req
.
user
.
id
;
//发起人
req
.
body
.
projectFqZaiJueceUser
=
req
.
user
.
id
;
//发起人
let
ret
=
await
xiangmujuecegengxin
(
req
.
body
,
"12"
);
//再决策审批中
let
ret
=
await
xiangmujuecegengxin
(
req
.
body
,
"12"
);
//再决策审批中
...
...
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