@ -74,12 +74,12 @@ export const deleteProductputawayRecordMain = async (id: number) => {
// 导出制品上架记录主 Excel
export const exportProductputawayRecordMain = async (params) => {
params.type = 'assemble'
if (params.isSearch) {
const cmd = {
'column':'type',
'action':'==',
'value':'assemble'
'value':params.type
}
params.filters.push(cmd)
delete params.isSearch
@ -158,6 +158,7 @@ const handleExport = async () => {
// 发起导出
loadStart()
const excelTitle = ref(route.meta.title)
tableObject.params.type = 'predict'
const data = await ProductputawayRecordMainApi.exportProductputawayRecordMain(tableObject.params)
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
tableObject.params.type = 'assemble'