This commit is contained in:
qsh
2024-12-05 17:22:40 +08:00
parent fc22c16cb1
commit df3a4b9f46
2 changed files with 29 additions and 1 deletions

View File

@@ -192,6 +192,7 @@
<el-form-item>
<el-button @click="handleSearch" v-hasPermi="['clue:order:return-search']">查询</el-button>
<el-button @click="handleReset" v-hasPermi="['clue:order:return-reset']">重置</el-button>
<el-button @click="handleExport" v-hasPermi="['clue:order:return-export']">导出</el-button>
<el-button @click="batchAudit" v-hasPermi="['clue:order:return-batch-audit']">
批量审核
</el-button>
@@ -423,8 +424,10 @@ import DialogFeebackDetail from './DialogFeebackDetail.vue'
import DialogBatchAudit from './DialogBatchAudit.vue'
import { removeNullField } from '@/utils'
import download from '@/utils/download'
import { useAppStore } from '@/store/modules/app'
import { dateFormatter, formatDate } from '@/utils/formatTime'
import { ElLoading } from 'element-plus'
const userStore = useUserStore()
const message = useMessage() // 消息弹窗
@@ -518,6 +521,26 @@ async function getList() {
}
}
async function handleExport() {
try {
ElLoading.service({
lock: true,
text: '正在导出数据,请稍后...',
background: 'rgba(0, 0, 0, 0.7)'
})
const params = removeNullField(searchForm.value)
delete params.pageNo
delete params.pageSize
const data = await FeebackApi.exportPayment(params)
download.excel(data, `汇款记录表${new Date().getTime()}.xls`)
} finally {
setTimeout(() => {
const loadingInstance = ElLoading.service()
loadingInstance.close()
}, 400)
}
}
const batchIds = ref([])
function handleSelectionChange(val) {
batchIds.value = val.map((it) => it.id)