|
|
@ -292,7 +292,9 @@ const getSearchTableData = async (number,formField,searchField)=>{ |
|
|
|
const HeadButttondata = [ |
|
|
|
defaultButtons.defaultAddBtn({ hasPermi: 'wms:purchase-plan-main:create' }), // 新增 |
|
|
|
defaultButtons.defaultImportBtn({ hasPermi: 'wms:purchase-plan-main:import' }), // 导入 |
|
|
|
defaultButtons.defaultExportBtn({ hasPermi: 'wms:purchase-plan-main:export' }), // 导出 |
|
|
|
// defaultButtons.defaultExportBtn({ hasPermi: 'wms:purchase-plan-main:export' }), // 导出 |
|
|
|
defaultButtons.defaultExportDetailsBtn({ hasPermi: 'wms:purchase-plan-main:export' }), // 导出明细 |
|
|
|
defaultButtons.defaultExportTableBtn({ hasPermi: 'wms:purchase-plan-main:export' }), // 导出二维表 |
|
|
|
// defaultButtons.mainListSelectionOrderPubBtn(null), // 批量发布 |
|
|
|
defaultButtons.defaultFreshBtn(null), // 刷新 |
|
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
@ -316,6 +318,10 @@ const getSearchTableData = async (number,formField,searchField)=>{ |
|
|
|
handleImport() |
|
|
|
} else if (val == 'export') { // 导出 |
|
|
|
handleExport() |
|
|
|
} else if (val == 'export-details') { // 导出明细 |
|
|
|
handleExportDetails() |
|
|
|
} else if (val == 'export-table') { // 导出二维表 |
|
|
|
handleExportTable() |
|
|
|
} else if (val == 'refresh') { // 刷新 |
|
|
|
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { |
|
|
|
searchFormClick({ |
|
|
@ -628,6 +634,33 @@ const handleSelectionPublish = async ()=>{ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const handleExportDetails = async () => { |
|
|
|
try { |
|
|
|
// 导出的二次确认 |
|
|
|
await message.exportConfirm() |
|
|
|
// 发起导出 |
|
|
|
exportLoading.value = true |
|
|
|
const data = await PurchasePlanMainApi.exportDetailsPurchasePlanMain(tableObject.params) |
|
|
|
download.excel(data, `${t('ts.要货计划明细')}.xlsx`) |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
|
exportLoading.value = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const handleExportTable = async () => { |
|
|
|
try { |
|
|
|
// 导出的二次确认 |
|
|
|
await message.exportConfirm() |
|
|
|
// 发起导出 |
|
|
|
exportLoading.value = true |
|
|
|
const data = await PurchasePlanMainApi.exportTablePurchasePlanMain(tableObject.params) |
|
|
|
download.excel(data, `${t('ts.要货计划二维表')}.xlsx`) |
|
|
|
} catch { |
|
|
|
} finally { |
|
|
|
exportLoading.value = false |
|
|
|
} |
|
|
|
} |
|
|
|
/** |
|
|
|
* tableForm方法 |
|
|
|
*/ |
|
|
|