wupengfei
2025-05-06 e9dda9e6c52cb737267185f5118ded73c0053115
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<template>
  <ProDialog title="材料详情" v-model="visible" destroy-on-close draggable width="800px">
    <FourStreamsMaterialFileTable v-model:list="form.list" v-bind="props" />
    <template #footer>
      <span class="dialog-footer">
        <el-button type="primary" @click="handleConfirm">确 定</el-button>
      </span>
    </template>
  </ProDialog>
</template>
 
<script setup lang="ts">
import { ProDialog } from '@bole-core/components';
import FourStreamsMaterialFileTable from './FourStreamsMaterialFileTable.vue';
import { FourStreamsMaterialFileTableProps } from './types';
import { CustomerApplyFileTypeListItem } from './utils';
 
defineOptions({
  name: 'MateriaDetailDialog',
});
 
type Props = FourStreamsMaterialFileTableProps & {};
 
const props = withDefaults(defineProps<Props>(), {
  showUploadBtn: true,
  showCheckBtn: true,
  showDownloadBtn: true,
  showDeleteBtn: true,
});
 
const visible = defineModel({ type: Boolean });
 
type Form = {
  list: CustomerApplyFileTypeListItem[];
};
 
const form = defineModel<Form>('form');
 
const emit = defineEmits<{
  (e: 'onConfirm'): void;
  (e: 'onCancel'): void;
}>();
 
function handleConfirm() {
  emit('onConfirm');
}
</script>