Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zjxcxServer
Overview
Overview
Details
Activity
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
node_server
zjxcxServer
Commits
6165a062
Commit
6165a062
authored
May 05, 2023
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2.1地址修改后,管理后台端的修改
parent
a73baab2
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
11 deletions
+19
-11
enterprise.ts
src/biz/admin/enterprise/enterprise.ts
+2
-2
financing.ts
src/biz/admin/enterprise/financing.ts
+1
-1
splitResultConfig.ts
src/config/splitResultConfig.ts
+5
-5
enterprise.ts
src/routers/admin/enterprise.ts
+3
-2
piecemeal.ts
src/util/piecemeal.ts
+8
-1
No files found.
src/biz/admin/enterprise/enterprise.ts
View file @
6165a062
...
...
@@ -129,8 +129,8 @@ export async function outPutEnterpriseData(createType:number, fuHuaQiUscc:string
];
//表头顺序 如果这里修改了 下面的keyList也要修改
const
KeyList
=
[
"name"
,
"createTime"
,
"fuhuaqiUscc"
,
"isCreate"
,
"state"
,
"virtualCause"
,
"uscc"
,
"industry"
,
"mainBusiness"
,
"logonTime"
,
"firstIncubationTime"
,
"timeOfImmigration"
,
"isNaturalPersonHolding"
,
"oldLogonAdd"
,
"logonAdd
"
,
"operatingAdd
"
,
"leasedArea"
"firstIncubationTime"
,
"timeOfImmigration"
,
"isNaturalPersonHolding"
,
"oldLogonAdd
ress
"
,
"logonAdd
ress"
,
"operatingAddress
"
,
"leasedArea"
];
//表头对应的字段顺序
let
dataList
=
[
TitleList
];
...
...
src/biz/admin/enterprise/financing.ts
View file @
6165a062
...
...
@@ -101,7 +101,7 @@ export async function outPutFinancingList(monthData:string, fuHuaQiName:string,
/**拼接返回 需要注意的是 keyList要和titleList一一对应 */
let
keyList
=
[
"name"
,
"uscc"
,
"fuhuaqiUscc"
,
"logonAdd
"
,
"logonTime"
,
"industry"
,
"financingRounds"
,
"operatingAdd
"
,
"financingAmount"
,
"investmentInstitutionsName"
,
"name"
,
"uscc"
,
"fuhuaqiUscc"
,
"logonAdd
ress"
,
"logonTime"
,
"industry"
,
"financingRounds"
,
"operatingAddress
"
,
"financingAmount"
,
"investmentInstitutionsName"
,
"timeToObtainInvestment"
,
"fuHuaQiInvestment"
,
"fuHuaQiInvestmentAmount"
,
"fuHuaQiInvestmentStyle"
,
"createTime"
];
let
titleList
=
[
...
...
src/config/splitResultConfig.ts
View file @
6165a062
...
...
@@ -112,9 +112,9 @@ export const EnterpriseListConfig = {
firstIncubationTime
:{
key
:
"首次入孵时间"
,
changeDate
:
true
},
timeOfImmigration
:{
key
:
"迁入时间"
,
changeDate
:
true
},
isNaturalPersonHolding
:{
key
:
"是否自然人控股"
},
oldLogonAdd
:{
key
:
"迁入前注册地址"
},
logonAdd
:{
key
:
"注册地址"
},
operatingAdd
:{
key
:
"经营地址"
},
oldLogonAdd
ress
:{
key
:
"迁入前注册地址"
,
isAdd
:
true
},
logonAdd
ress
:{
key
:
"注册地址"
,
isAdd
:
true
},
operatingAdd
ress
:{
key
:
"经营地址"
,
isAdd
:
true
},
leasedArea
:{
key
:
"租赁面积(平方米)"
},
isCreate
:{
key
:
"新注册/新迁入"
},
mainBusiness
:{
key
:
"主营业务"
},
//主营业务
...
...
@@ -157,8 +157,8 @@ export const EnterpriseMoveOutListConfig = {
export
const
FinancingListConfig
=
{
uscc
:{
key
:
"企业统一信用代码"
},
name
:{
key
:
"企业名称"
},
logonAdd
:{
key
:
"注册地址"
},
operatingAdd
:{
key
:
"经营地址"
},
logonAdd
ress
:{
key
:
"注册地址"
,
isAdd
:
true
},
operatingAdd
ress
:{
key
:
"经营地址"
,
isAdd
:
true
},
financingAmount
:{
key
:
"融资金额(万元)"
},
investmentInstitutionsName
:{
key
:
"投资机构名称"
},
timeToObtainInvestment
:{
key
:
"获得投资时间"
,
changeDate
:
true
},
...
...
src/routers/admin/enterprise.ts
View file @
6165a062
...
...
@@ -14,10 +14,11 @@ import { eccReqParamater } from '../../util/verificationParam';
export
function
setRouter
(
httpServer
)
{
httpServer
.
post
(
'/admin/enterprise/list'
,
checkGuanWeiHuiToken
,
asyncHandler
(
getEnterpriseList
));
httpServer
.
post
(
'/admin/enterprise/financinglist'
,
checkGuanWeiHuiToken
,
asyncHandler
(
getFinancingList
));
httpServer
.
post
(
'/admin/enterprise/affiliationfuhuaqi'
,
checkGuanWeiHuiToken
,
asyncHandler
(
affiliationFuHuaQi
));
httpServer
.
post
(
'/admin/data/output/enterprise'
,
checkGuanWeiHuiToken
,
asyncHandler
(
outPutEnterpriseData
));
httpServer
.
post
(
'/admin/enterprise/financinglist'
,
checkGuanWeiHuiToken
,
asyncHandler
(
getFinancingList
));
httpServer
.
post
(
'/admin/data/output/financing'
,
checkGuanWeiHuiToken
,
asyncHandler
(
outPutFinancingData
));
/**所属孵化器下拉框 */
httpServer
.
post
(
'/admin/enterprise/affiliationfuhuaqi'
,
checkGuanWeiHuiToken
,
asyncHandler
(
affiliationFuHuaQi
));
/**迁出企业2.0新加 */
httpServer
.
post
(
'/admin/enterprise/moveoutlist'
,
checkGuanWeiHuiToken
,
asyncHandler
(
moveOutList
));
httpServer
.
post
(
'/admin/data/output/moveoutlist'
,
checkGuanWeiHuiToken
,
asyncHandler
(
outPutMoveOutList
));
...
...
src/util/piecemeal.ts
View file @
6165a062
...
...
@@ -33,7 +33,14 @@ export function extractData(conf, data, isAdmin) {
if
(
confInfo
.
changeDate
)
{
if
(
isAdmin
)
result
[
key
]
=
data
[
key
]
?
moment
(
data
[
key
]).
format
(
"YYYY-MM-DD"
)
:
'-'
;
else
result
[
key
]
=
data
[
key
]
||
0
;
}
else
{
}
else
if
(
confInfo
.
isAdd
&&
isAdmin
)
{
let
addStr
=
""
;
data
[
key
].
forEach
(
str
=>
{
addStr
+=
str
;
});
result
[
key
]
=
addStr
;
}
else
{
result
[
key
]
=
data
[
key
];
if
(
typeof
result
[
key
]
==
'string'
&&
!
result
[
key
])
result
[
key
]
=
''
;
}
...
...
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