Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
mini-wms
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
周海峰
mini-wms
Commits
ca09c205
Commit
ca09c205
authored
Dec 17, 2025
by
zhangtw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
入库统计添加按入库时间查询条件
parent
b7332f33
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
59 行增加
和
6 行删除
+59
-6
ruoyi-admin-vue/src/views/inventory/inbound/details.vue
+31
-3
ruoyi-inventory/src/main/java/com/ruoyi/inventory/domain/vo/InboundDetailsVO.java
+19
-0
ruoyi-inventory/src/main/resources/mapper/inventory/InboundOrderItemsMapper.xml
+7
-1
ruoyi-inventory/src/main/resources/mapper/inventory/InboundOrdersMapper.xml
+2
-2
没有找到文件。
ruoyi-admin-vue/src/views/inventory/inbound/details.vue
View file @
ca09c205
...
@@ -101,6 +101,19 @@
...
@@ -101,6 +101,19 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"入库日期"
prop=
"inboundDateRange"
>
<el-date-picker
v-model=
"inboundDateRange"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
format=
"yyyy-MM-dd"
value-format=
"yyyy-MM-dd"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
</page-wrapper-search>
</page-wrapper-search>
<!-- 表格区域 -->
<!-- 表格区域 -->
...
@@ -110,7 +123,7 @@
...
@@ -110,7 +123,7 @@
height=
"100%"
height=
"100%"
:data=
"inboundList"
:data=
"inboundList"
@
selection-change=
"handleSelectionChange"
@
selection-change=
"handleSelectionChange"
:row-key=
"(row) => row.materialId + '_' + row.orderId + '_' + row.warehousesName + '_' + row.locationName"
:row-key=
"(row) => row.materialId + '_' + row.
batchId +'_' + row.
orderId + '_' + row.warehousesName + '_' + row.locationName"
>
>
<el-table-column
label=
"物料SAPNO"
align=
"center"
prop=
"sapNo"
min-width=
"200"
/>
<el-table-column
label=
"物料SAPNO"
align=
"center"
prop=
"sapNo"
min-width=
"200"
/>
<el-table-column
label=
"物料名称"
align=
"center"
prop=
"materialName"
min-width=
"200"
/>
<el-table-column
label=
"物料名称"
align=
"center"
prop=
"materialName"
min-width=
"200"
/>
...
@@ -184,6 +197,8 @@ export default {
...
@@ -184,6 +197,8 @@ export default {
}
,
}
,
data
()
{
data
()
{
return
{
return
{
// 入库日期选择数组
inboundDateRange
:
null
,
// 仓库选择相关
// 仓库选择相关
warehouseSelectorVisible
:
false
,
warehouseSelectorVisible
:
false
,
queryWarehouseName
:
null
,
queryWarehouseName
:
null
,
...
@@ -212,7 +227,9 @@ export default {
...
@@ -212,7 +227,9 @@ export default {
batchId
:
null
,
batchId
:
null
,
warehouseId
:
null
,
warehouseId
:
null
,
locationId
:
null
,
locationId
:
null
,
labelColor
:
null
labelColor
:
null
,
inboundDateStart
:
null
,
inboundDateEnd
:
null
}
}
}
}
}
,
}
,
...
@@ -247,6 +264,14 @@ export default {
...
@@ -247,6 +264,14 @@ export default {
/** 搜索按钮操作 */
/** 搜索按钮操作 */
handleQuery
()
{
handleQuery
()
{
this
.
queryParams
.
pageNum
=
1
this
.
queryParams
.
pageNum
=
1
if
(
Array
.
isArray
(
this
.
inboundDateRange
)
&&
this
.
inboundDateRange
.
length
===
2
)
{
this
.
queryParams
.
inboundDateStart
=
this
.
inboundDateRange
[
0
];
this
.
queryParams
.
inboundDateEnd
=
this
.
inboundDateRange
[
1
];
}
else
{
// 清空开始/结束日期(避免残留旧值)
this
.
queryParams
.
inboundDateStart
=
""
;
this
.
queryParams
.
inboundDateEnd
=
""
;
}
this
.
getList
()
this
.
getList
()
}
,
}
,
...
@@ -261,10 +286,13 @@ export default {
...
@@ -261,10 +286,13 @@ export default {
batchId
:
null
,
batchId
:
null
,
warehouseId
:
null
,
warehouseId
:
null
,
locationId
:
null
,
locationId
:
null
,
labelColor
:
null
labelColor
:
null
,
inboundDateStart
:
null
,
inboundDateStart
:
null
}
}
this
.
queryWarehouseName
=
null
this
.
queryWarehouseName
=
null
this
.
queryLocationName
=
null
this
.
queryLocationName
=
null
this
.
inboundDateRange
=
null
this
.
handleQuery
()
this
.
handleQuery
()
}
,
}
,
...
...
ruoyi-inventory/src/main/java/com/ruoyi/inventory/domain/vo/InboundDetailsVO.java
View file @
ca09c205
...
@@ -53,6 +53,9 @@ public class InboundDetailsVO {
...
@@ -53,6 +53,9 @@ public class InboundDetailsVO {
@Excel
(
name
=
"入库时间"
)
@Excel
(
name
=
"入库时间"
)
private
Date
inboundDate
;
private
Date
inboundDate
;
// 开始入库日期结束日库日期,仅作查询
private
Date
inboundDateStart
;
private
Date
inboundDateEnd
;
public
String
getMaterialId
()
{
public
String
getMaterialId
()
{
return
materialId
;
return
materialId
;
...
@@ -182,6 +185,22 @@ public class InboundDetailsVO {
...
@@ -182,6 +185,22 @@ public class InboundDetailsVO {
this
.
sapNo
=
sapNo
;
this
.
sapNo
=
sapNo
;
}
}
public
Date
getInboundDateStart
()
{
return
inboundDateStart
;
}
public
void
setInboundDateStart
(
Date
inboundDateStart
)
{
this
.
inboundDateStart
=
inboundDateStart
;
}
public
Date
getInboundDateEnd
()
{
return
inboundDateEnd
;
}
public
void
setInboundDateEnd
(
Date
inboundDateEnd
)
{
this
.
inboundDateEnd
=
inboundDateEnd
;
}
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
"InboundDetailsVO{"
+
return
"InboundDetailsVO{"
+
...
...
ruoyi-inventory/src/main/resources/mapper/inventory/InboundOrderItemsMapper.xml
View file @
ca09c205
...
@@ -367,7 +367,13 @@
...
@@ -367,7 +367,13 @@
left join warehouses w on ioi.warehouse_id = w.id
left join warehouses w on ioi.warehouse_id = w.id
left join storage_locations sl on ioi.location_id = sl.id
left join storage_locations sl on ioi.location_id = sl.id
<where>
<where>
io.order_status = 2
io.order_status = 2
<if
test=
"inboundDateStart != null"
>
AND DATE(io.inbound_date)
>
= #{inboundDateStart}
</if>
<if
test=
"inboundDateEnd != null"
>
AND DATE(io.inbound_date)
<
= #{inboundDateEnd}
</if>
<if
test=
"sapNo != null and sapNo != ''"
>
<if
test=
"sapNo != null and sapNo != ''"
>
AND ms.sap_no = #{sapNo}
AND ms.sap_no = #{sapNo}
</if>
</if>
...
...
ruoyi-inventory/src/main/resources/mapper/inventory/InboundOrdersMapper.xml
View file @
ca09c205
...
@@ -84,10 +84,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -84,10 +84,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"orderStatus != null "
>
and order_status = #{orderStatus}
</if>
<if
test=
"orderStatus != null "
>
and order_status = #{orderStatus}
</if>
<!-- 新增按照日期范围查询-->
<!-- 新增按照日期范围查询-->
<if
test=
"inboundDateStart != null"
>
<if
test=
"inboundDateStart != null"
>
AND
inbound_date
>
= #{inboundDateStart}
AND
date(inbound_date)
>
= #{inboundDateStart}
</if>
</if>
<if
test=
"inboundDateEnd != null"
>
<if
test=
"inboundDateEnd != null"
>
AND
inbound_date
<
= #{inboundDateEnd}
AND
date(inbound_date)
<
= #{inboundDateEnd}
</if>
</if>
<if
test=
"orderType != null and orderType != ''"
>
and order_type = #{orderType}
</if>
<if
test=
"orderType != null and orderType != ''"
>
and order_type = #{orderType}
</if>
<if
test=
"totalPlannedQuantity != null "
>
and total_planned_quantity = #{totalPlannedQuantity}
</if>
<if
test=
"totalPlannedQuantity != null "
>
and total_planned_quantity = #{totalPlannedQuantity}
</if>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论