import './card-proj-agent.css'
import {OrderedListOutlined, BarsOutlined, SearchOutlined} from "@ant-design/icons";
import {Tag} from 'antd';
import {IAgent} from "../../interfaces/agent/IAgent.ts";
import {useNavigate} from "react-router-dom";
export default function CardProjAgent(props: IAgent) {
const nav = useNavigate();
/**
* 接单状态
*/
const renderTakeStatus = () => {
if (props.isTake == 0) {
return 待结单;
}
if (props.isTake == 1) {
return 已接单;
}
if (props.isTake == 2) {
return 未接单;
}
return <>>;
}
/**
* 签订状态
*/
const renderAgreementStatus = () => {
if (props.isAgreement == 0) {
return 未签署协议;
}
if (props.isAgreement == 1) {
return 已签署协议;
}
return <>>;
}
/**
* 结束状态
*/
const renderOverStatus = () => {
if (props.isOver == 0) {
return 进行中;
}
if (props.isOver == 1) {
return 完成;
}
if (props.isOver == 2) {
return 终止
}
return <>>;
}
return (
代理商:{props.basicsName}
订单号:{props.orderNumber}
金额¥:{props.orderShoppingAmount / 100}
{props.gmtCreate}
{
props.isResult ? (
) : <>>
}
{renderTakeStatus()}
{renderAgreementStatus()}
{renderOverStatus()}
)
}