<template>
    <el-dialog width="50vw" title="申请办结" v-model="show">
        <div style="height: 400px" class="mt-20">
            <p>请确认已按要求上传相关佐证材料，待</p>
            <template v-if="negative.approvalFlow === ApprovalFlow.SECOND">
                <h3 >{{ negative.handleSecondDepartName || '二级机构' }}</h3>
                <p style="margin-bottom: 40px">审核通过后，即可完成办理。</p>
            </template>
            <template v-else>
                <h3>{{ negative.handleSecondDepartName || '二级机构' }} → 市局专班</h3>
                <p style="margin-bottom: 40px">逐级审核通过后即可完成办理。</p>
            </template>
            
            
        </div>

        <footer class="flex end">
            <el-button type="primary" size="large" @click="submit"
                >提交办结</el-button
            >
        </footer>
    </el-dialog>
</template>
<script setup>
import { ApprovalFlow } from '@/enums/dictEnums'
const negative = inject("negative");
const emit = defineEmits(["submit"]);
const show = ref(false);

function submit() {
    show.value = false;
    emit("submit");
}

async function open() {
    show.value = true;
}

defineExpose({
    open
});
</script>
<style lang="scss" scoped>

</style>