9.7 增加首页照片检测

This commit is contained in:
jl-zhoujl2
2022-09-07 10:51:30 +08:00
parent 8cc259751b
commit 90c5085fc8
4 changed files with 69 additions and 9 deletions

View File

@ -1,6 +1,6 @@
import React, { PureComponent } from 'react';
import { history } from 'umi';
import { Row, Col, Tooltip, Card, List, DatePicker, Button, Statistic, Spin, Empty, message } from 'antd';
import { Row, Col, Tooltip, Card, List, DatePicker, Button, Statistic, Spin, Empty, message, Modal } from 'antd';
// import PageHeaderWrapper from '@/components/PageHeaderWrapper';
import { connect } from 'dva';
import './index.less';
@ -9,7 +9,7 @@ import { routerRedux } from 'dva/router';
import { RightOutlined } from '@ant-design/icons';
import moment from 'moment';
import { followUpAProjectManager, getSessionUserData } from '@/utils/session';
import { getDefId } from './service';
import { getDefId, isInsertIdOrPhoto } from './service';
import { getURLInformation } from '@/utils/CommonUtils';
import MessageDetail from '@/pages/SystemMessage/message/components/messageDetail'
import NoticeDetail from '@/pages/notice/noticeList/components/NoticeDetail'
@ -71,7 +71,8 @@ class manager extends PureComponent {
userlevel: "1",                       //网站自定义会员级别1-N可根据选择判断取值显示到小能客户端
erpparam: "abc"                          //erpparam为erp功能的扩展字段可选购买erp功能后用于erp功能集成
}
this.approvalDetail()
this.approvalDetail();
this.isIdOrPhoto();
}
onChange = (date, dateString) => {
this.setState({
@ -156,6 +157,22 @@ class manager extends PureComponent {
await followUpAProjectManager(data);
history.push('/ProjectLayout/Manager/HomePageSectionList');
};
//判断是否有身份证号或照片
isIdOrPhoto = () => {
const { warning } = Modal;
isInsertIdOrPhoto().then(res => {
if (res?.code == 200) {
if (!res?.data) {
warning({
title: '提示',
content: `您尚未维护身份证号与照片信息,请前往【我的工作台】->【代理机构信息管理】补充信息`,
centered: true,
});
}
}
})
}
render() {
const { downlist, projectlist, staloading, tlist, trelist, idList, dateNum } = this.props;
const { datevalue, messId, messageDetail, detailId, noticeDetail, questData, questVisible, mainDetail } = this.state;