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

fix:处理待审核商品传参问题

parent 8a2ca2a8
/* /*
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2020-09-15 17:48:36 * @Date: 2020-09-15 17:48:36
* @LastEditors: XieZhiXiong * @LastEditors: zwp
* @LastEditTime: 2020-09-15 17:49:54 * @LastEditTime: 2020-12-01 18:12:54
* @Description: 内外部流转记录组件 * @Description: 内外部流转记录组件
*/ */
import React from 'react'; import React from 'react';
...@@ -32,28 +32,34 @@ const AuditProcess: React.FC<AuditProcessProp> = ({ ...@@ -32,28 +32,34 @@ const AuditProcess: React.FC<AuditProcessProp> = ({
}) => ( }) => (
<MellowCard> <MellowCard>
<Tabs onChange={() => {}}> <Tabs onChange={() => {}}>
<Tabs.TabPane tab="外部审核流程" key="1"> {
<Steps style={{ marginTop: 30 }} progressDot current={outerVerifyCurrent}> outerVerifySteps?.length > 0 &&
{outerVerifySteps.map(item => ( <Tabs.TabPane tab="外部审核流程" key="1">
<Steps.Step <Steps style={{ marginTop: 30 }} progressDot current={outerVerifyCurrent}>
key={customKey ? item[customKey] : item.step} {outerVerifySteps.map(item => (
title={customTitleKey ? item[customTitleKey] : item.stepName} <Steps.Step
description={item.roleName} key={customKey ? item[customKey] : item.step}
/> title={customTitleKey ? item[customTitleKey] : item.stepName}
))} description={item.roleName}
</Steps> />
</Tabs.TabPane> ))}
<Tabs.TabPane tab="内部审核流程" key="2"> </Steps>
<Steps style={{ marginTop: 30 }} progressDot current={innerVerifyCurrent}> </Tabs.TabPane>
{innerVerifySteps.map(item => ( }
<Steps.Step {
key={customKey ? item[customKey] : item.step} innerVerifySteps?.length > 0 &&
title={customTitleKey ? item[customTitleKey] : item.stepName} <Tabs.TabPane tab="内部审核流程" key="2">
description={item.roleName} <Steps style={{ marginTop: 30 }} progressDot current={innerVerifyCurrent}>
/> {innerVerifySteps.map(item => (
))} <Steps.Step
</Steps> key={customKey ? item[customKey] : item.step}
</Tabs.TabPane> title={customTitleKey ? item[customTitleKey] : item.stepName}
description={item.roleName}
/>
))}
</Steps>
</Tabs.TabPane>
}
</Tabs> </Tabs>
</MellowCard> </MellowCard>
); );
......
...@@ -135,7 +135,7 @@ const Products: React.FC<{}> = () => { ...@@ -135,7 +135,7 @@ const Products: React.FC<{}> = () => {
const fetchData = (params: any) => { const fetchData = (params: any) => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
PublicApi.getProductCommodityGetPlatformCommodityList(params).then(res => { PublicApi.getProductCommodityGetPlatformCommodityList({...params, status: 2}).then(res => {
const { data } = res const { data } = res
resolve(data) resolve(data)
}) })
......
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