Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lxyl-vue
Project
Project
Details
Activity
Releases
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
李苏
lxyl-vue
Commits
d8cebe1f
Commit
d8cebe1f
authored
Jun 04, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
48122e38
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
110 additions
and
51 deletions
+110
-51
index.vue
src/views/ccgl/cxfx/cxlkrw/index.vue
+100
-41
mx1.vue
src/views/ccgl/dpkb/lkkb/mx/mx1.vue
+10
-10
No files found.
src/views/ccgl/cxfx/cxlkrw/index.vue
View file @
d8cebe1f
<
template
>
<BasePage
:power=
'power'
class=
"min_full"
:config=
"config"
>
<BasePage
ref=
"basePage"
:power=
'power'
class=
"min_full"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
<
template
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!--
<el-button
@
click=
"start(ctx.basePage)"
size=
'mini'
type=
"primary"
>
开始
</el-button>
<!--
<el-button
@
click=
"start(ctx.basePage)"
size=
'mini'
type=
"primary"
>
开始
</el-button>
<el-button
@
click=
"close(ctx.basePage)"
size=
'mini'
type=
"primary"
>
关闭
</el-button>
-->
</
template
>
...
...
@@ -13,25 +13,27 @@
</template>
<
script
>
import
wlsx
from
'common/src/mixin/wlsx.js'
import
wlphsx
from
'common/src/mixin/wlphsx.js'
export
default
{
mixins
:
[
wlsx
,
wlphsx
],
data
()
{
return
{
power
:
{
add
:
false
,
copy
:
false
,
/* 手动控制删除 */
delButton
:
false
,
/* 手动控制编辑按钮权限 */
editButton
:
false
,
/* 是否渲染右侧操作按钮 */
operateButtons
:
false
,
/* 是否开启工作流按钮 */
workFlow
:
false
,
/* 表格开启选择,以及记住选择 */
showSelection
:
false
,
saveSelected
:
false
},
power
:
{
add
:
false
,
copy
:
false
,
/* 手动控制删除 */
delButton
:
false
,
/* 手动控制编辑按钮权限 */
editButton
:
false
,
/* 是否渲染右侧操作按钮 */
operateButtons
:
false
,
/* 是否开启工作流按钮 */
workFlow
:
false
,
/* 表格开启选择,以及记住选择 */
showSelection
:
false
,
saveSelected
:
false
},
config
:
{
cellStyle
({
row
,
...
...
@@ -71,7 +73,8 @@
"transform"
:
{
"url"
:
"lxyl/wcs/lkrw/init/zt"
,
"label"
:
"name"
,
"value"
:
"id"
"value"
:
"id"
,
},
width
:
80
},
...
...
@@ -94,16 +97,16 @@
title
:
"起始位"
,
field
:
"gwName"
,
width
:
140
,
formatter
(
a
,
b
,
v
)
{
return
a
.
kwName
||
a
.
gwName
formatter
(
a
,
b
,
v
)
{
return
a
.
kwName
||
a
.
gwName
}
},
{
title
:
"目标位"
,
field
:
"mbkwCode"
,
width
:
140
,
formatter
(
a
,
b
,
v
)
{
return
a
.
mbkwCode
||
a
.
gwName
formatter
(
a
,
b
,
v
)
{
return
a
.
mbkwCode
||
a
.
gwName
}
},
{
...
...
@@ -111,7 +114,34 @@
field
:
"rqCode"
,
width
:
140
},
{
/* 新增物料信息*/
{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
width
:
140
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
width
:
140
},
{
title
:
"规格"
,
field
:
"wlxxGg"
,
width
:
140
},
{
title
:
"物料批号"
,
field
:
"wlph"
,
width
:
180
},
{
title
:
"制令号"
,
field
:
"zlh"
,
width
:
180
},
{
title
:
"垛机取/放货口"
,
field
:
"rcgwCode"
,
width
:
140
...
...
@@ -211,14 +241,14 @@
type
:
'input'
}
],
[
{
[{
label
:
'状态'
,
prop
:
'zt'
,
span
:
6
,
type
:
'RelSelect'
,
typeConfig
:
{
src
:
'lxyl/wcs/lkrw/init/zt'
src
:
'lxyl/wcs/lkrw/init/zt'
,
multiple
:
true
}
},
{
...
...
@@ -244,6 +274,35 @@
type
:
'input'
,
value
:
''
},
],
[{
label
:
'物料信息'
,
prop
:
'wlxxInfo'
,
span
:
6
,
type
:
'input'
,
value
:
''
},
{
label
:
'物料批号'
,
prop
:
'wlph'
,
span
:
6
,
type
:
'input'
,
value
:
''
},
{
label
:
'物料描述'
,
prop
:
'wlphSx01'
,
span
:
6
,
type
:
'input'
,
value
:
''
},
{
label
:
'制令号'
,
prop
:
'zlh'
,
span
:
6
,
type
:
'input'
,
value
:
''
},
]
],
}
...
...
@@ -255,34 +314,34 @@
// demo(basePage){
// }
start
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$post
(
'lxyl/wcs/lkrw/start'
,{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
start
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$post
(
'lxyl/wcs/lkrw/start'
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'任务启动成功!'
)
ctx
.
refresh
()
}
})
}
else
{
}
else
{
this
.
warning
(
'请选择一条数据!'
)
}
},
close
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$post
(
'lxyl/wcs/lkrw/close'
,{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
close
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$post
(
'lxyl/wcs/lkrw/close'
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'任务关闭成功!'
)
ctx
.
refresh
()
}
})
}
else
{
}
else
{
this
.
warning
(
'请选择一条数据!'
)
}
...
...
src/views/ccgl/dpkb/lkkb/mx/mx1.vue
View file @
d8cebe1f
<
template
>
<div
class=
"full "
>
<!-- 刻度表示-->
<div
class=
"full"
>
<div
ref=
"infoBox"
class=
"infoCar"
>
</div>
<div
class=
"full container"
>
<!-- 刻度x-->
<div
class=
"flex"
style=
"position: absolute;top: 0px;color: #fff;line-height: 16px;font-size: 12px;padding-left: 14px;"
>
...
...
@@ -19,8 +19,9 @@
</div>
</div>
<div
style=
"position: relative"
@
click=
'eclick(item)'
:code=
'item.code'
:item=
'JSON.stringify(item)'
ref=
"mx1"
v-for=
"(item,index) in boxList"
:key=
"item.code"
class=
"box"
:class=
"
{
<div
@
click=
'eclick(item)'
:code=
'item.code'
:item=
'JSON.stringify(item)'
ref=
"mx1"
v-for=
"(item,index) in boxList"
:key=
"item.code"
class=
"box"
:class=
"
{
yh:item.kczt=='U',
wh:item.kczt=='E',
dj:item.zt=='F',
...
...
@@ -30,7 +31,8 @@
yhyj:item.kczt=='U'
&&
item.cjzt=='Y',
yhyjsd:item.kczt=='U'
&&
item.cjzt=='Y'
&&
item.zt=='L',
yhyjdj:item.kczt=='U'
&&
item.cjzt=='Y'
&&
item.zt=='F',
}">
}"
>
<!--
{{
item
.
code
}}
-->
</div>
</div>
...
...
@@ -60,7 +62,7 @@
},
getBoxList
()
{
this
.
$post
(
'lxyl/cxfx/kw/query'
,
{
hjCode
:
'HJ1'
,
hjCode
:
'HJ1'
,
kwx
:
'1'
}).
then
(
res
=>
{
if
(
res
.
data
.
records
)
{
...
...
@@ -88,10 +90,8 @@
`
$
(
infoBox
).
empty
()
$
(
infoBox
).
append
(
content
)
infoBox
.
style
.
top
=
event
.
clientY
>
400
?
((
event
.
layerY
-
125
)
+
'px'
)
:
((
event
.
layerY
+
40
)
+
'px'
);
// 信息框距离顶部10像素
infoBox
.
style
.
left
=
event
.
clientX
>
800
?
((
event
.
layerX
-
125
)
+
'px'
)
:
((
event
.
layerX
+
40
)
+
'px'
);
// 信息框距离左侧10像素
infoBox
.
style
.
top
=
event
.
clientY
>
400
?((
event
.
layerY
-
125
)
+
'px'
):((
event
.
layerY
+
40
)
+
'px'
);
// 信息框距离顶部10像素
infoBox
.
style
.
left
=
event
.
clientX
>
800
?((
event
.
layerX
-
125
)
+
'px'
):((
event
.
layerX
+
40
)
+
'px'
);
// 信息框距离左侧10像素
infoBox
.
style
.
display
=
'block'
;
});
element
.
addEventListener
(
'mouseout'
,
function
(
event
)
{
...
...
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