Commit 3770f607 authored by XieZhiXiong's avatar XieZhiXiong

feat: 添加 会员管理 -> 待确认入库CN国际化

parent 87278979
...@@ -212,6 +212,9 @@ export default { ...@@ -212,6 +212,9 @@ export default {
// 待审核入库(一级) // 待审核入库(一级)
'member.management.memberPrVerifyComing1.query.verify-tip': '确定要审核通过选中的会员吗?', 'member.management.memberPrVerifyComing1.query.verify-tip': '确定要审核通过选中的会员吗?',
// 待确认入库
'member.management.memberPrVerifyComingConfirm.query.verify-tip': '确定要审核通过选中的会员吗?',
// 待确认会员变更 // 待确认会员变更
'member.management.memberPrVerifyChangeConfirm.query.verify-tip': '确定要审核通过选中的会员吗?', 'member.management.memberPrVerifyChangeConfirm.query.verify-tip': '确定要审核通过选中的会员吗?',
......
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2021-05-25 18:01:57 * @Date: 2021-05-25 18:01:57
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-11-17 18:11:05 * @LastEditTime: 2021-12-03 18:37:17
* @Description: 待确认入库 * @Description: 待确认入库
*/ */
import React, { useState, useRef } from 'react'; import React, { useState, useRef } from 'react';
import { history } from 'umi'; import { history, useIntl } from 'umi';
import { Card, Space, Button, Modal, message } from 'antd'; import { Card, Space, Button, Modal, message } from 'antd';
import { QuestionCircleOutlined } from '@ant-design/icons'; import { QuestionCircleOutlined } from '@ant-design/icons';
import { StandardTable } from 'god'; import { StandardTable } from 'god';
...@@ -30,20 +30,22 @@ const MemberPrVerifyComingConfirm: React.FC<{}> = props => { ...@@ -30,20 +30,22 @@ const MemberPrVerifyComingConfirm: React.FC<{}> = props => {
const ref = useRef<any>({}); const ref = useRef<any>({});
const [selectedRowKeys, setSelectedRowKeys] = useState<number[]>([]); const [selectedRowKeys, setSelectedRowKeys] = useState<number[]>([]);
const intl = useIntl();
const handleJumpAudit = record => { const handleJumpAudit = record => {
history.push(`/memberCenter/memberAbility/manage/memberPrVerifyComingConfirm/verify?validateId=${record.validateId}`); history.push(`/memberCenter/memberAbility/manage/memberPrVerifyComingConfirm/verify?validateId=${record.validateId}`);
}; };
const defaultColumns = verifyComingColumn('/memberCenter/memberAbility/manage/memberPrVerifyComingConfirm/detail').concat([ const defaultColumns = verifyComingColumn('/memberCenter/memberAbility/manage/memberPrVerifyComingConfirm/detail').concat([
{ {
title: '操作', title: intl.formatMessage({ id: 'common.table.action' }),
dataIndex: 'option', dataIndex: 'option',
render: (_, record) => ( render: (_, record) => (
<Button <Button
type="link" type="link"
onClick={() => handleJumpAudit(record)} onClick={() => handleJumpAudit(record)}
> >
审核 {intl.formatMessage({ id: 'member.actions.verify' })}
</Button> </Button>
), ),
}, },
...@@ -79,13 +81,13 @@ const MemberPrVerifyComingConfirm: React.FC<{}> = props => { ...@@ -79,13 +81,13 @@ const MemberPrVerifyComingConfirm: React.FC<{}> = props => {
const handleBatch = () => { const handleBatch = () => {
if (!selectedRowKeys.length) { if (!selectedRowKeys.length) {
message.warning('未选择任何会员'); message.warning(intl.formatMessage({ id: 'member.actions.batch.nothing' }));
return; return;
} }
confirm({ confirm({
title: '提示', title: intl.formatMessage({ id: 'member.actions.verify-tip' }),
icon: <QuestionCircleOutlined />, icon: <QuestionCircleOutlined />,
content: '确定要审核通过选中的会员吗?', content: intl.formatMessage({ id: 'member.management.memberPrVerifyComingConfirm.query.verify-tip' }),
onOk() { onOk() {
return new Promise<void>((resolve, reject) => { return new Promise<void>((resolve, reject) => {
postMemberDepositConfirmBatch({ postMemberDepositConfirmBatch({
...@@ -131,7 +133,7 @@ const MemberPrVerifyComingConfirm: React.FC<{}> = props => { ...@@ -131,7 +133,7 @@ const MemberPrVerifyComingConfirm: React.FC<{}> = props => {
const ControllerBtns = () => ( const ControllerBtns = () => (
<Space> <Space>
<Button onClick={handleBatch}> <Button onClick={handleBatch}>
批量审核通过 {intl.formatMessage({ id: 'member.actions.verify-batch' })}
</Button> </Button>
</Space> </Space>
); );
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2021-05-25 18:02:54 * @Date: 2021-05-25 18:02:54
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-11-17 18:11:15 * @LastEditTime: 2021-12-03 18:38:03
* @Description: 确认入库 * @Description: 确认入库
*/ */
import React, { useState } from 'react'; import React, { useState } from 'react';
...@@ -10,7 +10,7 @@ import { Button } from 'antd'; ...@@ -10,7 +10,7 @@ import { Button } from 'antd';
import { import {
CheckCircleOutlined, CheckCircleOutlined,
} from '@ant-design/icons'; } from '@ant-design/icons';
import { history } from 'umi'; import { history, useIntl } from 'umi';
import { usePageStatus } from '@/hooks/usePageStatus'; import { usePageStatus } from '@/hooks/usePageStatus';
import { postMemberDepositConfirm, getMemberDepositConfirmDetail } from '@/services/MemberV2Api'; import { postMemberDepositConfirm, getMemberDepositConfirmDetail } from '@/services/MemberV2Api';
import fetchDetailHoc from '../common/hoc/fetchDetailHoc'; import fetchDetailHoc from '../common/hoc/fetchDetailHoc';
...@@ -22,6 +22,8 @@ const MemberPrVerifyComingConfirmVerify: React.FC<{}> = () => { ...@@ -22,6 +22,8 @@ const MemberPrVerifyComingConfirmVerify: React.FC<{}> = () => {
const [visibleVerifyModal, setVisibleVerifyModal] = useState(false); const [visibleVerifyModal, setVisibleVerifyModal] = useState(false);
const [submitLoading, setSubmitLoading] = useState(false); const [submitLoading, setSubmitLoading] = useState(false);
const intl = useIntl();
const handleVisibleVerifyModal = (flag?) => { const handleVisibleVerifyModal = (flag?) => {
setVisibleVerifyModal(!!flag); setVisibleVerifyModal(!!flag);
}; };
...@@ -62,7 +64,7 @@ const MemberPrVerifyComingConfirmVerify: React.FC<{}> = () => { ...@@ -62,7 +64,7 @@ const MemberPrVerifyComingConfirmVerify: React.FC<{}> = () => {
icon={<CheckCircleOutlined />} icon={<CheckCircleOutlined />}
onClick={() => handleVisibleVerifyModal(true)} onClick={() => handleVisibleVerifyModal(true)}
> >
单据审核 {intl.formatMessage({ id: 'member.actions.apply.verify' })}
</Button> </Button>
<VerifyModal <VerifyModal
......
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