Commit 9eef4761 authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复入库资料不显示的问题

parent 1cf40113
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-07-09 11:09:36
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-07-27 18:11:59
* @LastEditTime: 2021-08-18 11:47:31
* @Description: 会员详情信息
*/
import React, { Ref } from 'react';
......@@ -116,8 +116,6 @@ const MemberProfile: React.FC<IProps> = (props) => {
qualitiesRef,
} = props;
const depositDetails = dataSource?.depositDetailTexts || dataSource?.depositDetails || [];
const anchorsArr = [
{
key: 'verifySteps',
......@@ -148,8 +146,11 @@ const MemberProfile: React.FC<IProps> = (props) => {
: []
),
(
depositDetails
&& depositDetails.length
dataSource
&& (
dataSource.depositDetailTexts?.length
|| dataSource.depositDetails?.length
)
? {
key: 'incomingInfo',
name: '入库信息',
......@@ -329,12 +330,12 @@ const MemberProfile: React.FC<IProps> = (props) => {
{/* 入库信息 */}
{(
depositDetails.length > 0
dataSource?.depositDetailTexts?.length > 0
&& !editableDeposit
) ? (
<Col span={24}>
<MemberDocIncomingInfo
dataSource={depositDetails}
dataSource={dataSource?.depositDetailTexts || []}
showNew={showNew}
id="incomingInfo"
/>
......@@ -343,12 +344,12 @@ const MemberProfile: React.FC<IProps> = (props) => {
{/* 入库信息,可编辑的 */}
{(
depositDetails.length > 0
dataSource?.depositDetails?.length > 0
&& editableDeposit
) ? (
<Col span={24}>
<MemberDocIncomingInfoForm
groups={dataSource?.depositDetails}
groups={dataSource?.depositDetails || []}
ref={depositRef}
onInputChange={handleDepositChange}
id="incomingInfo"
......
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