Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
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
shenshaokai
jinfa-admin
Commits
90b6875e
Commit
90b6875e
authored
Jun 21, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 抽离 会员常量 相关
parent
4b07fdc4
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
128 additions
and
136 deletions
+128
-136
member.ts
src/constants/const/member.ts
+124
-0
index.ts
src/constants/index.ts
+0
-120
constant.tsx
src/pages/member/constant.tsx
+1
-2
index.tsx
src/pages/member/memberLevel/components/DetailInfo/index.tsx
+2
-4
index.tsx
src/pages/member/memberMaintain/index.tsx
+1
-3
index.tsx
src/pages/member/memberPr1/components/DetailInfo/index.tsx
+0
-1
index.tsx
src/pages/member/memberPr2/components/DetailInfo/index.tsx
+0
-1
index.tsx
...es/member/memberPrConfirm/components/DetailInfo/index.tsx
+0
-2
index.tsx
...ges/member/memberPrSubmit/components/DetailInfo/index.tsx
+0
-3
No files found.
src/constants/const/member.ts
View file @
90b6875e
...
@@ -31,3 +31,126 @@ export const MEMBER_TYPE = {
...
@@ -31,3 +31,126 @@ export const MEMBER_TYPE = {
[
MEMBER_TYPE_CHANNEL_CORPORATE
]:
'渠道企业会员'
,
[
MEMBER_TYPE_CHANNEL_CORPORATE
]:
'渠道企业会员'
,
[
MEMBER_TYPE_CHANNEL_INDIVIDUAL
]:
'渠道个人会员'
,
[
MEMBER_TYPE_CHANNEL_INDIVIDUAL
]:
'渠道个人会员'
,
};
};
// ********************* 会员申请来源 ********************
export
const
MEMBER_SOURCE_WEB_ENTERPRISE
=
1
;
// Web企业商城
export
const
MEMBER_SOURCE_H5_ENTERPRISE
=
2
;
// H5企业商城
export
const
MEMBER_SOURCE_WEB_CHANNEL
=
3
;
// Web渠道商城
export
const
MEMBER_SOURCE_H5_CHANNEL
=
4
;
// H5渠道商城
export
const
MEMBER_SOURCE_PLATFORM
=
5
;
// 平台代录入
export
const
MEMBER_SOURCE_MERCHANTS
=
6
;
// 商户代录入
export
const
MEMBER_SOURCE_CHANNEL
=
7
;
// 渠道代录入
export
const
MEMBER_SOURCE
=
{
[
MEMBER_SOURCE_WEB_ENTERPRISE
]:
'Web企业商城'
,
[
MEMBER_SOURCE_H5_ENTERPRISE
]:
'H5企业商城'
,
[
MEMBER_SOURCE_WEB_CHANNEL
]:
'Web渠道商城'
,
[
MEMBER_SOURCE_H5_CHANNEL
]:
'H5渠道商城'
,
[
MEMBER_SOURCE_PLATFORM
]:
'平台代录入'
,
[
MEMBER_SOURCE_MERCHANTS
]:
'商户代录入'
,
[
MEMBER_SOURCE_CHANNEL
]:
'渠道代录入'
,
};
// ********************* 会员内部状态(平台) ********************
/**
* 待提交平台审核
*/
export
const
MEMBER_INNER_STATUS_TO_BE_COMMIT
=
1
;
/**
* 提交审核不通过
*/
export
const
MEMBER_INNER_STATUS_COMMIT_NOT_PASSED
=
2
;
/**
* 待平台审核(一级)
*/
export
const
MEMBER_INNER_STATUS_TO_BE_VERIFY_STEP1
=
3
;
/**
* 审核会员不通过(一级)
*/
export
const
MEMBER_INNER_STATUS_VERIFY_STEP1_NOT_PASSED
=
4
;
/**
* 待平台审核(二级)
*/
export
const
MEMBER_INNER_STATUS_TO_BE_VERIFY_STEP2
=
5
;
/**
* 审核会员不通过(二级)
*/
export
const
MEMBER_INNER_STATUS_VERIFY_STEP2_NOT_PASSED
=
6
;
/**
* 待确认会员
*/
export
const
MEMBER_INNER_STATUS_TO_CONFIRMD
=
7
;
/**
* 平台审核不通过
*/
export
const
MEMBER_INNER_STATUS_VERIFY_NOT_PASSED
=
8
;
/**
* 审核通过
*/
export
const
MEMBER_INNER_STATUS_VERIFY_PASSED
=
9
;
export
const
MEMBER_INNER_STATUS
=
{
[
MEMBER_INNER_STATUS_TO_BE_COMMIT
]:
'待提交平台审核'
,
[
MEMBER_INNER_STATUS_COMMIT_NOT_PASSED
]:
'提交审核不通过'
,
[
MEMBER_INNER_STATUS_TO_BE_VERIFY_STEP1
]:
'待平台审核(一级)'
,
[
MEMBER_INNER_STATUS_VERIFY_STEP1_NOT_PASSED
]:
'待平台审核(一级)'
,
[
MEMBER_INNER_STATUS_TO_BE_VERIFY_STEP2
]:
'待平台审核(二级)'
,
[
MEMBER_INNER_STATUS_VERIFY_STEP2_NOT_PASSED
]:
'审核会员不通过(二级)'
,
[
MEMBER_INNER_STATUS_VERIFY_NOT_PASSED
]:
'审核不通过'
,
[
MEMBER_INNER_STATUS_VERIFY_PASSED
]:
'审核通过'
,
};
// ********************* 会员外部状态 ********************
/**
* 待提交审核
*/
export
const
MEMBER_OUTER_STATUS_TO_PLATFORM_VERIFY
=
1
;
/**
* 待平台审核
*/
export
const
MEMBER_OUTER_STATUS_PLATFORM_VERIFYING
=
2
;
/**
* 审核通过
*/
export
const
MEMBER_OUTER_STATUS_PLATFORM_VERIFY_PASSED
=
3
;
/**
* 审核不通过
*/
export
const
MEMBER_OUTER_STATUS_PLATFORM_VERIFY_NOT_PASSED
=
4
;
/**
* 待审核会员入库
*/
export
const
MEMBER_OUTER_STATUS_DEPOSITING
=
5
;
/**
* 入库审核通过
*/
export
const
MEMBER_OUTER_STATUS_DEPOSITORY_PASSED
=
6
;
/**
* 入库审核不通过
*/
export
const
MEMBER_OUTER_STATUS_DEPOSITORY_NOT_PASSED
=
7
;
/**
* 待审核会员变更
*/
export
const
MEMBER_OUTER_STATUS_MODIFYING
=
8
;
/**
* 会员变更审核通过
*/
export
const
MEMBER_OUTER_STATUS_MODIFY_PASSED
=
9
;
/**
* 会员变更审核不通过
*/
export
const
MEMBER_OUTER_STATUS_MODIFY_NOT_PASSED
=
10
;
export
const
MEMBER_OUTER_STATUS
=
{
[
MEMBER_OUTER_STATUS_TO_PLATFORM_VERIFY
]:
'待提交审核'
,
[
MEMBER_OUTER_STATUS_PLATFORM_VERIFYING
]:
'待平台审核'
,
[
MEMBER_OUTER_STATUS_PLATFORM_VERIFY_PASSED
]:
'审核通过'
,
[
MEMBER_OUTER_STATUS_PLATFORM_VERIFY_NOT_PASSED
]:
'审核不通过'
,
[
MEMBER_OUTER_STATUS_DEPOSITING
]:
'待审核会员入库'
,
[
MEMBER_OUTER_STATUS_DEPOSITORY_PASSED
]:
'入库审核通过'
,
[
MEMBER_OUTER_STATUS_DEPOSITORY_NOT_PASSED
]:
'入库审核不通过'
,
[
MEMBER_OUTER_STATUS_MODIFYING
]:
'待审核会员变更'
,
[
MEMBER_OUTER_STATUS_MODIFY_PASSED
]:
'会员变更审核通过'
,
[
MEMBER_OUTER_STATUS_MODIFY_NOT_PASSED
]:
'会员变更审核不通过'
,
};
\ No newline at end of file
src/constants/index.ts
View file @
90b6875e
...
@@ -129,126 +129,6 @@ export const STATUS_ENUM = [
...
@@ -129,126 +129,6 @@ export const STATUS_ENUM = [
// 1是阿里云oss服务器, 2是本地文件服务器
// 1是阿里云oss服务器, 2是本地文件服务器
export
const
UPLOAD_TYPE
=
1
export
const
UPLOAD_TYPE
=
1
// 会员内部状态(平台)
/**
* 待提交平台审核
*/
export
const
MEMBER_INNER_STATUS_TO_BE_COMMIT
=
1
;
/**
* 提交审核不通过
*/
export
const
MEMBER_INNER_STATUS_COMMIT_NOT_PASSED
=
2
;
/**
* 待平台审核(一级)
*/
export
const
MEMBER_INNER_STATUS_TO_BE_VERIFY_STEP1
=
3
;
/**
* 审核会员不通过(一级)
*/
export
const
MEMBER_INNER_STATUS_VERIFY_STEP1_NOT_PASSED
=
4
;
/**
* 待平台审核(二级)
*/
export
const
MEMBER_INNER_STATUS_TO_BE_VERIFY_STEP2
=
5
;
/**
* 审核会员不通过(二级)
*/
export
const
MEMBER_INNER_STATUS_VERIFY_STEP2_NOT_PASSED
=
6
;
/**
* 待确认会员
*/
export
const
MEMBER_INNER_STATUS_TO_CONFIRMD
=
7
;
/**
* 平台审核不通过
*/
export
const
MEMBER_INNER_STATUS_VERIFY_NOT_PASSED
=
8
;
/**
* 审核通过
*/
export
const
MEMBER_INNER_STATUS_VERIFY_PASSED
=
9
;
export
const
MEMBER_INNER_STATUS
=
{
[
MEMBER_INNER_STATUS_TO_BE_COMMIT
]:
'待提交平台审核'
,
[
MEMBER_INNER_STATUS_COMMIT_NOT_PASSED
]:
'提交审核不通过'
,
[
MEMBER_INNER_STATUS_TO_BE_VERIFY_STEP1
]:
'待平台审核(一级)'
,
[
MEMBER_INNER_STATUS_VERIFY_STEP1_NOT_PASSED
]:
'待平台审核(一级)'
,
[
MEMBER_INNER_STATUS_TO_BE_VERIFY_STEP2
]:
'待平台审核(二级)'
,
[
MEMBER_INNER_STATUS_VERIFY_STEP2_NOT_PASSED
]:
'审核会员不通过(二级)'
,
[
MEMBER_INNER_STATUS_VERIFY_NOT_PASSED
]:
'审核不通过'
,
[
MEMBER_INNER_STATUS_VERIFY_PASSED
]:
'审核通过'
,
};
// 会员外部状态
/**
* 待提交审核
*/
export
const
MEMBER_OUTER_STATUS_TO_PLATFORM_VERIFY
=
1
;
/**
* 待平台审核
*/
export
const
MEMBER_OUTER_STATUS_PLATFORM_VERIFYING
=
2
;
/**
* 审核通过
*/
export
const
MEMBER_OUTER_STATUS_PLATFORM_VERIFY_PASSED
=
3
;
/**
* 审核不通过
*/
export
const
MEMBER_OUTER_STATUS_PLATFORM_VERIFY_NOT_PASSED
=
4
;
/**
* 待审核会员入库
*/
export
const
MEMBER_OUTER_STATUS_DEPOSITING
=
5
;
/**
* 入库审核通过
*/
export
const
MEMBER_OUTER_STATUS_DEPOSITORY_PASSED
=
6
;
/**
* 入库审核不通过
*/
export
const
MEMBER_OUTER_STATUS_DEPOSITORY_NOT_PASSED
=
7
;
/**
* 待审核会员变更
*/
export
const
MEMBER_OUTER_STATUS_MODIFYING
=
8
;
/**
* 会员变更审核通过
*/
export
const
MEMBER_OUTER_STATUS_MODIFY_PASSED
=
9
;
/**
* 会员变更审核不通过
*/
export
const
MEMBER_OUTER_STATUS_MODIFY_NOT_PASSED
=
10
;
export
const
MEMBER_OUTER_STATUS
=
{
[
MEMBER_OUTER_STATUS_TO_PLATFORM_VERIFY
]:
'待提交审核'
,
[
MEMBER_OUTER_STATUS_PLATFORM_VERIFYING
]:
'待平台审核'
,
[
MEMBER_OUTER_STATUS_PLATFORM_VERIFY_PASSED
]:
'审核通过'
,
[
MEMBER_OUTER_STATUS_PLATFORM_VERIFY_NOT_PASSED
]:
'审核不通过'
,
[
MEMBER_OUTER_STATUS_DEPOSITING
]:
'待审核会员入库'
,
[
MEMBER_OUTER_STATUS_DEPOSITORY_PASSED
]:
'入库审核通过'
,
[
MEMBER_OUTER_STATUS_DEPOSITORY_NOT_PASSED
]:
'入库审核不通过'
,
[
MEMBER_OUTER_STATUS_MODIFYING
]:
'待审核会员变更'
,
[
MEMBER_OUTER_STATUS_MODIFY_PASSED
]:
'会员变更审核通过'
,
[
MEMBER_OUTER_STATUS_MODIFY_NOT_PASSED
]:
'会员变更审核不通过'
,
};
// 会员申请来源
export
const
MEMBER_SOURCE_WEB_ENTERPRISE
=
1
;
// Web企业商城
export
const
MEMBER_SOURCE_H5_ENTERPRISE
=
2
;
// H5企业商城
export
const
MEMBER_SOURCE_WEB_CHANNEL
=
3
;
// Web渠道商城
export
const
MEMBER_SOURCE_H5_CHANNEL
=
4
;
// H5渠道商城
export
const
MEMBER_SOURCE_PLATFORM
=
5
;
// 平台代录入
export
const
MEMBER_SOURCE_MERCHANTS
=
6
;
// 商户代录入
export
const
MEMBER_SOURCE_CHANNEL
=
7
;
// 渠道代录入
export
const
MEMBER_source
=
{
[
MEMBER_SOURCE_WEB_ENTERPRISE
]:
'Web企业商城'
,
[
MEMBER_SOURCE_H5_ENTERPRISE
]:
'H5企业商城'
,
[
MEMBER_SOURCE_WEB_CHANNEL
]:
'Web渠道商城'
,
[
MEMBER_SOURCE_H5_CHANNEL
]:
'H5渠道商城'
,
[
MEMBER_SOURCE_PLATFORM
]:
'平台代录入'
,
[
MEMBER_SOURCE_MERCHANTS
]:
'商户代录入'
,
[
MEMBER_SOURCE_CHANNEL
]:
'渠道代录入'
,
};
// 订单类型
// 订单类型
export
enum
OrderModalType
{
export
enum
OrderModalType
{
...
...
src/pages/member/constant.tsx
View file @
90b6875e
...
@@ -10,8 +10,7 @@ import {
...
@@ -10,8 +10,7 @@ import {
MEMBER_OUTER_STATUS_PLATFORM_VERIFYING
,
MEMBER_OUTER_STATUS_PLATFORM_VERIFYING
,
MEMBER_OUTER_STATUS_PLATFORM_VERIFY_NOT_PASSED
,
MEMBER_OUTER_STATUS_PLATFORM_VERIFY_NOT_PASSED
,
MEMBER_OUTER_STATUS_PLATFORM_VERIFY_PASSED
,
MEMBER_OUTER_STATUS_PLATFORM_VERIFY_PASSED
,
}
from
'@/constants'
;
import
{
MEMBER_STATUS_NORMAL
,
MEMBER_STATUS_NORMAL
,
MEMBER_STATUS_FROZEN
,
MEMBER_STATUS_FROZEN
,
}
from
'@/constants/const/member'
;
}
from
'@/constants/const/member'
;
...
...
src/pages/member/memberLevel/components/DetailInfo/index.tsx
View file @
90b6875e
...
@@ -2,17 +2,15 @@
...
@@ -2,17 +2,15 @@
* @Author: XieZhiXiong
* @Author: XieZhiXiong
* @Date: 2021-01-26 17:17:14
* @Date: 2021-01-26 17:17:14
* @LastEditors: XieZhiXiong
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-0
1-26 17:35:40
* @LastEditTime: 2021-0
6-21 14:23:18
* @Description:
* @Description:
*/
*/
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
history
}
from
'umi'
;
import
{
history
}
from
'umi'
;
import
{
import
{
Button
,
Button
,
Popconfirm
,
Card
,
Card
,
Input
,
Input
,
Slider
,
Spin
,
Spin
,
message
,
message
,
PageHeader
,
PageHeader
,
...
@@ -354,7 +352,7 @@ const addEquity: React.FC<DetailInfoProps> = ({
...
@@ -354,7 +352,7 @@ const addEquity: React.FC<DetailInfoProps> = ({
dataSource=
{
levelInfo
?.
rights
}
dataSource=
{
levelInfo
?.
rights
}
columns=
{
newColumns
}
columns=
{
newColumns
}
loading=
{
false
}
loading=
{
false
}
pagination=
{
null
}
pagination=
{
undefined
}
onRow=
{
(
record
):
EditableRowProps
=>
({
onRow=
{
(
record
):
EditableRowProps
=>
({
onFieldsChange
:
handleFieldsChange
,
onFieldsChange
:
handleFieldsChange
,
})
}
})
}
...
...
src/pages/member/memberMaintain/index.tsx
View file @
90b6875e
...
@@ -30,10 +30,8 @@ import {
...
@@ -30,10 +30,8 @@ import {
MEMBER_OUTER_STATUS_PLATFORM_VERIFY_PASSED
,
MEMBER_OUTER_STATUS_PLATFORM_VERIFY_PASSED
,
MEMBER_INNER_STATUS_VERIFY_NOT_PASSED
,
MEMBER_INNER_STATUS_VERIFY_NOT_PASSED
,
MEMBER_INNER_STATUS_TO_BE_COMMIT
,
MEMBER_INNER_STATUS_TO_BE_COMMIT
,
MEMBER_SOURCE_PLATFORM
,
}
from
'@/constants'
;
import
{
MEMBER_STATUS_NORMAL
,
MEMBER_STATUS_NORMAL
,
MEMBER_SOURCE_PLATFORM
,
}
from
'@/constants/const/member'
;
}
from
'@/constants/const/member'
;
import
{
importSchema
}
from
'./schema'
;
import
{
importSchema
}
from
'./schema'
;
import
{
import
{
...
...
src/pages/member/memberPr1/components/DetailInfo/index.tsx
View file @
90b6875e
...
@@ -36,7 +36,6 @@ import HeadInfo from '../../../components/HeadInfo';
...
@@ -36,7 +36,6 @@ import HeadInfo from '../../../components/HeadInfo';
import
StatusTag
from
'../../../components/StatusTag'
;
import
StatusTag
from
'../../../components/StatusTag'
;
import
BasicInfo
from
'../../../components/BasicInfo'
;
import
BasicInfo
from
'../../../components/BasicInfo'
;
import
AuditProcess
from
'../../../components/AuditProcess'
;
import
AuditProcess
from
'../../../components/AuditProcess'
;
import
styles
from
'./index.less'
;
const
treeActions
=
createTreeActions
();
const
treeActions
=
createTreeActions
();
const
modalFormActions
=
createFormActions
();
const
modalFormActions
=
createFormActions
();
...
...
src/pages/member/memberPr2/components/DetailInfo/index.tsx
View file @
90b6875e
...
@@ -36,7 +36,6 @@ import HeadInfo from '../../../components/HeadInfo';
...
@@ -36,7 +36,6 @@ import HeadInfo from '../../../components/HeadInfo';
import
StatusTag
from
'../../../components/StatusTag'
;
import
StatusTag
from
'../../../components/StatusTag'
;
import
BasicInfo
from
'../../../components/BasicInfo'
;
import
BasicInfo
from
'../../../components/BasicInfo'
;
import
AuditProcess
from
'../../../components/AuditProcess'
;
import
AuditProcess
from
'../../../components/AuditProcess'
;
import
styles
from
'./index.less'
;
const
treeActions
=
createTreeActions
();
const
treeActions
=
createTreeActions
();
const
modalFormActions
=
createFormActions
();
const
modalFormActions
=
createFormActions
();
...
...
src/pages/member/memberPrConfirm/components/DetailInfo/index.tsx
View file @
90b6875e
...
@@ -42,8 +42,6 @@ const treeActions = createTreeActions();
...
@@ -42,8 +42,6 @@ const treeActions = createTreeActions();
const
modalFormActions
=
createAsyncFormActions
();
const
modalFormActions
=
createAsyncFormActions
();
const
{
const
{
onFieldValueChange$
,
onFieldValueChange$
,
onFieldInputChange$
,
onFieldInit$
,
}
=
FormEffectHooks
;
}
=
FormEffectHooks
;
interface
DetailInfoProps
{
interface
DetailInfoProps
{
...
...
src/pages/member/memberPrSubmit/components/DetailInfo/index.tsx
View file @
90b6875e
...
@@ -20,7 +20,6 @@ import {
...
@@ -20,7 +20,6 @@ import {
message
,
message
,
}
from
'antd'
;
}
from
'antd'
;
import
{
FormOutlined
}
from
'@ant-design/icons'
;
import
{
FormOutlined
}
from
'@ant-design/icons'
;
import
{
usePageStatus
,
PageStatus
}
from
'@/hooks/usePageStatus'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
GetMemberValidateCommitDetailResponse
}
from
'@/services/MemberApi'
;
import
{
GetMemberValidateCommitDetailResponse
}
from
'@/services/MemberApi'
;
import
TabTree
,
{
createTreeActions
}
from
'@/components/TabTree'
;
import
TabTree
,
{
createTreeActions
}
from
'@/components/TabTree'
;
...
@@ -30,7 +29,6 @@ import NiceForm from '@/components/NiceForm';
...
@@ -30,7 +29,6 @@ import NiceForm from '@/components/NiceForm';
import
{
createFormActions
,
FormEffectHooks
}
from
'@formily/antd'
;
import
{
createFormActions
,
FormEffectHooks
}
from
'@formily/antd'
;
import
{
useTreeTabs
,
FormState
}
from
'@/hooks/useTreeTabs'
;
import
{
useTreeTabs
,
FormState
}
from
'@/hooks/useTreeTabs'
;
import
{
import
{
MEMBER_STATUS_TAG_MAP
,
MEMBER_INNER_STATUS_BADGE_COLOR
,
MEMBER_INNER_STATUS_BADGE_COLOR
,
MEMBER_OUTER_STATUS_TYPE
,
MEMBER_OUTER_STATUS_TYPE
,
}
from
'../../../constant'
;
}
from
'../../../constant'
;
...
@@ -39,7 +37,6 @@ import HeadInfo from '../../../components/HeadInfo';
...
@@ -39,7 +37,6 @@ import HeadInfo from '../../../components/HeadInfo';
import
StatusTag
from
'../../../components/StatusTag'
;
import
StatusTag
from
'../../../components/StatusTag'
;
import
BasicInfo
from
'../../../components/BasicInfo'
;
import
BasicInfo
from
'../../../components/BasicInfo'
;
import
AuditProcess
from
'../../../components/AuditProcess'
;
import
AuditProcess
from
'../../../components/AuditProcess'
;
import
styles
from
'./index.less'
;
const
treeActions
=
createTreeActions
();
const
treeActions
=
createTreeActions
();
const
modalFormActions
=
createFormActions
();
const
modalFormActions
=
createFormActions
();
...
...
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