|
@ -117,7 +117,9 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
getListApi: 'ProductionreturnJobMain'==routeName.value?ProductionreturnJobDetailApi.getProductionreturnJobDetailPageStore:ProductionreturnJobDetailApi.getProductionreturnJobDetailPageHold // 分页接口 |
|
|
// getListApi: 'ProductionreturnJobMain'==routeName.value?ProductionreturnJobDetailApi.getProductionreturnJobDetailPageStore:ProductionreturnJobDetailApi.getProductionreturnJobDetailPageHold // 分页接口 |
|
|
|
|
|
getListApi: ProductionreturnJobDetailApi.getProductionreturnJobDetailPage // 分页接口 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
@ -275,16 +277,17 @@ const handleExport = async () => { |
|
|
// 发起导出 |
|
|
// 发起导出 |
|
|
loadStart() |
|
|
loadStart() |
|
|
const excelTitle = ref(route.meta.title) |
|
|
const excelTitle = ref(route.meta.title) |
|
|
if('ProductionreturnJobMain'==routeName.value){ |
|
|
// if('ProductionreturnJobMain'==routeName.value){ |
|
|
//生产退料任务导出 |
|
|
// //生产退料任务导出 |
|
|
const data = await ProductionreturnJobMainApi.exportProductionreturnJobMainStore(tableObject.params) |
|
|
// const data = await ProductionreturnJobMainApi.exportProductionreturnJobMainStore(tableObject.params) |
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
// download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
}else{ |
|
|
// }else{ |
|
|
// 隔离退料任务导出 |
|
|
// // 隔离退料任务导出 |
|
|
const data = await ProductionreturnJobMainApi.exportProductionreturnJobMainHold(tableObject.params) |
|
|
// const data = await ProductionreturnJobMainApi.exportProductionreturnJobMainHold(tableObject.params) |
|
|
|
|
|
// download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
|
|
|
// } |
|
|
|
|
|
const data = await ProductionreturnJobMainApi.exportProductionreturnJobMain(tableObject.params) |
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} catch { |
|
|
} catch { |
|
|
} finally { |
|
|
} finally { |
|
|