明树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
59d095e7
Commit
59d095e7
authored
Dec 04, 2025
by
zfp1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
e74086fa
Pipeline
#104141
passed with stage
in 3 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
projectController.js
controller/projectController.js
+6
-9
No files found.
controller/projectController.js
View file @
59d095e7
...
...
@@ -170,7 +170,6 @@ async function createProject(req, res, next) {
async
function
xiangmulixianggengxin
(
body
,
projectLzType
)
{
try
{
// 1. 处理项目
// let project = body;
let
projectInfo
=
_
.
omit
(
body
,
[
'projectJsgms'
,
'projectGdxxs'
,
'projectXmtzzes'
,
'projectBjtjs'
,
'projectSpyjs'
,
'projectFxgls'
,
'projectTzzts'
,
'projectJczts'
,
'projectZqrzs'
,
'projectCwpjzbs'
,
'projectLcbjds'
,
'lxzl'
,
'lxpfwj'
,
'xgshcl'
]);
...
...
@@ -281,8 +280,7 @@ async function saveProjectPreLixiang(req, res, next) {
*/
async
function
startLixiang
(
req
,
res
,
next
)
{
try
{
let
body
=
req
.
body
;
if
(
!
body
.
id
)
{
if
(
!
req
.
body
.
id
)
{
return
res
.
sendError
(
errorMessage
.
resourceNotFound
)
}
...
...
@@ -290,11 +288,11 @@ async function startLixiang(req, res, next) {
await
DB
.
FlowRecord
.
create
({
userId
:
req
.
user
.
id
,
actionName
:
'发起项目立项审批'
,
projectId
:
project
.
id
,
projectId
:
req
.
body
.
id
,
});
//更新信息和状态
let
ret
=
await
xiangmulixianggengxin
(
body
,
3
);
//状态 3 -- 显示立项审批中
let
ret
=
await
xiangmulixianggengxin
(
req
.
body
,
3
);
//状态 3 -- 显示立项审批中
return
res
.
sendData
(
ret
);
}
catch
(
error
)
{
...
...
@@ -450,16 +448,15 @@ async function saveJuece(req, res, next) {
async
function
startJuece
(
req
,
res
,
next
)
{
try
{
let
body
=
req
.
body
;
if
(
!
body
.
id
)
{
if
(
!
req
.
body
.
id
)
{
return
res
.
sendError
(
errorMessage
.
resourceNotFound
)
}
await
DB
.
FlowRecord
.
create
({
userId
:
req
.
user
.
id
,
actionName
:
'发起项目决策审批'
,
projectId
:
project
.
id
,
projectId
:
req
.
body
.
id
,
});
let
ret
=
await
xiangmujuecegengxin
(
body
,
7
);
let
ret
=
await
xiangmujuecegengxin
(
req
.
body
,
7
);
return
ret
;
}
catch
(
error
)
{
next
(
error
);
...
...
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