<template>
  <!-- 充值审核详情-->
  <a-modal class="add-custom custom-detail"
           title="充值审核详情"
           centered
           v-model:visible="visible"
           :maskClosable="false"
           @cancel="cancel"
           width="890px">
    <template #footer>
      <a-button key="cancel"
                type="primary"
                :loading="loading"
                @click="cancel">关闭</a-button>
    </template>
    <CommomDetail :selectedRow="selectedRow" />
  </a-modal>
</template>
<script lang="ts">
import { _closeModal } from '@/common/setup/modal/modal';
import { QhjAccountOutInApply } from '@/services/go/ermcp/qhj/interface';
import { defineComponent, PropType, ref } from 'vue';
import CommomDetail from '../common-detail/index.vue';

export default defineComponent({
    name: 'platinum_withdrawal_review_detail-desc',
    emits: ['cancel', 'update'],
    components: { CommomDetail },
    props: {
        selectedRow: {
            type: Object as PropType<QhjAccountOutInApply>,
            default: {},
        },
    },
    setup(props, context) {
        // 控制关闭弹窗
        const { visible, cancel } = _closeModal(context);
        const loading = ref<boolean>(false);
        return {
            cancel,
            visible,
            loading,
        };
    },
});
</script>
