Files
TakeoutSaaS.TenantUI/apps/web-antd/src/views/finance/cost/components/CostDetailDeleteModal.vue

37 lines
699 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script setup lang="ts">
/**
* 文件职责:成本明细删除确认弹窗。
*/
import { Modal } from 'ant-design-vue';
interface Props {
itemName?: string;
open: boolean;
}
defineProps<Props>();
const emit = defineEmits<{
(event: 'cancel'): void;
(event: 'confirm'): void;
}>();
</script>
<template>
<Modal
:open="open"
title="删除明细"
ok-text="确认删除"
ok-type="danger"
cancel-text="取消"
@cancel="emit('cancel')"
@ok="emit('confirm')"
>
<p class="fc-delete-tip">
确认删除明细项
<strong>{{ itemName || '未命名项' }}</strong>
删除后需重新保存才会生效
</p>
</Modal>
</template>