diff --git a/src/views/cai/accountCash/import-audit-account-cash-dialog.vue b/src/views/cai/accountCash/import-audit-account-cash-dialog.vue new file mode 100644 index 0000000..6cdb828 --- /dev/null +++ b/src/views/cai/accountCash/import-audit-account-cash-dialog.vue @@ -0,0 +1,82 @@ + + + + + 将文件拖到此处,或点击上传 + + + 使用方法 + 1、数据导出成excel + 2、根据excel中的数据进行手工打款 + 3、将excel中的数据导回系统,即可自动对excel中的数据自动审核通过 + 删除excel中的数据,可选择性的过滤掉数据不进行审核通过 + + 仅允许导入xls、xlsx格式文件。 + + + + + + diff --git a/src/views/cai/accountCash/index.vue b/src/views/cai/accountCash/index.vue index ac6aa39..0ff071a 100644 --- a/src/views/cai/accountCash/index.vue +++ b/src/views/cai/accountCash/index.vue @@ -1,6 +1,14 @@ + + + 导出 + + 导入(批量通过) + + @@ -119,6 +138,7 @@ :limit.sync="queryParams.pageSize" @pagination="getList" /> + @@ -131,13 +151,18 @@ import { listAccountCash } from '@/api/cai/accountCash' import {cashStatusList} from '@/constant/statusMap' +import ImportAuditAccountCashDialog from '@/views/cai/accountCash/import-audit-account-cash-dialog.vue' export default { name: "AccountCash", + components:{ + ImportAuditAccountCashDialog + }, data() { return { systemName: process.env.VUE_APP_SYSTEM_HOME, cashStatusList, + importAuditAccountCashVisible:false, // 遮罩层 loading: true, // 选中数组 @@ -161,6 +186,7 @@ export default { cardName: undefined, cardAccount: undefined, status: 1, + id: undefined }, }; }, @@ -187,6 +213,12 @@ export default { this.resetForm("queryForm"); this.handleQuery(); }, + handleImport(){ + this.importAuditAccountCashVisible = true + this.$nextTick(() => { + this.$refs.importAuditAccountCash.init() + }) + }, // 多选框选中数据 handleSelectionChange(selection) { this.ids = selection.map(item => item.id)
使用方法
1、数据导出成excel
2、根据excel中的数据进行手工打款
3、将excel中的数据导回系统,即可自动对excel中的数据自动审核通过
删除excel中的数据,可选择性的过滤掉数据不进行审核通过