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
8f81d4df
Commit
8f81d4df
authored
May 17, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
立库任务
parent
02911c72
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
213 additions
and
0 deletions
+213
-0
index.js
src/router/index.js
+13
-0
index.vue
src/views/ccgl/wcsrwgl/lkrw/index.vue
+200
-0
No files found.
src/router/index.js
View file @
8f81d4df
...
...
@@ -1272,6 +1272,19 @@ export const powerRoutes = [
name
:
'wcszy'
,
path
:
"wcszy"
,
},
{
component
:
'ccgl/wcsrwgl/lkrw/index'
,
hidden
:
false
,
meta
:
{
"title"
:
"立库任务"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
920110300
,
},
name
:
'lkrw'
,
path
:
"lkrw"
,
}
]
},
/* 大屏看板*/
...
...
src/views/ccgl/wcsrwgl/lkrw/index.vue
0 → 100644
View file @
8f81d4df
<
template
>
<BasePage
:power=
'power'
class=
"min_full"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
<
template
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!--
<el-button
@
click=
"demo(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
:
{
/* 基本配置*/
url
:
'lxyl/wcs/lkrw'
,
tableTitle
:
[{
title
:
"状态"
,
field
:
"zt"
,
"transform"
:
{
"url"
:
"lxyl/wcs/lkrw/init/zt"
,
"label"
:
"name"
,
"value"
:
"id"
},
width
:
120
},
{
title
:
"任务类型"
,
field
:
"type"
,
"transform"
:
{
"url"
:
"lxyl/wcs/lkrw/init/type"
,
"label"
:
"name"
,
"value"
:
"id"
},
width
:
120
},
{
title
:
"单号"
,
field
:
"djid"
,
fieldType
:
"upper"
,
width
:
140
},
{
title
:
"工位"
,
field
:
"gwName"
,
width
:
140
},
{
title
:
"库位"
,
field
:
"kwCode"
,
width
:
140
},
{
title
:
"目标库位"
,
field
:
"mbkwCode"
,
width
:
140
},
{
title
:
"容器"
,
field
:
"rqCode"
,
width
:
140
},
{
title
:
"设备"
,
field
:
"deviceName"
,
width
:
140
},
{
title
:
"单据来源"
,
field
:
"djly"
,
"transform"
:
{
"url"
:
"lxyl/wcs/lkrw/init/djly"
,
"label"
:
"name"
,
"value"
:
"id"
},
width
:
120
},
{
title
:
"开始时间"
,
field
:
"kssj"
,
fieldType
:
"ftDateTime"
},
{
title
:
"结束时间"
,
field
:
"jssj"
,
fieldType
:
"ftDateTime"
},
{
title
:
"耗时"
,
field
:
"timespan"
,
width
:
240
,
formatter
(
a
,
b
,
duration
)
{
if
(
duration
==
0
||
!
duration
)
{
return
"0"
;
}
else
{
var
days
=
Math
.
floor
(
duration
/
(
1000
*
60
*
60
*
24
));
var
hours
=
Math
.
floor
((
duration
%
(
1000
*
60
*
60
*
24
))
/
(
1000
*
60
*
60
));
var
minutes
=
Math
.
floor
((
duration
%
(
1000
*
60
*
60
))
/
(
1000
*
60
));
var
seconds
=
Math
.
floor
((
duration
%
(
1000
*
60
))
/
1000
);
var
result
=
""
;
if
(
days
>
0
)
{
result
+=
days
+
" 天 "
;
}
if
(
hours
>
0
)
{
result
+=
hours
+
" 小时 "
;
}
if
(
minutes
>
0
)
{
result
+=
minutes
+
" 分钟 "
;
}
if
(
seconds
>
0
)
{
result
+=
seconds
+
" 秒 "
;
}
return
result
;
}
}
},
{
title
:
"异常消息"
,
field
:
"message"
,
width
:
200
},
{
title
:
"维护人"
,
field
:
"whr"
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
"ftDateTime"
},
],
queryParams
:
[
[{
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/zt'
}
},
{
label
:
'单号'
,
prop
:
'djid'
,
span
:
6
,
type
:
'input'
,
value
:
''
}
]
],
}
}
},
methods
:
{
/* 示例*/
// demo(basePage){
// }
},
components
:
{
}
}
</
script
>
<
style
>
</
style
>
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