<template>
  <!-- 点价审核-->
  <a-modal class="business_review_someprice_audit custom-detail"
           title="点价审核"
           v-model:visible="visible"
           centered
           :maskClosable="maskClosableFlag"
           @cancel="cancel"
           width="890px">
    <template #footer>
      <a-button key="submit"
                type="primary"
                :loading="loading.loading"
                @click="submit">关闭</a-button>
    </template>

  </a-modal>
</template>

<script lang="ts">
import { defineComponent, PropType, ref } from 'vue';
import { closeModal } from '@/common/setup/modal/index';
import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
import { getStatusName } from '@/views/information/custom/setup';
import { formatValue, formatTime } from '@/common/methods';

export default defineComponent({
    name: 'business_review_someprice_audit',
    components: {},
    props: {
        selectedRow: {
            type: Object as PropType<QueryCustomInfoType>,
            default: {},
        },
    },
    setup(props) {
        const { visible, cancel } = closeModal('business_review_someprice_audit');
        const loading = ref<boolean>(false);
        const maskClosableFlag = ref<boolean>(false);
        function submit() {
            loading.value = true;
            setTimeout(() => {
                loading.value = false;
                cancel();
            }, 2000);
        }
        return {
            visible,
            cancel,
            submit,
            loading,
            formatValue,
            getStatusName,
            maskClosableFlag,
        };
    },
});
</script>

<style lang="less">
.business_review_someprice_audit {
    .ant-form.inlineForm {
        margin-top: 20px;
    }
}
</style>;
