Commit aca7fea6 authored by 卢均锐's avatar 卢均锐

chore: 修改部分提示

parent 7ec366e6
...@@ -8,11 +8,11 @@ import TrendTag from '../trendTag'; ...@@ -8,11 +8,11 @@ import TrendTag from '../trendTag';
import styles from './index.less'; import styles from './index.less';
interface BtnItemProps { interface BtnItemProps {
detail: any,
btnType?: number, btnType?: number,
active?: boolean, active?: boolean,
detail?: any, onOk?: () => void,
onOk?: Function, onCancle?: () => void
onCancle?: Function
} }
const BtnItem: React.FC<BtnItemProps> = (props: any) => { const BtnItem: React.FC<BtnItemProps> = (props: any) => {
......
...@@ -7,7 +7,7 @@ import ImIcon from '@/assets/icons/message_square.svg'; ...@@ -7,7 +7,7 @@ import ImIcon from '@/assets/icons/message_square.svg';
import styles from './index.less'; import styles from './index.less';
interface IMBtnProps { interface IMBtnProps {
func: Function, func: () => void,
btnStyle?: React.CSSProperties btnStyle?: React.CSSProperties
} }
......
...@@ -4,8 +4,14 @@ import { Radio, Steps } from 'antd'; ...@@ -4,8 +4,14 @@ import { Radio, Steps } from 'antd';
import Card from '../../../card'; import Card from '../../../card';
export interface ProgressValue {
title: string,
state: number,
logs: any
}
export interface ProgressProps { export interface ProgressProps {
effect?: any[] effect: ProgressValue[]
} }
const ProgressLayout: React.FC<ProgressProps> = (props: any) => { const ProgressLayout: React.FC<ProgressProps> = (props: any) => {
......
...@@ -9,14 +9,24 @@ import { FORM_FILTER_PATH } from '@/formSchema/const'; ...@@ -9,14 +9,24 @@ import { FORM_FILTER_PATH } from '@/formSchema/const';
import NiceForm from '@/components/NiceForm'; import NiceForm from '@/components/NiceForm';
import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilterSearch'; import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilterSearch';
import { searchSelectGetSelectCategoryOptionEffect } from '@/pages/transaction/effect/index'; import { searchSelectGetSelectCategoryOptionEffect } from '@/pages/transaction/effect/index';
import { Numberify } from '@ctrl/tinycolor';
const { Text } = Typography; const { Text } = Typography;
const formActions = createFormActions(); const formActions = createFormActions();
const QuotationDetailsDrawer = (props: any) => { interface QuotationDetailsDrawerProps {
const { visible, onClose, schemaType, effects, reload, fetch, quotationDetailsId, number } = props; visible: boolean,
effects: any,
fetch: Promise<any>,
quotationDetailsId : number,
number : number,
onClose: () => void
}
const QuotationDetailsDrawer:React.FC<QuotationDetailsDrawerProps> = (props: any) => {
const { visible, onClose, effects, fetch, quotationDetailsId, number } = props;
const tableRef = useRef<any>({}); const tableRef = useRef<any>({});
useEffect(() => { useEffect(() => {
tableRef.current?.reload && tableRef.current?.reload(); tableRef.current?.reload && tableRef.current?.reload();
...@@ -127,9 +137,6 @@ const QuotationDetailsDrawer = (props: any) => { ...@@ -127,9 +137,6 @@ const QuotationDetailsDrawer = (props: any) => {
searchSelectGetSelectCategoryOptionEffect(actions, 'category') searchSelectGetSelectCategoryOptionEffect(actions, 'category')
}) })
}} }}
// schema={
// schemaType && SchemaRender()
// }
> >
</NiceForm> </NiceForm>
} }
......
...@@ -18,8 +18,8 @@ const LOGSTATESTYPE = { ...@@ -18,8 +18,8 @@ const LOGSTATESTYPE = {
} }
// recordType做加法 // recordType做加法
export interface ProgressProps { export interface ProgressProps {
externalColors: any, externalColors: (text: any) => string,
internalColors: any, internalColors: (text: any) => string,
layoutId?: string, layoutId?: string,
layoutTitle?: string layoutTitle?: string
} }
......
import React, { useMemo } from 'react' import React, { useMemo } from 'react'
import { Row, Col, Tag, Modal } from 'antd' import { Modal } from 'antd'
import moment from 'moment'; import moment from 'moment';
import { getAuth } from '@/utils/auth'; import { getAuth } from '@/utils/auth';
...@@ -8,8 +8,8 @@ import style from './index.less' ...@@ -8,8 +8,8 @@ import style from './index.less'
interface ThankItemProps { interface ThankItemProps {
visible: boolean, visible: boolean,
detail?: any, detail: any,
onOk?: Function onOk: () => void
} }
const ThankItem: React.FC<ThankItemProps> = (props: any) => { const ThankItem: React.FC<ThankItemProps> = (props: any) => {
......
...@@ -9,7 +9,7 @@ import StatusTag from '@/components/StatusTag'; ...@@ -9,7 +9,7 @@ import StatusTag from '@/components/StatusTag';
import { Context } from '../../components/detail/components/context'; import { Context } from '../../components/detail/components/context';
import PeripheralLayout from '../../components/detail'; import PeripheralLayout from '../../components/detail';
import ProgressLayout from '../../components/detail/components/progressCommonLayout'; import ProgressLayout, { ProgressValue } from '../../components/detail/components/progressCommonLayout';
import RecordCommonLayout from '../../components/detail/components/recordCommonLayout'; import RecordCommonLayout from '../../components/detail/components/recordCommonLayout';
import MaterialLayout from '../../components/detail/components/materialLayout'; import MaterialLayout from '../../components/detail/components/materialLayout';
import BidCommonLayout from '../../components/detail/components/bidCommonLayout'; import BidCommonLayout from '../../components/detail/components/bidCommonLayout';
...@@ -51,17 +51,14 @@ const SearchDetail = () => { ...@@ -51,17 +51,14 @@ const SearchDetail = () => {
number, number,
isPrize isPrize
}, },
pathname,
} = history.location; } = history.location;
const [path] = useState(pathname.split('/')[pathname.split('/').length - 1]);
const [pathPci] = useState(pathname.split('/')[pathname.split('/').length - 2]);
// 竞价过程 // 竞价过程
const [progressVisible, setProgressVisible] = useState<boolean>(false); const [progressVisible, setProgressVisible] = useState<boolean>(false);
const [progressData, setProgressData] = useState<any>([]); const [progressData, setProgressData] = useState<any>([]);
// 详情数据 // 详情数据
const [dataSource, setDataSource] = useState<any>({}); const [dataSource, setDataSource] = useState<any>({});
// 流转数据数据 // 流转数据数据
const [progressEffect, setProgressEffect] = useState<any>([]); const [progressEffect, setProgressEffect] = useState<ProgressValue[]>([]);
// 基本信息数据 // 基本信息数据
const [basicEffect, setBasicEffect] = useState<any>([]); const [basicEffect, setBasicEffect] = useState<any>([]);
// 竞价结果数据 // 竞价结果数据
......
...@@ -13,7 +13,7 @@ import styles from './index.less'; ...@@ -13,7 +13,7 @@ import styles from './index.less';
import OfferItem from '../offer'; import OfferItem from '../offer';
interface HistoryItemProps { interface HistoryItemProps {
detail?: any detail: any
} }
const HistoryItem: React.FC<HistoryItemProps> = (props: any) => { const HistoryItem: React.FC<HistoryItemProps> = (props: any) => {
......
...@@ -10,7 +10,7 @@ import styles from './index.less'; ...@@ -10,7 +10,7 @@ import styles from './index.less';
interface OfferItemProps { interface OfferItemProps {
detail?: any detail: any
} }
const OfferItem: React.FC<OfferItemProps> = (props: any) => { const OfferItem: React.FC<OfferItemProps> = (props: any) => {
......
...@@ -12,10 +12,10 @@ import styles from './index.less'; ...@@ -12,10 +12,10 @@ import styles from './index.less';
interface ConfirmBidResultModalProps { interface ConfirmBidResultModalProps {
title: string, title: string,
visible: boolean, visible: boolean,
onCancel?: Function,
onOk?: Function,
record: any, record: any,
fetch: Promise<any> fetch: Promise<any>,
onCancel: () => void,
onOk: () => void
} }
const isForType = { const isForType = {
......
...@@ -11,8 +11,8 @@ import styles from './index.less'; ...@@ -11,8 +11,8 @@ import styles from './index.less';
interface SubmitResultModalProps { interface SubmitResultModalProps {
title: string, title: string,
visible: boolean, visible: boolean,
onCancel?: Function, onCancel: () => void,
onOk?: Function, onOk: (signUpIdea: string, urls: any) => void,
} }
const SubmitResultModal: React.FC<SubmitResultModalProps> = (props: any) => { const SubmitResultModal: React.FC<SubmitResultModalProps> = (props: any) => {
......
...@@ -11,7 +11,7 @@ import StatusTag from '@/components/StatusTag'; ...@@ -11,7 +11,7 @@ import StatusTag from '@/components/StatusTag';
import { Context } from '../../components/detail/components/context'; import { Context } from '../../components/detail/components/context';
import PeripheralLayout from '../../components/detail'; import PeripheralLayout from '../../components/detail';
import ProgressLayout from '../../components/detail/components/progressCommonLayout'; import ProgressLayout, { ProgressValue } from '../../components/detail/components/progressCommonLayout';
import RecordCommonLayout from '../../components/detail/components/recordCommonLayout'; import RecordCommonLayout from '../../components/detail/components/recordCommonLayout';
import MaterialLayout from '../../components/detail/components/materialLayout'; import MaterialLayout from '../../components/detail/components/materialLayout';
import DemandLayout from '../../components/detail/components/purchaseBidDemandLayout'; import DemandLayout from '../../components/detail/components/purchaseBidDemandLayout';
...@@ -61,7 +61,6 @@ const SearchDetail = () => { ...@@ -61,7 +61,6 @@ const SearchDetail = () => {
}, },
pathname, pathname,
} = history.location; } = history.location;
const [path] = useState(pathname.split('/')[pathname.split('/').length - 1]);
const [pathPci] = useState(pathname.split('/')[pathname.split('/').length - 2]); const [pathPci] = useState(pathname.split('/')[pathname.split('/').length - 2]);
const [visible, setVisible] = useState<boolean>(false); const [visible, setVisible] = useState<boolean>(false);
// 确认竞价结果 // 确认竞价结果
...@@ -75,7 +74,7 @@ const SearchDetail = () => { ...@@ -75,7 +74,7 @@ const SearchDetail = () => {
const [quotationDetailsId, setQuotationDetailsId] = useState<number>(); const [quotationDetailsId, setQuotationDetailsId] = useState<number>();
const [dataSource, setDataSource] = useState<any>({}); const [dataSource, setDataSource] = useState<any>({});
// 流转数据数据 // 流转数据数据
const [progressEffect, setProgressEffect] = useState<any>([]); const [progressEffect, setProgressEffect] = useState<ProgressValue[]>([]);
// 基本信息数据 // 基本信息数据
const [basicEffect, setBasicEffect] = useState<any>([]); const [basicEffect, setBasicEffect] = useState<any>([]);
// 竞价结果数据 // 竞价结果数据
......
...@@ -13,7 +13,6 @@ import { ...@@ -13,7 +13,6 @@ import {
import { QuestionCircleOutlined } from '@ant-design/icons'; import { QuestionCircleOutlined } from '@ant-design/icons';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
import { formatTimeString } from '@/utils' import { formatTimeString } from '@/utils'
import style from './index.less'; import style from './index.less';
...@@ -32,7 +31,7 @@ const layout: any = { ...@@ -32,7 +31,7 @@ const layout: any = {
interface Iprops { interface Iprops {
currentRef: any, currentRef: any,
fetchdata: any, fetchdata: any,
onBadge?: Function onBadge: (num: number, idx: number) => void
} }
const BasicInfo: React.FC<Iprops> = (props: any) => { const BasicInfo: React.FC<Iprops> = (props: any) => {
......
...@@ -26,7 +26,7 @@ const layout: any = { ...@@ -26,7 +26,7 @@ const layout: any = {
interface Iprops { interface Iprops {
currentRef: any, currentRef: any,
fetchdata: any, fetchdata: any,
onBadge?: Function, onBadge: (num: number, idx: number) => void,
exRef: any exRef: any
} }
......
...@@ -21,7 +21,7 @@ const layout: any = { ...@@ -21,7 +21,7 @@ const layout: any = {
interface Iprops { interface Iprops {
currentRef: any, currentRef: any,
fetchdata: any, fetchdata: any,
onBadge?: Function, onBadge: (num: number, idx: number) => void,
exRef: any exRef: any
} }
......
...@@ -18,7 +18,7 @@ const layout: any = { ...@@ -18,7 +18,7 @@ const layout: any = {
interface Iprops { interface Iprops {
currentRef: any, currentRef: any,
fetchdata: { [key: string]: any }, fetchdata: { [key: string]: any },
onBadge?: Function onBadge: (num: number, idx: number) => void
} }
export type ADDRESS_TYPE = { export type ADDRESS_TYPE = {
......
...@@ -13,9 +13,15 @@ import styles from './index.less'; ...@@ -13,9 +13,15 @@ import styles from './index.less';
const { TabPane } = Tabs; const { TabPane } = Tabs;
interface RankItemDetail {
dynamic : any,
queryPriceDynamics : any,
signupMembers : any
}
interface RankItemProps { interface RankItemProps {
onTabChange: Function, onTabChange: (key: string) => void,
detail?: any detail: RankItemDetail
} }
const RankItem: React.FC<RankItemProps> = (props: any) => { const RankItem: React.FC<RankItemProps> = (props: any) => {
......
...@@ -13,8 +13,8 @@ import TriangleTag from '../triangleTag'; ...@@ -13,8 +13,8 @@ import TriangleTag from '../triangleTag';
import styles from './index.less'; import styles from './index.less';
interface RankRowProps { interface RankRowProps {
detail?: any, detail: any,
rowType?: number rowType?: (1 | 2) & number
} }
const RankForLeve = { const RankForLeve = {
......
...@@ -13,8 +13,8 @@ const { Text } = Typography; ...@@ -13,8 +13,8 @@ const { Text } = Typography;
interface DetailBottomDrawerProps { interface DetailBottomDrawerProps {
visible: boolean, visible: boolean,
onClose?: Function, onClose: () => void,
detail?: any detail: any
} }
const DetailBottomDrawer: React.FC<DetailBottomDrawerProps> = (props: any) => { const DetailBottomDrawer: React.FC<DetailBottomDrawerProps> = (props: any) => {
......
...@@ -10,8 +10,8 @@ import DetailBottomDrawer from './detailBottomDrawer' ...@@ -10,8 +10,8 @@ import DetailBottomDrawer from './detailBottomDrawer'
import styles from './index.less' import styles from './index.less'
interface StatuBoxProps { interface StatuBoxProps {
detail: any,
hasBidBtn?: boolean, hasBidBtn?: boolean,
detail?: any
} }
const transforType = { const transforType = {
......
...@@ -4,9 +4,9 @@ import styles from './index.less'; ...@@ -4,9 +4,9 @@ import styles from './index.less';
interface TriangleTagProps { interface TriangleTagProps {
text: string, text: string,
wrapStyle: React.CSSProperties,
bgcolor?: string, bgcolor?: string,
direction?: string, direction?: string,
wrapStyle: React.CSSProperties
} }
const TriangleTag: React.FC<TriangleTagProps> = (props: any) => { const TriangleTag: React.FC<TriangleTagProps> = (props: any) => {
......
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