|
@ -339,6 +339,19 @@ const handleExport = async () => { |
|
|
// 发起导出 |
|
|
// 发起导出 |
|
|
loadStart() |
|
|
loadStart() |
|
|
const excelTitle = ref(route.meta.title) |
|
|
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) |
|
|
const data = await ProductreceiptRecordMainApi.exportProductreceiptRecordMain(tableObject.params) |
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
} catch { |
|
|
} catch { |
|
|