import React from "react";
import { Popover, Table } from "antd";
import { useStore } from "../index";
import { CompanyCategoryTypeEnum, ExpireRepayRuleEnum } from "@/pages/finance/entitys";
import rmb from "@/utils/rmb";
import { ExclamationCircleFilled } from "@ant-design/icons";
const { Column } = Table;
enum DepositPayMethodEnum {
"前期一次性支付" = 1,
"每张票支付",
}
export default function SalesFinanceList() {
const { setCurrent, setVisible, companyList, loading } = useStore();
return (
`${name}(${CompanyCategoryTypeEnum[row.compCategory!]})`}
width={120}
/>
提示:
保证金指真实的保证金,而非票据保证金账户上的钱
}
>
还款保证金账户
}
dataIndex="depositAccountName"
align="center"
render={(name) => name || "-"}
width={120}
/>
count.toFixed(2)} width={120} />
`${rmb.p(count)}${row.depositType == 1 ? "元" : "%"}`}
width={120}
/>
DepositPayMethodEnum[v]} width={120} />
`${count.toFixed(2)}%`} width={120} />
(m ? `${m}个月` : "-")} width={120} />
(d ? `${d}个工作日` : "-")}
width={120}
/>
{/* 票据到期还款推送 */}
票据内剩余总金额=票据内已还款总金额-票据到期金额
票据内剩余总金额≥0,不推票据到期还款待办
票据内剩余总金额<0,推票据到期还款待办,金额对应为票据内剩余总金额
>
}
>
票据到期还款推送
}
dataIndex="expireRepayRule"
render={(d: number) => d && ExpireRepayRuleEnum[d]}
width={120}
/>
(val ? "支持" : "不支持")} />
(r.toLoan ? `${v}${r.toLoanDueTimeTypeName}` || "-" : "-")}
width={120}
/>
(row.toLoan ? (count ? `${count.toFixed(2)}%` : "-") : "-")}
width={120}
/>
(row.toLoan ? (day ? `每月${day}日` : "-") : "-")}
width={120}
/>
(row.toLoan ? (day ? `${day || 0}工作日` : "-") : "-")}
width={120}
/>
(val ? "支持" : "不支持")} />
(row.loan ? (count ? `${count.toFixed(2)}%` : "-") : "-")}
width={120}
/>
(row.loan ? (day ? `每月${day}日` : "-") : "-")}
width={120}
/>
(row.loan ? (day ? `${day || 0}工作日` : "-") : "-")}
width={120}
/>
(
<>
{
e.preventDefault();
setCurrent(record);
setVisible(true);
}}
>
编辑
>
)}
width={180}
/>
);
}