Commit 258a1de5 authored by XieZhiXiong's avatar XieZhiXiong

feat: 完善组件

parent 082557b1
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-07-09 11:09:36
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-07-12 15:56:22
* @LastEditTime: 2021-07-13 10:34:48
* @Description: 会员详情信息
*/
import React from 'react';
......@@ -33,7 +33,6 @@ import MemberDocIncomingInfo from '../MemberDocIncomingInfo';
import MemberInvestigateInfo from '../MemberInvestigateInfo';
import MemberDocCategory from '../MemberDocCategory';
import MemberDocQualification from '../MemberDocQualification';
import PicWrap from '../PicWrap';
export * from './interface';
......@@ -54,6 +53,10 @@ interface IProps {
* 是否展示渠道信息,默认 true
*/
showChannelInfo?: boolean,
/**
* 是否入库信息的 new 标签,默认 false
*/
showNew?: boolean,
}
const MemberProfile: React.FC<IProps> = (props) => {
......@@ -62,8 +65,11 @@ const MemberProfile: React.FC<IProps> = (props) => {
loading,
extra,
showChannelInfo = true,
showNew = false,
} = props;
const depositDetails = dataSource?.depositDetailTexts || dataSource?.depositDetails || [];
const anchorsArr = [
{
key: 'verifySteps',
......@@ -94,8 +100,8 @@ const MemberProfile: React.FC<IProps> = (props) => {
: []
),
(
dataSource
&& dataSource.depositDetails
depositDetails
&& depositDetails.length
? {
key: 'incomingInfo',
name: '入库信息',
......@@ -138,8 +144,6 @@ const MemberProfile: React.FC<IProps> = (props) => {
},
].filter(Boolean);
const depositDetails = dataSource?.depositDetailTexts || dataSource?.depositDetails || [];
return (
<Spin spinning={loading}>
<AnchorPage
......@@ -232,10 +236,11 @@ const MemberProfile: React.FC<IProps> = (props) => {
}
{/* 入库信息 */}
{depositDetails ? (
{depositDetails.length > 0 ? (
<Col span={24}>
<MemberDocIncomingInfo
dataSource={depositDetails}
showNew={showNew}
id="incomingInfo"
/>
</Col>
......
......@@ -100,11 +100,11 @@ export type DetailType = {
/**
* 内部流转
*/
innerVerifySteps: VerifyStepsItemType[],
innerVerifySteps?: VerifyStepsItemType[],
/**
* 内部审核流程当前的步骤
*/
currentInnerStep: number,
currentInnerStep?: number,
/**
* 外部流转
*/
......@@ -202,7 +202,7 @@ export type DetailType = {
/**
* 注册信息
*/
registerDetails: {
registerDetails?: {
/**
* 分组名称
*/
......@@ -231,7 +231,7 @@ export type DetailType = {
/**
* 入库信息,表单用
*/
depositDetails: {
depositDetails?: {
/**
* 分组名称
*/
......@@ -257,7 +257,7 @@ export type DetailType = {
/**
* 资质证明
*/
qualities: QualitiesItemType[],
qualities?: QualitiesItemType[],
/**
* 考察信息
*/
......@@ -269,7 +269,7 @@ export type DetailType = {
/**
* 内部流转记录
*/
innerHistory: {
innerHistory?: {
/**
* 记录Id
*/
......@@ -340,4 +340,17 @@ export type DetailType = {
*/
remark: string
}[],
/**
* 入库分类信息-合作关系下拉框内容 ,DropdownItem
*/
partnerTypes?: {
/**
* 下拉选择框的id
*/
id: number
/**
* 下拉选择框的文本内容
*/
text: string
}[]
};
\ No newline at end of file
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