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
9f993c59
Commit
9f993c59
authored
Jun 03, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增立库任务查询
parent
89306a32
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
369 additions
and
24 deletions
+369
-24
index.js
src/router/index.js
+13
-0
index.vue
src/views/ccgl/cxfx/cxlkrw/index.vue
+299
-0
index.vue
src/views/ccgl/cxfx/kwxq/index.vue
+57
-24
No files found.
src/router/index.js
View file @
9f993c59
...
@@ -1154,6 +1154,19 @@ export const powerRoutes = [
...
@@ -1154,6 +1154,19 @@ export const powerRoutes = [
},
},
name
:
'dzcxfx'
,
name
:
'dzcxfx'
,
path
:
"dzcxfx"
,
path
:
"dzcxfx"
,
},
{
component
:
'ccgl/cxfx/cxlkrw/index'
,
hidden
:
false
,
meta
:
{
"title"
:
"查询立库任务"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
920190800
,
},
name
:
'cxlkrw'
,
path
:
"cxlkrw"
,
}
}
]
]
},
},
...
...
src/views/ccgl/cxfx/cxlkrw/index.vue
0 → 100644
View file @
9f993c59
<
template
>
<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=
"close(ctx.basePage)"
size=
'mini'
type=
"primary"
>
关闭
</el-button>
-->
</
template
>
</BasePage>
</template>
<
script
>
export
default
{
data
()
{
return
{
power
:
{
add
:
false
,
copy
:
false
,
/* 手动控制删除 */
delButton
:
false
,
/* 手动控制编辑按钮权限 */
editButton
:
false
,
/* 是否渲染右侧操作按钮 */
operateButtons
:
false
,
/* 是否开启工作流按钮 */
workFlow
:
false
,
/* 表格开启选择,以及记住选择 */
showSelection
:
false
,
saveSelected
:
false
},
config
:
{
cellStyle
({
row
,
column
,
})
{
// 定义样式变量
let
cellStyle
;
switch
(
row
.
zt
)
{
case
'SW'
:
case
'WW'
:
cellStyle
=
'color:#199fe8'
;
break
;
case
'SD'
:
case
'WD'
:
cellStyle
=
'color:#11b95c'
;
break
;
case
'C'
:
cellStyle
=
'color:#e6a700'
;
break
;
case
'CF'
:
cellStyle
=
'color:#ff4949'
;
break
;
default
:
cellStyle
=
''
;
}
if
(
column
.
label
)
{
return
cellStyle
}
},
/* 基本配置*/
url
:
'lxyl/wcs/lkrw'
,
tableTitle
:
[{
title
:
"状态"
,
field
:
"zt"
,
"transform"
:
{
"url"
:
"lxyl/wcs/lkrw/init/zt"
,
"label"
:
"name"
,
"value"
:
"id"
},
width
:
80
},
{
title
:
"类型"
,
field
:
"type"
,
"transform"
:
{
"url"
:
"lxyl/wcs/lkrw/init/type"
,
"label"
:
"name"
,
"value"
:
"id"
},
width
:
80
},
{
title
:
"任务号"
,
field
:
"djid"
,
fieldType
:
"upper"
,
width
:
140
},
{
title
:
"起始位"
,
field
:
"gwName"
,
width
:
140
,
formatter
(
a
,
b
,
v
){
return
a
.
kwName
||
a
.
gwName
}
},
{
title
:
"目标位"
,
field
:
"mbkwCode"
,
width
:
140
,
formatter
(
a
,
b
,
v
){
return
a
.
mbkwCode
||
a
.
gwName
}
},
{
title
:
"容器"
,
field
:
"rqCode"
,
width
:
140
},
{
title
:
"垛机取/放货口"
,
field
:
"rcgwCode"
,
width
:
140
},
{
title
:
"开始时间"
,
field
:
"kssj"
,
fieldType
:
"ftDateTime"
},
{
title
:
"结束时间"
,
field
:
"jssj"
,
fieldType
:
"ftDateTime"
},
{
title
:
"耗时"
,
field
:
"timespan"
,
width
:
140
,
fieldType
:
"timespan"
},
{
title
:
"巷道"
,
field
:
"hjName"
,
width
:
140
},
{
title
:
"业务类型"
,
field
:
"ywlx"
,
"transform"
:
{
"url"
:
"lxyl/wcs/lkrw/init/ywlx"
,
"label"
:
"name"
,
"value"
:
"id"
},
width
:
120
},
{
title
:
"业务单号"
,
field
:
"lydjCode"
,
width
:
140
},
{
title
:
"异常消息"
,
field
:
"message"
,
width
:
200
},
// {
// title: "单据来源",
// field: "djly",
// "transform": {
// "url": "lxyl/wcs/lkrw/init/djly",
// "label": "name",
// "value": "id"
// },
// width: 120
// },
{
title
:
"创建人"
,
field
:
"cjr"
},
{
title
:
"创建时间"
,
field
:
"cjsj"
,
fieldType
:
"ftDateTime"
},
],
queryParams
:
[
[{
label
:
'日期'
,
startProp
:
"start"
,
endProp
:
"end"
,
span
:
6
,
type
:
'RelDaterangeV2'
,
startValue
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
7
,
endValue
:
new
Date
().
getTime
(),
},
{
label
:
"巷道"
,
prop
:
"deviceid"
,
span
:
6
,
type
:
"RelSelect"
,
value
:
""
,
typeConfig
:
{
src
:
"lxyl/wcs/lkrw/init/hj"
,
}
},
{
label
:
'容器'
,
prop
:
'rqCode'
,
span
:
6
,
type
:
'input'
,
value
:
''
},
{
label
:
'起始位置'
,
prop
:
'startPos'
,
span
:
6
,
type
:
'input'
}
],
[
{
label
:
'状态'
,
prop
:
'zt'
,
span
:
6
,
type
:
'RelSelect'
,
typeConfig
:
{
src
:
'lxyl/wcs/lkrw/init/zt'
}
},
{
label
:
'类型'
,
prop
:
'type'
,
span
:
6
,
type
:
'RelSelect'
,
typeConfig
:
{
src
:
'lxyl/wcs/lkrw/init/type'
}
},
{
label
:
'业务单号'
,
prop
:
'lydjCode'
,
span
:
6
,
type
:
'input'
,
value
:
''
},
{
label
:
'任务号'
,
prop
:
'djid'
,
span
:
6
,
type
:
'input'
,
value
:
''
},
]
],
}
}
},
methods
:
{
/* 示例*/
// 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
){
this
.
$success
(
'任务启动成功!'
)
ctx
.
refresh
()
}
})
}
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
){
this
.
$success
(
'任务关闭成功!'
)
ctx
.
refresh
()
}
})
}
else
{
this
.
warning
(
'请选择一条数据!'
)
}
}
},
components
:
{
}
}
</
script
>
<
style
>
</
style
>
src/views/ccgl/cxfx/kwxq/index.vue
View file @
9f993c59
<
template
>
<
template
>
<BasePage
:power=
'power'
class=
"min_full"
:config=
"config"
>
<BasePage
ref=
"basePage"
:power=
'power'
class=
"min_full"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
</
template
>
...
@@ -17,20 +17,20 @@
...
@@ -17,20 +17,20 @@
data
()
{
data
()
{
return
{
return
{
power
:
{
power
:
{
add
:
false
,
add
:
false
,
copy
:
false
,
copy
:
false
,
/* 手动控制删除 */
/* 手动控制删除 */
delButton
:
false
,
delButton
:
false
,
/* 手动控制编辑按钮权限 */
/* 手动控制编辑按钮权限 */
editButton
:
false
,
editButton
:
false
,
/* 是否渲染右侧操作按钮 */
/* 是否渲染右侧操作按钮 */
operateButtons
:
false
,
operateButtons
:
false
,
/* 是否开启工作流按钮 */
/* 是否开启工作流按钮 */
workFlow
:
false
,
workFlow
:
false
,
/* 表格开启选择,以及记住选择 */
/* 表格开启选择,以及记住选择 */
showSelection
:
false
,
showSelection
:
false
,
saveSelected
:
false
saveSelected
:
false
},
},
config
:
{
config
:
{
/* 基本配置*/
/* 基本配置*/
url
:
'wms/cxfx/kwmx'
,
url
:
'wms/cxfx/kwmx'
,
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
field
:
"kczt"
,
field
:
"kczt"
,
width
:
90
,
width
:
90
,
transform
:
{
transform
:
{
"url"
:
"wms/jcsj/kw/init/kczt
"
,
"url"
:
"wms/jcsj/kw/init/kczt"
,
"label"
:
"name"
,
"label"
:
"name"
,
"value"
:
"id"
"value"
:
"id"
}
}
...
@@ -107,14 +107,34 @@
...
@@ -107,14 +107,34 @@
],
],
queryParams
:
[
queryParams
:
[
[{
[
{
label
:
"仓库分类"
,
prop
:
"ckFlid"
,
span
:
6
,
type
:
"RelSelect"
,
value
:
""
,
typeConfig
:
{
onChange
:(
e
)
=>
{
this
.
$refs
.
basePage
.
queryParams
.
flid
=
e
.
id
},
src
:
"wms/common/query/ckfl"
,
match
:
{
value
:
"id"
,
label
:
"name"
},
}
},
{
"label"
:
"仓库"
,
"label"
:
"仓库"
,
"prop"
:
"ckid"
,
"prop"
:
"ckid"
,
"span"
:
6
,
"span"
:
6
,
"type"
:
"RelSelect"
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"value"
:
""
,
"typeConfig"
:
{
"typeConfig"
:
{
"src"
:
"wms/common/query/kwgl/ck"
,
"src"
:
"lxyl/jcsj/uck/ck/queryCjckid"
,
linkage
:
true
,
linkParams
:
[
'flid'
],
"match"
:
{
"match"
:
{
"value"
:
"id"
,
"value"
:
"id"
,
"label"
:
"name"
"label"
:
"name"
...
@@ -137,13 +157,8 @@
...
@@ -137,13 +157,8 @@
prop
:
'kwInfo'
,
prop
:
'kwInfo'
,
span
:
6
,
span
:
6
,
type
:
'input'
,
type
:
'input'
,
},
{
label
:
'物料信息'
,
prop
:
'wlxxInfo'
,
span
:
6
,
type
:
'input'
,
}
}
],
],
[{
[{
label
:
'物料批号'
,
label
:
'物料批号'
,
...
@@ -170,6 +185,24 @@
...
@@ -170,6 +185,24 @@
span
:
6
,
span
:
6
,
type
:
'input'
,
type
:
'input'
,
},
},
],
[{
"label"
:
"存储状态"
,
"prop"
:
"kczt"
,
"span"
:
6
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"wms/jcsj/kw/init/kczt"
,
}
},
{
label
:
'物料信息'
,
prop
:
'wlxxInfo'
,
span
:
6
,
type
:
'input'
,
}
]
]
],
],
...
...
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