Browse Source

导出

hella_online_20241128
yufei_wang 5 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 checkData = await TransactionApi.checkExportTransaction(tableObject.params)
console.log('checkData',checkData)
try {
//
await message.exportConfirm()
//
loadStart()
const excelTitle = ref(route.meta.title)
const checkData = await TransactionApi.checkExportTransaction(tableObject.params)
console.log('checkData',checkData)
const data = await TransactionApi.exportTransaction(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {

Loading…
Cancel
Save