Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
sy-sxk-ui
概览
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
黄麒宇
sy-sxk-ui
Commits
ef524796
Commit
ef524796
authored
Nov 07, 2022
by
韩振
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1da7a727
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
7 行增加
和
5 行删除
+7
-5
loginbg.jpg
src/assets/images/loginbg.jpg
+0
-0
kfdw.vue
src/views/basicData/kfdw.vue
+7
-5
没有找到文件。
src/assets/images/loginbg.jpg
0 → 100644
View file @
ef524796
413 KB
src/views/basicData/kfdw.vue
View file @
ef524796
...
...
@@ -43,7 +43,7 @@
<el-card
style=
"height: 620px; overflow: auto;"
>
<div
v-for=
"(item,index) in this.ArrayListX"
:key=
"index"
>
<ul
:style=
"index === 10 ? 'margin-top: 40px; grid-template-columns: repeat('+ item.length +', 3.4%);' : 'grid-template-columns: repeat('+ item.length +', 3.4%);'"
>
<li
v-for=
"(items,k) in item"
:key=
"k+''+index"
@
click=
"onClick(items)"
:style=
"items.preWzdm ==
=
'0000000000' ? 'border: 2px solid blue' : items.select ? 'border: 2px solid black' : ''"
<li
v-for=
"(items,k) in item"
:key=
"k+''+index"
@
click=
"onClick(items)"
:style=
"items.preWzdm == '0000000000' ? 'border: 2px solid blue' : items.select ? 'border: 2px solid black' : ''"
:class=
"items.x === 0 || items.y === 0 ? 'box' : items.status === 'E' ? 'boxE' : items.status === 'P' ? 'boxP': items.status === 'F' ? 'boxF' : items.status === 'A' ? 'boxA' : items.status === 'W' ? 'boxW' : items.status === 'C' ? 'boxC' : '' "
>
{{
items
.
x
===
0
?
items
.
y
:
items
.
y
===
0
?
items
.
x
:
''
}}
</li>
...
...
@@ -164,6 +164,7 @@ export default {
for
(
var
j
=
0
;
j
<=
res
.
data
[
0
].
maxRank
;
j
++
){
this
.
ArrayListY
.
push
({
x
:
j
,
y
:
i
,
status
:
this
.
findStatus
(
j
,
i
),
positionCode
:
this
.
findPositionCode
(
j
,
i
),
preWzdm
:
this
.
findPreWzdm
(
j
,
i
)
});
}
console
.
log
(
this
.
ArrayListY
)
this
.
ArrayListX
.
push
(
this
.
ArrayListY
);
}
},
...
...
@@ -171,8 +172,9 @@ export default {
const
{
data
:
res
}
=
await
this
.
$axios
.
get
(
'/summary/getRackByLayer?VLayer='
+
this
.
layer
.
substring
(
1
,
2
)
+
'&storeCode='
+
sessionStorage
.
getItem
(
'storeCode'
))
if
(
res
.
code
!==
99200
)
return
this
.
$message
.
error
(
res
.
message
)
this
.
xyData
=
res
.
data
.
map
(
i
=>
{
return
{
vrank
:
i
.
vrank
,
vrow
:
i
.
vrow
,
status
:
i
.
status
,
positionCode
:
i
.
positionCode
}
return
{
vrank
:
i
.
vrank
,
vrow
:
i
.
vrow
,
status
:
i
.
status
,
positionCode
:
i
.
positionCode
,
preWzdm
:
i
.
preWzdm
}
})
console
.
log
(
this
.
xyData
)
},
findStatus
(
x
,
y
)
{
var
resA
=
this
.
xyData
.
filter
(
i
=>
i
.
vrank
===
x
)
...
...
@@ -207,7 +209,7 @@ export default {
for
(
var
i
=
0
;
i
<=
this
.
layerList
[
this
.
layer
.
substring
(
1
,
2
)
-
1
].
maxRow
;
i
++
){
this
.
ArrayListY
=
[];
for
(
var
j
=
0
;
j
<=
this
.
layerList
[
this
.
layer
.
substring
(
1
,
2
)
-
1
].
maxRank
;
j
++
){
this
.
ArrayListY
.
push
({
x
:
j
,
y
:
i
,
status
:
this
.
findStatus
(
j
,
i
),
positionCode
:
this
.
findPositionCode
(
j
,
i
)});
this
.
ArrayListY
.
push
({
x
:
j
,
y
:
i
,
status
:
this
.
findStatus
(
j
,
i
),
positionCode
:
this
.
findPositionCode
(
j
,
i
)
,
preWzdm
:
this
.
findPreWzdm
(
j
,
i
)
});
}
this
.
ArrayListX
.
push
(
this
.
ArrayListY
);
}
...
...
@@ -226,9 +228,9 @@ export default {
this
.
select
.
palletId
=
res
.
data
.
palletId
},
changeOld
()
{
if
(
this
.
findStatus
(
this
.
select
.
x
,
this
.
select
.
y
+
1
)
!=
'E'
)
{
/*
if (this.findStatus(this.select.x, this.select.y + 1) != 'E') {
return this.$message.warning('只有下方货位非空时才能移位')
}
}
*/
this
.
formData
.
oldPositionCode
=
this
.
select
.
positionCode
this
.
formData
.
palletId
=
this
.
select
.
palletId
this
.
select
.
select
=
false
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论