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
8e2efef0
Commit
8e2efef0
authored
Dec 15, 2025
by
wangchunyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页显示数量调整,库存查询调整
parent
db0c0a3a
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
8 行增加
和
8 行删除
+8
-8
ruoyi-admin-vue/src/views/index.vue
+6
-6
ruoyi-inventory/src/main/resources/mapper/inventory/InventoryMapper.xml
+2
-2
没有找到文件。
ruoyi-admin-vue/src/views/index.vue
View file @
8e2efef0
...
...
@@ -28,7 +28,7 @@
<el-table
v-loading=
"loading"
height=
"100%"
:data=
"tableList"
>
<el-table-column
type=
"index"
label=
"序号"
align=
"center"
width=
"100"
fixed=
"left"
/>
<el-table-column
label=
"物料名称"
align=
"center"
prop=
"materialName"
:show-overflow-tooltip=
"true"
width=
"200"
/>
<
el-table-column
label=
"所属分类"
align=
"center"
prop=
"categoryName"
:show-overflow-tooltip=
"true"
min-width=
"200"
/
>
<
!--
<el-table-column
label=
"所属分类"
align=
"center"
prop=
"categoryName"
:show-overflow-tooltip=
"true"
min-width=
"200"
/>
--
>
<el-table-column
label=
"物料编码"
align=
"center"
prop=
"sapNo"
:show-overflow-tooltip=
"true"
min-width=
"200"
/>
<el-table-column
label=
"当前库存"
align=
"center"
prop=
"quantity"
:show-overflow-tooltip=
"true"
min-width=
"200"
>
<template
slot-scope=
"scope"
>
...
...
@@ -47,7 +47,7 @@
<div
class=
"card-container-flex chart-container shadow"
>
<div
class=
"tip-title"
>
<div
class=
"title-text"
>
当前库存排名前
10
物料
</div>
<div
class=
"title-text"
>
当前库存排名前
5
物料
</div>
<el-radio-group
class=
"custom"
v-model=
"kucunQueryType"
size=
"mini"
@
change=
"kucunQueryTypeChange"
>
<el-radio-button
label=
"count"
>
按数量
</el-radio-button>
<el-radio-button
label=
"money"
>
按金额
</el-radio-button>
...
...
@@ -186,7 +186,7 @@ export default {
this
.
rukuList
=
data
.
map
(
item
=>
({
value
:
item
.
totalQuantity
,
name
:
item
.
materialName
})).
splice
(
0
,
5
).
reverse
()
})).
reverse
().
splice
(
0
,
5
).
reverse
()
})
}
if
(
this
.
rukuRankType
===
'money'
){
...
...
@@ -196,7 +196,7 @@ export default {
this
.
rukuList
=
data
.
map
(
item
=>
({
value
:
item
.
totalMoney
,
name
:
item
.
materialName
})).
splice
(
0
,
5
).
reverse
()
})).
reverse
().
splice
(
0
,
5
).
reverse
()
})
}
},
...
...
@@ -206,7 +206,7 @@ export default {
let
data
=
res
.
rows
if
(
!
data
)
return
console
.
log
(
'123123'
,
data
)
this
.
kucunList
=
data
this
.
kucunList
=
data
.
splice
(
0
,
5
)
})
}
...
...
@@ -214,7 +214,7 @@ export default {
inventoryTopTenByAmount
().
then
(
res
=>
{
let
data
=
res
.
rows
if
(
!
data
)
return
this
.
kucunList
=
data
this
.
kucunList
=
data
.
splice
(
0
,
5
)
})
}
},
...
...
ruoyi-inventory/src/main/resources/mapper/inventory/InventoryMapper.xml
View file @
8e2efef0
...
...
@@ -218,7 +218,7 @@
select tab.*, case when total_quantity
<
min_stock_level then '2' when total_quantity
>
max_stock_level then '1' else '3' end alterType from (
<include
refid=
"selectInventoryCount"
/>
<where>
and i.quantity
>
0 and i.inventory_status = 1 and i.is_used = 1
and i.quantity
!=
0 and i.inventory_status = 1 and i.is_used = 1
<if
test=
"inventoryType != null "
>
and i.inventory_type = #{inventoryType}
</if>
<if
test=
"materialId != null and materialId != ''"
>
and m.material_code like concat('%', #{materialId}, '%')
</if>
<if
test=
"batchId != null and batchId != ''"
>
and i.batch_id like concat('%', #{batchId}, '%')
</if>
...
...
@@ -326,7 +326,7 @@
<select
id=
"selectInventoryDetailList"
parameterType=
"Inventory"
resultMap=
"InventoryResult"
>
<include
refid=
"selectInventoryDetailVo"
/>
<where>
and i.quantity
>
0 and i.inventory_status = 1 and i.is_used = 1
and i.quantity
!=
0 and i.inventory_status = 1 and i.is_used = 1
<if
test=
"inventoryType != null "
>
and i.inventory_type = #{inventoryType}
</if>
<if
test=
"materialId != null and materialId != ''"
>
and i.material_id = #{materialId}
</if>
<if
test=
"batchId != null and batchId != ''"
>
and i.batch_id like concat('%', #{batchId}, '%')
</if>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论