Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yuyiAdminServer
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
yuyiAdminServer
Commits
78803053
Commit
78803053
authored
May 09, 2025
by
Zllgogo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
8a5753f5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
153 additions
and
75 deletions
+153
-75
fuhua.ts
src/biz/fuhua.ts
+37
-19
ruFu.ts
src/biz/ruFu.ts
+2
-1
userRuFu.ts
src/biz/userRuFu.ts
+3
-0
zaiFu.ts
src/biz/zaiFu.ts
+0
-0
zhengCe.ts
src/biz/zhengCe.ts
+53
-20
enterprise.ts
src/config/eccParam/enterprise.ts
+26
-30
enum.ts
src/config/enum/enum.ts
+19
-0
outputEnum.ts
src/config/enum/outputEnum.ts
+6
-1
admin.ts
src/routers/admin.ts
+4
-4
public.ts
src/routers/public.ts
+3
-0
No files found.
src/biz/fuhua.ts
View file @
78803053
...
@@ -25,17 +25,19 @@ export async function getBaseData() {
...
@@ -25,17 +25,19 @@ export async function getBaseData() {
let
baseData
=
{
let
baseData
=
{
fuhuaData
:{
//孵化器数据
fuhuaData
:{
//孵化器数据
"总面积"
:
0
,
//没有
// "总面积":0, //没有
"孵化器总面积"
:
0
,
"在孵面积"
:
0
,
"在孵面积"
:
0
,
"自用面积"
:
0
,
//
"自用面积":0,
"在孵企业"
:
0
,
"在孵企业"
:
0
,
"迁出企业"
:
0
,
"迁出企业"
:
0
,
"毕业企业"
:
0
,
"毕业企业"
:
0
,
"园区面积"
:
0
,
//新增
"出租率"
:
""
,
// 添加出租率字段
"产业规模"
:
0
,
// "园区面积":0,//新增
"总资产投入金额"
:
0
,
// "产业规模": 0,
"引入机构数量"
:
0
,
// "总资产投入金额": 0,
"引入机构投资"
:
0
,
// "引入机构数量": 0,
// "引入机构投资": 0,
},
},
fuhuaPinfen
:
0
,
//孵化器评分 没有该字段
fuhuaPinfen
:
0
,
//孵化器评分 没有该字段
fuhuaInfo
:{
//孵化器信息
fuhuaInfo
:{
//孵化器信息
...
@@ -53,11 +55,20 @@ export async function getBaseData() {
...
@@ -53,11 +55,20 @@ export async function getBaseData() {
let
zaifuResList
=
await
selectManyTableData
(
OPERATIONALDATATYPE
.
多表联查
,
TABLENAME
.
企业基础信息表
,
selectParam
,
[
"eId"
],
zaifuTableInfo
);
let
zaifuResList
=
await
selectManyTableData
(
OPERATIONALDATATYPE
.
多表联查
,
TABLENAME
.
企业基础信息表
,
selectParam
,
[
"eId"
],
zaifuTableInfo
);
if
(
zaifuResList
)
baseData
.
fuhuaData
[
"在孵企业"
]
=
zaifuResList
.
length
;
if
(
zaifuResList
)
baseData
.
fuhuaData
[
"在孵企业"
]
=
zaifuResList
.
length
;
zaifuResList
.
forEach
(
info
=>
{
// zaifuResList.forEach( info => {
info
.
enterprise_leases
.
forEach
(
lease
=>
{
// info.enterprise_leases.forEach( lease => {
// baseData.fuhuaData["在孵面积"] += parseFloat(lease.area);
// })
// })
// 累加在孵面积(考虑租赁时间)
zaifuResList
.
forEach
(
info
=>
{
info
.
enterprise_leases
.
forEach
(
lease
=>
{
// 确认租赁时间在有效范围内
if
(
nowTime
>=
lease
.
startTime
&&
nowTime
<=
lease
.
endTime
)
{
baseData
.
fuhuaData
[
"在孵面积"
]
+=
parseFloat
(
lease
.
area
);
baseData
.
fuhuaData
[
"在孵面积"
]
+=
parseFloat
(
lease
.
area
);
})
}
})
});
});
// baseData.fuhuaData["在孵面积占比"] = ((baseData.fuhuaData["在孵面积(㎡)"] / baseData.fuhuaData["总面积(㎡)"])*100).toFixed(2) + "%";
// baseData.fuhuaData["在孵面积占比"] = ((baseData.fuhuaData["在孵面积(㎡)"] / baseData.fuhuaData["总面积(㎡)"])*100).toFixed(2) + "%";
/**迁出企业 */
/**迁出企业 */
...
@@ -72,15 +83,22 @@ export async function getBaseData() {
...
@@ -72,15 +83,22 @@ export async function getBaseData() {
/**孵化器信息 */
/**孵化器信息 */
let
yuyiList
=
await
selectData
(
OPERATIONALDATATYPE
.
查询单个
,
TABLENAME
.
羽翼孵化器信息
,
{},
[]);
let
yuyiList
=
await
selectData
(
OPERATIONALDATATYPE
.
查询单个
,
TABLENAME
.
羽翼孵化器信息
,
{},
[]);
if
(
baseData
.
fuhuaData
[
"在孵面积"
]
!=
yuyiList
.
zaifuArea
)
await
operationalData
(
OPERATIONALDATATYPE
.
修改
,
TABLENAME
.
羽翼孵化器信息
,
{
zaifuArea
:
baseData
.
fuhuaData
[
"在孵面积"
]},
{
yId
:
yuyiList
.
yId
});
if
(
baseData
.
fuhuaData
[
"在孵面积"
]
!=
yuyiList
.
zaifuArea
)
await
operationalData
(
OPERATIONALDATATYPE
.
修改
,
TABLENAME
.
羽翼孵化器信息
,
{
zaifuArea
:
baseData
.
fuhuaData
[
"在孵面积"
]},
{
yId
:
yuyiList
.
yId
});
if
(
yuyiList
)
{
if
(
yuyiList
)
{
baseData
.
fuhuaData
[
"总面积"
]
=
yuyiList
.
totalArea
;
// baseData.fuhuaData["总面积"] = yuyiList.totalArea;
baseData
.
fuhuaData
[
"孵化器总面积"
]
=
yuyiList
.
totalArea
;
// baseData.fuhuaData["在孵面积"] = yuyiList.zaifuArea;
// baseData.fuhuaData["在孵面积"] = yuyiList.zaifuArea;
baseData
.
fuhuaData
[
"自用面积"
]
=
yuyiList
.
ziyonArea
;
// baseData.fuhuaData["自用面积"] = yuyiList.ziyonArea;
baseData
.
fuhuaData
[
"园区面积"
]
=
yuyiList
.
parkArea
;
//新增
// baseData.fuhuaData["园区面积"] = yuyiList.parkArea;//新增
baseData
.
fuhuaData
[
"产业规模"
]
=
yuyiList
.
industrialScale
;
// baseData.fuhuaData["产业规模"] = yuyiList.industrialScale;
baseData
.
fuhuaData
[
"总资产投入金额"
]
=
yuyiList
.
totalAssetInvestmentAmount
;
// baseData.fuhuaData["总资产投入金额"] = yuyiList.totalAssetInvestmentAmount;
baseData
.
fuhuaData
[
"引入机构数量"
]
=
yuyiList
.
numberOfInstitutionsIntroduced
;
// baseData.fuhuaData["引入机构数量"] = yuyiList.numberOfInstitutionsIntroduced;
baseData
.
fuhuaData
[
"引入机构投资"
]
=
yuyiList
.
introduceInstitutionalInvestment
;
// baseData.fuhuaData["引入机构投资"] = yuyiList.introduceInstitutionalInvestment;
// 计算出租率
if
(
baseData
.
fuhuaData
[
"孵化器总面积"
]
>
0
)
{
baseData
.
fuhuaData
[
"出租率"
]
=
((
baseData
.
fuhuaData
[
"在孵面积"
]
/
baseData
.
fuhuaData
[
"孵化器总面积"
])
*
100
).
toFixed
(
2
);
}
baseData
.
fuhuaInfo
=
{
baseData
.
fuhuaInfo
=
{
"运营名称"
:
yuyiList
.
operateName
,
"运营名称"
:
yuyiList
.
operateName
,
...
@@ -91,7 +109,7 @@ export async function getBaseData() {
...
@@ -91,7 +109,7 @@ export async function getBaseData() {
"孵化器认定时间"
:
yuyiList
.
incubateTime
,
"孵化器认定时间"
:
yuyiList
.
incubateTime
,
"孵化领域"
:
yuyiList
.
incubateField
,
"孵化领域"
:
yuyiList
.
incubateField
,
"机构性质"
:
yuyiList
.
natureInstitution
,
"机构性质"
:
yuyiList
.
natureInstitution
,
"是否成立投资基金"
:
yuyiList
.
fundedReserve
,
"是否成立投资基金"
:
yuyiList
.
fundedReserve
,
//
"联系人"
:
yuyiList
.
contacts
,
"联系人"
:
yuyiList
.
contacts
,
"负责人"
:
yuyiList
.
personCharge
,
"负责人"
:
yuyiList
.
personCharge
,
"手机号码"
:
yuyiList
.
phone
,
"手机号码"
:
yuyiList
.
phone
,
...
...
src/biz/ruFu.ts
View file @
78803053
...
@@ -308,7 +308,8 @@ export async function enterpriseRegister(param) {
...
@@ -308,7 +308,8 @@ export async function enterpriseRegister(param) {
logonTime
:
getMySqlMs
(
param
.
logonTime
),
logonTime
:
getMySqlMs
(
param
.
logonTime
),
state
:
0
,
state
:
0
,
register
:
0
,
register
:
0
,
rent
:
param
.
rent
rent
:
param
.
rent
,
// randomCode: randomCode() // 在企业注册时生成 randomCode
};
};
await
operationalData
(
OPERATIONALDATATYPE
.
增加
,
TABLENAME
.
企业基础信息表
,
addEInfo
,
{});
await
operationalData
(
OPERATIONALDATATYPE
.
增加
,
TABLENAME
.
企业基础信息表
,
addEInfo
,
{});
...
...
src/biz/userRuFu.ts
View file @
78803053
...
@@ -123,6 +123,8 @@ export async function createRuFu(uId, param) {
...
@@ -123,6 +123,8 @@ export async function createRuFu(uId, param) {
register
:
0
register
:
0
};
};
await
operationalData
(
OPERATIONALDATATYPE
.
增加
,
TABLENAME
.
企业基础信息表
,
addEInfo
,
{});
await
operationalData
(
OPERATIONALDATATYPE
.
增加
,
TABLENAME
.
企业基础信息表
,
addEInfo
,
{});
console
.
log
(
"addEInfo"
,
addEInfo
);
await
operationalData
(
OPERATIONALDATATYPE
.
修改
,
TABLENAME
.
企业用户表
,
{
eId
:
addEInfo
.
eId
},
{
uId
});
await
operationalData
(
OPERATIONALDATATYPE
.
修改
,
TABLENAME
.
企业用户表
,
{
eId
:
addEInfo
.
eId
},
{
uId
});
...
@@ -162,6 +164,7 @@ export async function createRuFu(uId, param) {
...
@@ -162,6 +164,7 @@ export async function createRuFu(uId, param) {
await
operationalData
(
OPERATIONALDATATYPE
.
增加
,
TABLENAME
.
企业用户表
,
addUInfo
,
{});
await
operationalData
(
OPERATIONALDATATYPE
.
增加
,
TABLENAME
.
企业用户表
,
addUInfo
,
{});
return
{
eId
:
addEInfo
.
eId
};
return
{
eId
:
addEInfo
.
eId
};
}
}
...
...
src/biz/zaiFu.ts
View file @
78803053
This diff is collapsed.
Click to expand it.
src/biz/zhengCe.ts
View file @
78803053
...
@@ -10,62 +10,76 @@ import { getMySqlMs, randomId } from "../tools/system";
...
@@ -10,62 +10,76 @@ import { getMySqlMs, randomId } from "../tools/system";
import
{
BizError
}
from
"../util/bizError"
;
import
{
BizError
}
from
"../util/bizError"
;
import
{
eccFormParam
}
from
"../util/verificationParam"
;
import
{
eccFormParam
}
from
"../util/verificationParam"
;
import
{
PolicyUpdateConfig
}
from
"../config/eccParam/enterprise"
;
import
{
PolicyUpdateConfig
}
from
"../config/eccParam/enterprise"
;
import
{
POLICYTYPE
}
from
"../config/enum/enum"
;
import
{
changeEnumValue
}
from
"../util/verificationEnum"
;
/**
export
async
function
enterprisePolicyList
(
keywords
:
string
,
state
:
number
,
page
:
number
)
{
* 政策列表
* @param keywords 模糊搜索关键词
* @param state 筛选状态: 1=进行中 2=往期 其他=全部
* @param policyType 筛选政策类型: 1=财政补贴 2=资质申报 3=政策扶持
* @param page 页码
*/
export
async
function
enterprisePolicyList
(
keywords
:
string
,
state
:
number
,
policyType
:
number
,
page
:
number
)
{
let
selectParam
:
any
=
{};
let
selectParam
:
any
=
{};
if
(
keywords
)
selectParam
.
title
=
{
"%like%"
:
keywords
};
if
(
keywords
)
selectParam
.
title
=
{
"%like%"
:
keywords
};
let
filesList
=
[
"poId"
,
"title"
,
"source"
,
"createTimeMs"
,
"closeTimeMs"
,
"isPermanent"
,
"coverImg"
];
if
(
policyType
)
selectParam
.
policyType
=
policyType
;
//政策类型
let
filesList
=
[
"poId"
,
"title"
,
"source"
,
"createTimeMs"
,
"closeTimeMs"
,
"isPermanent"
,
"coverImg"
,
"policyType"
];
let
resList
=
await
selectData
(
OPERATIONALDATATYPE
.
分页查询
,
TABLENAME
.
政策表
,
selectParam
,
filesList
,
page
);
let
resList
=
await
selectData
(
OPERATIONALDATATYPE
.
分页查询
,
TABLENAME
.
政策表
,
selectParam
,
filesList
,
page
);
let
dataCount
=
await
selectData
(
OPERATIONALDATATYPE
.
查询数据量
,
TABLENAME
.
政策表
,
selectParam
,
null
);
let
dataCount
=
await
selectData
(
OPERATIONALDATATYPE
.
查询数据量
,
TABLENAME
.
政策表
,
selectParam
,
null
);
let
dataList
=
[];
let
dataList
=
[];
const
now
=
moment
().
valueOf
();
// 获取当前时间戳
const
now
=
moment
().
valueOf
();
// 获取当前时间戳
resList
.
forEach
(
info
=>
{
resList
.
forEach
(
info
=>
{
let
closeTimeMs
=
info
.
closeTimeMs
;
if
(
info
.
isPermanent
==
1
)
closeTimeMs
=
'永久有效'
;
if
(
!
info
.
closeTimeMs
)
closeTimeMs
=
"-"
;
// 格式化日期前检查closeTimeMs是否为'永久有效'或'-'
// 格式化日期前检查closeTimeMs是否为'永久有效'或'-'
let
formattedCloseTimeMs
=
closeTimeMs
===
'永久有效'
||
closeTimeMs
===
'-'
?
closeTimeMs
:
moment
(
closeTimeMs
).
format
(
"YYYY-MM-DD"
);
// 判断是否为永久有效政策
let
formattedCreateTime
=
"-"
;
if
(
info
.
isPermanent
==
1
)
formattedCreateTime
=
"永久有效"
;
else
formattedCreateTime
=
moment
(
info
.
closeTimeMs
).
format
(
"YYYY-MM-DD"
);
// 判断政策是进行中还是往期
// 判断政策是进行中还是往期
let
status
=
''
;
let
status
=
''
;
if
(
info
.
isPermanent
==
1
)
{
if
(
info
.
isPermanent
==
1
)
{
status
=
'进行中'
;
status
=
'正在进行'
;
}
else
if
(
closeTimeMs
===
'-'
)
{
status
=
'进行中'
;
}
else
{
}
else
{
const
policyEndTime
=
moment
(
closeTimeMs
).
valueOf
();
if
(
info
.
closeTimeMs
>
getMySqlMs
())
{
status
=
policyEndTime
>=
now
?
'进行中'
:
'往期'
;
status
=
'正在进行'
;
}
if
(
getMySqlMs
()
>
info
.
closeTimeMs
)
{
status
=
'已结束'
;
}
}
}
if
(
state
==
1
)
{
if
(
state
==
1
)
{
if
(
info
.
isPermanent
==
1
||
closeTimeMs
>
getMySqlMs
())
{
if
(
info
.
isPermanent
==
1
||
info
.
closeTimeMs
>
getMySqlMs
())
{
dataList
.
push
({
dataList
.
push
({
poId
:
info
.
poId
,
poId
:
info
.
poId
,
title
:
info
.
title
,
title
:
info
.
title
,
source
:
info
.
source
,
source
:
info
.
source
,
createTimeMs
:
info
.
createTimeMs
?
moment
(
info
.
createTimeMs
).
format
(
"YYYY-MM-DD"
)
:
"-"
,
createTimeMs
:
info
.
createTimeMs
?
moment
(
info
.
createTimeMs
).
format
(
"YYYY-MM-DD"
)
:
"-"
,
closeTimeMs
:
formattedC
loseTimeMs
,
closeTimeMs
:
formattedC
reateTime
,
isPermanent
:
info
.
isPermanent
,
isPermanent
:
info
.
isPermanent
,
policyType
:
changeEnumValue
(
POLICYTYPE
,
info
.
policyType
),
//政策类型
//图片
//图片
coverImg
:
JSON
.
parse
(
info
.
coverImg
),
coverImg
:
JSON
.
parse
(
info
.
coverImg
),
//coverImg:info.coverImg ? JSON.parse(info.coverImg) : [],
//coverImg:info.coverImg ? JSON.parse(info.coverImg) : [],
status
,
// 发布状态
});
});
}
}
}
else
if
(
state
==
2
)
{
}
else
if
(
state
==
2
)
{
if
(
info
.
isPermanent
==
0
&&
getMySqlMs
()
>
closeTimeMs
)
{
if
(
info
.
isPermanent
==
0
&&
getMySqlMs
()
>
info
.
closeTimeMs
)
{
dataList
.
push
({
dataList
.
push
({
poId
:
info
.
poId
,
poId
:
info
.
poId
,
title
:
info
.
title
,
title
:
info
.
title
,
source
:
info
.
source
,
source
:
info
.
source
,
createTimeMs
:
info
.
createTimeMs
?
moment
(
info
.
createTimeMs
).
format
(
"YYYY-MM-DD"
)
:
"-"
,
createTimeMs
:
info
.
createTimeMs
?
moment
(
info
.
createTimeMs
).
format
(
"YYYY-MM-DD"
)
:
"-"
,
closeTimeMs
:
formattedC
loseTimeMs
,
closeTimeMs
:
formattedC
reateTime
,
isPermanent
:
info
.
isPermanent
,
isPermanent
:
info
.
isPermanent
,
policyType
:
changeEnumValue
(
POLICYTYPE
,
info
.
policyType
),
//政策类型
//图片
//图片
coverImg
:
JSON
.
parse
(
info
.
coverImg
),
coverImg
:
JSON
.
parse
(
info
.
coverImg
),
//coverImg:info.coverImg ? JSON.parse(info.coverImg) : [],
//coverImg:info.coverImg ? JSON.parse(info.coverImg) : [],
status
,
// 发布状态
});
});
}
}
}
else
{
}
else
{
...
@@ -74,11 +88,13 @@ export async function enterprisePolicyList(keywords:string, state:number, page:n
...
@@ -74,11 +88,13 @@ export async function enterprisePolicyList(keywords:string, state:number, page:n
title
:
info
.
title
,
title
:
info
.
title
,
source
:
info
.
source
,
source
:
info
.
source
,
createTimeMs
:
info
.
createTimeMs
?
moment
(
info
.
createTimeMs
).
format
(
"YYYY-MM-DD"
)
:
"-"
,
createTimeMs
:
info
.
createTimeMs
?
moment
(
info
.
createTimeMs
).
format
(
"YYYY-MM-DD"
)
:
"-"
,
closeTimeMs
:
formattedC
loseTimeMs
,
closeTimeMs
:
formattedC
reateTime
,
isPermanent
:
info
.
isPermanent
,
isPermanent
:
info
.
isPermanent
,
policyType
:
changeEnumValue
(
POLICYTYPE
,
info
.
policyType
),
//政策类型
//图片
//图片
coverImg
:
JSON
.
parse
(
info
.
coverImg
),
coverImg
:
JSON
.
parse
(
info
.
coverImg
),
//coverImg:info.coverImg ? JSON.parse(info.coverImg) : [],
//coverImg:info.coverImg ? JSON.parse(info.coverImg) : [],
status
,
// 发布状态
});
});
}
}
...
@@ -89,9 +105,19 @@ export async function enterprisePolicyList(keywords:string, state:number, page:n
...
@@ -89,9 +105,19 @@ export async function enterprisePolicyList(keywords:string, state:number, page:n
export
async
function
enterprisePolicyInfo
(
poId
:
string
)
{
export
async
function
enterprisePolicyInfo
(
poId
:
string
)
{
let
filesList
=
[
"poId"
,
"title"
,
"source"
,
"createTimeMs"
,
"closeTimeMs"
,
"isPermanent"
,
"coverImg"
,
"desc"
];
let
filesList
=
[
"poId"
,
"title"
,
"source"
,
"createTimeMs"
,
"closeTimeMs"
,
"isPermanent"
,
"coverImg"
,
"desc"
,
"policyType"
];
let
resInfo
=
await
selectData
(
OPERATIONALDATATYPE
.
查询单个
,
TABLENAME
.
政策表
,
{
poId
},
filesList
);
let
resInfo
=
await
selectData
(
OPERATIONALDATATYPE
.
查询单个
,
TABLENAME
.
政策表
,
{
poId
},
filesList
);
let
status
=
''
;
if
(
resInfo
.
isPermanent
==
1
)
{
status
=
'正在进行'
;
}
else
if
(
resInfo
.
closeTimeMs
>
getMySqlMs
())
{
status
=
'正在进行'
;
}
else
{
status
=
'已结束'
;
}
let
dataInfo
=
{
let
dataInfo
=
{
title
:
resInfo
.
title
,
title
:
resInfo
.
title
,
source
:
resInfo
.
source
,
source
:
resInfo
.
source
,
...
@@ -99,10 +125,14 @@ export async function enterprisePolicyInfo(poId:string) {
...
@@ -99,10 +125,14 @@ export async function enterprisePolicyInfo(poId:string) {
coverImg
:
resInfo
.
coverImg
?
JSON
.
parse
(
resInfo
.
coverImg
)
:
[],
coverImg
:
resInfo
.
coverImg
?
JSON
.
parse
(
resInfo
.
coverImg
)
:
[],
// closeTimeMs:new Date(resInfo.closeTimeMs).valueOf(),
// closeTimeMs:new Date(resInfo.closeTimeMs).valueOf(),
closeTimeMs
:
resInfo
.
closeTimeMs
?
new
Date
(
resInfo
.
closeTimeMs
).
valueOf
()
:
null
,
closeTimeMs
:
resInfo
.
closeTimeMs
?
new
Date
(
resInfo
.
closeTimeMs
).
valueOf
()
:
null
,
isPermanent
:
resInfo
.
isPermanent
isPermanent
:
resInfo
.
isPermanent
,
policyType
:
resInfo
.
policyType
,
//政策类型
// policyType: changeEnumValue(POLICYTYPE, resInfo.policyType),
status
,
// 发布状态
};
};
return
{
dataInfo
};
return
{
dataInfo
};
}
}
...
@@ -125,6 +155,8 @@ export async function enterprisePolicyUpdate(poId:string, param) {
...
@@ -125,6 +155,8 @@ export async function enterprisePolicyUpdate(poId:string, param) {
if
(
!
param
.
coverImg
)
param
.
coverImg
=
'[]'
;
if
(
!
param
.
coverImg
)
param
.
coverImg
=
'[]'
;
else
param
.
coverImg
=
JSON
.
stringify
(
param
.
coverImg
);
else
param
.
coverImg
=
JSON
.
stringify
(
param
.
coverImg
);
await
operationalData
(
OPERATIONALDATATYPE
.
修改
,
TABLENAME
.
政策表
,
param
,
{
poId
});
await
operationalData
(
OPERATIONALDATATYPE
.
修改
,
TABLENAME
.
政策表
,
param
,
{
poId
});
return
{
isSuccess
:
true
};
return
{
isSuccess
:
true
};
...
@@ -140,6 +172,7 @@ export async function enterprisePolicyAdd( param) {
...
@@ -140,6 +172,7 @@ export async function enterprisePolicyAdd( param) {
else
param
.
coverImg
=
JSON
.
stringify
(
param
.
coverImg
);
else
param
.
coverImg
=
JSON
.
stringify
(
param
.
coverImg
);
param
.
poId
=
randomId
(
TABLEID
.
政策表
);
param
.
poId
=
randomId
(
TABLEID
.
政策表
);
param
.
createTimeMs
=
getMySqlMs
();
param
.
createTimeMs
=
getMySqlMs
();
await
operationalData
(
OPERATIONALDATATYPE
.
增加
,
TABLENAME
.
政策表
,
param
,
{});
await
operationalData
(
OPERATIONALDATATYPE
.
增加
,
TABLENAME
.
政策表
,
param
,
{});
return
{
isSuccess
:
true
};
return
{
isSuccess
:
true
};
...
...
src/config/eccParam/enterprise.ts
View file @
78803053
...
@@ -21,7 +21,8 @@ export const PolicyUpdateConfig = {
...
@@ -21,7 +21,8 @@ export const PolicyUpdateConfig = {
source
:{
type
:
"String"
},
// 来源
source
:{
type
:
"String"
},
// 来源
coverImg
:{
type
:
"[String]"
},
// 图片
coverImg
:{
type
:
"[String]"
},
// 图片
closeTimeMs
:{
type
:
"Number"
},
// 关闭时间
closeTimeMs
:{
type
:
"Number"
},
// 关闭时间
isPermanent
:{
type
:
"Number"
}
//是否永久有效
isPermanent
:{
type
:
"Number"
},
//是否永久有效
policyType
:{
type
:
"Number"
},
// 政策类型
}
}
...
@@ -61,31 +62,24 @@ export const RegisterUpdateConfig = {
...
@@ -61,31 +62,24 @@ export const RegisterUpdateConfig = {
}
}
export
const
AdminRegisterAddConfig
=
{
export
const
AdminRegisterAddConfig
=
{
// enterpriseName:{type:"String"},//企业名称
enterpriseName
:{
type
:
"String"
,
required
:
true
,
message
:
'企业名称不能为空'
},
//企业名称
// uscc:{type:"String"},//统一信用代码
uscc
:{
type
:
"String"
,
required
:
true
,
message
:
'统一信用代码不能为空'
},
//信用代码
// logonTime:{type:"Number"},//注册日期
logonTime
:{
type
:
"Number"
,
required
:
true
,
message
:
'注册时间不能为空'
},
//注册时间
// logonAddress:{type:"String"},//注册地址
logonAddress
:{
type
:
"String"
,
required
:
true
,
message
:
'注册地址不能为空'
},
//注册地址
// fuHuaTimeStart:{type:"Number"},//孵化开始时间
fuHuaTimeStart
:{
type
:
"Number"
,
required
:
true
,
message
:
'孵化开始时间不能为空'
},
//孵化开始时间
// fuHuaTimeEndTime:{type:"Number"},//孵化结束时间
fuHuaTimeEndTime
:{
type
:
"Number"
,
required
:
true
,
message
:
'孵化结束时间不能为空'
},
//孵化结束时间
// area:{type:"Number"},//面积
area
:{
type
:
"Number"
,
required
:
false
},
//面积非必填
enterpriseName
:{
type
:
"String"
},
//企业名称
uscc
:{
type
:
"String"
},
//信用代码
logonTime
:{
type
:
"Number"
},
//注册时间
logonAddress
:{
type
:
"String"
},
//注册地址
fuHuaTimeStart
:{
type
:
"Number"
},
//孵化开始时间
fuHuaTimeEndTime
:{
type
:
"Number"
},
//孵化结束时间
area
:{
type
:
"Number"
},
//面积
// unitPrice:{type:"Number"},//单价
// unitPrice:{type:"Number"},//单价
roomNumber
:{
type
:
"String"
},
//室号
buillding
:
{
type
:
'string'
,
required
:
false
},
// 租赁楼号非必填
rent
:{
type
:
"Number"
},
//每月租金
roomNumber
:{
type
:
"String"
,
required
:
false
},
//室号非必填
rent
:{
type
:
"Number"
,
required
:
true
,
message
:
'每月租金不能为空'
},
//每月租金
// totalPrice:{type:"Number"},//总价
// totalPrice:{type:"Number"},//总价
pwd
:{
type
:
"String"
},
pwd
:{
type
:
"String"
,
required
:
true
,
message
:
'密码不能为空'
},
phone
:{
type
:
"String"
},
phone
:{
type
:
"String"
,
required
:
true
,
message
:
'手机号码不能为空'
},
userName
:{
type
:
"String"
},
userName
:{
type
:
"String"
,
required
:
true
,
message
:
'用户名不能为空'
},
leaseStartTime
:
{
type
:
'string'
,
required
:
true
,
message
:
'租赁开始时间不能为空'
},
leaseStartTime
:
{
type
:
'string'
,
required
:
true
,
message
:
'租赁开始时间不能为空'
},
leaseEndTime
:
{
type
:
'string'
,
required
:
true
,
message
:
'租赁结束时间不能为空'
},
leaseEndTime
:
{
type
:
'string'
,
required
:
true
,
message
:
'租赁结束时间不能为空'
},
email
:
{
type
:
'string'
,
required
:
true
,
message
:
'邮箱地址不能为空'
},
email
:
{
type
:
'string'
,
required
:
true
,
message
:
'邮箱地址不能为空'
},
buillding
:
{
type
:
'string'
,
required
:
false
},
// 租赁楼号非必填
}
}
...
@@ -109,15 +103,17 @@ export const YuYiBaseDataUpdateConfig = {
...
@@ -109,15 +103,17 @@ export const YuYiBaseDataUpdateConfig = {
personCharge
:{
type
:
"String"
},
//负责人
personCharge
:{
type
:
"String"
},
//负责人
phone
:{
type
:
"String"
},
//手机号码
phone
:{
type
:
"String"
},
//手机号码
synopsis
:{
type
:
"String"
},
//简介
synopsis
:{
type
:
"String"
},
//简介
totalArea
:{
type
:
"String"
},
//总面积
totalArea
:{
type
:
"String"
},
//
孵化器
总面积
zaifuArea
:{
type
:
"String"
},
//在孵面积
zaifuArea
:{
type
:
"String"
},
//在孵面积
ziyonArea
:{
type
:
"String"
},
//自用面积
rentRate
:{
type
:
"String"
},
//出租率
parkArea
:{
type
:
"String"
},
//新增
uscc
:{
type
:
"String"
},
//统一信用代码
industrialScale
:{
type
:
"String"
},
// ziyonArea:{type:"String"},//自用面积
enterpriseNum
:{
type
:
"Number"
},
// parkArea:{type:"String"},//新增
totalAssetInvestmentAmount
:{
type
:
"String"
},
// industrialScale:{type:"String"},
numberOfInstitutionsIntroduced
:{
type
:
"String"
},
// enterpriseNum:{type:"Number"},
introduceInstitutionalInvestment
:{
type
:
"String"
}
// totalAssetInvestmentAmount:{type:"String"},
// numberOfInstitutionsIntroduced:{type:"String"},
// introduceInstitutionalInvestment:{type:"String"}
}
}
...
@@ -129,7 +125,7 @@ export const UserRegisterAddConfig = {
...
@@ -129,7 +125,7 @@ export const UserRegisterAddConfig = {
logonAddress
:{
type
:
"String"
,
required
:
true
,
message
:
'注册地址不能为空'
},
//注册地址
logonAddress
:{
type
:
"String"
,
required
:
true
,
message
:
'注册地址不能为空'
},
//注册地址
fuHuaTimeStart
:{
type
:
"Number"
,
required
:
true
,
message
:
'孵化开始时间不能为空'
},
//孵化开始时间
fuHuaTimeStart
:{
type
:
"Number"
,
required
:
true
,
message
:
'孵化开始时间不能为空'
},
//孵化开始时间
fuHuaTimeEndTime
:{
type
:
"Number"
,
required
:
true
,
message
:
'孵化结束时间不能为空'
},
//孵化结束时间
fuHuaTimeEndTime
:{
type
:
"Number"
,
required
:
true
,
message
:
'孵化结束时间不能为空'
},
//孵化结束时间
rent
:{
type
:
"Number"
,
required
:
true
,
message
:
'每月租金不能为空'
},
//每月租金
1
rent
:{
type
:
"Number"
,
required
:
true
,
message
:
'每月租金不能为空'
},
//每月租金
leaseStartTime
:
{
type
:
'string'
,
required
:
true
,
message
:
'租赁开始时间不能为空'
},
leaseStartTime
:
{
type
:
'string'
,
required
:
true
,
message
:
'租赁开始时间不能为空'
},
leaseEndTime
:
{
type
:
'string'
,
required
:
true
,
message
:
'租赁结束时间不能为空'
},
leaseEndTime
:
{
type
:
'string'
,
required
:
true
,
message
:
'租赁结束时间不能为空'
},
email
:
{
type
:
'string'
,
required
:
true
,
message
:
'邮箱地址不能为空'
},
email
:
{
type
:
'string'
,
required
:
true
,
message
:
'邮箱地址不能为空'
},
...
...
src/config/enum/enum.ts
View file @
78803053
...
@@ -161,6 +161,25 @@ export enum FINANCINGROUNDS {
...
@@ -161,6 +161,25 @@ export enum FINANCINGROUNDS {
}
}
/**
* 政策类型
*/
export
enum
POLICYTYPE
{
财政补贴
=
1
,
资质申报
=
2
,
政策扶持
=
3
}
/**
* 园区楼号
*/
export
enum
BUILDING
{
一号楼
=
1
,
三号楼
=
3
,
四号楼
=
4
,
}
export
enum
OUTCOME
{
export
enum
OUTCOME
{
未解决
=
0
,
未解决
=
0
,
已解决
已解决
...
...
src/config/enum/outputEnum.ts
View file @
78803053
...
@@ -7,8 +7,10 @@ export enum ENTERPRISEBASE {
...
@@ -7,8 +7,10 @@ export enum ENTERPRISEBASE {
注册时间
=
"logonTime"
,
注册时间
=
"logonTime"
,
注册地址
=
"logonAddress"
,
注册地址
=
"logonAddress"
,
企业规模
=
"qiYeGuiMo"
,
企业规模
=
"qiYeGuiMo"
,
孵化时间
=
"fuHuaTime"
,
租赁时间
=
"startTime"
,
租赁时间
=
"startTime"
,
租赁面积
=
"area"
,
租赁面积
=
"area"
,
楼号
=
"building"
,
室号
=
"roomNumber"
室号
=
"roomNumber"
}
}
...
@@ -59,8 +61,11 @@ export enum ENTERPRISEBASEMOVEOUT {
...
@@ -59,8 +61,11 @@ export enum ENTERPRISEBASEMOVEOUT {
迁出类型
=
"moveOutType"
,
迁出类型
=
"moveOutType"
,
注册地址
=
"logonAddress"
,
注册地址
=
"logonAddress"
,
企业规模
=
"qiYeGuiMo"
,
企业规模
=
"qiYeGuiMo"
,
孵化时间
=
"fuHuaTime"
,
租赁时间
=
"startTime"
,
租赁时间
=
"startTime"
,
租赁面积
=
"area"
租赁面积
=
"area"
,
楼号
=
"building"
,
室号
=
"roomNumber"
}
}
src/routers/admin.ts
View file @
78803053
...
@@ -235,8 +235,8 @@ async function enterpriseLogout(req, res) {
...
@@ -235,8 +235,8 @@ async function enterpriseLogout(req, res) {
*/
*/
async
function
policyList
(
req
,
res
)
{
async
function
policyList
(
req
,
res
)
{
const
UserInfo
=
req
.
userInfo
;
const
UserInfo
=
req
.
userInfo
;
let
{
keywords
,
state
,
page
}
=
req
.
body
let
{
keywords
,
state
,
policyType
,
page
}
=
req
.
body
let
result
=
await
zhengCeBiz
.
enterprisePolicyList
(
keywords
,
state
,
page
);
let
result
=
await
zhengCeBiz
.
enterprisePolicyList
(
keywords
,
state
,
policyType
,
page
);
res
.
success
(
result
);
res
.
success
(
result
);
}
}
...
@@ -333,8 +333,8 @@ async function outPutTalentList(req, res) {
...
@@ -333,8 +333,8 @@ async function outPutTalentList(req, res) {
*/
*/
async
function
enterpriseList
(
req
,
res
)
{
async
function
enterpriseList
(
req
,
res
)
{
const
UserInfo
=
req
.
userInfo
;
const
UserInfo
=
req
.
userInfo
;
let
{
enterpriseName
,
page
}
=
req
.
body
let
{
enterpriseName
,
page
,
logonStartTime
,
logonEndTime
,
startTime
,
endTime
,
building
}
=
req
.
body
let
result
=
await
zaiFuBiz
.
enterpriseList
(
enterpriseName
,
page
);
let
result
=
await
zaiFuBiz
.
enterpriseList
(
enterpriseName
,
page
,
logonStartTime
,
logonEndTime
,
startTime
,
endTime
,
building
);
res
.
success
(
result
);
res
.
success
(
result
);
}
}
...
...
src/routers/public.ts
View file @
78803053
...
@@ -25,6 +25,9 @@ const config = {
...
@@ -25,6 +25,9 @@ const config = {
"/public/output/enterprisemoveout"
:
outputEnumConfig
.
ENTERPRISEBASEMOVEOUT
,
"/public/output/enterprisemoveout"
:
outputEnumConfig
.
ENTERPRISEBASEMOVEOUT
,
"/public/iprtypeclientqt"
:
enumConfig
.
IPRTYPECLIENTQT
,
// 新增知识产权类型
"/public/iprtypeclientqt"
:
enumConfig
.
IPRTYPECLIENTQT
,
// 新增知识产权类型
"/public/iprtypeclientzl"
:
enumConfig
.
IPRTYPECLIENTZL
,
// 新增知识产权专利
"/public/iprtypeclientzl"
:
enumConfig
.
IPRTYPECLIENTZL
,
// 新增知识产权专利
"/public/policytype"
:
enumConfig
.
POLICYTYPE
,
// 政策文件类型
"/public/building"
:
enumConfig
.
BUILDING
,
// 园区楼号
// "/public/output/basedata":outputEnumConfig.BASEDATA,
// "/public/output/basedata":outputEnumConfig.BASEDATA,
...
...
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