综合服务中心导出功能修改

This commit is contained in:
hayu 2024-06-18 17:42:02 +08:00
parent e80849ec52
commit bc45f6bf07
2 changed files with 9 additions and 3 deletions

View File

@ -86,7 +86,13 @@ public class PurchaseCheckServiceCenterController extends BaseController
@PostMapping("/putInExport")
public void putInExport(HttpServletResponse response, PurchaseCheckInfo purchaseCheckInfo)
{
List<PurchaseInput> list = purchaseCheckServiceCenterService.putInExportList(purchaseCheckInfo);
List<PurchaseInput> list = new ArrayList<>();
//判断该组织是否开启综合服务中心审核
Long companyId = SecurityUtils.getLoginUser().getSysUser().getCompanyId();
int re =purchaseCheckServiceCenterService.selectExamineType(companyId);
if (re>0){
list=purchaseCheckServiceCenterService.putInExportList(purchaseCheckInfo);
}
ExcelUtil<PurchaseInput> util = new ExcelUtil<>(PurchaseInput.class);
util.exportExcel(response, list, "新购工机具入库");
}

View File

@ -872,11 +872,11 @@ export default {
/** 导出按钮操作 */
handleExport() {
this.download(
'material/purchaseCheckInfo/putInExport',
'material/purchaseCheckServiceCenter/putInExport',
{
...this.queryParams,
},
`新购工机具入库_${new Date().getTime()}.xlsx`,
`综合服务中心_${new Date().getTime()}.xlsx`,
)
},
/** 刷新缓存按钮操作 */