Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wenHuaBu_adminServer
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
wenHuaBu_adminServer
Commits
5a461508
Commit
5a461508
authored
Mar 18, 2024
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
381bd538
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
28 deletions
+5
-28
register.ts
src/biz/register.ts
+2
-6
model.ts
src/data/models/model.ts
+2
-1
router.ts
src/routers/member/router.ts
+1
-21
No files found.
src/biz/register.ts
View file @
5a461508
...
@@ -89,7 +89,6 @@ export async function memberRegister2({form, userId}) {
...
@@ -89,7 +89,6 @@ export async function memberRegister2({form, userId}) {
eccEnumValue
(
EccFuncName
,
'证件类型'
,
DOCUMENTTYPE
,
form
.
documentType
);
eccEnumValue
(
EccFuncName
,
'证件类型'
,
DOCUMENTTYPE
,
form
.
documentType
);
eccEnumValue
(
EccFuncName
,
'民族'
,
NATION
,
form
.
nation
);
eccEnumValue
(
EccFuncName
,
'民族'
,
NATION
,
form
.
nation
);
eccEnumValue
(
EccFuncName
,
'专业类别'
,
PROFCATEGORY
,
form
.
profCategory
);
eccEnumValue
(
EccFuncName
,
'专业类别'
,
PROFCATEGORY
,
form
.
profCategory
);
eccEnumValue
(
EccFuncName
,
'会员等级职务'
,
MEMBERLEVEL
,
form
.
memberLevel
);
//更新注册流程
//更新注册流程
form
.
registerFlow
=
REGISTERFLOW
.
完成第二步
;
form
.
registerFlow
=
REGISTERFLOW
.
完成第二步
;
...
@@ -321,15 +320,12 @@ export async function unitMemberEcho3({userId}) {
...
@@ -321,15 +320,12 @@ export async function unitMemberEcho3({userId}) {
*/
*/
const
IndividualBasicConfig
=
[
"name"
,
"sex"
,
"documentType"
,
"documentId"
,
"birth"
,
"nation"
,
"sheng"
,
"shi"
,
"qu"
,
"addres"
,
"education"
,
"photoUrl"
];
const
IndividualBasicConfig
=
[
"name"
,
"sex"
,
"documentType"
,
"documentId"
,
"birth"
,
"nation"
,
"sheng"
,
"shi"
,
"qu"
,
"addres"
,
"education"
,
"photoUrl"
];
const
SpecialityConfig
=
[
"unitName"
,
"
memberLevel
"
,
"workTitle"
,
"profCategory"
,
"studyResume"
,
"workResume"
,
"profAchievement"
,
"otherEMP"
,
"otherPROF"
];
const
SpecialityConfig
=
[
"unitName"
,
"
duties
"
,
"workTitle"
,
"profCategory"
,
"studyResume"
,
"workResume"
,
"profAchievement"
,
"otherEMP"
,
"otherPROF"
];
export
async
function
individualMemberDetails
({
userId
})
{
export
async
function
individualMemberDetails
({
userId
})
{
let
oldInfo
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
});
let
oldInfo
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
});
if
(
!
oldInfo
||
!
oldInfo
.
userId
)
throw
new
BizError
(
ERRORENUM
.
目标数据不存在
);
if
(
!
oldInfo
||
!
oldInfo
.
userId
)
throw
new
BizError
(
ERRORENUM
.
目标数据不存在
);
let
topInfo
:
any
=
extractData
(
oldInfo
,
[
"session"
,
"memberLevel"
]);
topInfo
.
memberLevel
=
changeEnumValue
(
MEMBERLEVEL
,
topInfo
.
memberLevel
);
let
basicInfo
:
any
=
extractData
(
oldInfo
,
IndividualBasicConfig
);
let
basicInfo
:
any
=
extractData
(
oldInfo
,
IndividualBasicConfig
);
basicInfo
.
documentType
=
changeEnumValue
(
DOCUMENTTYPE
,
basicInfo
.
documentType
);
basicInfo
.
documentType
=
changeEnumValue
(
DOCUMENTTYPE
,
basicInfo
.
documentType
);
basicInfo
.
nation
=
changeEnumValue
(
NATION
,
basicInfo
.
nation
);
basicInfo
.
nation
=
changeEnumValue
(
NATION
,
basicInfo
.
nation
);
...
@@ -339,7 +335,7 @@ export async function individualMemberDetails({userId}) {
...
@@ -339,7 +335,7 @@ export async function individualMemberDetails({userId}) {
let
otherAttachment
:
any
=
extractData
(
oldInfo
,
[
"cardUrl"
,
"academicCERTUrl"
,
"professionalCERTUrl"
,
"auxiliaryMaterial"
]);
let
otherAttachment
:
any
=
extractData
(
oldInfo
,
[
"cardUrl"
,
"academicCERTUrl"
,
"professionalCERTUrl"
,
"auxiliaryMaterial"
]);
return
{
topInfo
,
basicInfo
,
specialityInfo
,
otherAttachment
};
return
{
basicInfo
,
specialityInfo
,
otherAttachment
};
}
}
...
...
src/data/models/model.ts
View file @
5a461508
...
@@ -352,6 +352,7 @@ const ModelArray = [
...
@@ -352,6 +352,7 @@ const ModelArray = [
memberState
:{
type
:
'Number'
,
default
:
MEMBERSTATE
.
正常
},
//会员状态 枚举MEMBERSTATE
memberState
:{
type
:
'Number'
,
default
:
MEMBERSTATE
.
正常
},
//会员状态 枚举MEMBERSTATE
certificateType
:
'Number'
,
//证书类型 枚举CERTIFICATETYPE
certificateType
:
'Number'
,
//证书类型 枚举CERTIFICATETYPE
individualMemberType
:{
type
:
'Number'
},
//个人会员类型 枚举INDIVIDUALMEMBERTYPE
individualMemberType
:{
type
:
'Number'
},
//个人会员类型 枚举INDIVIDUALMEMBERTYPE
memberLevel
:
'Number'
,
//会员等级、职务 枚举MEMBERLEVEL【会员管理用】
/**宽限期状态 */
/**宽限期状态 */
isGracePeriod
:{
type
:
'Number'
,
default
:
0
},
//是否宽限期 0:否, 1:是
isGracePeriod
:{
type
:
'Number'
,
default
:
0
},
//是否宽限期 0:否, 1:是
gracePeriodEndTime
:
'Number'
,
//宽限期到期时间 时间戳
gracePeriodEndTime
:
'Number'
,
//宽限期到期时间 时间戳
...
@@ -375,7 +376,7 @@ const ModelArray = [
...
@@ -375,7 +376,7 @@ const ModelArray = [
photoUrl
:
'String'
,
//证件照图片地址 蓝底证件照
photoUrl
:
'String'
,
//证件照图片地址 蓝底证件照
/**第二步流程表单(个人)【专业信息】 */
/**第二步流程表单(个人)【专业信息】 */
workUnit
:
'String'
,
//工作单位
workUnit
:
'String'
,
//工作单位
memberLevel
:
'Number'
,
//会员等级、职务 枚举MEMBERLEVEL
duties
:
'String'
,
//职务【注册用】
workTitle
:
'String'
,
//职称
workTitle
:
'String'
,
//职称
studyResume
:
'String'
,
//学习简历
studyResume
:
'String'
,
//学习简历
workResume
:
'String'
,
//工作简历
workResume
:
'String'
,
//工作简历
...
...
src/routers/member/router.ts
View file @
5a461508
...
@@ -47,7 +47,7 @@ export const Config = {
...
@@ -47,7 +47,7 @@ export const Config = {
education
:{
type
:
'Number'
,
desc
:
'学历'
,
notMustHave
:
false
},
education
:{
type
:
'Number'
,
desc
:
'学历'
,
notMustHave
:
false
},
photoUrl
:{
type
:
'String'
,
desc
:
'蓝底证件照'
,
notMustHave
:
false
},
photoUrl
:{
type
:
'String'
,
desc
:
'蓝底证件照'
,
notMustHave
:
false
},
workUnit
:{
type
:
'String'
,
desc
:
'工作单位'
,
notMustHave
:
false
},
workUnit
:{
type
:
'String'
,
desc
:
'工作单位'
,
notMustHave
:
false
},
memberLevel
:{
type
:
'Number'
,
desc
:
'会员等级
职务'
,
notMustHave
:
false
},
duties
:{
type
:
'String'
,
desc
:
'
职务'
,
notMustHave
:
false
},
workTitle
:{
type
:
'String'
,
desc
:
'职称'
,
notMustHave
:
false
},
workTitle
:{
type
:
'String'
,
desc
:
'职称'
,
notMustHave
:
false
},
profCategory
:{
type
:
'Number'
,
desc
:
'专业类别'
,
notMustHave
:
false
},
profCategory
:{
type
:
'Number'
,
desc
:
'专业类别'
,
notMustHave
:
false
},
studyResume
:{
type
:
'String'
,
desc
:
'学习简历'
,
notMustHave
:
false
},
studyResume
:{
type
:
'String'
,
desc
:
'学习简历'
,
notMustHave
:
false
},
...
@@ -380,26 +380,6 @@ export const Config = {
...
@@ -380,26 +380,6 @@ export const Config = {
],
],
bindBiz
:
examineBiz
.
approvalHistoryList
bindBiz
:
examineBiz
.
approvalHistoryList
},
},
{
apiName
:
"待支付列表"
,
subUrl
:
'/examine/tobepaidlist'
,
param
:[
{
key
:
"unitName"
,
type
:
"String"
,
desc
:
"单位名称"
,
isNull
:
true
},
{
key
:
"joinTime"
,
type
:
"Number"
,
desc
:
"入会时间"
,
isNull
:
true
},
{
key
:
"memberType"
,
type
:
"Number"
,
desc
:
"会员类别"
,
isNull
:
true
},
{
key
:
"paymentStatus"
,
type
:
"String"
,
desc
:
"支付状态"
,
isNull
:
true
},
{
key
:
"pageNumber"
,
type
:
"Number"
,
desc
:
"当前页"
}
],
bindBiz
:
examineBiz
.
toBePaidList
},
{
apiName
:
"通过支付信息"
,
subUrl
:
'/examine/passthroughpaid'
,
param
:[
{
key
:
"userId"
,
type
:
"String"
,
desc
:
"待支付列表返回的用户id"
},
],
bindBiz
:
examineBiz
.
passThroughPaid
},
],
],
"会费管理"
:[
"会费管理"
:[
{
{
...
...
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