Commit 917e826b authored by Bill's avatar Bill

fix: 加工物流单, 修改密码页自适应,

parent ae6e3738
import { LogoutOutlined, SettingOutlined, UserOutlined } from '@ant-design/icons'; import { LogoutOutlined, LockOutlined } from '@ant-design/icons';
import { Avatar, Menu, Spin } from 'antd'; import { Avatar, Menu, Spin } from 'antd';
import React from 'react'; import React from 'react';
import { history } from 'umi'; import { history, Link } from 'umi';
import PersonDropdown from './PersonDropdown' import PersonDropdown from './PersonDropdown'
import styles from '../styles/RightContent.less'; import styles from '../styles/RightContent.less';
import { removeAuth, removeRouters, getAuth } from '@/utils/auth'; import { removeAuth, removeRouters, getAuth } from '@/utils/auth';
...@@ -30,6 +30,9 @@ const AvatarDropdown = () => { ...@@ -30,6 +30,9 @@ const AvatarDropdown = () => {
个人设置 个人设置
</Menu.Item> </Menu.Item>
<Menu.Divider /> */} <Menu.Divider /> */}
<Menu.Item>
<Link to="/memberCenter/systemSetting/accountSetting"><LockOutlined />修改密码</Link>
</Menu.Item>
<Menu.Item onClick={logout} key="logout"> <Menu.Item onClick={logout} key="logout">
<LogoutOutlined /> <LogoutOutlined />
退出登录 退出登录
......
...@@ -30,7 +30,6 @@ const GlobalHeaderRight: React.FC<{}> = (props) => { ...@@ -30,7 +30,6 @@ const GlobalHeaderRight: React.FC<{}> = (props) => {
const ws = useRef<WebSocket | null>(null); const ws = useRef<WebSocket | null>(null);
const webSocketInit = useCallback(() => { const webSocketInit = useCallback(() => {
console.log(ws.current)
if (SOCKET_URL && (!ws.current || ws.current.readyState === 3) && userInfo) { if (SOCKET_URL && (!ws.current || ws.current.readyState === 3) && userInfo) {
const url = `${SOCKET_URL}/report/websocket?memberId=${userInfo.memberId}&roleId=${userInfo.memberRoleId}&token=${userInfo.token}&source=${1}`; const url = `${SOCKET_URL}/report/websocket?memberId=${userInfo.memberId}&roleId=${userInfo.memberRoleId}&token=${userInfo.token}&source=${1}`;
ws.current = new WebSocket(url); ws.current = new WebSocket(url);
...@@ -39,8 +38,9 @@ const GlobalHeaderRight: React.FC<{}> = (props) => { ...@@ -39,8 +38,9 @@ const GlobalHeaderRight: React.FC<{}> = (props) => {
} }
ws.current.onmessage = (e) => { ws.current.onmessage = (e) => {
console.log(e) console.log(e)
if(e.data.type === NOT_READ_MESSAGE) { const data = JSON.parse(e.data);
setMessage(e.data.data); if(data.type === NOT_READ_MESSAGE) {
setMessage(data.data);
} }
}; };
ws.current.onclose = (e) => { ws.current.onclose = (e) => {
......
...@@ -7,7 +7,6 @@ import GetCaptchaCode from '../GetCaptchaCode'; ...@@ -7,7 +7,6 @@ import GetCaptchaCode from '../GetCaptchaCode';
import classNames from 'classnames' import classNames from 'classnames'
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import phoneRegExp from './utils'; import phoneRegExp from './utils';
import options from '@/pages/editor/settingsPanel/propsSettings/Animate/config';
const Option = Select.Option; const Option = Select.Option;
const EditDataComponent = (props) => { const EditDataComponent = (props) => {
......
...@@ -5,12 +5,14 @@ ...@@ -5,12 +5,14 @@
align-items: center; align-items: center;
background-color: #fff; background-color: #fff;
padding: 36px 24px; padding: 36px 24px;
width: 610px;
height: 156px; height: 156px;
width: 100%;
overflow: hidden;
.infos { .infos {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center;
.image { .image {
margin-right: 22px; margin-right: 22px;
......
...@@ -7,6 +7,7 @@ import { PublicApi } from '@/services/api'; ...@@ -7,6 +7,7 @@ import { PublicApi } from '@/services/api';
import { history } from 'umi' import { history } from 'umi'
import { encryptedByAES } from '@/utils/cryptoAes' import { encryptedByAES } from '@/utils/cryptoAes'
const layout = { const layout = {
labelCol: { span: 3 }, labelCol: { span: 3 },
wrapperCol: { span: 13 }, wrapperCol: { span: 13 },
......
...@@ -129,8 +129,6 @@ const PhoneVerifyPanel: React.FC<IProps> = (props) => { ...@@ -129,8 +129,6 @@ const PhoneVerifyPanel: React.FC<IProps> = (props) => {
</> </>
: null : null
} }
{ {
visible visible
? <> ? <>
......
...@@ -5,7 +5,7 @@ import GetCaptchaCode from '../../GetCaptchaCode'; ...@@ -5,7 +5,7 @@ import GetCaptchaCode from '../../GetCaptchaCode';
import SafeVerification from '../../SafeVerification'; import SafeVerification from '../../SafeVerification';
import TypeForHeader from '../../TypeForHeader'; import TypeForHeader from '../../TypeForHeader';
import { history } from 'umi' import { history } from 'umi'
import { encryptedByAES } from '@/utils/cryptoAes'
const layout = { const layout = {
labelCol: { span: 3 }, labelCol: { span: 3 },
wrapperCol: { span: 13 }, wrapperCol: { span: 13 },
...@@ -27,7 +27,7 @@ const ResetPayCode: React.FC<IProps> = (props) => { ...@@ -27,7 +27,7 @@ const ResetPayCode: React.FC<IProps> = (props) => {
const { phone, pageType } = props; const { phone, pageType } = props;
const onFinish = (values) => { const onFinish = (values) => {
const postData = { const postData = {
payPassword: values.password payPassword: encryptedByAES(values.password)
} }
// /member/security/pay/update // /member/security/pay/update
const service = PublicApi.postMemberSecurityPayUpdate; const service = PublicApi.postMemberSecurityPayUpdate;
......
import React, { useEffect, useState } from 'react'; import React, { useEffect, useState } from 'react';
import { Card } from 'antd'; import { Row, Col } from 'antd';
import { PageHeaderWrapper } from '@ant-design/pro-layout'; import { PageHeaderWrapper } from '@ant-design/pro-layout';
import TypeVerify from './components/TypeVerify'; import TypeVerify from './components/TypeVerify';
import styles from './index.less';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
const getData = async () => { const getData = async () => {
...@@ -22,22 +21,23 @@ const AccountSetting = () => { ...@@ -22,22 +21,23 @@ const AccountSetting = () => {
const TYPES = ['loginPwd', 'email', 'phone', 'paycode'] const TYPES = ['loginPwd', 'email', 'phone', 'paycode']
return ( return (
<PageHeaderWrapper> <PageHeaderWrapper>
<div className={styles.page}> <div >
<Row gutter={[24,24]}>
{ {
TYPES.map((item) => { TYPES.map((item) => {
return ( return (
<div className={styles.item} key={item}> <Col xxl={12} xl={12} lg={24} md={24} sm={24} xs={24} key={item}>
<TypeVerify <TypeVerify
type={item} type={item}
phone={account.phone} phone={account.phone}
email={account.email} email={account.email}
paycode={account.hasPayPassword} paycode={account.hasPayPassword}
/> />
</div> </Col>
) )
}) })
} }
</Row>
</div> </div>
</PageHeaderWrapper> </PageHeaderWrapper>
......
...@@ -60,7 +60,7 @@ enum OuterAndInnerStatus { ...@@ -60,7 +60,7 @@ enum OuterAndInnerStatus {
/** /**
* 待确认物流单 * 待确认物流单
*/ */
pending_confirm_logistics = '待确认物流单', pending_confirm_logistics = '4_17',
/** /**
* 待确认发货 * 待确认发货
*/ */
...@@ -174,8 +174,8 @@ const processStock: React.FC<{}> = () => { ...@@ -174,8 +174,8 @@ const processStock: React.FC<{}> = () => {
<a onClick={() => handleVisible(record.id)}>审核</a> <a onClick={() => handleVisible(record.id)}>审核</a>
</Popconfirm> </Popconfirm>
), ),
[OuterAndInnerStatus.pending_add_logistics]: <Link to={`${ADD_LOGISTICS_PATH}`}>新增</Link>, [OuterAndInnerStatus.pending_add_logistics]: <Link to={`${ADD_LOGISTICS_PATH}?createType=3&shipmentOrderId=${record.deliveryId}&shipmentOrderCode=${record.deliveryNo}&relevanceOrderId=${record.id}`}>新增物流单</Link>,
[OuterAndInnerStatus.pending_confirm_logistics]: <a>查看</a>, [OuterAndInnerStatus.pending_confirm_logistics]: <Link to={`${ADD_LOGISTICS_PATH}?createType=3&shipmentOrderId=${record.deliveryId}&shipmentOrderCode=${record.deliveryNo}&relevanceOrderId=${record.id}&isPreview=1`}>查看物流单</Link>,
[OuterAndInnerStatus.pending_confirm_deliver]: <Link to={`${PENDING_DELIVERD_PATH}/detail?id=${record.id}`}>发货</Link>, [OuterAndInnerStatus.pending_confirm_deliver]: <Link to={`${PENDING_DELIVERD_PATH}/detail?id=${record.id}`}>发货</Link>,
[OuterAndInnerStatus.pending_add_process_in_warehouse]: ( [OuterAndInnerStatus.pending_add_process_in_warehouse]: (
<Link <Link
...@@ -201,7 +201,7 @@ const processStock: React.FC<{}> = () => { ...@@ -201,7 +201,7 @@ const processStock: React.FC<{}> = () => {
[OuterAndInnerStatus.pending_confirm_receive]: <Link to={`${ASSIGN_PENDING_RECEIVE}/detail?id=${record.id}`}>收货</Link>, [OuterAndInnerStatus.pending_confirm_receive]: <Link to={`${ASSIGN_PENDING_RECEIVE}/detail?id=${record.id}`}>收货</Link>,
[OuterAndInnerStatus.pending_confirm_receipt]: <Link to={`${PENDING_RECEIPT_PATH}/detail?id=${record.id}`}>确认回单</Link> [OuterAndInnerStatus.pending_confirm_receipt]: <Link to={`${PENDING_RECEIPT_PATH}/detail?id=${record.id}`}>确认回单</Link>
} }
return MAP[`${outerStatus}_${innerStatus}`] || MAP[record.innerStatusName] return MAP[`${outerStatus}_${innerStatus}`]
} }
} }
] ]
......
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