import './card-proj-agent.css' import {OrderedListOutlined, NumberOutlined, SearchOutlined} from "@ant-design/icons"; import { Tag } from 'antd'; import {IAgent} from "../../interfaces/agent/IAgent.ts"; export default function CardProjAgent(props: IAgent) { /** * 接单状态 */ 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.projName}
代理商:{props.basicsName} 订单号:{props.orderNumber}

金额¥:{props.orderShoppingAmount / 100}
{props.gmtCreate}
协议清单 补正数量({props.materialAmendApplyCount})
查看结果

{renderTakeStatus()} {renderAgreementStatus()} {renderOverStatus()}
) }