Commit d58fefa4 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix:处理订单内部流转组件与能力中心显示不一致的问题

parent 18560d91
......@@ -2,13 +2,13 @@
* @Author: XieZhiXiong
* @Date: 2020-09-15 17:48:36
* @LastEditors: zwp
* @LastEditTime: 2020-12-01 18:12:54
* @LastEditTime: 2021-01-06 10:54:54
* @Description: 内外部流转记录组件
*/
import React from 'react';
import {
Steps,
Tabs,
import {
Steps,
Tabs,
} from 'antd';
import MellowCard from '@/components/MellowCard';
import styles from './index.less';
......@@ -16,17 +16,25 @@ import styles from './index.less';
interface AuditProcessProp {
outerVerifyCurrent?: number;
innerVerifyCurrent?: number;
outerVerifySteps?: { step: number, stepName: string, roleName: string }[];
innerVerifySteps?: { step: number, stepName: string, roleName: string }[];
outerVerifySteps?: {
step: number,
stepName: string,
roleName: string,
}[];
innerVerifySteps?: {
step: number,
stepName: string,
roleName: string,
}[];
customTitleKey?: string
customKey?: string
};
const AuditProcess: React.FC<AuditProcessProp> = ({
outerVerifyCurrent = 0,
innerVerifyCurrent = 0,
outerVerifySteps = [],
innerVerifySteps = [],
const AuditProcess: React.FC<AuditProcessProp> = ({
outerVerifyCurrent = 0,
innerVerifyCurrent = 0,
outerVerifySteps = [],
innerVerifySteps = [],
customTitleKey,
customKey
}) => (
......@@ -37,14 +45,15 @@ const AuditProcess: React.FC<AuditProcessProp> = ({
<Tabs.TabPane tab="外部审核流程" key="1">
<Steps style={{ marginTop: 30 }} progressDot current={outerVerifyCurrent}>
{outerVerifySteps.map(item => (
<Steps.Step
<Steps.Step
key={customKey ? item[customKey] : item.step}
title={customTitleKey ? item[customTitleKey] : item.stepName}
description={item.roleName}
status={item["isExecute"] ? "finish" : "wait"}
/>
))}
</Steps>
</Tabs.TabPane>
</Tabs.TabPane>
}
{
innerVerifySteps?.length > 0 &&
......@@ -55,6 +64,7 @@ const AuditProcess: React.FC<AuditProcessProp> = ({
key={customKey ? item[customKey] : item.step}
title={customTitleKey ? item[customTitleKey] : item.stepName}
description={item.roleName}
status={item["isExecute"] ? "finish" : "wait"}
/>
))}
</Steps>
......@@ -64,4 +74,4 @@ const AuditProcess: React.FC<AuditProcessProp> = ({
</MellowCard>
);
export default AuditProcess;
\ No newline at end of file
export default AuditProcess;
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