Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yuyixcx
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
yuyixcx
Commits
2311befa
Commit
2311befa
authored
Apr 21, 2025
by
Zllgogo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
269eec94
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
56 additions
and
41 deletions
+56
-41
enterpriseInfo.ts
src/biz/enterpriseInfo.ts
+16
-7
qualification.ts
src/biz/qualification.ts
+15
-11
teams.ts
src/biz/teams.ts
+5
-0
enum.ts
src/config/enum/enum.ts
+17
-20
public.ts
src/routers/public.ts
+2
-2
qualification.ts
src/routers/qualification.ts
+1
-1
No files found.
src/biz/enterpriseInfo.ts
View file @
2311befa
...
...
@@ -22,13 +22,22 @@ import { sendVerificationCode } from "./mail";
export
async
function
enterpriseLogin
(
phone
:
string
,
pwd
:
string
)
{
// let dbInfo = await selectData(OPERATIONALDATATYPE.查询单个, TABLENAME.企业基础信息表, {uscc}, ["eId"]);
let
filesList
=
[
"userName"
,
"eId"
,
"pwd"
,
"uId"
,
"phone"
];
let
enterpriseInfo
=
await
selectData
(
OPERATIONALDATATYPE
.
查询单个
,
TABLENAME
.
企业用户表
,
{
phone
},
filesList
);
let
includeConf
=
{};
includeConf
[
TABLENAME
.
企业孵化信息
]
=
{
colum
:[
"state"
,
"startTime"
,
"endTime"
],
where
:{
state
:{
"%ne%"
:
enumConfig
.
FUHUASTATE
.
迁出
}}
};
includeConf
[
TABLENAME
.
企业用户表
]
=
{
colum
:
filesList
,
where
:{
phone
}
};
let
enterpriseInfo
=
await
selectManyTableData
(
OPERATIONALDATATYPE
.
多表单个
,
TABLENAME
.
企业基础信息表
,
{},
[
"enterpriseName"
],
includeConf
);
if
(
!
enterpriseInfo
||
!
enterpriseInfo
.
e
Id
)
{
if
(
!
enterpriseInfo
||
!
enterpriseInfo
.
e
nterpriseName
)
{
throw
new
BizError
(
ERRORENUM
.
账号或密码错误
);
}
if
(
enterpriseInfo
.
pwd
!=
pwd
)
{
let
{
enterprise_users
}
=
enterpriseInfo
;
let
enterpriseUserInfo
=
enterprise_users
[
0
];
if
(
!
enterpriseUserInfo
||
!
enterpriseUserInfo
.
phone
)
{
throw
new
BizError
(
ERRORENUM
.
账号或密码错误
);
}
if
(
enterpriseUserInfo
.
pwd
!=
pwd
)
{
throw
new
BizError
(
ERRORENUM
.
账号或密码错误
);
}
...
...
@@ -36,12 +45,12 @@ export async function enterpriseLogin(phone:string, pwd:string) {
token
:
getToken
(
enterpriseInfo
.
uId
),
tokenMs
:
getMySqlMs
()
};
await
operationalData
(
OPERATIONALDATATYPE
.
修改
,
TABLENAME
.
企业用户表
,
updateUserInfo
,
{
uId
:
enterpriseInfo
.
uId
});
await
operationalData
(
OPERATIONALDATATYPE
.
修改
,
TABLENAME
.
企业用户表
,
updateUserInfo
,
{
uId
:
enterprise
User
Info
.
uId
});
let
userInfo
=
{
userId
:
enterpriseInfo
.
uId
,
userName
:
enterpriseInfo
.
userName
,
phone
:
enterpriseInfo
.
phone
,
userId
:
enterprise
User
Info
.
uId
,
userName
:
enterprise
User
Info
.
userName
,
phone
:
enterprise
User
Info
.
phone
,
token
:
updateUserInfo
.
token
,
};
...
...
src/biz/qualification.ts
View file @
2311befa
...
...
@@ -40,6 +40,11 @@ export async function enterpriseHonorInfo(eId) {
});
});
//倒序排列
dataList
.
sort
(
function
(
a
,
b
)
{
return
parseInt
(
moment
(
b
.
awardTime
).
format
(
"YYYY"
))
-
parseInt
(
moment
(
a
.
awardTime
).
format
(
"YYYY"
));
});
return
{
dataList
};
}
...
...
@@ -157,19 +162,18 @@ export async function enterpriseIPRInfo(eId:string) {
export
async
function
enterpriseIPRByType
(
eId
:
string
,
iprType
:
number
)
{
eccEnumValue
(
"企业知识产权"
,
"iprType"
,
enumConfig
.
IPRTYPE
,
iprType
);
let
filesList
=
[
"iprId"
,
"year"
,
"number"
,
"iprType"
,
"selectedValue"
,
"iprName"
,
"iprUrl"
];
let
selecParam
:
any
=
{
eId
};
// if (iprType == enumConfig.IPRTYPECLIENT.其他) {
// selecParam.iprType = {"%notIn%":[enumConfig.IPRTYPECLIENT.软件著作, enumConfig.IPRTYPECLIENT.海外专利, enumConfig.IPRTYPECLIENT.发明专利]};
// } else {
// selecParam.iprType = iprType;
// }
if
(
iprType
==
enumConfig
.
IPRTYPECLIENT
.
专利
)
{
selecParam
.
iprType
=
{
"%in%"
:
[
enumConfig
.
IPRTYPECLIENT
.
发明专利
,
enumConfig
.
IPRTYPECLIENT
.
海外专利
]
};
}
else
if
(
iprType
==
enumConfig
.
IPRTYPECLIENT
.
其他
)
{
selecParam
.
iprType
=
{
"%notIn%"
:
[
enumConfig
.
IPRTYPECLIENT
.
软件著作权
,
enumConfig
.
IPRTYPECLIENT
.
发明专利
,
enumConfig
.
IPRTYPECLIENT
.
海外专利
]
};
if
(
iprType
==
enumConfig
.
IPRTYPE
.
软件著作权
)
{
selecParam
.
iprType
=
enumConfig
.
IPRALLTYPE
.
软件著作权
}
else
if
(
iprType
==
enumConfig
.
IPRTYPE
.
专利
)
{
selecParam
.
iprType
=
{
"%in%"
:
[
enumConfig
.
IPRALLTYPE
.
海外专利
,
enumConfig
.
IPRALLTYPE
.
发明专利
]
};
}
else
{
selecParam
.
iprType
=
iprType
;
selecParam
.
iprType
=
{
"%in%"
:
[
enumConfig
.
IPRALLTYPE
.
植物新品种
,
enumConfig
.
IPRALLTYPE
.
集成电路布图
]
}
;
}
let
iprList
=
await
selectData
(
OPERATIONALDATATYPE
.
查询多个
,
TABLENAME
.
知识产权
,
selecParam
,
filesList
);
...
...
@@ -184,7 +188,7 @@ export async function enterpriseIPRByType(eId:string, iprType:number) {
year
,
yearStr
:
`
${
yearStr
}
年`
,
number
:
1
,
iprType
:
changeEnumValue
(
enumConfig
.
I
NTELLECTUALPROPERTYRIGHT
,
iprType
),
//新增知识产权类型
iprType
:
changeEnumValue
(
enumConfig
.
I
PRALLTYPE
,
iprType
),
//新增知识产权类型
selectedValue
:
iprType
,
//新增选中value
iprName
,
//新增名称
// iprUrl:JSON.stringify(iprUrl),//新增证材料证明
...
...
src/biz/teams.ts
View file @
2311befa
...
...
@@ -146,6 +146,11 @@ export async function enterpriseCanBaoInfo(eId) {
});
});
//年份倒序排列
dataList
.
sort
((
a
,
b
)
=>
{
return
b
.
annual
-
a
.
annual
;
});
return
{
dataList
};
}
...
...
src/config/enum/enum.ts
View file @
2311befa
...
...
@@ -166,41 +166,37 @@ export enum QUARTER {
}
/**
* 知识产权类型
* 知识产权
全
类型
*/
export
enum
I
NTELLECTUALPROPERTYRIGHT
{
export
enum
I
PRALLTYPE
{
软件著作权
=
1
,
发明专利
,
海外专利
,
植物新品种
,
集成电路布图
,
专利
=
100
,
发明专利
=
101
,
海外专利
=
102
,
其他
=
200
,
植物新品种
=
201
,
集成电路布图
=
202
}
/**
* 知识产权类型 前端用
*/
export
enum
IPRTYPECLIENT
{
其他
=
0
,
export
enum
IPRTYPE
{
软件著作权
=
1
,
发明专利
,
海外专利
,
专利
专利
=
100
,
其他
=
200
}
/**
* 知识产权类型其他 前端用
*/
export
enum
IPRTYPECLIENTQT
{
植物新品种
=
4
,
集成电路布图
植物新品种
=
201
,
集成电路布图
=
202
}
/**
* 知识产权类型专利 前端用
*/
export
enum
IPRTYPECLIENTZL
{
发明专利
=
2
,
海外专利
,
发明专利
=
101
,
海外专利
=
102
,
}
\ No newline at end of file
src/routers/public.ts
View file @
2311befa
...
...
@@ -16,8 +16,8 @@ const config = {
"/public/needcategory"
:
enumConfig
.
NEEDCATEGORY
,
"/public/fuhuaqilnvestmentstyle"
:
enumConfig
.
FUHUAQILNVESTMENTSTYLE
,
"/public/financingrounds"
:
enumConfig
.
FINANCINGROUNDS
,
"/public/intellectualpropertyright"
:
enumConfig
.
INTELLECTUALPROPERTYRIGHT
,
// 新增知识产权类型
"/public/iprtypeclient"
:
enumConfig
.
IPRTYPECLIENT
,
// 新增知识产权类型
//
"/public/intellectualpropertyright":enumConfig.INTELLECTUALPROPERTYRIGHT,// 新增知识产权类型
//
"/public/iprtypeclient":enumConfig.IPRTYPECLIENT,// 新增知识产权类型
"/public/iprtypeclientqt"
:
enumConfig
.
IPRTYPECLIENTQT
,
// 新增知识产权类型
"/public/iprtypeclientzl"
:
enumConfig
.
IPRTYPECLIENTZL
,
// 新增知识产权专利
...
...
src/routers/qualification.ts
View file @
2311befa
...
...
@@ -8,7 +8,7 @@ import { checkUser } from '../middleware/user';
export
function
setRouter
(
httpServer
)
{
/**知识产权 */
httpServer
.
post
(
'/xcx/qualification/ipr/list'
,
checkUser
,
asyncHandler
(
iprList
));
httpServer
.
post
(
'/xcx/qualification/ipr/list'
,
checkUser
,
asyncHandler
(
iprList
));
//弃用
httpServer
.
post
(
'/xcx/qualification/ipr/listbytype'
,
checkUser
,
asyncHandler
(
iprListByType
));
httpServer
.
post
(
'/xcx/qualification/ipr/update'
,
checkUser
,
asyncHandler
(
iprUpdate
));
httpServer
.
post
(
'/xcx/qualification/ipr/add'
,
checkUser
,
asyncHandler
(
iprAdd
));
...
...
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