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
a1e5d4ab
Commit
a1e5d4ab
authored
Dec 13, 2024
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
01d1bdf4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
83 additions
and
4 deletions
+83
-4
homePage.ts
src/biz/member/homePage.ts
+52
-2
memberFees.ts
src/biz/member/memberFees.ts
+0
-0
outPutConfig.ts
src/config/outPutConfig.ts
+17
-2
router.ts
src/routers/member/router.ts
+7
-0
router.ts
src/routers/public/router.ts
+7
-0
No files found.
src/biz/member/homePage.ts
View file @
a1e5d4ab
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
*/
*/
import
moment
=
require
(
"moment"
);
import
moment
=
require
(
"moment"
);
import
{
CHANGEAPPLYTYPE
,
CLIENTMSGLABLE
,
DOCUMENTTYPE
,
INDIVIDUALMEMBERTYPE
,
MEMBERLEVEL
,
MEMBERLEVELCHANGE
,
MEMBERSTATE
,
MEMBERTYPE
,
NATION
,
PAYMENTSTATUS
,
PROFCATEGORY
,
SEX
,
STATE
,
UNITMEMBERTYPE
,
USERREGISTERSTATE
}
from
"../../config/enum"
;
import
{
CHANGEAPPLYTYPE
,
CLIENTMSGLABLE
,
CODPARTICIPANT
,
DOCUMENTTYPE
,
INDIVIDUALMEMBERTYPE
,
MEMBERLEVEL
,
MEMBERLEVELCHANGE
,
MEMBERSTATE
,
MEMBERTYPE
,
NATION
,
PAYMENTSTATUS
,
PROFCATEGORY
,
SEX
,
STATE
,
UNITMEMBERTYPE
,
USERREGISTERSTATE
}
from
"../../config/enum"
;
import
{
ERRORENUM
}
from
"../../config/errorEnum"
;
import
{
ERRORENUM
}
from
"../../config/errorEnum"
;
import
{
addManyData
,
addOneData
}
from
"../../data/add"
;
import
{
addManyData
,
addOneData
}
from
"../../data/add"
;
import
{
deleteManyData
}
from
"../../data/delete"
;
import
{
deleteManyData
}
from
"../../data/delete"
;
...
@@ -14,7 +14,7 @@ import { updateOneData } from "../../data/update";
...
@@ -14,7 +14,7 @@ import { updateOneData } from "../../data/update";
import
{
generateSystemId
,
getEdition
,
successErrorResult
,
successResult
}
from
"../../tools/system"
;
import
{
generateSystemId
,
getEdition
,
successErrorResult
,
successResult
}
from
"../../tools/system"
;
import
{
BizError
}
from
"../../util/bizError"
;
import
{
BizError
}
from
"../../util/bizError"
;
import
{
extractData
}
from
"../../util/piecemeal"
;
import
{
extractData
}
from
"../../util/piecemeal"
;
import
{
eccEnumValue
}
from
"../../util/verificationEnum"
;
import
{
changeEnumValue
,
eccEnumValue
}
from
"../../util/verificationEnum"
;
import
{
eccFormParam
}
from
"../../util/verificationParam"
;
import
{
eccFormParam
}
from
"../../util/verificationParam"
;
import
{
getCityNameByCode
}
from
"../../config/cityConfig"
;
import
{
getCityNameByCode
}
from
"../../config/cityConfig"
;
...
@@ -315,6 +315,56 @@ export async function getSheng ({userId}) {
...
@@ -315,6 +315,56 @@ export async function getSheng ({userId}) {
/**
/**
* 理事、常务理事证明函下载
* @param param0
* @returns
*/
export
async
function
getCertificateType
({
userId
})
{
const
Files
=
[
"userId"
,
"memberLevel"
,
"changeApplyType"
,
"applyApplicationTime"
,
"unitName"
,
"name"
,
"beforeChange"
,
"memberType"
];
let
userInfo
=
await
findOnce
(
TABLEENUM
.
用户表
,
{
userId
},
Files
);
if
(
!
userInfo
||
!
userInfo
.
userId
)
throw
new
BizError
(
ERRORENUM
.
目标数据不存在
);
let
certificate
=
false
;
//是否可以下载
let
cefaInfo
:
any
=
{};
let
msg
=
'会员理事审核未通过,无法下载证明函'
;
//判断是否审批通过
if
(
userInfo
.
beforeChange
)
{
if
(
userInfo
.
changeApplyType
==
CHANGEAPPLYTYPE
.
通过
)
{
if
(
userInfo
.
memberLevel
==
MEMBERLEVEL
.
理事会员
||
userInfo
.
certificateType
==
MEMBERLEVEL
.
常务理事会员
)
certificate
=
true
if
(
certificate
)
{
cefaInfo
=
{
memberLevel
:
changeEnumValue
(
MEMBERLEVEL
,
userInfo
.
memberLevel
),
name
:
userInfo
.
name
,
unitName
:
userInfo
.
unitName
,
applyApplicationTime
:
moment
(
userInfo
.
applyApplicationTime
).
format
(
"YYYY年MM月DD日"
)
}
msg
=
``
;
}
}
else
if
(
userInfo
.
changeApplyType
==
CHANGEAPPLYTYPE
.
注册信息待补充
)
{
msg
=
`会员注册信息待补充,无法下载证明函`
;
}
else
if
(
userInfo
.
changeApplyType
==
CHANGEAPPLYTYPE
.
待审批
)
{
msg
=
`会员理事审核中,无法下载证明函`
;
}
}
else
{
if
(
userInfo
.
memberLevel
==
MEMBERLEVEL
.
理事会员
||
userInfo
.
certificateType
==
MEMBERLEVEL
.
常务理事会员
)
certificate
=
true
if
(
certificate
)
{
let
name
=
""
;
if
(
userInfo
.
memberType
==
MEMBERTYPE
.
个人会员
)
name
=
userInfo
.
name
;
else
name
=
userInfo
.
unitName
;
cefaInfo
=
{
memberLevel
:
changeEnumValue
(
MEMBERLEVEL
,
userInfo
.
memberLevel
),
name
,
applyApplicationTime
:
moment
(
userInfo
.
applyApplicationTime
).
format
(
"YYYY年MM月DD日"
)
}
msg
=
``
;
}
}
return
{
certificate
,
cefaInfo
,
msg
};
}
/**
* 能否申请变更理事
* 能否申请变更理事
* @param userId 登录的userid
* @param userId 登录的userid
* @returns
* @returns
...
...
src/biz/member/memberFees.ts
View file @
a1e5d4ab
This diff is collapsed.
Click to expand it.
src/config/outPutConfig.ts
View file @
a1e5d4ab
...
@@ -149,7 +149,7 @@ export enum REFUNDCOLUMNS {
...
@@ -149,7 +149,7 @@ export enum REFUNDCOLUMNS {
}
}
//会费管理
//会费管理
-未缴费
export
enum
MEMBERFEESDCOLUMNS
{
export
enum
MEMBERFEESDCOLUMNS
{
状态
=
"memberState"
,
状态
=
"memberState"
,
会员类别
=
"memberType"
,
会员类别
=
"memberType"
,
...
@@ -159,9 +159,24 @@ export enum MEMBERFEESDCOLUMNS {
...
@@ -159,9 +159,24 @@ export enum MEMBERFEESDCOLUMNS {
会员职务
=
"memberLevel"
,
会员职务
=
"memberLevel"
,
入会时间
=
"joinTime"
,
入会时间
=
"joinTime"
,
缴费金额
=
"Money"
,
缴费金额
=
"Money"
,
"欠费
年限/
份"
=
"duration"
"欠费
具体年
份"
=
"duration"
}
}
//会费管理-已缴费、缴费期
export
enum
MEMBERPAYMENTCOLUMNS
{
状态
=
"memberState"
,
会员类别
=
"memberType"
,
注册手机号
=
"phone"
,
"单位代码/身份证"
=
"code"
,
"单位/个人名称"
=
"name"
,
会员职务
=
"memberLevel"
,
入会时间
=
"joinTime"
,
缴费金额
=
"Money"
,
缴费年限
=
"paymentYear"
,
欠费具体年份
=
"duration"
,
欠费年限
=
"durationYear"
}
src/routers/member/router.ts
View file @
a1e5d4ab
...
@@ -991,6 +991,13 @@ export const Config = {
...
@@ -991,6 +991,13 @@ export const Config = {
bindBiz
:
homePageBiz
.
getCertificate
bindBiz
:
homePageBiz
.
getCertificate
},
},
{
{
apiName
:
"获取可下载理事、常务理事证明函"
,
subUrl
:
'/homepage/getcertificatetype'
,
param
:[
],
bindBiz
:
homePageBiz
.
getCertificateType
},
{
apiName
:
"变更职位"
,
apiName
:
"变更职位"
,
subUrl
:
'/homepage/getapply'
,
subUrl
:
'/homepage/getapply'
,
param
:[
param
:[
...
...
src/routers/public/router.ts
View file @
a1e5d4ab
...
@@ -350,6 +350,13 @@ export const Config = {
...
@@ -350,6 +350,13 @@ export const Config = {
param
:[],
param
:[],
defaultParam
:
outPutConfig
.
MEMBERFEESDCOLUMNS
,
defaultParam
:
outPutConfig
.
MEMBERFEESDCOLUMNS
,
bindBiz
:
publicBiz
.
setEnumInterface
bindBiz
:
publicBiz
.
setEnumInterface
},
{
apiName
:
"会费管理-列表导出"
,
subUrl
:
'/memberpaymentcolumns'
,
param
:[],
defaultParam
:
outPutConfig
.
MEMBERPAYMENTCOLUMNS
,
bindBiz
:
publicBiz
.
setEnumInterface
}
}
],
],
...
...
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