| | |
| | | import { ref } from 'vue' |
| | | import { ElMessageBox, ElMessage } from 'element-plus' |
| | | import filePreview from '@/components/filePreview/index.vue' |
| | | import { delCommonFile } from '@/api/publicApi/commonFile.js' |
| | | import { delCommonFileInvoiceLedger} from '@/api/publicApi/commonFile.js' |
| | | |
| | | const dialogVisible = ref(false) |
| | | const tableData = ref([]) |
| | |
| | | cancelButtonText: '取消', |
| | | type: 'warning', |
| | | }).then(() => { |
| | | delCommonFile([row.id]).then(() => { |
| | | delCommonFileInvoiceLedger([row.id]).then(() => { |
| | | ElMessage.success('删除成功') |
| | | // 从列表中移除已删除的附件 |
| | | const index = tableData.value.findIndex(item => item.id === row.id) |