明树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
669d51da
Commit
669d51da
authored
Feb 02, 2026
by
zfp1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
76b3edcb
Pipeline
#106883
passed with stage
in 4 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
81 additions
and
4 deletions
+81
-4
userController.js
controller/userController.js
+3
-2
project.js
db/model/jt/project.js
+1
-1
thYyqtzhs.js
db/model/jt/thYyqtzhs.js
+77
-1
No files found.
controller/userController.js
View file @
669d51da
...
...
@@ -85,9 +85,10 @@ async function login(req, res, next) {
delete
element
.
menus
;
newRoles
.
push
(
element
);
}
console
.
log
(
menus
,
"================================"
)
user
.
roles
=
newRoles
||
[];
let
allMenus
=
await
DB
.
Menu
.
findAll
({
where
:
{
del
:
0
},
raw
:
true
});
user
.
menus
=
utils
.
buildTree
(
allM
enus
);
//
let allMenus = await DB.Menu.findAll({where: {del: 0}, raw: true});
user
.
menus
=
utils
.
buildTree
(
m
enus
);
return
res
.
sendData
(
user
);
}
catch
(
error
)
{
next
(
error
);
...
...
db/model/jt/project.js
View file @
669d51da
...
...
@@ -152,7 +152,7 @@ const Project = sequelize.define('Project', {
// gmjjhy: { type: DataTypes.STRING, allowNull: true, comment: "国民经济行业" },
// sfzzjc: { type: DataTypes.INTEGER, allowNull: true, comment: "是否自主决策", },
// cwbblx: { type: DataTypes.STRING, allowNull: true, comment: "财务报表类型", zjType: 'danxuan', },
//
xmlx: { type: DataTypes.STRING, allowNull: true, comment: "项目类型", zjType: 'danxuan', },
xmlx
:
{
type
:
DataTypes
.
STRING
,
allowNull
:
true
,
comment
:
"项目类型"
,
zjType
:
'danxuan'
,
},
// yynxn: { type: DataTypes.STRING, allowNull: true, comment: "运营年限(年)" },
// zyfzy: { type: DataTypes.STRING, allowNull: true, comment: "主业/非主业", zjType: 'danxuan', },
// xmhzqn: { type: DataTypes.STRING, allowNull: true, comment: "项目合作期(月)" },
...
...
db/model/jt/thYyqtzhs.js
View file @
669d51da
...
...
@@ -11,10 +11,86 @@ const ThYyqtzhs = sequelize.define('ThYyqtzhs', {
primaryKey
:
true
,
autoIncrement
:
true
},
//以下 项目信息里面取值
projectName
:
{
type
:
DataTypes
.
STRING
,
comment
:
"项目名称"
,
},
xmgsmc
:
{
type
:
DataTypes
.
STRING
,
comment
:
"项目公司名称"
,
},
tbdwmc
:
{
type
:
DataTypes
.
STRING
,
comment
:
"填报单位名称"
,
},
ssejqy
:
{
type
:
DataTypes
.
STRING
,
comment
:
"所属二级企业"
,
},
xmjd
:
{
type
:
DataTypes
.
STRING
,
comment
:
"项目阶段"
,
},
xmlx
:
{
type
:
DataTypes
.
STRING
,
comment
:
"项目类别 同等与 项目类型 xmlx"
,
},
tzms
:
{
type
:
DataTypes
.
STRING
,
comment
:
"投资模式分类"
,
},
tzhsfs
:
{
type
:
DataTypes
.
STRING
,
comment
:
"投资回收方式"
,
},
xnxmjd
:
{
type
:
DataTypes
.
STRING
,
comment
:
"下年项目阶段"
,
},
projectGdxxs
:
{
type
:
DataTypes
.
JSON
,
},
//以下 可能跟项目相关 有可能在项目里面取值,需要项目信息齐全并对应上
tzzejc
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
8
),
allowNull
:
true
,
comment
:
"投资总额-决策值"
,
},
wfzbjczejc
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
8
),
allowNull
:
true
,
comment
:
"我方资本金出资额-决策值"
,
},
tzzesj
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
8
),
allowNull
:
true
,
comment
:
"投资总额-实际值"
,
},
wfzbjczesj
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
8
),
allowNull
:
true
,
comment
:
"我方资本家出资额--实际值"
,
},
tzzejhz
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
8
),
allowNull
:
true
,
comment
:
"投资总额-计划值"
,
},
//以下投资回收相关
bnwc
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
8
),
allowNull
:
true
,
comment
:
"本年完成 投资回收决策目标值"
,
},
jzbnlj
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
8
),
allowNull
:
true
,
comment
:
"截止本年累计"
,
},
xynwcs
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
8
),
allowNull
:
true
,
comment
:
"下一年完成数"
,
},
bnjh
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
8
),
allowNull
:
true
,
comment
:
"本年计划"
,
},
bnwcsjz
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
8
),
allowNull
:
true
,
comment
:
"本年完成--投资回收实际值"
,
},
jzbnljsjz
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
8
),
allowNull
:
true
,
comment
:
"截止本年累计--投资回收实际值"
,
},
sjyjhcysm
:
{
type
:
DataTypes
.
TEXT
,
comment
:
"实际与计划差异说明"
},
ljqs
:
{
type
:
DataTypes
.
DECIMAL
(
20
,
8
),
allowNull
:
true
,
comment
:
"累计欠收"
,
},
wcl
:
{
type
:
DataTypes
.
DECIMAL
(
5
,
2
),
allowNull
:
true
,
comment
:
"完成率"
,
},
czdzywt
:
{
type
:
DataTypes
.
TEXT
,
comment
:
"存在主要问题"
},
cqcsjgzkzqk
:
{
type
:
DataTypes
.
TEXT
,
comment
:
"采取措施及开展情况"
},
bz
:
{
type
:
DataTypes
.
TEXT
,
comment
:
"备注"
},
jhyjcmbcysm
:
{
type
:
DataTypes
.
TEXT
,
comment
:
"计划与决策目标值差异说明"
},
//截至月末累计应收
jzymljys
:
{
type
:
DataTypes
.
JSON
,
},
//截至月末累计实收
jzymljsh
:
{
type
:
DataTypes
.
JSON
,
},
tzhsjc
:
{
type
:
DataTypes
.
JSON
,},
tzhsjh
:
{
type
:
DataTypes
.
JSON
,},
...
...
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