|
|
@ -339,6 +339,19 @@ const handleExport = async () => { |
|
|
|
// 发起导出 |
|
|
|
loadStart() |
|
|
|
const excelTitle = ref(route.meta.title) |
|
|
|
debugger |
|
|
|
tableObject.params.type = 'predict' |
|
|
|
if (tableObject.params.isSearch){ |
|
|
|
const cmd = { |
|
|
|
'column':'type', |
|
|
|
'action':'==', |
|
|
|
'value':'predict' |
|
|
|
} |
|
|
|
if (!Array.isArray(tableObject.params.filters)) { |
|
|
|
tableObject.params.filters = []; |
|
|
|
} |
|
|
|
tableObject.params.filters.push(cmd) |
|
|
|
} |
|
|
|
const data = await ProductreceiptRecordMainApi.exportProductreceiptRecordMain(tableObject.params) |
|
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
} catch { |
|
|
|