Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
smart-rack-base
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
smart-rack-base
Commits
3b8ad115
Commit
3b8ad115
authored
Apr 20, 2026
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 料架号和物料维护调整
2 货架位置显示 料架号调整
parent
4c153d3f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
16 deletions
+28
-16
application-test.yml
...t-rack-base-admin/src/main/resources/application-test.yml
+5
-5
ITShelfApiServiceImpl.java
...hong/system/service/impl/shelf/ITShelfApiServiceImpl.java
+1
-0
TRackMaterialRelationMapper.xml
...resources/mapper/material/TRackMaterialRelationMapper.xml
+12
-9
index.vue
...web/src/views/producemange/produceshelflocation/index.vue
+10
-2
No files found.
smart-rack-base-admin/src/main/resources/application-test.yml
View file @
3b8ad115
...
...
@@ -97,4 +97,4 @@ zehong:
captchaType
:
math
shelf
:
apiUrl
:
http://192.168.3.117:8099
\ No newline at end of file
apiUrl
:
http://192.168.1.252:8099
smart-rack-base-system/src/main/java/com/zehong/system/service/impl/shelf/ITShelfApiServiceImpl.java
View file @
3b8ad115
...
...
@@ -113,6 +113,7 @@ public class ITShelfApiServiceImpl implements ITShelfApiService{
tRackMaterialRelation
.
setRackCode
(
param
.
getString
(
"rackCode"
));
tRackMaterialRelation
.
setCreateTime
(
new
Date
());
tRackMaterialRelation
.
setCreateBy
(
SecurityUtils
.
getLoginUser
().
getUser
().
getNickName
());
tRackMaterialRelation
.
setShelf
(
param
.
getString
(
"shelf"
));
int
result
=
rackMaterialRelationMapper
.
insertTRackMaterialRelation
(
tRackMaterialRelation
);
if
(
result
==
0
)
throw
new
CustomException
(
"入库料盘物料信息关联失败"
);
}
...
...
smart-rack-base-system/src/main/resources/mapper/material/TRackMaterialRelationMapper.xml
View file @
3b8ad115
...
...
@@ -15,6 +15,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"shelf"
column=
"f_shelf"
/>
</resultMap>
<sql
id=
"selectTRackMaterialRelationVo"
>
...
...
@@ -28,12 +29,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
relation.create_time,
relation.update_by,
relation.update_time,
shelfInfo
.f_shelf as shelf
relation
.f_shelf as shelf
FROM
t_rack_material_relation relation
LEFT JOIN t_rack_material_info info ON info.material_id = relation.material_id
LEFT JOIN t_shelf_storage_location location ON location.f_rid = relation.rack_code
LEFT JOIN t_shelf_info shelfInfo ON shelfInfo.f_shelf_id = location.f_shelf_id
</sql>
<select
id=
"selectTRackMaterialRelationList"
parameterType=
"TRackMaterialRelation"
resultMap=
"TRackMaterialRelationResult"
>
...
...
@@ -43,7 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"materialCode != null and materialCode != ''"
>
and info.material_code like concat('%', #{materialCode}, '%')
</if>
<if
test=
"materialName != null and materialName != ''"
>
and info.material_name like concat('%', #{materialName}, '%')
</if>
<if
test=
"materialSpecifications != null and materialSpecifications != ''"
>
and info.material_specifications = #{materialSpecifications}
</if>
<if
test=
"shelf != null and shelf != ''"
>
and
shelfInfo
.f_shelf like concat('%', #{shelf}, '%')
</if>
<if
test=
"shelf != null and shelf != ''"
>
and
relation
.f_shelf like concat('%', #{shelf}, '%')
</if>
</where>
</select>
...
...
@@ -66,6 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateBy != null"
>
update_by,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"shelf != null"
>
f_shelf,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"rackCode != null and rackCode != ''"
>
#{rackCode},
</if>
...
...
@@ -74,6 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"updateBy != null"
>
#{updateBy},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"shelf != null"
>
#{shelf},
</if>
</trim>
</insert>
...
...
@@ -86,6 +88,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"updateBy != null"
>
update_by = #{updateBy},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"shelf != null"
>
f_shelf = #{shelf},
</if>
</trim>
where relation_id = #{relationId}
</update>
...
...
smart-rack-base-web/src/views/producemange/produceshelflocation/index.vue
View file @
3b8ad115
...
...
@@ -10,6 +10,10 @@
</el-button>
<div
class=
"location-operate"
>
<div
class=
"scanner-input"
>
<span>
料架号:
</span>
<el-input
disabled
v-model=
"fShelf"
clearable
/>
</div>
<div
class=
"scanner-input"
>
<span>
料盘码:
</span>
<el-input
ref=
"barCode"
placeholder=
"扫描料盘条形码..."
v-model=
"barCode"
clearable
/>
...
...
@@ -134,7 +138,8 @@
materialCode
:
null
,
materialName
:
null
,
materialSpecifications
:
null
,
materialId
:
null
materialId
:
null
,
shelf
:
this
.
$route
.
query
.
shelf
},
open
:
false
,
// 表单校验
...
...
@@ -143,11 +148,14 @@
{
required
:
true
,
message
:
"物料代码不能为空"
,
trigger
:
"blur"
}
],
},
materialInfoList
:
[]
materialInfoList
:
[],
// 料盘号
fShelf
:
null
}
},
created
(){
this
.
queryParams
.
shelfId
=
this
.
$route
.
query
.
shelfId
;
this
.
fShelf
=
this
.
$route
.
query
.
shelf
;
this
.
getList
();
this
.
$nextTick
(()
=>
{
this
.
$refs
.
barCode
.
focus
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment