feat(wms): 新增报结果存储API及页面
refactor(aps): 修改导出接口为POST并调整表格高度
This commit is contained in:
@@ -56,7 +56,7 @@ public class ApsPlanSheetController extends BaseController {
|
|||||||
ExcelUtil.exportExcel(list, "排产单主", ApsPlanSheetVo.class, response);
|
ExcelUtil.exportExcel(list, "排产单主", ApsPlanSheetVo.class, response);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/exportAll")
|
@PostMapping("/exportAll")
|
||||||
public void export(@Validated ApsPlanSheetQueryReq req, javax.servlet.http.HttpServletResponse response) {
|
public void export(@Validated ApsPlanSheetQueryReq req, javax.servlet.http.HttpServletResponse response) {
|
||||||
iApsPlanSheetService.exportExcel(req, response);
|
iApsPlanSheetService.exportExcel(req, response);
|
||||||
}
|
}
|
||||||
|
|||||||
44
klp-ui/src/api/wms/reportResultStorage.js
Normal file
44
klp-ui/src/api/wms/reportResultStorage.js
Normal 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'
|
||||||
|
})
|
||||||
|
}
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</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">
|
<el-table-column label="排产日期" align="center" prop="planDate" width="180">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{ parseTime(scope.row.planDate, '{y}-{m}-{d}') }}</span>
|
<span>{{ parseTime(scope.row.planDate, '{y}-{m}-{d}') }}</span>
|
||||||
@@ -330,7 +330,7 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
handleExport() {
|
handleExport() {
|
||||||
this.download('aps/planSheet/export', {
|
this.download('aps/planSheet/exportAll', {
|
||||||
...this.queryParams
|
...this.queryParams
|
||||||
}, `planSheet_${new Date().getTime()}.xlsx`)
|
}, `planSheet_${new Date().getTime()}.xlsx`)
|
||||||
}
|
}
|
||||||
|
|||||||
0
klp-ui/src/views/wms/report/snap/index.vue
Normal file
0
klp-ui/src/views/wms/report/snap/index.vue
Normal file
Reference in New Issue
Block a user