| | |
| | | v-bind="dialogProps" |
| | | :name="''" |
| | | :zipName="currentFourStreamsMaterialFileTableItem.fileTypeName" |
| | | :fileSearchTypeId="currentFourStreamsMaterialFileTableItem.fileSearchTypeId" |
| | | v-model:fileList="currentFourStreamsMaterialFileTableItem.listFiles" |
| | | :showDeleteBtn="showDeleteBtn" |
| | | :showMaterialExtraFileDeleteBtn="showMaterialExtraFileDeleteBtn" |
| | | :yearMonth="date" |
| | | :onDelete="(file) => handleDialogDelete(currentFourStreamsMaterialFileTableItem, file)" |
| | | /> |
| | |
| | | import { Message, isFileCanPreview, downloadWithZip } from '@bole-core/core'; |
| | | import { useDefineColumns } from '@/hooks'; |
| | | import FourStreamsBatchMaterialFileDialog from './FourStreamsBatchMaterialFileDialog.vue'; |
| | | import { CustomerApplyFileTypeListItem } from './utils'; |
| | | import { CustomerApplyFileTypeListItem, EnterpriseApplyFileUtils } from './utils'; |
| | | import { FourStreamsExtraMaterialFileSearchType, SearchType } from '@/constants'; |
| | | |
| | | defineOptions({ |
| | | name: 'FourStreamsMaterialFileTable', |
| | |
| | | |
| | | const props = withDefaults(defineProps<FourStreamsMaterialFileTableProps>(), { |
| | | showUploadBtn: true, |
| | | showMaterialExtraFileUploadBtn: false, |
| | | showCheckBtn: true, |
| | | showDownloadBtn: true, |
| | | showDeleteBtn: true, |
| | | showMaterialExtraFileDeleteBtn: false, |
| | | downloadBtnText: '下载', |
| | | }); |
| | | |
| | |
| | | }, |
| | | extraProps: { |
| | | hide: (row: CustomerApplyFileTypeListItem) => { |
| | | if (EnterpriseApplyFileUtils.isApplyUploadExtraFileSearchTypeId(row.fileSearchTypeId)) { |
| | | return !props.showMaterialExtraFileUploadBtn; |
| | | } |
| | | return !props.showUploadBtn; |
| | | // if (!props.showUploadBtn) return true; |
| | | // let fileList = row?.fileList?.filter?.((item) => item.status === 'success'); |
| | |
| | | }, |
| | | extraProps: { |
| | | hide: (row: CustomerApplyFileTypeListItem) => { |
| | | if (EnterpriseApplyFileUtils.isApplyUploadExtraFileSearchTypeId(row.fileSearchTypeId)) { |
| | | if (!props.showMaterialExtraFileDeleteBtn) return true; |
| | | } else { |
| | | if (!props.showDeleteBtn) return true; |
| | | } |
| | | let fileList = row?.listFiles?.filter?.((item) => item.status === 'success'); |
| | | return !fileList?.length; |
| | | }, |