|
@ -298,7 +298,7 @@ const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['ma |
|
|
return [] |
|
|
return [] |
|
|
} |
|
|
} |
|
|
return [ |
|
|
return [ |
|
|
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3','4','6']),hasPermi:'wms:container-main-request:close'}), // 关闭 |
|
|
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['2','3','4','6']),hasPermi:'wms:container-main-request:close'}), // 关闭 |
|
|
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['4','5']),hasPermi:'wms:container-main-request:reAdd'}), //重新添加 |
|
|
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['4','5']),hasPermi:'wms:container-main-request:reAdd'}), //重新添加 |
|
|
defaultButtons.mainListSubmitBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:container-main-request:submit'}), // 提交审批 |
|
|
defaultButtons.mainListSubmitBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:container-main-request:submit'}), // 提交审批 |
|
|
defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:container-main-request:refused'}), // 驳回 |
|
|
defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:container-main-request:refused'}), // 驳回 |
|
@ -466,8 +466,19 @@ const handleExport = async () => { |
|
|
await message.exportConfirm() |
|
|
await message.exportConfirm() |
|
|
// 发起导出 |
|
|
// 发起导出 |
|
|
exportLoading.value = true |
|
|
exportLoading.value = true |
|
|
|
|
|
if(routeName.value == 'ReturnContainerManageRequest'){ |
|
|
|
|
|
const data = await ContainerMainRequestApi.exportReturnContainerMainRequest(tableObject.params) |
|
|
|
|
|
download.excel(data, '器具返回申请.xlsx') |
|
|
|
|
|
}else if ( routeName.value == 'MoveContainerManageRequest') { |
|
|
|
|
|
const data = await ContainerMainRequestApi.exportMoveContainerMainRequest(tableObject.params) |
|
|
|
|
|
download.excel(data, '器具转移申请.xlsx') |
|
|
|
|
|
}else if ( routeName.value == 'DeliverContainerManageRequest') { |
|
|
|
|
|
const data = await ContainerMainRequestApi.exportDeliverContainerMainRequest(tableObject.params) |
|
|
|
|
|
download.excel(data, '器具发运申请.xlsx') |
|
|
|
|
|
}else{ |
|
|
const data = await ContainerMainRequestApi.exportContainerMainRequest(tableObject.params) |
|
|
const data = await ContainerMainRequestApi.exportContainerMainRequest(tableObject.params) |
|
|
download.excel(data, '器具管理申请主.xlsx') |
|
|
download.excel(data, '器具管理申请.xlsx') |
|
|
|
|
|
} |
|
|
} catch { |
|
|
} catch { |
|
|
} finally { |
|
|
} finally { |
|
|
exportLoading.value = false |
|
|
exportLoading.value = false |
|
|