明树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
5099d9db
Commit
5099d9db
authored
Nov 29, 2025
by
zfp1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
6a3ec579
Pipeline
#103862
passed with stage
in 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
projectController.js
controller/projectController.js
+4
-4
投决计划.xlsx
public/template/投决计划.xlsx
+0
-0
No files found.
controller/projectController.js
View file @
5099d9db
...
@@ -148,7 +148,7 @@ async function createProject(req, res, next) {
...
@@ -148,7 +148,7 @@ async function createProject(req, res, next) {
*/
*/
//B. 找到本公司审批人员发送消息-- 如果找不到人 则提示项目已保存,联系管理员添加【项目公司项目审批人】角色
//B. 找到本公司审批人员发送消息-- 如果找不到人 则提示项目已保存,联系管理员添加【项目公司项目审批人】角色
//A. 创建发起记录
//A. 创建发起记录
if
(
buttonType
===
'submit'
)
{
if
(
req
.
body
.
buttonType
===
'submit'
)
{
await
DB
.
FlowRecord
.
create
({
await
DB
.
FlowRecord
.
create
({
userId
:
req
.
user
.
id
,
userId
:
req
.
user
.
id
,
actionName
:
'发起项目初审'
,
actionName
:
'发起项目初审'
,
...
@@ -286,7 +286,7 @@ async function updateProject(req, res, next) {
...
@@ -286,7 +286,7 @@ async function updateProject(req, res, next) {
/**
/**
* 根据前端加入的参数区分按钮 更新草稿并提交 更新草稿 TODO:
* 根据前端加入的参数区分按钮 更新草稿并提交 更新草稿 TODO:
*/
*/
if
(
buttonType
===
'submit'
)
{
if
(
req
.
body
.
buttonType
===
'submit'
)
{
await
DB
.
FlowRecord
.
create
({
await
DB
.
FlowRecord
.
create
({
userId
:
req
.
user
.
id
,
userId
:
req
.
user
.
id
,
actionName
:
'发起项目初审'
,
actionName
:
'发起项目初审'
,
...
@@ -334,7 +334,7 @@ async function preJugProject(req, res, next) {
...
@@ -334,7 +334,7 @@ async function preJugProject(req, res, next) {
/**
/**
* 1. 更新项目状态 5 初审通过 初审不通过则回到状态1
* 1. 更新项目状态 5 初审通过 初审不通过则回到状态1
*/
*/
if
(
buttonType
===
'approve'
)
{
if
(
req
.
body
.
buttonType
===
'approve'
)
{
await
DB
.
Project
.
update
({
projectLiuZhuanType
:
3
},
{
where
:
{
id
}
});
await
DB
.
Project
.
update
({
projectLiuZhuanType
:
3
},
{
where
:
{
id
}
});
//处理项目流转记录 及消息发送TODO:
//处理项目流转记录 及消息发送TODO:
}
else
{
}
else
{
...
@@ -367,7 +367,7 @@ async function finalJugProject(req, res, next) {
...
@@ -367,7 +367,7 @@ async function finalJugProject(req, res, next) {
/**
/**
* 1. 更新项目状态 5 终审通过 初审不通过则回到状态1
* 1. 更新项目状态 5 终审通过 初审不通过则回到状态1
*/
*/
if
(
buttonType
===
'approve'
)
{
if
(
req
.
body
.
buttonType
===
'approve'
)
{
await
DB
.
Project
.
update
({
projectLiuZhuanType
:
7
},
{
where
:
{
id
}
});
await
DB
.
Project
.
update
({
projectLiuZhuanType
:
7
},
{
where
:
{
id
}
});
//处理项目流转记录 及消息发送TODO:
//处理项目流转记录 及消息发送TODO:
}
else
{
}
else
{
...
...
public/template/投决计划.xlsx
deleted
100644 → 0
View file @
6a3ec579
File deleted
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