jilu.vue 5.11 KB
<template>
    <a-modal title="分类列表" :width="1200" :centered="true" v-model="fenleiliebiao" cancelText="关闭" style="top:20px;"
        :maskClosable="false" @ok="fenleiOk">
        <div>
            <a-table ref="table" size="middle" bordered :columns="bankData" :dataSource="jiluString" :pagination="false"
                :loading="loading" :rowKey="(record, index) => index" @change="handleTableChange">
            </a-table>
        </div>
    </a-modal>
</template>
  <script>
import { JeecgListMixin } from '@/mixins/CoreListMixin'
import { deleteCollCusBankAccount } from '@/api/configApi'
import { formatAmount, formatAmountFen, reverseAmountFen, reverseAmount } from '@/utils/format'
export default {
    name: 'commonBankAccountTable',
    mixins: [JeecgListMixin],
    components: {
    },
    props: {
        jiluString: {
            type: Array,
            default: () => {
                return [];
            }
        }
    },
    data() {
        return {
            title: '',
            titleModal: '',
            visible: false,
            confirmLoading: false,
            fenleiliebiao: false,
            collCusBankAccountList: {},
            bankData: [
                {
                    title: '序号',
                    dataIndex: '',
                    key: 'rowIndex',
                    align: 'center',
                    width: 60,
                    customRender: function (t, r, index) {
                        return parseInt(index) + 1
                    }
                },
                {
                    title: '分类日期',
                    align: 'center',
                    width: 180,
                    dataIndex: 'classificationTime'
                },
                {
                    title: '分类前状态',
                    align: 'center',
                    width: 120,
                    dataIndex: 'beforeClassificationStatus',
                    customRender: (t, r, index) => {
                        if (t == 1) {
                            return '关注'
                        } else if (t == 2) {
                            return '次级'
                        } else if (t == 3) {
                            return '可疑'
                        } else if (t == 4) {
                            return '损失'
                        } else if (t == 0) {
                            return '正常'
                        }
                    }
                },
                {
                    title: '分类后状态',
                    align: 'center',
                    dataIndex: 'afterClassificationStatus',
                    width: 120,
                    customRender: (t, r, index) => {
                        if (t == 1) {
                            return '关注'
                        } else if (t == 2) {
                            return '次级'
                        } else if (t == 3) {
                            return '可疑'
                        } else if (t == 4) {
                            return '损失'
                        } else if (t == 0) {
                            return '正常'
                        }
                    }
                },
                {
                    title: '当前账期',
                    align: 'center',
                    dataIndex: 'stagesIndex',
                    width: 120,
                    customRender: (t, r, index) => {
                        return t + '/' + r.countStages
                    }
                },
                {
                    title: '最长逾期天数',
                    align: 'center',
                    dataIndex: 'maximumOverdueDays',
                    width: 120,
                },
                {
                    title: '剩余应还本息(元)',
                    align: 'center',
                    dataIndex: 'dueSumMoney',
                    width: 180,
                    customRender: (t, r, index) => {
                        return formatAmount(t.toFixed(2), 2)
                    }
                },
                {
                    title: '分类类型',
                    align: 'center',
                    dataIndex: 'classificationType',
                    width: 120,
                    customRender: (t, r, index) => {
                        if (t == 1) {
                            return '手动'
                        } else if (t == 0) {
                            return '自动'
                        }
                    }
                },
                {
                    title: '操作人',
                    align: 'center',
                    dataIndex: 'operator',
                    width: 120,
                },
            ],
            disableMixinCreated: true,
        }
    },
    methods: {
        edit(username) {
            console.log(username)
            this.fenleiliebiao = true
            this.confirmLoading = true
            this.confirmLoading = false
        },
        handleCancel() {
            this.close()
        },
        fenleiOk() {
            this.fenleiliebiao = false
        },
    }
}
</script>
  <style>
  </style>