<template>
  <!-- 提货查询详情-->
  <a-modal class="add-custom custom-detail"
           title="提货查询详情"
           centered
           v-model:visible="visible"
           :maskClosable="false"
           @cancel="cancel"
           width="1000px">
    <template #footer>
      <a-button key="submit"
                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 { QhjTradeGoodsPickup } 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',
    components: { CommomDetail },
    emits: ['cancel', 'update'],
    props: {
        selectedRow: {
            type: Object as PropType<QhjTradeGoodsPickup>,
            default: {},
        },
    },
    setup(props, context) {
        // 控制关闭弹窗
        const { visible, cancel } = _closeModal(context);
        const loading = ref<boolean>(false);
        return {
            cancel,
            visible,
            loading,
        };
    },
});
</script>

<style lang="less">
.commom-des {
    .ant-descriptions-item-label {
        width: 156px;
    }
    .ant-descriptions-item-content {
        width: calc(100% - 156px);
    }
}
</style>
