123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- import { ContentConfig } from "/@/components/PageContent";
- import { httpList } from "/@/api/InvoiceSales/capitalClaim";
- import dayjs from "dayjs";
- import { h } from "vue";
- import { ElTag } from "element-plus";
- import { capital_status } from "./configs";
- import { CAPITAL_STATUS } from "/@/utils/details/tragelog";
- const columns = [
- // {
- // type: "selection",
- // width: 55,
- // hide: ({ checkList }) => !checkList.includes("勾选列")
- // },
- // {
- // label: "序号",
- // type: "index",
- // width: 70,
- // hide: ({ checkList }) => !checkList.includes("序号列")
- // },
- {
- type: "expand",
- slot: "expand"
- },
- {
- label: "资金编号",
- prop: "tradNo",
- width: 140
- },
- {
- label: "状态",
- prop: "status",
- width: 100,
- cellRenderer: ({ row, props }) =>
- h(
- ElTag,
- {
- size: props.size
- },
- {
- default: () => {
- const status = row.logNo ? CAPITAL_STATUS : capital_status;
- return (
- status.find(s => String(row.status) === String(s.value))?.label ||
- "--"
- );
- }
- }
- )
- },
- {
- label: "收入金额",
- prop: "total_fee",
- width: 120
- },
- {
- label: "未认领金额",
- prop: "balance",
- width: 120
- },
- {
- label: "已认领金额",
- prop: "used_fee",
- width: 120
- },
- {
- label: "收款公司账户",
- prop: "trade_in_account",
- width: 145
- },
- {
- label: "交易行名",
- prop: "trade_bank",
- width: 160
- },
- {
- label: "付款单位账号",
- prop: "trade_account",
- width: 160
- },
- {
- label: "付款单位名称",
- prop: "trade_out",
- width: 160
- },
- {
- label: "交易时间",
- prop: "trade_time",
- width: 140
- },
- {
- label: "收款公司编号",
- prop: "companyNo",
- width: 145
- },
- {
- label: "收款公司名称",
- prop: "trade_in",
- width: 145
- },
- {
- label: "操作",
- fixed: "right",
- width: 60,
- slot: "operation"
- }
- ];
- const contentConfig: ContentConfig = {
- title: "资金认领管理",
- columns,
- isTree: true,
- apis: {
- httpList
- }
- };
- export default contentConfig;
|