feat(wms): 新增报结果存储API及页面

refactor(aps): 修改导出接口为POST并调整表格高度
This commit is contained in:
砂糖
2026-03-27 13:00:58 +08:00
parent 19b48d711a
commit ab3914811a
4 changed files with 47 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ public class ApsPlanSheetController extends BaseController {
ExcelUtil.exportExcel(list, "排产单主", ApsPlanSheetVo.class, response);
}
@GetMapping("/exportAll")
@PostMapping("/exportAll")
public void export(@Validated ApsPlanSheetQueryReq req, javax.servlet.http.HttpServletResponse response) {
iApsPlanSheetService.exportExcel(req, response);
}

View File

@@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询报结果存储JSON+横向对比专用)列表
export function listReportResultStorage(query) {
return request({
url: '/wms/reportResultStorage/list',
method: 'get',
params: query
})
}
// 查询报结果存储JSON+横向对比专用)详细
export function getReportResultStorage(storageId) {
return request({
url: '/wms/reportResultStorage/' + storageId,
method: 'get'
})
}
// 新增报结果存储JSON+横向对比专用)
export function addReportResultStorage(data) {
return request({
url: '/wms/reportResultStorage',
method: 'post',
data: data
})
}
// 修改报结果存储JSON+横向对比专用)
export function updateReportResultStorage(data) {
return request({
url: '/wms/reportResultStorage',
method: 'put',
data: data
})
}
// 删除报结果存储JSON+横向对比专用)
export function delReportResultStorage(storageId) {
return request({
url: '/wms/reportResultStorage/' + storageId,
method: 'delete'
})
}

View File

@@ -29,7 +29,7 @@
</el-form-item>
</el-form>
<el-table v-loading="loading" :data="planSheetList" height="600px" @row-click="handleRowClick">
<el-table v-loading="loading" :data="planSheetList" height="400px" @row-click="handleRowClick">
<el-table-column label="排产日期" align="center" prop="planDate" width="180">
<template slot-scope="scope">
<span>{{ parseTime(scope.row.planDate, '{y}-{m}-{d}') }}</span>
@@ -330,7 +330,7 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
this.download('aps/planSheet/export', {
this.download('aps/planSheet/exportAll', {
...this.queryParams
}, `planSheet_${new Date().getTime()}.xlsx`)
}