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
358760de
Commit
358760de
authored
Dec 12, 2025
by
wangchunyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://code.palacesun.com/zhouhaifeng/mini-wms
parents
82fd5953
6dd5c256
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
23 行增加
和
37 行删除
+23
-37
ruoyi-admin-vue/src/views/inventory/items/index.vue
+0
-0
ruoyi-admin-vue/src/views/inventory/locations/index.vue
+0
-0
ruoyi-admin-vue/src/views/inventory/warehouses/index.vue
+0
-18
ruoyi-inventory/src/main/java/com/ruoyi/inventory/service/impl/StorageLocationsServiceImpl.java
+23
-19
没有找到文件。
ruoyi-admin-vue/src/views/inventory/items/index.vue
View file @
358760de
差异被折叠。
点击展开。
ruoyi-admin-vue/src/views/inventory/locations/index.vue
View file @
358760de
差异被折叠。
点击展开。
ruoyi-admin-vue/src/views/inventory/warehouses/index.vue
View file @
358760de
...
@@ -133,7 +133,6 @@
...
@@ -133,7 +133,6 @@
</el-tag>
</el-tag>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"排序"
align=
"center"
prop=
"sortNo"
width=
"80"
/>
<el-table-column
label=
"创建日期"
align=
"center"
prop=
"createTime"
width=
"160"
/>
<el-table-column
label=
"创建日期"
align=
"center"
prop=
"createTime"
width=
"160"
/>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
width=
"120"
fixed=
"right"
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
width=
"120"
fixed=
"right"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
@@ -232,19 +231,6 @@
...
@@ -232,19 +231,6 @@
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"排序"
prop=
"sortNo"
>
<el-input-number
v-model=
"form.sortNo"
placeholder=
"请输入排序"
:min=
"0"
:step=
"1"
style=
"width: 100%"
/>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"仓库地点"
prop=
"address"
>
<el-form-item
label=
"仓库地点"
prop=
"address"
>
<el-input
v-model=
"form.address"
type=
"textarea"
placeholder=
"请输入内容"
:rows=
"3"
/>
<el-input
v-model=
"form.address"
type=
"textarea"
placeholder=
"请输入内容"
:rows=
"3"
/>
...
@@ -374,10 +360,6 @@ export default {
...
@@ -374,10 +360,6 @@ export default {
isEnabled
:
[
isEnabled
:
[
{
required
:
true
,
message
:
'应用状态不能为空'
,
trigger
:
'change'
}
{
required
:
true
,
message
:
'应用状态不能为空'
,
trigger
:
'change'
}
],
],
sortNo
:
[
{
required
:
true
,
message
:
'排序不能为空'
,
trigger
:
'blur'
},
{
type
:
'number'
,
message
:
'排序必须为数字值'
,
trigger
:
'blur'
}
],
area
:
[
area
:
[
{
{
validator
:
(
rule
,
value
,
callback
)
=>
{
validator
:
(
rule
,
value
,
callback
)
=>
{
...
...
ruoyi-inventory/src/main/java/com/ruoyi/inventory/service/impl/StorageLocationsServiceImpl.java
View file @
358760de
...
@@ -49,7 +49,21 @@ public class StorageLocationsServiceImpl implements IStorageLocationsService
...
@@ -49,7 +49,21 @@ public class StorageLocationsServiceImpl implements IStorageLocationsService
@Override
@Override
public
StorageLocations
selectStorageLocationsById
(
String
id
)
public
StorageLocations
selectStorageLocationsById
(
String
id
)
{
{
return
storageLocationsMapper
.
selectStorageLocationsById
(
id
);
StorageLocations
storageLocations
=
storageLocationsMapper
.
selectStorageLocationsById
(
id
);
String
[]
AllowedCategoryIds
=
storageLocations
.
getAllowedCategoryIds
().
split
(
","
);
String
AllowedCategoryName
=
""
;
for
(
String
AllowedCategoryId
:
AllowedCategoryIds
)
{
Materials
materials
=
materialsMapper
.
selectMaterialsById
(
AllowedCategoryId
);
if
(
materials
!=
null
&&
materials
.
getMaterialName
()
!=
null
)
{
String
categoryName
=
materials
.
getMaterialName
().
trim
();
// 去除首尾空格
if
(
AllowedCategoryName
!=
""
)
{
AllowedCategoryName
+=
","
;
}
AllowedCategoryName
+=
categoryName
;
}
}
storageLocations
.
setAllowedCategoryNames
(
AllowedCategoryName
);
return
storageLocations
;
}
}
@Override
@Override
...
@@ -77,18 +91,14 @@ public class StorageLocationsServiceImpl implements IStorageLocationsService
...
@@ -77,18 +91,14 @@ public class StorageLocationsServiceImpl implements IStorageLocationsService
if
(
storageLocations2
.
getAllowedCategoryIds
()
!=
null
&&
!
storageLocations2
.
getAllowedCategoryIds
().
isEmpty
()){
if
(
storageLocations2
.
getAllowedCategoryIds
()
!=
null
&&
!
storageLocations2
.
getAllowedCategoryIds
().
isEmpty
()){
String
[]
AllowedCategoryIds
=
storageLocations2
.
getAllowedCategoryIds
().
split
(
","
);
String
[]
AllowedCategoryIds
=
storageLocations2
.
getAllowedCategoryIds
().
split
(
","
);
for
(
String
AllowedCategoryId
:
AllowedCategoryIds
)
{
for
(
String
AllowedCategoryId
:
AllowedCategoryIds
)
{
Materials
materials
=
materialsMapper
.
selectMaterialsById
(
AllowedCategoryId
);
List
<
Materials
>
materials
=
materialsMapper
.
selectMaterialsBySapNo
(
AllowedCategoryId
);
if
(
materials
!=
null
&&
materials
.
getMaterialName
()
!=
null
)
{
if
(
materials
!=
null
&&
!
materials
.
isEmpty
())
{
String
categoryName
=
materials
.
getMaterialName
().
trim
();
// 去除首尾空格
Materials
materials1
=
materials
.
get
(
0
);
if
(
materials1
!=
null
&&
materials1
.
getMaterialName
()
!=
null
)
{
String
categoryName
=
materials1
.
getMaterialName
().
trim
();
// 去除首尾空格
if
(
AllowedCategoryName
!=
""
)
{
if
(
AllowedCategoryName
!=
""
)
{
AllowedCategoryName
+=
","
;
AllowedCategoryName
+=
","
;
}
}
AllowedCategoryName
+=
categoryName
;
AllowedCategoryName
+=
categoryName
;
}
}
}
}
}
}
}
storageLocations2
.
setAllowedCategoryNames
(
AllowedCategoryName
);
storageLocations2
.
setAllowedCategoryNames
(
AllowedCategoryName
);
...
@@ -123,11 +133,8 @@ public class StorageLocationsServiceImpl implements IStorageLocationsService
...
@@ -123,11 +133,8 @@ public class StorageLocationsServiceImpl implements IStorageLocationsService
storageLocationsCategory
.
setCategoryId
(
categoryId
);
storageLocationsCategory
.
setCategoryId
(
categoryId
);
storageLocationsCategory
.
setCreateTime
(
DateUtils
.
getNowDate
());
storageLocationsCategory
.
setCreateTime
(
DateUtils
.
getNowDate
());
storageLocationsCategory
.
setCreateUserCode
(
String
.
valueOf
(
SecurityUtils
.
getUserId
()));
storageLocationsCategory
.
setCreateUserCode
(
String
.
valueOf
(
SecurityUtils
.
getUserId
()));
List
<
Materials
>
materials
=
materialsMapper
.
selectMaterialsBySapNo
(
categoryId
);
Materials
materials
=
materialsMapper
.
selectMaterialsById
(
categoryId
);
if
(
materials
!=
null
&&
!
materials
.
isEmpty
())
{
storageLocationsCategory
.
setCategoryName
(
materials
.
getMaterialName
());
Materials
materials1
=
materials
.
get
(
0
);
storageLocationsCategory
.
setCategoryName
(
materials1
.
getMaterialName
());
}
storageLocationsCategoryMapper
.
insertStorageLocationsCategory
(
storageLocationsCategory
);
storageLocationsCategoryMapper
.
insertStorageLocationsCategory
(
storageLocationsCategory
);
}
}
}
}
...
@@ -162,11 +169,8 @@ public class StorageLocationsServiceImpl implements IStorageLocationsService
...
@@ -162,11 +169,8 @@ public class StorageLocationsServiceImpl implements IStorageLocationsService
storageLocationsCategory
.
setCategoryId
(
categoryId
);
storageLocationsCategory
.
setCategoryId
(
categoryId
);
storageLocationsCategory
.
setUpdateTime
(
DateUtils
.
getNowDate
());
storageLocationsCategory
.
setUpdateTime
(
DateUtils
.
getNowDate
());
storageLocationsCategory
.
setUpdateUserCode
(
String
.
valueOf
(
SecurityUtils
.
getUserId
()));
storageLocationsCategory
.
setUpdateUserCode
(
String
.
valueOf
(
SecurityUtils
.
getUserId
()));
List
<
Materials
>
materials
=
materialsMapper
.
selectMaterialsBySapNo
(
categoryId
);
Materials
materials
=
materialsMapper
.
selectMaterialsById
(
categoryId
);
if
(
materials
!=
null
&&
!
materials
.
isEmpty
())
{
storageLocationsCategory
.
setCategoryName
(
materials
.
getMaterialName
());
Materials
materials1
=
materials
.
get
(
0
);
storageLocationsCategory
.
setCategoryName
(
materials1
.
getMaterialName
());
}
storageLocationsCategoryMapper
.
insertStorageLocationsCategory
(
storageLocationsCategory
);
storageLocationsCategoryMapper
.
insertStorageLocationsCategory
(
storageLocationsCategory
);
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论