明树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
54333293
Commit
54333293
authored
Nov 27, 2025
by
zfp1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
88489a75
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
193 additions
and
69 deletions
+193
-69
projectController.js
controller/projectController.js
+154
-67
index.js
db/index.js
+36
-1
project.js
db/model/jt/project.js
+1
-1
projectZqrz-del.js
db/model/jt/projectZqrz-del.js
+0
-0
projectRouter.js
router/projectRouter.js
+2
-0
No files found.
controller/projectController.js
View file @
54333293
This diff is collapsed.
Click to expand it.
db/index.js
View file @
54333293
...
@@ -16,10 +16,17 @@ const Project = require("./model/jt/project");
...
@@ -16,10 +16,17 @@ const Project = require("./model/jt/project");
const
Resources
=
require
(
"./model/jt/resources"
);
const
Resources
=
require
(
"./model/jt/resources"
);
const
ResourcesInfo
=
require
(
"./model/jt/resourcesInfo"
);
const
ResourcesInfo
=
require
(
"./model/jt/resourcesInfo"
);
const
ProjectBjtj
=
require
(
"./model/jt/projectBjtj"
);
const
ProjectBjtj
=
require
(
"./model/jt/projectBjtj"
);
const
ProjectCwpjzb
=
require
(
"./model/jt/projectCwpjzb"
);
const
ProjectFile
=
require
(
"./model/jt/projectFile"
);
const
ProjectFile
=
require
(
"./model/jt/projectFile"
);
const
ProjectFxgl
=
require
(
"./model/jt/projectFxgl"
);
const
ProjectGdxx
=
require
(
"./model/jt/projectGdxx"
);
const
ProjectGdxx
=
require
(
"./model/jt/projectGdxx"
);
const
ProjectJczt
=
require
(
"./model/jt/projectJczt"
);
const
ProjectJsgm
=
require
(
"./model/jt/projectJsgm"
);
const
ProjectJsgm
=
require
(
"./model/jt/projectJsgm"
);
const
ProjectLcbjd
=
require
(
"./model/jt/projectLcbjd"
);
const
ProjectSpyj
=
require
(
"./model/jt/projectSpyj"
);
const
ProjectSpyj
=
require
(
"./model/jt/projectSpyj"
);
const
ProjectTzzjll
=
require
(
"./model/jt/projectTzzjll"
);
const
ProjectTzzt
=
require
(
"./model/jt/projectTzzt"
);
const
ProjectXmtzze
=
require
(
"./model/jt/projectXmtzze"
);
/**
/**
...
@@ -47,6 +54,13 @@ global.DB = {
...
@@ -47,6 +54,13 @@ global.DB = {
ProjectGdxx
,
ProjectGdxx
,
ProjectJsgm
,
ProjectJsgm
,
ProjectSpyj
,
ProjectSpyj
,
ProjectCwpjzb
,
ProjectJczt
,
ProjectFxgl
,
ProjectLcbjd
,
ProjectTzzjll
,
ProjectTzzt
,
ProjectXmtzze
,
}
}
...
@@ -127,15 +141,36 @@ ResourcesInfo.belongsTo(Resources, { foreignKey: 'resourceId' });
...
@@ -127,15 +141,36 @@ ResourcesInfo.belongsTo(Resources, { foreignKey: 'resourceId' });
/**项目-核心边界条件 1:n */
/**项目-核心边界条件 1:n */
Project
.
hasMany
(
ProjectBjtj
,
{
foreignKey
:
'projectId'
,
as
:
'projectBjtjs'
});
Project
.
hasMany
(
ProjectBjtj
,
{
foreignKey
:
'projectId'
,
as
:
'projectBjtjs'
});
ProjectBjtj
.
belongsTo
(
Project
,
{
foreignKey
:
'projectId'
});
ProjectBjtj
.
belongsTo
(
Project
,
{
foreignKey
:
'projectId'
});
/**项目-财务评价指标 1:n */
Project
.
hasMany
(
ProjectCwpjzb
,
{
foreignKey
:
'projectId'
,
as
:
'projectCwpjzbs'
});
ProjectCwpjzb
.
belongsTo
(
Project
,
{
foreignKey
:
'projectId'
});
/**项目-项目附件 1:n */
/**项目-项目附件 1:n */
Project
.
belongsToMany
(
File
,
{
through
:
'jt_project_file'
,
foreignKey
:
'projectId'
,
as
:
'files'
,
otherKey
:
'fileId'
});
Project
.
belongsToMany
(
File
,
{
through
:
'jt_project_file'
,
foreignKey
:
'projectId'
,
as
:
'files'
,
otherKey
:
'fileId'
});
File
.
belongsToMany
(
Project
,
{
through
:
'jt_project_file'
,
foreignKey
:
'fileId'
,
otherKey
:
'projectId'
,
as
:
'pros'
});
File
.
belongsToMany
(
Project
,
{
through
:
'jt_project_file'
,
foreignKey
:
'fileId'
,
otherKey
:
'projectId'
,
as
:
'pros'
});
/**项目-风险管理 1:n */
Project
.
hasMany
(
ProjectFxgl
,
{
foreignKey
:
'projectId'
,
as
:
'projectFxgls'
});
ProjectFxgl
.
belongsTo
(
Project
,
{
foreignKey
:
'projectId'
});
/**项目-股东信息 1:n */
/**项目-股东信息 1:n */
Project
.
hasMany
(
ProjectGdxx
,
{
foreignKey
:
'projectId'
,
as
:
'projectGdxxs'
});
Project
.
hasMany
(
ProjectGdxx
,
{
foreignKey
:
'projectId'
,
as
:
'projectGdxxs'
});
ProjectGdxx
.
belongsTo
(
Project
,
{
foreignKey
:
'projectId'
});
ProjectGdxx
.
belongsTo
(
Project
,
{
foreignKey
:
'projectId'
});
/**项目-决策主体审核情况 1:n */
Project
.
hasMany
(
ProjectJczt
,
{
foreignKey
:
'projectId'
,
as
:
'projectJczts'
});
ProjectJczt
.
belongsTo
(
Project
,
{
foreignKey
:
'projectId'
});
/**项目-建设规模 1:n */
/**项目-建设规模 1:n */
Project
.
hasMany
(
ProjectJsgm
,
{
foreignKey
:
'projectId'
,
as
:
'projectJsgms'
});
Project
.
hasMany
(
ProjectJsgm
,
{
foreignKey
:
'projectId'
,
as
:
'projectJsgms'
});
ProjectJsgm
.
belongsTo
(
Project
,
{
foreignKey
:
'projectId'
});
ProjectJsgm
.
belongsTo
(
Project
,
{
foreignKey
:
'projectId'
});
/**项目-里程碑节点 1:n */
Project
.
hasMany
(
ProjectLcbjd
,
{
foreignKey
:
'projectId'
,
as
:
'projectLcbjds'
});
ProjectLcbjd
.
belongsTo
(
Project
,
{
foreignKey
:
'projectId'
});
/**项目-审批意见 1:n */
/**项目-审批意见 1:n */
Project
.
hasMany
(
ProjectSpyj
,
{
foreignKey
:
'projectId'
,
as
:
'projectSpyjs'
});
Project
.
hasMany
(
ProjectSpyj
,
{
foreignKey
:
'projectId'
,
as
:
'projectSpyjs'
});
ProjectSpyj
.
belongsTo
(
Project
,
{
foreignKey
:
'projectId'
});
ProjectSpyj
.
belongsTo
(
Project
,
{
foreignKey
:
'projectId'
});
/**项目-项目投资资金流量 1:n */
Project
.
hasMany
(
ProjectTzzjll
,
{
foreignKey
:
'projectId'
,
as
:
'projectTzzjlls'
});
ProjectTzzjll
.
belongsTo
(
Project
,
{
foreignKey
:
'projectId'
});
/**项目-投资主体审核情况 1:n */
Project
.
hasMany
(
ProjectTzzt
,
{
foreignKey
:
'projectId'
,
as
:
'projectTzzts'
});
ProjectTzzt
.
belongsTo
(
Project
,
{
foreignKey
:
'projectId'
});
/**项目-项目投资总额 1:n */
Project
.
hasMany
(
ProjectXmtzze
,
{
foreignKey
:
'projectId'
,
as
:
'projectXmtzzes'
});
ProjectXmtzze
.
belongsTo
(
Project
,
{
foreignKey
:
'projectId'
});
\ No newline at end of file
db/model/jt/project.js
View file @
54333293
...
@@ -23,7 +23,7 @@ const Project = sequelize.define('Project', {
...
@@ -23,7 +23,7 @@ const Project = sequelize.define('Project', {
},
},
projectLiuZhuanType
:
{
projectLiuZhuanType
:
{
type
:
DataTypes
.
STRING
,
type
:
DataTypes
.
STRING
,
comment
:
"项目流转状态
草稿、待初审、初审退回、待终审、终审退回、
待立项审批、立项审批退回、已立项、已暂停、已结束等"
,
comment
:
"项目流转状态
1. 草稿、3 待初审、1初审退回、5待终审、1终审退回、7
待立项审批、立项审批退回、已立项、已暂停、已结束等"
,
},
},
/**
/**
* 项目基本信息
* 项目基本信息
...
...
db/model/jt/projectZqrz.js
→
db/model/jt/projectZqrz
-del
.js
View file @
54333293
File moved
router/projectRouter.js
View file @
54333293
...
@@ -18,5 +18,7 @@ router.post('/getProjectFields', projectController.getProjectFields);
...
@@ -18,5 +18,7 @@ router.post('/getProjectFields', projectController.getProjectFields);
router
.
post
(
'/exportExcel'
,
projectController
.
exportExcel
);
router
.
post
(
'/exportExcel'
,
projectController
.
exportExcel
);
router
.
post
(
'/getExcelTemplate'
,
projectController
.
getExcelTemplate
);
router
.
post
(
'/getExcelTemplate'
,
projectController
.
getExcelTemplate
);
router
.
post
(
'/preJugProject'
,
projectController
.
preJugProject
);
//初审
router
.
post
(
'/finalJugProject'
,
projectController
.
finalJugProject
);
//终审
module
.
exports
=
router
;
module
.
exports
=
router
;
\ No newline at end of file
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