明树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
6bc4f9ff
Commit
6bc4f9ff
authored
Mar 23, 2026
by
zfp1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
cb1a055a
Pipeline
#108718
passed with stage
in 3 seconds
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
89 additions
and
32 deletions
+89
-32
projectTzController.js
controller/projectTzController.js
+16
-16
thYyqtzjcTzfx.js
db/model/jt/thYyqtzjcTzfx.js
+5
-1
thYyqtzjcZxjc.js
db/model/jt/thYyqtzjcZxjc.js
+15
-3
tzJsqtzjcTzfx.js
db/model/jt/tzJsqtzjcTzfx.js
+4
-0
tzJsqtzjcZxjc.js
db/model/jt/tzJsqtzjcZxjc.js
+18
-6
tzTzkz.js
db/model/jt/tzTzkz.js
+1
-0
tzTzkzGq.js
db/model/jt/tzTzkzGq.js
+4
-0
tzZdsxsp.js
db/model/jt/tzZdsxsp.js
+26
-6
No files found.
controller/projectTzController.js
View file @
6bc4f9ff
...
...
@@ -919,12 +919,12 @@ async function createZdsxsp(req, res, next) {
return
res
.
sendError
(
errorMessage
.
paramsError
);
}
//处理文件
req
.
body
.
qylht
=
(
req
.
body
.
qylht
||
[]).
map
(
o
=>
{
return
o
&&
o
.
id
||
o
});
req
.
body
.
jjlht
=
(
req
.
body
.
jjlht
||
[]).
map
(
o
=>
{
return
o
&&
o
.
id
||
o
});
req
.
body
.
zjwj
=
(
req
.
body
.
zjwj
||
[]).
map
(
o
=>
{
return
o
&&
o
.
id
||
o
});
req
.
body
.
ybfspwj
=
(
req
.
body
.
ybfspwj
||
[]).
map
(
o
=>
{
return
o
&&
o
.
id
||
o
});
req
.
body
.
cwjr
=
(
req
.
body
.
cwjr
||
[]).
map
(
o
=>
{
return
o
&&
o
.
id
||
o
});
req
.
body
.
gqjg
=
(
req
.
body
.
gqjg
||
[]).
map
(
o
=>
{
return
o
&&
o
.
id
||
o
});
// req.body.qylht = (req.body.qylht || []).map(o => { return o && o.id || o }); //权益类合同,需要增加字段,则文件信息直接存入
//
req.body.jjlht = (req.body.jjlht || []).map(o => { return o && o.id || o });
//
req.body.zjwj = (req.body.zjwj || []).map(o => { return o && o.id || o });
//
req.body.ybfspwj = (req.body.ybfspwj || []).map(o => { return o && o.id || o });
//
req.body.cwjr = (req.body.cwjr || []).map(o => { return o && o.id || o });
//
req.body.gqjg = (req.body.gqjg || []).map(o => { return o && o.id || o });
let
ret
=
await
DB
.
TzZdsxsp
.
create
(
req
.
body
);
...
...
@@ -951,16 +951,16 @@ async function getZdsxspInfo(req, res, next) {
return
res
.
sendError
(
errorMessage
.
resourceNotFound
);
}
let
fileIds
=
[].
concat
(
zdsxsp
.
qylht
).
concat
(
zdsxsp
.
jjlht
).
concat
(
zdsxsp
.
zjwj
).
concat
(
zdsxsp
.
ybfspwj
).
concat
(
zdsxsp
.
cwjr
).
concat
(
zdsxsp
.
gqjg
);
let
files
=
await
DB
.
File
.
findAll
({
where
:
{
id
:
{
[
Op
.
in
]:
fileIds
}
},
raw
:
true
});
let
fileMap
=
{};
files
.
map
(
o
=>
{
fileMap
[
o
.
id
]
=
o
});
zdsxsp
.
qylht
=
(
zdsxsp
.
qylht
||
[]).
map
(
o
=>
{
return
fileMap
[(
o
&&
o
.
id
||
o
)]
});
zdsxsp
.
jjlht
=
(
zdsxsp
.
jjlht
||
[]).
map
(
o
=>
{
return
fileMap
[(
o
&&
o
.
id
||
o
)]
});
zdsxsp
.
zjwj
=
(
zdsxsp
.
zjwj
||
[]).
map
(
o
=>
{
return
fileMap
[(
o
&&
o
.
id
||
o
)]
});
zdsxsp
.
ybfspwj
=
(
zdsxsp
.
ybfspwj
||
[]).
map
(
o
=>
{
return
fileMap
[(
o
&&
o
.
id
||
o
)]
});
zdsxsp
.
cwjr
=
(
zdsxsp
.
cwjr
||
[]).
map
(
o
=>
{
return
fileMap
[(
o
&&
o
.
id
||
o
)]
});
zdsxsp
.
gqjg
=
(
zdsxsp
.
gqjg
||
[]).
map
(
o
=>
{
return
fileMap
[(
o
&&
o
.
id
||
o
)]
});
//
let fileIds = [].concat(zdsxsp.qylht).concat(zdsxsp.jjlht).concat(zdsxsp.zjwj).concat(zdsxsp.ybfspwj).concat(zdsxsp.cwjr).concat(zdsxsp.gqjg);
//
let files = await DB.File.findAll({ where: { id: { [Op.in]: fileIds } }, raw: true });
//
let fileMap = {};
//
files.map(o => { fileMap[o.id] = o });
// //
zdsxsp.qylht = (zdsxsp.qylht || []).map(o => { return fileMap[(o && o.id || o)] });
//
zdsxsp.jjlht = (zdsxsp.jjlht || []).map(o => { return fileMap[(o && o.id || o)] });
//
zdsxsp.zjwj = (zdsxsp.zjwj || []).map(o => { return fileMap[(o && o.id || o)] });
//
zdsxsp.ybfspwj = (zdsxsp.ybfspwj || []).map(o => { return fileMap[(o && o.id || o)] });
//
zdsxsp.cwjr = (zdsxsp.cwjr || []).map(o => { return fileMap[(o && o.id || o)] });
//
zdsxsp.gqjg = (zdsxsp.gqjg || []).map(o => { return fileMap[(o && o.id || o)] });
return
res
.
sendData
(
zdsxsp
);
}
catch
(
error
)
{
next
(
error
);
...
...
db/model/jt/thYyqtzjcTzfx.js
View file @
6bc4f9ff
...
...
@@ -27,11 +27,15 @@ const ThYyqtzjcTzfx = sequelize.define('ThYyqtzjcTzfx', {
type
:
DataTypes
.
DECIMAL
(
5
,
2
),
comment
:
"当期资本金内部收益率"
},
wfzbjnbsyl
:
{
type
:
DataTypes
.
DECIMAL
(
5
,
2
),
comment
:
"我方资本金内部收益率"
},
tzcbfxhzl
:
{
type
:
DataTypes
.
JSON
,
comment
:
"投资(成本)分析会资料"
},
sourceId
:
{
sourceId
:
{
type
:
DataTypes
.
INTEGER
,
comment
:
"所属投资控制主表id"
},
...
...
db/model/jt/thYyqtzjcZxjc.js
View file @
6bc4f9ff
...
...
@@ -32,7 +32,19 @@ const ThYyqtzjcZxjc = sequelize.define('ThYyqtzjcZxjc', {
// return rawValue ? moment(rawValue).format('YYYY-MM-DD HH:mm:ss') : '';
// }
// },
jcjg
:
{
jcmc
:
{
type
:
DataTypes
.
STRING
,
comment
:
"检查名称"
},
jcsj
:
{
type
:
DataTypes
.
DATE
,
comment
:
"检查时间"
,
get
()
{
const
rawValue
=
this
.
getDataValue
(
'jcsj'
);
return
rawValue
?
moment
(
rawValue
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
''
;
}
},
jcjg
:
{
type
:
DataTypes
.
TEXT
,
comment
:
"检查结果"
},
...
...
@@ -40,13 +52,13 @@ const ThYyqtzjcZxjc = sequelize.define('ThYyqtzjcZxjc', {
type
:
DataTypes
.
TEXT
,
comment
:
"整改措施清单"
},
fjcl
:
{
type
:
DataTypes
.
JSON
,
comment
:
"附件材料"
},
sourceId
:
{
sourceId
:
{
type
:
DataTypes
.
INTEGER
,
comment
:
"所属投资控制主表id"
},
...
...
db/model/jt/tzJsqtzjcTzfx.js
View file @
6bc4f9ff
...
...
@@ -24,6 +24,10 @@ const TzJsqtzjcTzfx = sequelize.define('TzJsqtzjcTzfx', {
type
:
DataTypes
.
DECIMAL
(
5
,
2
),
comment
:
"当期资本金内部收益率"
},
wfzbjnbsyl
:
{
type
:
DataTypes
.
DECIMAL
(
5
,
2
),
comment
:
"我方资本金内部收益率"
},
tzcbfxhzl
:
{
type
:
DataTypes
.
JSON
,
comment
:
"投资(成本)分析会资料"
...
...
db/model/jt/tzJsqtzjcZxjc.js
View file @
6bc4f9ff
...
...
@@ -25,13 +25,25 @@ const TzJsqtzjcZxjc = sequelize.define('TzJsqtzjcZxjc', {
// }
// },
// jssj: {
//
type: DataTypes.DATE,
//
comment: "结束时间",
//
get() {
//
const rawValue = this.getDataValue('jssj');
//
return rawValue ? moment(rawValue).format('YYYY-MM-DD HH:mm:ss') : '';
//
}
//
type: DataTypes.DATE,
//
comment: "结束时间",
//
get() {
//
const rawValue = this.getDataValue('jssj');
//
return rawValue ? moment(rawValue).format('YYYY-MM-DD HH:mm:ss') : '';
//
}
// },
jcmc
:
{
type
:
DataTypes
.
STRING
,
comment
:
"检查名称"
},
jcsj
:
{
type
:
DataTypes
.
DATE
,
comment
:
"检查时间"
,
get
()
{
const
rawValue
=
this
.
getDataValue
(
'jcsj'
);
return
rawValue
?
moment
(
rawValue
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
''
;
}
},
jcjg
:
{
type
:
DataTypes
.
TEXT
,
comment
:
"检查结果"
...
...
db/model/jt/tzTzkz.js
View file @
6bc4f9ff
...
...
@@ -38,6 +38,7 @@ const TzTzkz = sequelize.define('TzTzkz', {
comment
:
"其他建设目标重大偏差----文件上传"
,
},
qt
:
{
type
:
DataTypes
.
JSON
,
comment
:
"其他建设目标重大偏差----其他板块,内容包括问题描述、相关影响、已采取措施、下一步计划。"
},
projectId
:
{
type
:
DataTypes
.
INTEGER
,
comment
:
"所属项目ID"
,
...
...
db/model/jt/tzTzkzGq.js
View file @
6bc4f9ff
...
...
@@ -46,6 +46,10 @@ const TzTzkzGq = sequelize.define('TzTzkzGq', {
type
:
DataTypes
.
TEXT
,
comment
:
"合同工期约定描述"
},
xgyxfx
:
{
type
:
DataTypes
.
TEXT
,
comment
:
"相关影响分析"
},
gqywsm
:
{
type
:
DataTypes
.
TEXT
,
comment
:
"工期延误说明"
...
...
db/model/jt/tzZdsxsp.js
View file @
6bc4f9ff
...
...
@@ -24,9 +24,29 @@ const TzZdsxsp = sequelize.define('TzZdsxsp', {
type
:
DataTypes
.
JSON
,
comment
:
"经济类合同"
},
zjwj
:
{
// zjwj: {
// type: DataTypes.JSON,
// comment: "造价文件"
// },
juecewj
:
{
type
:
DataTypes
.
JSON
,
comment
:
"造价文件"
comment
:
"决策文件"
},
gusuanwj
:
{
type
:
DataTypes
.
JSON
,
comment
:
"估算文件"
},
gaisuanwj
:
{
type
:
DataTypes
.
JSON
,
comment
:
"概算文件"
},
yswj
:
{
type
:
DataTypes
.
JSON
,
comment
:
"预算文件"
},
tgwj
:
{
type
:
DataTypes
.
JSON
,
comment
:
"调概文件"
},
ybfspwj
:
{
type
:
DataTypes
.
JSON
,
...
...
@@ -36,10 +56,10 @@ const TzZdsxsp = sequelize.define('TzZdsxsp', {
type
:
DataTypes
.
JSON
,
comment
:
"变更索赔"
},
cwjr
:
{
type
:
DataTypes
.
JSON
,
comment
:
"接入财务金融部资本金出资台账,台账更新,系统上跟着更新"
},
//
cwjr: {
//
type: DataTypes.JSON,
//
comment: "接入财务金融部资本金出资台账,台账更新,系统上跟着更新"
//
},
gqjg
:
{
type
:
DataTypes
.
JSON
,
comment
:
"股权结构、资金来源及构成发生重大变化的报告及审批文件"
...
...
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