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
c24b76f7
Commit
c24b76f7
authored
Mar 14, 2024
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
待审核
parent
8d7b9664
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
388 additions
and
99 deletions
+388
-99
examine.ts
src/biz/member/examine.ts
+149
-7
member.ts
src/biz/member/member.ts
+97
-55
enum.ts
src/config/enum.ts
+35
-0
errorEnum.ts
src/config/errorEnum.ts
+2
-1
model.ts
src/data/models/model.ts
+24
-12
main.ts
src/main.ts
+2
-2
router.ts
src/routers/member/router.ts
+79
-22
No files found.
src/biz/member/examine.ts
View file @
c24b76f7
...
@@ -2,17 +2,22 @@
...
@@ -2,17 +2,22 @@
* 审批逻辑
* 审批逻辑
*/
*/
import
{
MEMBERLEVEL
,
MEMBERSTATE
,
MEMBERTYPE
,
USERREGISTERSTATE
}
from
"../../config/enum"
;
import
{
MEMBERLEVEL
,
MEMBERSTATE
,
MEMBERTYPE
,
OPERATIONREHAVIOR
,
PAYMENTSTATUS
,
REGISTERFLOW
,
USERREGISTERSTATE
}
from
"../../config/enum"
;
import
{
ERRORENUM
}
from
"../../config/errorEnum"
;
import
{
addManyData
}
from
"../../data/add"
;
import
{
TABLEENUM
}
from
"../../data/models/model"
;
import
{
TABLEENUM
}
from
"../../data/models/model"
;
import
{
findCount
,
findToPage
}
from
"../../data/select"
;
import
{
find
,
findCount
,
findOnce
,
findToPage
}
from
"../../data/select"
;
import
{
updateOneData
}
from
"../../data/update"
;
import
{
generateSystemId
,
successResult
}
from
"../../tools/system"
;
import
{
BizError
}
from
"../../util/bizError"
;
import
{
extractData
}
from
"../../util/piecemeal"
;
import
{
extractData
}
from
"../../util/piecemeal"
;
import
{
changeEnumValue
}
from
"../../util/verificationEnum"
;
import
{
changeEnumValue
}
from
"../../util/verificationEnum"
;
/**
/**
* 待审核
* 待审核
列表
* @param param0
* @param param0
*/
*/
export
async
function
audit
List
({
unitName
,
joinTime
,
memberType
,
sheng
,
shi
,
qu
,
pageNumber
})
{
export
async
function
pendingReview
List
({
unitName
,
joinTime
,
memberType
,
sheng
,
shi
,
qu
,
pageNumber
})
{
let
selectParam
:
any
=
{};
let
selectParam
:
any
=
{};
if
(
unitName
)
selectParam
.
unitName
=
unitName
;
if
(
unitName
)
selectParam
.
unitName
=
unitName
;
if
(
joinTime
)
selectParam
.
joinTime
=
joinTime
;
if
(
joinTime
)
selectParam
.
joinTime
=
joinTime
;
...
@@ -29,9 +34,9 @@ export async function auditList({unitName, joinTime, memberType, sheng, shi, qu,
...
@@ -29,9 +34,9 @@ export async function auditList({unitName, joinTime, memberType, sheng, shi, qu,
let
dataList
=
[];
let
dataList
=
[];
dbList
.
forEach
(
info
=>
{
dbList
.
forEach
(
info
=>
{
let
item
:
any
=
extractData
(
info
,
selectConf
);
let
item
:
any
=
extractData
(
info
,
selectConf
);
changeEnumValue
(
USERREGISTERSTATE
,
item
.
userRegisterState
)
;
if
(
!
item
.
userRegisterState
)
item
.
userRegisterState
=
"待审核"
;
if
(
!
item
.
memberLevel
)
item
.
memberLevel
=
"未选择"
;
else
changeEnumValue
(
USERREGISTERSTATE
,
item
.
userRegisterState
)
;
else
changeEnumValue
(
MEMBERLEVEL
,
item
.
memberLevel
);
changeEnumValue
(
MEMBERLEVEL
,
item
.
memberLevel
);
dataList
.
push
(
item
);
dataList
.
push
(
item
);
});
});
...
@@ -39,14 +44,119 @@ export async function auditList({unitName, joinTime, memberType, sheng, shi, qu,
...
@@ -39,14 +44,119 @@ export async function auditList({unitName, joinTime, memberType, sheng, shi, qu,
}
}
/**
* 通过审核
* @param param0
* @returns
*/
export
async
function
adopt
({
userId
})
{
let
oldInfo
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
});
if
(
!
oldInfo
||
!
oldInfo
.
userId
)
throw
new
BizError
(
ERRORENUM
.
目标数据不存在
);
await
updateOneData
(
TABLEENUM
.
用户表
,
{
userId
},
{
userRegisterState
:
USERREGISTERSTATE
.
通过
});
let
now
=
new
Date
().
valueOf
();
let
addApprovalHistory
=
{
id
:
generateSystemId
(
TABLEENUM
.
审批历史表
,
userId
),
userId
,
operationTime
:
now
,
operationBehavior
:
OPERATIONREHAVIOR
.
通过
,
remarks
:
""
};
await
addManyData
(
TABLEENUM
.
审批历史表
,
addApprovalHistory
);
return
successResult
();
}
/**
* 驳回
* @param param0
* @returns
*/
export
async
function
reject
({
userId
,
remarks
})
{
let
oldInfo
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
});
if
(
!
oldInfo
||
!
oldInfo
.
userId
)
throw
new
BizError
(
ERRORENUM
.
目标数据不存在
);
await
updateOneData
(
TABLEENUM
.
用户表
,
{
userId
},
{
userRegisterState
:
USERREGISTERSTATE
.
驳回修改
});
let
selectParam
=
{};
if
(
oldInfo
.
memberType
==
MEMBERTYPE
.
个人会员
)
{
selectParam
=
{
registerFlow
:
REGISTERFLOW
.
个人会员注册
2
}
}
else
{
selectParam
=
{
registerFlow
:
REGISTERFLOW
.
单位会员注册
2
}
}
await
updateOneData
(
TABLEENUM
.
用户表
,
{
userId
},
selectParam
);
let
now
=
new
Date
().
valueOf
();
let
addApprovalHistory
=
{
id
:
generateSystemId
(
TABLEENUM
.
审批历史表
,
userId
),
userId
,
operationTime
:
now
,
operationBehavior
:
OPERATIONREHAVIOR
.
驳回修改
,
remarks
};
await
addManyData
(
TABLEENUM
.
审批历史表
,
addApprovalHistory
);
return
successResult
();
}
/**
* 审核历史
*/
export
async
function
approvalHistoryList
({
userId
})
{
let
oldInfo
=
await
find
(
TABLEENUM
.
审批历史表
,
{
userId
});
if
(
!
oldInfo
||
!
oldInfo
.
userId
)
throw
new
BizError
(
ERRORENUM
.
目标数据不存在
);
let
dataList
:
any
=
extractData
(
oldInfo
,
[
"operationTime"
,
"operationBehavior"
,
"remarks"
]);
changeEnumValue
(
OPERATIONREHAVIOR
,
dataList
.
operationBehavior
);
return
dataList
;
}
/**
* 待支付列表
*/
export
async
function
toBePaidList
({
unitName
,
joinTime
,
memberType
,
paymentStatus
,
pageNumber
})
{
let
selectParam
:
any
=
{};
if
(
unitName
)
selectParam
.
unitName
=
unitName
;
if
(
joinTime
)
selectParam
.
joinTime
=
joinTime
;
if
(
memberType
)
selectParam
.
memberType
=
memberType
;
if
(
paymentStatus
)
selectParam
.
paymentStatus
=
paymentStatus
;
let
selectConf
=
[
"userId"
,
"状态"
,
"unitName"
,
"loginId"
,
"phone"
,
"joinTime"
,
"memberType"
,
"lifespanStartTime"
,
"lifespanEndTime"
,
"paymentStatus"
];
let
dbList
=
await
findToPage
(
TABLEENUM
.
用户表
,
selectParam
,
selectConf
,
pageNumber
);
let
dataCount
=
await
findCount
(
TABLEENUM
.
用户表
,
selectParam
);
let
dataList
=
[];
dbList
.
forEach
(
info
=>
{
let
item
:
any
=
extractData
(
info
,
selectConf
);
changeEnumValue
(
MEMBERTYPE
,
item
.
memberType
);
changeEnumValue
(
PAYMENTSTATUS
,
item
.
paymentStatus
);
dataList
.
push
(
item
);
});
return
{
dataList
,
dataCount
};;
}
/**
* 待支付通过
* @param param0
* @returns
*/
export
async
function
passThroughPaid
({
userId
})
{
let
oldInfo
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
});
if
(
!
oldInfo
||
!
oldInfo
.
userId
)
throw
new
BizError
(
ERRORENUM
.
目标数据不存在
);
await
updateOneData
(
TABLEENUM
.
用户表
,
{
userId
},
{
paymentStatus
:
PAYMENTSTATUS
.
已支付
});
return
successResult
();
}
...
@@ -62,6 +172,38 @@ export async function auditList({unitName, joinTime, memberType, sheng, shi, qu,
...
@@ -62,6 +172,38 @@ export async function auditList({unitName, joinTime, memberType, sheng, shi, qu,
/**
* 获取届次
* @param year 入会年份
* @param month 入会月份
* @returns
*/
export
async
function
getEdition
(
year
,
month
)
{
//起始年份和月份
const
startYear
=
2018
;
const
startMonth
=
1
;
let
currentYear
=
new
Date
().
getFullYear
();
if
(
year
>
currentYear
)
throw
new
BizError
(
ERRORENUM
.
无法获取未来届次
);
//计算从起始时间给定时间的总月份数
let
totalMonth
=
(
year
-
startYear
)
*
12
+
month
;
//每届是6个月
let
sessions
=
Math
.
ceil
(
totalMonth
/
6
);
//每10届一次
let
times
=
Math
.
ceil
(
sessions
/
10
);
let
sessionNumber
=
sessions
-
(
times
-
1
)
*
10
//届次是从第一次第一届开始,所以需要减一
return
{
frequency
:
"第"
+
times
+
"次"
,
session
:
"第"
+
sessionNumber
+
"届"
};
}
...
...
src/biz/member/member.ts
View file @
c24b76f7
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* 会员逻辑
* 会员逻辑
*/
*/
import
{
MEMBERSTATE
,
MEMBERLEVEL
,
DOCUMENTTYPE
,
NATION
,
PROFCATEGORY
,
CODETYPE
,
UNITINFOTYPE
,
MEMBERTYPE
,
REGISTERFLOW
,
SEX
,
USERREGISTERSTATE
}
from
"../../config/enum"
;
import
{
MEMBERSTATE
,
MEMBERLEVEL
,
DOCUMENTTYPE
,
NATION
,
PROFCATEGORY
,
CODETYPE
,
UNITINFOTYPE
,
MEMBERTYPE
,
REGISTERFLOW
,
SEX
,
USERREGISTERSTATE
,
OPERATIONREHAVIOR
}
from
"../../config/enum"
;
import
{
ERRORENUM
}
from
"../../config/errorEnum"
;
import
{
ERRORENUM
}
from
"../../config/errorEnum"
;
import
{
TABLEENUM
}
from
"../../data/models/model"
;
import
{
TABLEENUM
}
from
"../../data/models/model"
;
import
{
find
,
findCount
,
findOnce
,
findToPage
}
from
"../../data/select"
;
import
{
find
,
findCount
,
findOnce
,
findToPage
}
from
"../../data/select"
;
...
@@ -57,12 +57,11 @@ export async function unitMemberList({unitName, joinTime, unitMemberType, workDu
...
@@ -57,12 +57,11 @@ export async function unitMemberList({unitName, joinTime, unitMemberType, workDu
* @returns {顶部数据, 基本信息, 单位信息, 单位所获得科研成果}
* @returns {顶部数据, 基本信息, 单位信息, 单位所获得科研成果}
*/
*/
const
UnitBasicConfig
=
[
"userId"
,
"unitName"
,
"addres"
,
"officialWebsite"
,
"uscc"
,
"legalPerson"
,
"legalPersonPhone"
,
"gongZhongHao"
,
const
UnitBasicConfig
=
[
"userId"
,
"unitName"
,
"addres"
,
"uscc"
,
"legalPerson"
,
"legalPersonPhone"
,
"contactPerson"
,
"contactPersonDuties"
,
"sheng"
,
"shi"
,
"qu"
,
"unitPhone"
,
"contactPerson"
,
"contactPersonDuties"
,
"sheng"
,
"shi"
,
"qu"
,
"uusinessLicenseUrl"
,
"personInChargeDesc"
];
"uusinessLicenseUrl"
,
"education"
];
const
UnitConfig
=
[
"unitInfoType"
,
"yuanXiaoBanXueLeiXing"
,
"yuanXiaoZhuGuanBuMen"
,
"yuanXiaoFuZeRen"
,
"yuanXiaoFuZeRenZhiWu"
,
const
UnitConfig
=
[
"unitInfoType"
,
"yuanXiaoBanXueLeiXing"
,
"yuanXiaoZhuGuanBuMen"
,
"yuanXiaoFuZeRen"
,
"yuanXiaoFuZeRenZhiWu"
,
"yuanXiaoFuZeRenDianHua"
,
"yuanXiaoFuZeRenDianHua"
,
"yuanXiaoBanGongFuZeRen"
,
"yuanXiaoBanGongFuZeRenZhiWu"
,
"yuanXiaoBanGongFuZeRenDianHua"
,
"yuanXiaoKeYanFuZeRen"
,
"yuanXiaoBanGongFuZeRenZhiWu"
,
"yuanXiaoBanGongFuZeRenDianHua"
,
"yuanXiaoXueShengZongRenShu"
,
"yuanXiaoJiaoZhiGongZongRenShu"
,
"yuanXiaoJianZhuMianJi"
,
"yuanXiaoKeYanFuZeRenZhiWu"
,
"yuanXiaoKeYanFuZeRenDianHua"
,
"yuanXiaoXueShengZongRenShu"
,
"yuanXiaoJiaoZhiGongZongRenShu"
,
"yuanXiaoJianZhuMianJi"
,
"yuanXiaoKeYanFuZeRen"
,
"yuanXiaoKeYanFuZeRenDianHua"
,
"jiaoXueFuZeRenXinMing"
,
"jiaoXueFuZeRenDianHua"
,
"ZhuYaoFuZeRenYouXiang"
];
"yuanXiaoGaoJiZhiCheng"
,
"yuanXiaoKaiSheZhuanYe"
];
export
async
function
unitMemberDetails
({
userId
})
{
export
async
function
unitMemberDetails
({
userId
})
{
let
oldInfo
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
});
let
oldInfo
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
});
...
@@ -178,7 +177,7 @@ export async function individualMemberList({name, documentId, phone, memberLevel
...
@@ -178,7 +177,7 @@ export async function individualMemberList({name, documentId, phone, memberLevel
selectParam
.
userRegisterState
=
USERREGISTERSTATE
.
通过
;
selectParam
.
userRegisterState
=
USERREGISTERSTATE
.
通过
;
let
selectConf
=
[
"userId"
,
"memberState"
,
"unitName"
,
"name"
,
"sex"
,
"nation"
,
"loginId"
,
"phone"
,
"joinTime"
,
"memberLevel"
,
"sheng"
,
"shi"
,
"qu"
];
let
selectConf
=
[
"userId"
,
"memberState"
,
"unitName"
,
"name"
,
"sex"
,
"nation"
,
"loginId"
,
"phone"
,
"joinTime"
,
"memberLevel"
,
"sheng"
,
"shi"
,
"qu"
];
let
dbList
=
await
findToPage
(
TABLEENUM
.
用户表
,
selectParam
,
selectConf
,
pageNumber
,
10
);
let
dbList
=
await
findToPage
(
TABLEENUM
.
用户表
,
selectParam
,
selectConf
,
pageNumber
);
let
dataCount
=
await
findCount
(
TABLEENUM
.
用户表
,
selectParam
);
let
dataCount
=
await
findCount
(
TABLEENUM
.
用户表
,
selectParam
);
let
dataList
=
[];
let
dataList
=
[];
...
@@ -276,10 +275,6 @@ export async function individualMemberDetails({userId}) {
...
@@ -276,10 +275,6 @@ export async function individualMemberDetails({userId}) {
await
addOneData
(
TABLEENUM
.
用户表
,
form
);
await
addOneData
(
TABLEENUM
.
用户表
,
form
);
/**注册成功,返回userId和会员注册流程字段 */
// let oldInfo = await findOnce(TABLEENUM.用户表, {userId:form.userId});
// let dataList = extractData(oldInfo, ["userId", "registerFlow"]);
return
successResult
();
return
successResult
();
}
}
...
@@ -304,8 +299,21 @@ export async function memberRegister2({form, userId}) {
...
@@ -304,8 +299,21 @@ export async function memberRegister2({form, userId}) {
form
.
registerFlow
=
REGISTERFLOW
.
个人会员注册
2
;
//todo 审核成功后修改
form
.
registerFlow
=
REGISTERFLOW
.
个人会员注册
2
;
//todo 审核成功后修改
await
updateOneData
(
TABLEENUM
.
用户表
,
{
userId
},
form
);
await
updateOneData
(
TABLEENUM
.
用户表
,
{
userId
},
form
);
// let unitInfo = await findOnce(TABLEENUM.用户表, {userId});
/**用户提交注册申请,等待审核 */
// let dataList = extractData(unitInfo, ["userId", "registerFlow"]);
let
approvalHistoryInfo
=
await
find
(
TABLEENUM
.
审批历史表
,
{
userId
});
let
operationBehavior
;
if
(
approvalHistoryInfo
.
length
>
1
)
operationBehavior
=
OPERATIONREHAVIOR
.
重新提交
;
else
operationBehavior
=
OPERATIONREHAVIOR
.
用户提交
;
let
now
=
new
Date
().
valueOf
();
let
addApprovalHistory
=
{
id
:
generateSystemId
(
TABLEENUM
.
审批历史表
,
userId
),
userId
,
operationTime
:
now
,
operationBehavior
:
operationBehavior
,
remarks
:
""
};
await
addManyData
(
TABLEENUM
.
审批历史表
,
addApprovalHistory
);
return
successResult
();
return
successResult
();
}
}
...
@@ -350,10 +358,6 @@ export async function memberRegister2({form, userId}) {
...
@@ -350,10 +358,6 @@ export async function memberRegister2({form, userId}) {
await
addOneData
(
TABLEENUM
.
用户表
,
form
);
await
addOneData
(
TABLEENUM
.
用户表
,
form
);
/**注册成功,返回userId和会员注册流程字段 */
// let oldInfo = await findOnce(TABLEENUM.用户表, {userId:form.userId});
// let dataList = extractData(oldInfo, ["userId", "registerFlow"]);
return
successResult
();
return
successResult
();
}
}
...
@@ -368,10 +372,10 @@ export async function unitMemberRegister2({form, keyanForm, userId}) {
...
@@ -368,10 +372,10 @@ export async function unitMemberRegister2({form, keyanForm, 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
.
目标数据不存在
);
// form.registerFlow = REGISTERFLOW.单位会员注册2; //todo 审核成功后修改
form
.
registerFlow
=
REGISTERFLOW
.
单位会员注册
2
;
await
updateOneData
(
TABLEENUM
.
用户表
,
{
userId
},
form
);
await
updateOneData
(
TABLEENUM
.
用户表
,
{
userId
},
form
);
// let unitInfo = await findOnce(TABLEENUM.用户表, {userId});
// let unitInfo = await findOnce(TABLEENUM.用户表, {userId});
// let dataList = extractData(unitInfo, ["userId", "registerFlow"]);
// let dataList = extractData(unitInfo, ["userId", "registerFlow"]);
let
addList
=
[];
let
addList
=
[];
...
@@ -386,19 +390,48 @@ export async function unitMemberRegister2({form, keyanForm, userId}) {
...
@@ -386,19 +390,48 @@ export async function unitMemberRegister2({form, keyanForm, userId}) {
}
}
/**
* 单位入会流程3
* @param param0
*/
export
async
function
unitMemberRegister3
({
applicationForm
,
userId
})
{
let
oldInfo
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
});
if
(
!
oldInfo
||
!
oldInfo
.
userId
)
throw
new
BizError
(
ERRORENUM
.
目标数据不存在
);
await
updateOneData
(
TABLEENUM
.
用户表
,
{
userId
},
{
applicationForm
,
registerFlow
:
REGISTERFLOW
.
单位会员注册
3
});
/**用户提交注册申请,等待审核 */
let
approvalHistoryInfo
=
await
find
(
TABLEENUM
.
审批历史表
,
{
userId
});
let
operationBehavior
;
if
(
approvalHistoryInfo
.
length
>
1
)
operationBehavior
=
OPERATIONREHAVIOR
.
重新提交
;
else
operationBehavior
=
OPERATIONREHAVIOR
.
用户提交
;
let
now
=
new
Date
().
valueOf
();
let
addApprovalHistory
=
{
id
:
generateSystemId
(
TABLEENUM
.
审批历史表
,
userId
),
userId
,
operationTime
:
now
,
operationBehavior
:
operationBehavior
,
remarks
:
""
};
await
addManyData
(
TABLEENUM
.
审批历史表
,
addApprovalHistory
);
return
successResult
();
}
/**
* 下载会员注册表 todo
*/
export
async
function
downloadApplication
()
{
}
/**
/**
* 获取当前会员注册流程
* 获取当前会员注册流程
*/
*/
export
async
function
registerFlowType
({
userId
})
{
export
async
function
registerFlowType
({
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
.
目标数据不存在
);
...
@@ -418,43 +451,52 @@ export async function registerFlowType({userId}) {
...
@@ -418,43 +451,52 @@ export async function registerFlowType({userId}) {
/**
/**
* 模拟审核通过,修改审核状态
* 模拟审核通过,修改审核状态
*/
*/
export
async
function
examine
({
userId
})
{
//
export async function examine({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
memberList
:
any
=
extractData
(
oldInfo
,
[
"userId"
,
"registerFlow"
,
"memberType"
]);
//
let memberList:any = extractData(oldInfo, ["userId", "registerFlow", "memberType"]);
let
selectParam
=
{
registerFlow
:
memberList
.
registerFlow
,
userRegisterState
:
USERREGISTERSTATE
.
待审核
};
//
let selectParam = {registerFlow:memberList.registerFlow, userRegisterState:USERREGISTERSTATE.待审核};
if
(
memberList
.
memberType
==
MEMBERTYPE
.
个人会员
)
{
//个人会员
//
if (memberList.memberType == MEMBERTYPE.个人会员) { //个人会员
switch
(
memberList
.
registerFlow
)
{
//
switch (memberList.registerFlow) {
case
REGISTERFLOW
.
个人会员注册
1
:
//
case REGISTERFLOW.个人会员注册1:
selectParam
.
registerFlow
=
REGISTERFLOW
.
个人会员注册
2
;
//
selectParam.registerFlow = REGISTERFLOW.个人会员注册2;
break
;
//
break;
case
REGISTERFLOW
.
个人会员注册
2
:
//
case REGISTERFLOW.个人会员注册2:
selectParam
.
userRegisterState
=
USERREGISTERSTATE
.
通过
;
//
selectParam.userRegisterState = USERREGISTERSTATE.通过;
break
;
//
break;
}
//
}
}
else
{
//单位会员
//
} else { //单位会员
switch
(
memberList
.
registerFlow
)
{
//
switch (memberList.registerFlow) {
case
REGISTERFLOW
.
单位会员注册
1
:
//
case REGISTERFLOW.单位会员注册1:
selectParam
.
registerFlow
=
REGISTERFLOW
.
单位会员注册
2
;
//
selectParam.registerFlow = REGISTERFLOW.单位会员注册2;
break
;
//
break;
case
REGISTERFLOW
.
单位会员注册
2
:
//
case REGISTERFLOW.单位会员注册2:
selectParam
.
registerFlow
=
REGISTERFLOW
.
单位会员注册
3
;
//
selectParam.registerFlow = REGISTERFLOW.单位会员注册3;
break
;
//
break;
case
REGISTERFLOW
.
单位会员注册
3
:
//
case REGISTERFLOW.单位会员注册3:
selectParam
.
userRegisterState
=
USERREGISTERSTATE
.
通过
;
//
selectParam.userRegisterState = USERREGISTERSTATE.通过;
break
;
//
break;
}
//
}
}
//
}
await
updateOneData
(
TABLEENUM
.
用户表
,
{
userId
},
selectParam
);
//
await updateOneData(TABLEENUM.用户表, {userId}, selectParam);
return
successResult
();
//
return successResult();
}
//
}
src/config/enum.ts
View file @
c24b76f7
...
@@ -434,3 +434,38 @@ export enum PAYMENTTYPE {
...
@@ -434,3 +434,38 @@ export enum PAYMENTTYPE {
银行转账
,
银行转账
,
线下支付
线下支付
}
}
/**
* 院校办学类型 yuanXiaoBanXueLeiXing
*/
export
enum
BANXUELEIXING
{
中职
=
1
,
高职
,
本科
,
社会培训
,
非教学
}
/**
* 审批历史操作行为
*/
export
enum
OPERATIONREHAVIOR
{
待审核
=
1
,
重新提交
,
驳回修改
,
通过
,
用户提交
}
/**
* 支付状态
*/
export
enum
PAYMENTSTATUS
{
已支付
=
1
,
未支付
,
银行转账
,
}
src/config/errorEnum.ts
View file @
c24b76f7
...
@@ -24,7 +24,8 @@ export enum ERRORENUM {
...
@@ -24,7 +24,8 @@ export enum ERRORENUM {
发送验证码频率过快
,
发送验证码频率过快
,
验证码错误
,
验证码错误
,
验证码失效
,
验证码失效
,
验证码过期
验证码过期
,
无法获取未来届次
}
}
export
enum
ERRORCODEENUM
{
export
enum
ERRORCODEENUM
{
...
...
src/data/models/model.ts
View file @
c24b76f7
...
@@ -85,6 +85,7 @@ enum TABLEENUM {
...
@@ -85,6 +85,7 @@ enum TABLEENUM {
订单表
=
'order'
,
订单表
=
'order'
,
单位所获得科研成果表
=
"scientificResearch"
,
单位所获得科研成果表
=
"scientificResearch"
,
验证码表
=
"code"
,
验证码表
=
"code"
,
审批历史表
=
"approvalHistory"
,
}
}
const
ModelArray
=
[
const
ModelArray
=
[
...
@@ -367,37 +368,36 @@ const ModelArray = [
...
@@ -367,37 +368,36 @@ const ModelArray = [
isGracePeriod
:{
type
:
'Number'
,
default
:
0
},
//是否宽限期 0:否, 1:是
isGracePeriod
:{
type
:
'Number'
,
default
:
0
},
//是否宽限期 0:否, 1:是
gracePeriodEndTime
:
'Number'
,
//宽限期到期时间 时间戳
gracePeriodEndTime
:
'Number'
,
//宽限期到期时间 时间戳
certificateType
:
'Number'
,
//证书类型 枚举
certificateType
:
'Number'
,
//证书类型 枚举
education
:
'Number'
,
//学历
applicationForm
:
'String'
,
//入会申请表
unitName
:
'String'
,
//单位名称
unitName
:
'String'
,
//单位名称
officialWebsite
:
'String'
,
//官网 单位网址
uscc
:
'String'
,
//统一信用代码
uscc
:
'String'
,
//统一信用代码
legalPerson
:
'String'
,
//法人
legalPerson
:
'String'
,
//法人
legalPersonMail
:
'String'
,
//法人邮箱
legalPersonPhone
:
'String'
,
//法人代表联系电话
legalPersonPhone
:
'String'
,
//法人代表联系电话
gongZhongHao
:
'String'
,
//单位公众号
unitPhone
:
'Number'
,
//单位电话
contactPerson
:
'String'
,
//日常联系人
contactPerson
:
'String'
,
//日常联系人
contactPersonDuties
:
'String'
,
//日常联系人职务
contactPersonDuties
:
'String'
,
//日常联系人职务
contactPersonPhone
:
'String'
,
//日常联系人手机
unitMail
:
'String'
,
//单位电子邮箱
uusinessLicenseUrl
:
'String'
,
//营业执照 图片地址
uusinessLicenseUrl
:
'String'
,
//营业执照 图片地址
personInChargeDesc
:
'String'
,
//单位主要负责人或负责人集体描述
/**单位会员信息 */
/**单位会员信息 */
unitInfoType
:
'Number'
,
//单位信息类型 枚举
unitInfoType
:
'Number'
,
//单位信息类型 枚举
yuanXiaoBanXueLeiXing
:
'
String'
,
//院校办学类型
yuanXiaoBanXueLeiXing
:
'
Number'
,
//院校办学类型 枚举
yuanXiaoZhuGuanBuMen
:
'String'
,
//院校主管部门
yuanXiaoZhuGuanBuMen
:
'String'
,
//院校主管部门
yuanXiaoFuZeRen
:
'String'
,
//院校主要负责人
yuanXiaoFuZeRen
:
'String'
,
//院校主要负责人
yuanXiaoFuZeRenZhiWu
:
'String'
,
//院校主要负责人职务
yuanXiaoFuZeRenZhiWu
:
'String'
,
//院校主要负责人职务
yuanXiaoFuZeRenDianHua
:
'String'
,
//院校主要负责人电话
yuanXiaoFuZeRenDianHua
:
'String'
,
//院校主要负责人电话
yuanXiaoBanGongFuZeRen
:
'String'
,
//院校办公负责人
yuanXiaoBanGongFuZeRen
:
'String'
,
//院校办公负责人
yuanXiaoBanGongFuZeRenZhiWu
:
'String'
,
//院校办公负责人职务
yuanXiaoBanGongFuZeRenDianHua
:
'String'
,
//院校办公负责人电话
yuanXiaoBanGongFuZeRenDianHua
:
'String'
,
//院校办公负责人电话
yuanXiaoKeYanFuZeRen
:
'String'
,
//院校办公负责人
yuanXiaoKeYanFuZeRen
:
'String'
,
//院校科研负责人
yuanXiaoKeYanFuZeRenZhiWu
:
'String'
,
//院校办公负责人职务
yuanXiaoKeYanFuZeRenDianHua
:
'String'
,
//院校科研负责人电话
yuanXiaoKeYanFuZeRenDianHua
:
'String'
,
//院校办公负责人电话
yuanXiaoXueShengZongRenShu
:
'String'
,
//学生总人数
yuanXiaoXueShengZongRenShu
:
'String'
,
//学生总人数
yuanXiaoJiaoZhiGongZongRenShu
:
'String'
,
//教职工总人数
yuanXiaoJiaoZhiGongZongRenShu
:
'String'
,
//教职工总人数
yuanXiaoJianZhuMianJi
:
'String'
,
//院校建筑面积
jiaoXueFuZeRenXinMing
:
'String'
,
//教学负责人姓名
yuanXiaoGaoJiZhiCheng
:
'String'
,
// 院校职称
jiaoXueFuZeRenDianHua
:
'String'
,
//教学负责人电话
yuanXiaoKaiSheZhuanYe
:
'String'
,
//院校开设专业数
ZhuYaoFuZeRenYouXiang
:
'String'
,
//主要负责人邮箱
/**个人会员信息 */
/**个人会员信息 */
cardUrl
:{
type
:
'[String]'
,
default
:[]},
//身份证正反面图片地址
cardUrl
:{
type
:
'[String]'
,
default
:[]},
//身份证正反面图片地址
...
@@ -411,6 +411,7 @@ const ModelArray = [
...
@@ -411,6 +411,7 @@ const ModelArray = [
otherEMP
:
'String'
,
//其他任职情况
otherEMP
:
'String'
,
//其他任职情况
otherPROF
:
'String'
,
//其他专业情况
otherPROF
:
'String'
,
//其他专业情况
paymentStatus
:
'Number'
,
//支付状态
}
}
},
},
{
{
...
@@ -459,6 +460,17 @@ const ModelArray = [
...
@@ -459,6 +460,17 @@ const ModelArray = [
isUse
:{
type
:
'Boolean'
,
default
:
false
},
//是否使用 默认false
isUse
:{
type
:
'Boolean'
,
default
:
false
},
//是否使用 默认false
}
}
},
},
{
tableName
:
TABLEENUM
.
审批历史表
,
source
:
TABLESOURCEENUM
.
mongo
,
schema
:{
id
:{
type
:
'String'
,
index
:
true
},
userId
:
'String'
,
//用户id 外键
operationTime
:{
type
:
'Number'
,
index
:
true
},
//操作时间
operationBehavior
:{
type
:
'Number'
,
index
:
true
},
//操作行为 枚举
remarks
:{
type
:
'String'
,
index
:
true
},
//备注
}
}
];
];
...
...
src/main.ts
View file @
c24b76f7
import
{
getEdition
}
from
"./biz/member/examine"
;
import
{
initConfig
,
systemConfig
}
from
"./config/serverConfig"
;
import
{
initConfig
,
systemConfig
}
from
"./config/serverConfig"
;
import
{
initDataBaseModel
}
from
"./data/db/db"
;
import
{
initDataBaseModel
}
from
"./data/db/db"
;
import
{
httpServer
}
from
"./net/http_server"
;
import
{
httpServer
}
from
"./net/http_server"
;
...
@@ -14,4 +15,4 @@ async function lanuch() {
...
@@ -14,4 +15,4 @@ async function lanuch() {
console
.
log
(
'This indicates that the server is started successfully.'
);
console
.
log
(
'This indicates that the server is started successfully.'
);
}
}
lanuch
();
lanuch
();
\ No newline at end of file
src/routers/member/router.ts
View file @
c24b76f7
import
*
as
userBiz
from
"../../biz/member/user"
;
import
*
as
userBiz
from
"../../biz/member/user"
;
import
*
as
memberBiz
from
"../../biz/member/member"
;
import
*
as
memberBiz
from
"../../biz/member/member"
;
import
*
as
examineBiz
from
"../../biz/member/examine"
;
export
const
FirstName
=
'会员管理路由'
;
export
const
FirstName
=
'会员管理路由'
;
export
const
FirstRouter
=
'/manage/member'
;
export
const
FirstRouter
=
'/manage/member'
;
...
@@ -58,16 +59,12 @@ export const Config = {
...
@@ -58,16 +59,12 @@ export const Config = {
phone
:{
type
:
'String'
,
desc
:
"电话"
},
phone
:{
type
:
'String'
,
desc
:
"电话"
},
mail
:{
type
:
'String'
,
desc
:
"邮件"
},
mail
:{
type
:
'String'
,
desc
:
"邮件"
},
unitName
:{
type
:
'String'
,
desc
:
"单位名称"
},
unitName
:{
type
:
'String'
,
desc
:
"单位名称"
},
officialWebsite
:{
type
:
'String'
,
desc
:
"官网"
},
uscc
:{
type
:
'String'
,
desc
:
"统一信用代码"
},
uscc
:{
type
:
'String'
,
desc
:
"统一信用代码"
},
legalPerson
:{
type
:
'String'
,
desc
:
"法人"
},
legalPerson
:{
type
:
'String'
,
desc
:
"法人"
},
legalPersonPhone
:{
type
:
'String'
,
desc
:
"法人代表联系电话"
},
legalPersonPhone
:{
type
:
'String'
,
desc
:
"法人代表联系电话"
},
gongZhongHao
:{
type
:
'String'
,
desc
:
"单位公众号"
},
unitPhone
:{
type
:
'Number'
,
desc
:
"单位电话"
},
contactPerson
:{
type
:
'String'
,
desc
:
"日常联系人"
},
contactPerson
:{
type
:
'String'
,
desc
:
"日常联系人"
},
contactPersonDuties
:{
type
:
'String'
,
desc
:
"日常联系人职务"
},
contactPersonDuties
:{
type
:
'String'
,
desc
:
"日常联系人职务"
},
uusinessLicenseUrl
:{
type
:
'String'
,
desc
:
"营业执照"
},
uusinessLicenseUrl
:{
type
:
'String'
,
desc
:
"营业执照"
},
personInChargeDesc
:{
type
:
'String'
,
desc
:
"单位主要负责人或负责人集体描述"
},
unitInfoType
:{
type
:
'Number'
,
desc
:
"单位信息类型 公用接口中获取"
},
unitInfoType
:{
type
:
'Number'
,
desc
:
"单位信息类型 公用接口中获取"
},
yuanXiaoBanXueLeiXing
:{
type
:
'String'
,
desc
:
"院校办学类型"
},
yuanXiaoBanXueLeiXing
:{
type
:
'String'
,
desc
:
"院校办学类型"
},
yuanXiaoZhuGuanBuMen
:{
type
:
'String'
,
desc
:
"院校主管部门"
},
yuanXiaoZhuGuanBuMen
:{
type
:
'String'
,
desc
:
"院校主管部门"
},
...
@@ -178,19 +175,15 @@ export const Config = {
...
@@ -178,19 +175,15 @@ export const Config = {
/**基本信息 */
/**基本信息 */
unitName
:{
type
:
'String'
,
desc
:
'单位名称'
},
unitName
:{
type
:
'String'
,
desc
:
'单位名称'
},
addres
:{
type
:
'String'
,
desc
:
'通信地址'
},
addres
:{
type
:
'String'
,
desc
:
'通信地址'
},
officialWebsite
:{
type
:
'String'
,
desc
:
'单位网站'
},
uscc
:{
type
:
'String'
,
desc
:
'单位信用代码'
},
uscc
:{
type
:
'String'
,
desc
:
'单位信用代码'
},
legalPerson
:{
type
:
'String'
,
desc
:
'法人代表'
},
legalPerson
:{
type
:
'String'
,
desc
:
'法人代表'
},
legalPersonPhone
:{
type
:
'String'
,
desc
:
'法人联系电话'
},
legalPersonPhone
:{
type
:
'String'
,
desc
:
'法人联系电话'
},
gongZhongHao
:{
type
:
'String'
,
desc
:
'单位公众号'
},
unitPhone
:{
type
:
'Number'
,
desc
:
'单位电话'
},
contactPerson
:{
type
:
'String'
,
desc
:
'日常联系人'
},
contactPerson
:{
type
:
'String'
,
desc
:
'日常联系人'
},
contactPersonDuties
:{
type
:
'String'
,
desc
:
'日常联系人职务'
},
contactPersonDuties
:{
type
:
'String'
,
desc
:
'日常联系人职务'
},
sheng
:{
type
:
'String'
,
desc
:
'省'
},
sheng
:{
type
:
'String'
,
desc
:
'省'
},
shi
:{
type
:
'String'
,
desc
:
'市'
},
shi
:{
type
:
'String'
,
desc
:
'市'
},
qu
:{
type
:
'String'
,
desc
:
'区'
},
qu
:{
type
:
'String'
,
desc
:
'区'
},
uusinessLicenseUrl
:{
type
:
'String'
,
desc
:
'营业执照'
},
uusinessLicenseUrl
:{
type
:
'String'
,
desc
:
'营业执照'
},
personInChargeDesc
:{
type
:
'String'
,
desc
:
'单位主要负责人或集体简介'
},
/**单位信息 */
/**单位信息 */
unitInfoType
:{
type
:
'Number'
,
desc
:
'单位信息类型'
},
unitInfoType
:{
type
:
'Number'
,
desc
:
'单位信息类型'
},
yuanXiaoBanXueLeiXing
:{
type
:
'String'
,
desc
:
'院校办学类型'
},
yuanXiaoBanXueLeiXing
:{
type
:
'String'
,
desc
:
'院校办学类型'
},
...
@@ -315,6 +308,7 @@ export const Config = {
...
@@ -315,6 +308,7 @@ export const Config = {
shi
:{
type
:
'String'
,
desc
:
'市'
},
shi
:{
type
:
'String'
,
desc
:
'市'
},
qu
:{
type
:
'String'
,
desc
:
'区'
},
qu
:{
type
:
'String'
,
desc
:
'区'
},
addres
:{
type
:
'String'
,
desc
:
'通信地址'
},
addres
:{
type
:
'String'
,
desc
:
'通信地址'
},
education
:{
type
:
'Number'
,
desc
:
'学历'
},
photoUrl
:{
type
:
'String'
,
desc
:
'蓝底证件照'
},
photoUrl
:{
type
:
'String'
,
desc
:
'蓝底证件照'
},
workUnit
:{
type
:
'String'
,
desc
:
'工作单位'
},
workUnit
:{
type
:
'String'
,
desc
:
'工作单位'
},
workDuties
:{
type
:
'String'
,
desc
:
'职务'
},
workDuties
:{
type
:
'String'
,
desc
:
'职务'
},
...
@@ -365,37 +359,34 @@ export const Config = {
...
@@ -365,37 +359,34 @@ export const Config = {
{
{
unitName
:{
type
:
'String'
,
desc
:
'单位名称'
},
unitName
:{
type
:
'String'
,
desc
:
'单位名称'
},
addres
:{
type
:
'String'
,
desc
:
'通信地址'
},
addres
:{
type
:
'String'
,
desc
:
'通信地址'
},
officialWebsite
:{
type
:
'String'
,
desc
:
'单位网站'
},
uscc
:{
type
:
'String'
,
desc
:
'单位信用代码'
},
uscc
:{
type
:
'String'
,
desc
:
'单位信用代码'
},
legalPerson
:{
type
:
'String'
,
desc
:
'法人代表'
},
legalPerson
:{
type
:
'String'
,
desc
:
'法人代表'
},
legalPersonPhone
:{
type
:
'String'
,
desc
:
'法人联系电话'
},
legalPersonPhone
:{
type
:
'String'
,
desc
:
'法人联系电话'
},
sheng
:{
type
:
'String'
,
desc
:
'省'
},
sheng
:{
type
:
'String'
,
desc
:
'省'
},
shi
:{
type
:
'String'
,
desc
:
'市'
},
shi
:{
type
:
'String'
,
desc
:
'市'
},
qu
:{
type
:
'String'
,
desc
:
'区'
},
qu
:{
type
:
'String'
,
desc
:
'区'
},
gongZhongHao
:{
type
:
'String'
,
desc
:
'单位公众号'
},
unitPhone
:{
type
:
'String'
,
desc
:
'单位电话'
},
contactPerson
:{
type
:
'String'
,
desc
:
'日常联系人'
},
contactPerson
:{
type
:
'String'
,
desc
:
'日常联系人'
},
contactPersonDuties
:{
type
:
'String'
,
desc
:
'日常联系人职务'
},
contactPersonDuties
:{
type
:
'String'
,
desc
:
'日常联系人职务'
},
uusinessLicenseUrl
:{
type
:
'String'
,
desc
:
'营业执照复印件'
},
uusinessLicenseUrl
:{
type
:
'String'
,
desc
:
'营业执照复印件'
},
personInChargeDesc
:{
type
:
'String'
,
desc
:
'单位主要负责人简介'
},
auxiliaryMaterial
:{
type
:
'[String]'
,
desc
:
'法人邮箱'
},
contactPersonPhone
:{
type
:
'[String]'
,
desc
:
'日常联系人手机'
},
/**单位信息 */
/**单位信息 */
unitInfoType
:{
type
:
'Number'
,
desc
:
'单位信息类型'
},
unitInfoType
:{
type
:
'Number'
,
desc
:
'单位信息类型'
},
unitMail
:{
type
:
'[String]'
,
desc
:
'单位电子邮箱'
},
yuanXiaoBanXueLeiXing
:{
type
:
'String'
,
desc
:
'院校办学类型'
},
yuanXiaoBanXueLeiXing
:{
type
:
'String'
,
desc
:
'院校办学类型'
},
yuanXiaoZhuGuanBuMen
:{
type
:
'String'
,
desc
:
'院校主管部门'
},
yuanXiaoZhuGuanBuMen
:{
type
:
'String'
,
desc
:
'院校主管部门'
},
yuanXiaoFuZeRen
:{
type
:
'String'
,
desc
:
'院校主要负责人'
},
yuanXiaoFuZeRen
:{
type
:
'String'
,
desc
:
'院校主要负责人'
},
yuanXiaoFuZeRenZhiWu
:{
type
:
'String'
,
desc
:
'院校主要负责人职务'
},
yuanXiaoFuZeRenZhiWu
:{
type
:
'String'
,
desc
:
'院校主要负责人职务'
},
yuanXiaoFuZeRenDianHua
:{
type
:
'String'
,
desc
:
'院校主要负责人电话'
},
yuanXiaoFuZeRenDianHua
:{
type
:
'String'
,
desc
:
'院校主要负责人电话'
},
yuanXiaoBanGongFuZeRen
:{
type
:
'String'
,
desc
:
'院校办公负责人'
},
yuanXiaoBanGongFuZeRen
:{
type
:
'String'
,
desc
:
'院校办公负责人'
},
yuanXiaoBanGongFuZeRenZhiWu
:{
type
:
'String'
,
desc
:
'院校办公负责人职务'
},
yuanXiaoBanGongFuZeRenDianHua
:{
type
:
'String'
,
desc
:
'院校办公负责人电话'
},
yuanXiaoBanGongFuZeRenDianHua
:{
type
:
'String'
,
desc
:
'院校办公负责人电话'
},
yuanXiaoKeYanFuZeRen
:{
type
:
'String'
,
desc
:
'院校科研负责人'
},
yuanXiaoKeYanFuZeRen
:{
type
:
'String'
,
desc
:
'院校科研负责人'
},
yuanXiaoKeYanFuZeRenZhiWu
:{
type
:
'String'
,
desc
:
'院校科研负责人职务'
},
yuanXiaoKeYanFuZeRenDianHua
:{
type
:
'String'
,
desc
:
'院校科研负责人电话'
},
yuanXiaoKeYanFuZeRenDianHua
:{
type
:
'String'
,
desc
:
'院校科研负责人电话'
},
yuanXiaoXueShengZongRenShu
:{
type
:
'String'
,
desc
:
'院校学生总人数'
},
yuanXiaoXueShengZongRenShu
:{
type
:
'String'
,
desc
:
'院校学生总人数'
},
yuanXiaoJiaoZhiGongZongRenShu
:{
type
:
'String'
,
desc
:
'院校教职工总人数'
},
yuanXiaoJiaoZhiGongZongRenShu
:{
type
:
'String'
,
desc
:
'院校教职工总人数'
},
yuanXiaoJianZhuMianJi
:{
type
:
'String'
,
desc
:
'院校建筑总面积
'
},
jiaoXueFuZeRenXinMing
:{
type
:
'[String]'
,
desc
:
'教学负责人姓名
'
},
yuanXiaoGaoJiZhiCheng
:{
type
:
'String'
,
desc
:
'院校高级职称人数
'
},
jiaoXueFuZeRenDianHua
:{
type
:
'[String]'
,
desc
:
'教学负责人电话
'
},
yuanXiaoKaiSheZhuanYe
:{
type
:
'String'
,
desc
:
'院校开设专业
'
},
ZhuYaoFuZeRenYouXiang
:{
type
:
'[String]'
,
desc
:
'主要负责人邮箱
'
},
}
}
},
},
{
{
...
@@ -408,12 +399,17 @@ export const Config = {
...
@@ -408,12 +399,17 @@ export const Config = {
bindBiz
:
memberBiz
.
unitMemberRegister2
bindBiz
:
memberBiz
.
unitMemberRegister2
},
},
{
{
apiName
:
"
模拟审核通过修改会员注册流程
"
,
apiName
:
"
单位入会流程3
"
,
subUrl
:
'/memberdb/
examine
'
,
subUrl
:
'/memberdb/
unitmemberregister2
'
,
param
:[
param
:[
{
key
:
"userId"
,
type
:
"String"
,
desc
:
"用户id"
},
{
key
:
"applicationForm"
,
type
:
"String"
,
desc
:
"入会申请表"
},
{
key
:
"userId"
,
type
:
"String"
,
desc
:
"用户id"
}
],
],
bindBiz
:
memberBiz
.
examine
bindBiz
:
memberBiz
.
unitMemberRegister3
},
},
{
{
apiName
:
"获取当前会员注册流程"
,
apiName
:
"获取当前会员注册流程"
,
...
@@ -423,6 +419,67 @@ export const Config = {
...
@@ -423,6 +419,67 @@ export const Config = {
],
],
bindBiz
:
memberBiz
.
registerFlowType
bindBiz
:
memberBiz
.
registerFlowType
}
}
]
],
"审批管理"
:[
{
apiName
:
"待审核列表"
,
subUrl
:
'/examine/pendingreview'
,
param
:[
{
key
:
"unitName"
,
type
:
"String"
,
desc
:
"单位名称"
,
isNull
:
true
},
{
key
:
"joinTime"
,
type
:
"Number"
,
desc
:
"入会时间"
,
isNull
:
true
},
{
key
:
"memberType"
,
type
:
"Number"
,
desc
:
"会员类别"
,
isNull
:
true
},
{
key
:
"sheng"
,
type
:
"String"
,
desc
:
"省"
,
isNull
:
true
},
{
key
:
"shi"
,
type
:
"String"
,
desc
:
"市"
,
isNull
:
true
},
{
key
:
"qu"
,
type
:
"String"
,
desc
:
"区"
,
isNull
:
true
},
{
key
:
"pageNumber"
,
type
:
"Number"
,
desc
:
"当前页"
}
],
bindBiz
:
examineBiz
.
pendingReviewList
},
{
apiName
:
"通过审批"
,
subUrl
:
'/examine/adopt'
,
param
:[
{
key
:
"userId"
,
type
:
"String"
,
desc
:
"待审核列表返回的用户id"
}
],
bindBiz
:
examineBiz
.
adopt
},
{
apiName
:
"驳回审批"
,
subUrl
:
'/examine/pendingreview'
,
param
:[
{
key
:
"userId"
,
type
:
"String"
,
desc
:
"待审核列表返回的用户id"
},
{
key
:
"remarks"
,
type
:
"String"
,
desc
:
"驳回理由"
}
],
bindBiz
:
examineBiz
.
reject
},
{
apiName
:
"审批历史"
,
subUrl
:
'/examine/approvalhistorylist'
,
param
:[
{
key
:
"userId"
,
type
:
"String"
,
desc
:
"待审核列表返回的用户id"
},
],
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