feat(wms): 新增分条报表配置及功能优化
- 添加分条报表相关配置及视图组件 - 优化标签打印尺寸及布局 - 增加实测厚度字段及相关展示逻辑 - 重构报表数据获取逻辑,统一处理异常情况 - 完善分条操作表单,增加异常信息管理
This commit is contained in:
@@ -2,6 +2,7 @@ import { listCoilWithIds } from "@/api/wms/coil";
|
||||
import {
|
||||
listPendingAction,
|
||||
} from '@/api/wms/pendingAction';
|
||||
import { Message } from 'element-ui'
|
||||
|
||||
export async function fetchOutputList(queryParams) {
|
||||
const resList = await Promise.all([
|
||||
@@ -39,9 +40,9 @@ export async function fetchOutputList(queryParams) {
|
||||
export async function fetchLossList(actionTypes, queryParams) {
|
||||
const resultList = await Promise.all(actionTypes.map(actionType => {
|
||||
return listPendingAction({
|
||||
...queryParams,
|
||||
actionStatus: 2,
|
||||
actionType,
|
||||
createBy: queryParams.createBy,
|
||||
startTime: queryParams.byCreateTimeStart,
|
||||
endTime: queryParams.byCreateTimeEnd,
|
||||
pageSize: 99999,
|
||||
@@ -52,16 +53,17 @@ export async function fetchLossList(actionTypes, queryParams) {
|
||||
const actionIds = actions.map(item => item.actionId).join(',')
|
||||
console.log(actionIds)
|
||||
if (!actionIds) {
|
||||
this.$message({
|
||||
Message({
|
||||
message: '暂无数据',
|
||||
type: 'warning',
|
||||
})
|
||||
throw new Error('暂无数据')
|
||||
return []
|
||||
}
|
||||
const res = await listCoilWithIds({
|
||||
...queryParams,
|
||||
byCreateTimeStart: undefined,
|
||||
byCreateTimeEnd: undefined,
|
||||
createBy: undefined,
|
||||
actionIds: actionIds,
|
||||
pageSize: 99999,
|
||||
pageNum: 1,
|
||||
|
||||
Reference in New Issue
Block a user