Commit 90b6875e authored by XieZhiXiong's avatar XieZhiXiong

chore: 抽离 会员常量 相关

parent 4b07fdc4
...@@ -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
...@@ -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 {
......
...@@ -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';
......
...@@ -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-01-26 17:35:40 * @LastEditTime: 2021-06-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,
})} })}
......
...@@ -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 {
......
...@@ -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();
......
...@@ -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();
......
...@@ -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 {
......
...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment