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
b8ea3e20
Commit
b8ea3e20
authored
May 28, 2025
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
cd9c50ab
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
26 deletions
+35
-26
admin.ts
src/biz/admin.ts
+9
-3
fuhua.ts
src/biz/fuhua.ts
+1
-1
ruFu.ts
src/biz/ruFu.ts
+4
-1
userRuFu.ts
src/biz/userRuFu.ts
+1
-1
enterprise.ts
src/config/eccParam/enterprise.ts
+9
-9
dbinit.ts
src/routers/dbinit.ts
+11
-11
No files found.
src/biz/admin.ts
View file @
b8ea3e20
...
@@ -631,7 +631,11 @@ export async function iprList(enterpriseName, page) {
...
@@ -631,7 +631,11 @@ export async function iprList(enterpriseName, page) {
外观设计专利
:
0
,
外观设计专利
:
0
,
实用新型专利
:
0
,
实用新型专利
:
0
,
发明专利
:
0
,
发明专利
:
0
,
}
};
let
count
=
0
;
if
(
Object
.
keys
(
知识产权
Map
).
length
)
{
if
(
Object
.
keys
(
知识产权
Map
[
info
.
eId
]).
length
)
{
if
(
知识产权
Map
[
info
.
eId
][
enumConfig
.
IPRALLTYPE
.
商标信息
])
知识产权数量
.
商标信息
=
知识产权
Map
[
info
.
eId
][
enumConfig
.
IPRALLTYPE
.
商标信息
].
length
;
if
(
知识产权
Map
[
info
.
eId
][
enumConfig
.
IPRALLTYPE
.
商标信息
])
知识产权数量
.
商标信息
=
知识产权
Map
[
info
.
eId
][
enumConfig
.
IPRALLTYPE
.
商标信息
].
length
;
if
(
知识产权
Map
[
info
.
eId
][
enumConfig
.
IPRALLTYPE
.
作品著作权
])
知识产权数量
.
作品著作权
=
知识产权
Map
[
info
.
eId
][
enumConfig
.
IPRALLTYPE
.
作品著作权
].
length
;
if
(
知识产权
Map
[
info
.
eId
][
enumConfig
.
IPRALLTYPE
.
作品著作权
])
知识产权数量
.
作品著作权
=
知识产权
Map
[
info
.
eId
][
enumConfig
.
IPRALLTYPE
.
作品著作权
].
length
;
if
(
知识产权
Map
[
info
.
eId
][
enumConfig
.
IPRALLTYPE
.
软件著作权
])
知识产权数量
.
软件著作权
=
知识产权
Map
[
info
.
eId
][
enumConfig
.
IPRALLTYPE
.
软件著作权
].
length
;
if
(
知识产权
Map
[
info
.
eId
][
enumConfig
.
IPRALLTYPE
.
软件著作权
])
知识产权数量
.
软件著作权
=
知识产权
Map
[
info
.
eId
][
enumConfig
.
IPRALLTYPE
.
软件著作权
].
length
;
...
@@ -639,7 +643,7 @@ export async function iprList(enterpriseName, page) {
...
@@ -639,7 +643,7 @@ export async function iprList(enterpriseName, page) {
if
(
知识产权
Map
[
info
.
eId
][
enumConfig
.
IPRALLTYPE
.
实用新型专利
])
知识产权数量
.
实用新型专利
=
知识产权
Map
[
info
.
eId
][
enumConfig
.
IPRALLTYPE
.
实用新型专利
].
length
;
if
(
知识产权
Map
[
info
.
eId
][
enumConfig
.
IPRALLTYPE
.
实用新型专利
])
知识产权数量
.
实用新型专利
=
知识产权
Map
[
info
.
eId
][
enumConfig
.
IPRALLTYPE
.
实用新型专利
].
length
;
if
(
知识产权
Map
[
info
.
eId
][
enumConfig
.
IPRALLTYPE
.
发明专利
])
知识产权数量
.
发明专利
=
知识产权
Map
[
info
.
eId
][
enumConfig
.
IPRALLTYPE
.
发明专利
].
length
;
if
(
知识产权
Map
[
info
.
eId
][
enumConfig
.
IPRALLTYPE
.
发明专利
])
知识产权数量
.
发明专利
=
知识产权
Map
[
info
.
eId
][
enumConfig
.
IPRALLTYPE
.
发明专利
].
length
;
let
count
=
知识产权数量
.
商标信息
+
知识产权数量
.
作品著作权
+
知识产权数量
.
软件著作权
+
知识产权数量
.
外观设计专利
+
知识产权数量
.
实用新型专利
+
知识产权数量
.
发明专利
;
count
=
知识产权数量
.
商标信息
+
知识产权数量
.
作品著作权
+
知识产权数量
.
软件著作权
+
知识产权数量
.
外观设计专利
+
知识产权数量
.
实用新型专利
+
知识产权数量
.
发明专利
;
let
addInfo
=
{
let
addInfo
=
{
eId
:
info
.
eId
,
eId
:
info
.
eId
,
...
@@ -654,6 +658,8 @@ export async function iprList(enterpriseName, page) {
...
@@ -654,6 +658,8 @@ export async function iprList(enterpriseName, page) {
}
}
resData
.
push
(
addInfo
)
resData
.
push
(
addInfo
)
}
}
})
})
let
paginatedData
=
await
paginateArray
(
resData
,
page
);
let
paginatedData
=
await
paginateArray
(
resData
,
page
);
...
@@ -756,7 +762,7 @@ export async function getiprDetails(eId:string) {
...
@@ -756,7 +762,7 @@ export async function getiprDetails(eId:string) {
dataList
.
push
({
dataList
.
push
({
iprId
:
info
[
iprConf
[
0
]],
iprId
:
info
[
iprConf
[
0
]],
iprName
:
info
[
iprConf
[
1
]],
iprName
:
info
[
iprConf
[
1
]],
iprTime
:
info
[
iprConf
[
2
]]
,
iprTime
:
moment
(
info
[
iprConf
[
2
]]).
format
(
"YYYY-MM-DD"
)
,
iprUrl
,
iprUrl
,
timeNumber
:
new
Date
(
info
[
iprConf
[
2
]]).
valueOf
()
timeNumber
:
new
Date
(
info
[
iprConf
[
2
]]).
valueOf
()
})
})
...
...
src/biz/fuhua.ts
View file @
b8ea3e20
...
@@ -143,7 +143,7 @@ export async function getBaseData() {
...
@@ -143,7 +143,7 @@ export async function getBaseData() {
* 运营推广(次数)
* 运营推广(次数)
*/
*/
let
promotionList
=
await
selectData
(
OPERATIONALDATATYPE
.
查询多个
,
TABLENAME
.
运营推广信息表
,{},
[
"opId"
,
"promotionType"
,
"promotionApp"
,
"promotionNum"
]);
let
promotionList
=
await
selectData
(
OPERATIONALDATATYPE
.
查询多个
,
TABLENAME
.
运营推广信息表
,{},
[
"opId"
,
"promotionType"
,
"promotionApp"
,
"promotionNum"
]);
let
promotionInfo
=
{
"线上推广"
:
{
},
"线下推广"
:
{
}};
let
promotionInfo
=
{
"线上推广"
:
{
"视频号"
:
0
,
"抖音"
:
0
,
"小红书"
:
0
},
"线下推广"
:
{
"活动宣讲"
:
0
,
"三方机构合作"
:
0
}};
if
(
promotionList
.
length
)
{
if
(
promotionList
.
length
)
{
promotionList
.
forEach
(
info
=>
{
promotionList
.
forEach
(
info
=>
{
let
appStr
=
""
;
let
appStr
=
""
;
...
...
src/biz/ruFu.ts
View file @
b8ea3e20
...
@@ -119,6 +119,9 @@ export async function settleInEnterpriseList(page:number, enterpriseName:string)
...
@@ -119,6 +119,9 @@ export async function settleInEnterpriseList(page:number, enterpriseName:string)
let
dataList
=
[];
let
dataList
=
[];
resList
.
forEach
(
info
=>
{
resList
.
forEach
(
info
=>
{
let
builder
=
""
;
if
(
info
.
enterprise_leases
[
0
].
building
)
builder
=
changeEnumValue
(
enumConfig
.
BUILDING
,
parseInt
(
info
.
enterprise_leases
[
0
].
building
));
dataList
.
push
({
dataList
.
push
({
eId
:
info
.
eId
,
eId
:
info
.
eId
,
enterpriseName
:
info
.
enterpriseName
,
//企业名称
enterpriseName
:
info
.
enterpriseName
,
//企业名称
...
@@ -135,7 +138,7 @@ export async function settleInEnterpriseList(page:number, enterpriseName:string)
...
@@ -135,7 +138,7 @@ export async function settleInEnterpriseList(page:number, enterpriseName:string)
area
:
info
.
enterprise_leases
[
0
].
area
,
//租赁面积
area
:
info
.
enterprise_leases
[
0
].
area
,
//租赁面积
// unitPrice:info.enterprise_leases[0].unitPrice,//——暂时没用
// unitPrice:info.enterprise_leases[0].unitPrice,//——暂时没用
// roomNumber:info.enterprise_leases[0].roomNumber,
// roomNumber:info.enterprise_leases[0].roomNumber,
building
:
info
.
enterprise_leases
[
0
].
building
||
""
,
// 园区楼号
building
:
builder
,
// 园区楼号
roomNumber
:
info
.
enterprise_leases
[
0
].
roomNumber
||
""
,
// 室号
roomNumber
:
info
.
enterprise_leases
[
0
].
roomNumber
||
""
,
// 室号
rent
:
info
.
enterprise_leases
[
0
].
rent
,
//月租金
rent
:
info
.
enterprise_leases
[
0
].
rent
,
//月租金
logonAddress
:
changeAdd
(
JSON
.
parse
(
info
.
logonAddress
)),
//注册地址
logonAddress
:
changeAdd
(
JSON
.
parse
(
info
.
logonAddress
)),
//注册地址
...
...
src/biz/userRuFu.ts
View file @
b8ea3e20
...
@@ -166,7 +166,7 @@ export async function createRuFu(uId, param) {
...
@@ -166,7 +166,7 @@ export async function createRuFu(uId, param) {
area
:
param
.
area
||
null
,
// 可为空
area
:
param
.
area
||
null
,
// 可为空
unitPrice
:
param
.
unitPrice
,
unitPrice
:
param
.
unitPrice
,
// roomNumber:param.roomNumber,
// roomNumber:param.roomNumber,
building
:
param
.
building
||
null
,
// 楼号
building
:
param
.
building
||
null
,
// 楼号
roomNumber
:
param
.
roomNumber
||
null
,
// 室号
roomNumber
:
param
.
roomNumber
||
null
,
// 室号
// startTime:getMySqlMs(param.fuHuaTimeStart), //小程序和管理后台没有填写租赁时间的位置,直接使用孵化开始时间
// startTime:getMySqlMs(param.fuHuaTimeStart), //小程序和管理后台没有填写租赁时间的位置,直接使用孵化开始时间
// endTime:getMySqlMs(param.fuHuaTimeEndTime), //小程序和管理后台没有填写租赁时间的位置,直接使用孵化结束时间
// endTime:getMySqlMs(param.fuHuaTimeEndTime), //小程序和管理后台没有填写租赁时间的位置,直接使用孵化结束时间
...
...
src/config/eccParam/enterprise.ts
View file @
b8ea3e20
...
@@ -51,7 +51,7 @@ export const SettleInForUpdateConfig = {
...
@@ -51,7 +51,7 @@ export const SettleInForUpdateConfig = {
mail
:{
type
:
"String"
},
//邮箱
mail
:{
type
:
"String"
},
//邮箱
rent
:{
type
:
"Number"
},
//每月租金
rent
:{
type
:
"Number"
},
//每月租金
area
:{
type
:
"Number"
,
required
:
false
},
//面积非必填
area
:{
type
:
"Number"
,
required
:
false
},
//面积非必填
building
:
{
type
:
'
s
tring'
,
required
:
false
},
// 租赁楼号非必填
building
:
{
type
:
'
S
tring'
,
required
:
false
},
// 租赁楼号非必填
roomNumber
:{
type
:
"String"
,
required
:
false
},
//室号非必填
roomNumber
:{
type
:
"String"
,
required
:
false
},
//室号非必填
// unitPrice:{type:"Number"},//单价
// unitPrice:{type:"Number"},//单价
// totalPrice:{type:"Number"},//总价
// totalPrice:{type:"Number"},//总价
...
@@ -81,10 +81,10 @@ export const AdminRegisterAddConfig = {
...
@@ -81,10 +81,10 @@ export const AdminRegisterAddConfig = {
userName
:{
type
:
"String"
,
required
:
true
,
message
:
'用户名不能为空'
},
userName
:{
type
:
"String"
,
required
:
true
,
message
:
'用户名不能为空'
},
phone
:{
type
:
"String"
,
required
:
true
,
message
:
'手机号码不能为空'
},
phone
:{
type
:
"String"
,
required
:
true
,
message
:
'手机号码不能为空'
},
pwd
:{
type
:
"String"
,
required
:
true
,
message
:
'密码不能为空'
},
pwd
:{
type
:
"String"
,
required
:
true
,
message
:
'密码不能为空'
},
mail
:
{
type
:
'
s
tring'
,
required
:
true
,
message
:
'邮箱地址不能为空'
},
mail
:
{
type
:
'
S
tring'
,
required
:
true
,
message
:
'邮箱地址不能为空'
},
rent
:{
type
:
"Number"
,
required
:
true
,
message
:
'每月租金不能为空'
},
//每月租金
rent
:{
type
:
"Number"
,
required
:
true
,
message
:
'每月租金不能为空'
},
//每月租金
area
:{
type
:
"Number"
,
required
:
false
},
//面积非必填
area
:{
type
:
"Number"
,
required
:
false
},
//面积非必填
building
:
{
type
:
'
s
tring'
,
required
:
false
},
// 租赁楼号非必填
building
:
{
type
:
'
S
tring'
,
required
:
false
},
// 租赁楼号非必填
roomNumber
:{
type
:
"String"
,
required
:
false
},
//室号非必填
roomNumber
:{
type
:
"String"
,
required
:
false
},
//室号非必填
}
}
...
@@ -135,15 +135,15 @@ export const UserRegisterAddConfig = {
...
@@ -135,15 +135,15 @@ export const UserRegisterAddConfig = {
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
:
'每月租金不能为空'
},
//每月租金
rent
:{
type
:
"Number"
,
required
:
true
,
message
:
'每月租金不能为空'
},
//每月租金
leaseStartTime
:
{
type
:
'
string
'
,
required
:
true
,
message
:
'租赁开始时间不能为空'
},
leaseStartTime
:
{
type
:
'
Number
'
,
required
:
true
,
message
:
'租赁开始时间不能为空'
},
leaseEndTime
:
{
type
:
'
string
'
,
required
:
true
,
message
:
'租赁结束时间不能为空'
},
leaseEndTime
:
{
type
:
'
Number
'
,
required
:
true
,
message
:
'租赁结束时间不能为空'
},
mail
:
{
type
:
'
s
tring'
,
required
:
true
,
message
:
'邮箱地址不能为空'
},
mail
:
{
type
:
'
S
tring'
,
required
:
true
,
message
:
'邮箱地址不能为空'
},
// userName: { type: 'string', required: true, message: '联系人不能为空' },
// userName: { type: 'string', required: true, message: '联系人不能为空' },
// phone: { type: 'string', required: true, message: '登录手机号码不能为空' },
// phone: { type: 'string', required: true, message: '登录手机号码不能为空' },
// pwd: { type: 'string', required: true, message: '登录密码不能为空' },
// pwd: { type: 'string', required: true, message: '登录密码不能为空' },
building
:
{
type
:
'
s
tring'
,
required
:
false
},
// 租赁楼号非必填
building
:
{
type
:
'
S
tring'
,
required
:
false
},
// 租赁楼号非必填
roomNumber
:
{
type
:
'
s
tring'
,
required
:
false
},
// 租赁室号非必填
roomNumber
:
{
type
:
'
S
tring'
,
required
:
false
},
// 租赁室号非必填
area
:
{
type
:
'
n
umber'
,
required
:
false
},
// 租赁面积非必填
area
:
{
type
:
'
N
umber'
,
required
:
false
},
// 租赁面积非必填
}
}
/**
/**
...
...
src/routers/dbinit.ts
View file @
b8ea3e20
...
@@ -315,17 +315,17 @@ export async function data1210(req, res) {
...
@@ -315,17 +315,17 @@ export async function data1210(req, res) {
// }
// }
}
}
if
(
subList
[
35
]
||
subList
[
36
]
||
subList
[
37
]
||
subList
[
38
])
{
//
if (subList[35] || subList[36] || subList[37] || subList[38]) {
let
enterprise_qualification
:
any
=
{
//
let enterprise_qualification:any = {
qId
:
randomId
(
TABLEID
.
企业资质
),
//
qId:randomId(TABLEID.企业资质),
eId
,
//
eId,
}
//
}
if
(
subList
[
35
])
enterprise_qualification
.
kxTime
=
getMySqlMs
(
`
${
subList
[
35
].
match
(
/
\d
+/g
)[
0
]}
-01-01 00:00:00`
);
//
if (subList[35]) enterprise_qualification.kxTime = getMySqlMs(`${ subList[35].match(/\d+/g)[0]}-01-01 00:00:00`);
if
(
subList
[
36
])
enterprise_qualification
.
zjtxTime
=
getMySqlMs
(
`
${
subList
[
36
].
match
(
/
\d
+/g
)[
0
]}
-01-01 00:00:00`
);
//
if (subList[36]) enterprise_qualification.zjtxTime = getMySqlMs(`${ subList[36].match(/\d+/g)[0]}-01-01 00:00:00`);
if
(
subList
[
37
])
enterprise_qualification
.
xjrTime
=
getMySqlMs
(
`
${
subList
[
37
].
match
(
/
\d
+/g
)[
0
]}
-01-01 00:00:00`
);
//
if (subList[37]) enterprise_qualification.xjrTime = getMySqlMs(`${ subList[37].match(/\d+/g)[0]}-01-01 00:00:00`);
if
(
subList
[
38
])
enterprise_qualification
.
gaoXinJiShuTime
=
getMySqlMs
(
`
${
subList
[
38
].
match
(
/
\d
+/g
)[
0
]}
-01-01 00:00:00`
);
//
if (subList[38]) enterprise_qualification.gaoXinJiShuTime = getMySqlMs(`${ subList[38].match(/\d+/g)[0]}-01-01 00:00:00`);
await
operationalData
(
OPERATIONALDATATYPE
.
增加
,
TABLENAME
.
企业资质
,
enterprise_qualification
,
{});
//
await operationalData(OPERATIONALDATATYPE.增加, TABLENAME.企业资质, enterprise_qualification, {});
}
//
}
}
}
...
...
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