Browse Source

导出

hella_online_20241128
yufei_wang 7 days ago
parent
commit
e9883d2c46
  1. 6
      src/views/wms/inventoryManage/transaction/index.vue

6
src/views/wms/inventoryManage/transaction/index.vue

@ -176,16 +176,14 @@ const handleDelete = async (id: number) => {
/** 导出按钮操作 */ /** 导出按钮操作 */
const handleExport = async () => { const handleExport = async () => {
const checkData = await TransactionApi.checkExportTransaction(tableObject.params)
console.log('checkData',checkData)
try { try {
// //
await message.exportConfirm() await message.exportConfirm()
// //
loadStart() loadStart()
const excelTitle = ref(route.meta.title) const excelTitle = ref(route.meta.title)
const checkData = await TransactionApi.checkExportTransaction(tableObject.params)
console.log('checkData',checkData)
const data = await TransactionApi.exportTransaction(tableObject.params) const data = await TransactionApi.exportTransaction(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {

Loading…
Cancel
Save