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

chore: 修改部分提示

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