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
01f6a95e
Commit
01f6a95e
authored
May 18, 2024
by
周毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改页面
parent
15dabe91
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
136 additions
and
98 deletions
+136
-98
index.vue
src/views/ccgl/ckgl/lkckrw/top/index.vue
+22
-4
rkd.vue
src/views/ccgl/rkgl/sjrw/top/rkd.vue
+1
-1
index.vue
src/views/ccgl/rkgl/slk/top/index.vue
+6
-6
index.vue
src/views/ccgl/rkgl/slk/top/wmsRkd/index.vue
+1
-1
index.vue
src/views/ccgl/wcsrwgl/lkrw/index.vue
+45
-28
index.vue
src/views/ccgl/wcsrwgl/wcsrw/index.vue
+61
-58
No files found.
src/views/ccgl/ckgl/lkckrw/top/index.vue
View file @
01f6a95e
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
<
template
#
toolbar=
"ctx"
>
<
template
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<el-button
@
click=
"akck(ctx.basePage)"
size=
'mini'
type=
"primary"
>
新增
</el-button>
<el-button
@
click=
"akck(ctx.basePage)"
size=
'mini'
type=
"primary"
>
新增
</el-button>
<el-button
@
click=
"close(ctx.basePage)"
size=
'mini'
type=
"primary"
>
关闭
</el-button>
</
template
>
</
template
>
</BasePage>
</BasePage>
...
@@ -103,16 +104,16 @@
...
@@ -103,16 +104,16 @@
var
result
=
""
;
var
result
=
""
;
if
(
days
>
0
)
{
if
(
days
>
0
)
{
result
+=
days
+
"
天
"
;
result
+=
days
+
"
天
"
;
}
}
if
(
hours
>
0
)
{
if
(
hours
>
0
)
{
result
+=
hours
+
"
小时
"
;
result
+=
hours
+
"
小时
"
;
}
}
if
(
minutes
>
0
)
{
if
(
minutes
>
0
)
{
result
+=
minutes
+
"
分钟
"
;
result
+=
minutes
+
"
分钟
"
;
}
}
if
(
seconds
>
0
)
{
if
(
seconds
>
0
)
{
result
+=
seconds
+
"
秒
"
;
result
+=
seconds
+
"
秒
"
;
}
}
return
result
;
return
result
;
...
@@ -215,6 +216,23 @@
...
@@ -215,6 +216,23 @@
ctx
.
DialogTitle
=
'选择库存'
ctx
.
DialogTitle
=
'选择库存'
ctx
.
DialogWidth
=
'80vw'
ctx
.
DialogWidth
=
'80vw'
ctx
.
showDialog
=
true
ctx
.
showDialog
=
true
},
close
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
){
this
.
$post
(
'lxyl/ckgl/ckrw/lkck/close'
,{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$success
(
'任务关闭成功!'
)
ctx
.
refresh
()
}
})
}
else
{
this
.
warning
(
'请选择一条数据!'
)
}
}
}
},
},
components
:
{
components
:
{
...
...
src/views/ccgl/rkgl/sjrw/top/rkd.vue
View file @
01f6a95e
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
},
},
{
{
label
:
'单据编号'
,
label
:
'单据编号'
,
prop
:
'djid
info
'
,
prop
:
'djid'
,
span
:
6
,
span
:
6
,
type
:
'input'
,
type
:
'input'
,
value
:
''
value
:
''
...
...
src/views/ccgl/rkgl/slk/top/index.vue
View file @
01f6a95e
...
@@ -101,7 +101,7 @@
...
@@ -101,7 +101,7 @@
{
{
title
:
"耗时"
,
title
:
"耗时"
,
field
:
"timespan"
,
field
:
"timespan"
,
width
:
1
8
0
,
width
:
1
4
0
,
formatter
(
a
,
b
,
duration
)
{
formatter
(
a
,
b
,
duration
)
{
if
(
duration
==
0
||
!
duration
)
{
if
(
duration
==
0
||
!
duration
)
{
return
"0"
;
return
"0"
;
...
@@ -113,16 +113,16 @@
...
@@ -113,16 +113,16 @@
var
result
=
""
;
var
result
=
""
;
if
(
days
>
0
)
{
if
(
days
>
0
)
{
result
+=
days
+
"
天
"
;
result
+=
days
+
"
天
"
;
}
}
if
(
hours
>
0
)
{
if
(
hours
>
0
)
{
result
+=
hours
+
"
小时
"
;
result
+=
hours
+
"
小时
"
;
}
}
if
(
minutes
>
0
)
{
if
(
minutes
>
0
)
{
result
+=
minutes
+
"
分钟
"
;
result
+=
minutes
+
"
分钟
"
;
}
}
if
(
seconds
>
0
)
{
if
(
seconds
>
0
)
{
result
+=
seconds
+
"
秒
"
;
result
+=
seconds
+
"
秒
"
;
}
}
return
result
;
return
result
;
...
@@ -255,7 +255,7 @@
...
@@ -255,7 +255,7 @@
close
(
ctx
){
close
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
){
this
.
$post
(
'lxyl/
ckgl/ckrw/lkc
k/close'
,{
this
.
$post
(
'lxyl/
rkgl/sjrw/lkr
k/close'
,{
id
:
ctx
.
singleItem
.
id
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
success
){
if
(
res
.
success
){
...
...
src/views/ccgl/rkgl/slk/top/wmsRkd/index.vue
View file @
01f6a95e
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
config
:
{
config
:
{
/* 基本配置*/
/* 基本配置*/
url
:
'wms/rkgl/mpzy/query/rktz'
,
url
:
'wms/rkgl/mpzy/query/rktz'
,
queryUrl
:
'wms/
rkgl/mpzy
/query/rktz'
,
queryUrl
:
'wms/
sjrw
/query/rktz'
,
tableTitle
:
[
tableTitle
:
[
{
{
title
:
"状态"
,
title
:
"状态"
,
...
...
src/views/ccgl/wcsrwgl/lkrw/index.vue
View file @
01f6a95e
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
</
template
>
</
template
>
<
template
#
toolbar=
"ctx"
>
<
template
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- 嵌入默认页面工具栏的插槽 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>
<el-button
@
click=
"close(ctx.basePage)"
size=
'mini'
type=
"primary"
>
关闭
</el-button>
</
template
>
</
template
>
...
@@ -42,10 +43,10 @@
...
@@ -42,10 +43,10 @@
"label"
:
"name"
,
"label"
:
"name"
,
"value"
:
"id"
"value"
:
"id"
},
},
width
:
12
0
width
:
8
0
},
},
{
{
title
:
"
任务
类型"
,
title
:
"类型"
,
field
:
"type"
,
field
:
"type"
,
"transform"
:
{
"transform"
:
{
"url"
:
"lxyl/wcs/lkrw/init/type"
,
"url"
:
"lxyl/wcs/lkrw/init/type"
,
...
@@ -53,9 +54,9 @@
...
@@ -53,9 +54,9 @@
"value"
:
"id"
"value"
:
"id"
},
},
width
:
12
0
width
:
8
0
},
{
},
{
title
:
"
单
号"
,
title
:
"
任务
号"
,
field
:
"djid"
,
field
:
"djid"
,
fieldType
:
"upper"
,
fieldType
:
"upper"
,
width
:
140
width
:
140
...
@@ -86,21 +87,6 @@
...
@@ -86,21 +87,6 @@
field
:
"rqCode"
,
field
:
"rqCode"
,
width
:
140
width
:
140
},
},
{
title
:
"设备"
,
field
:
"deviceName"
,
width
:
140
},
{
title
:
"单据来源"
,
field
:
"djly"
,
"transform"
:
{
"url"
:
"lxyl/wcs/lkrw/init/djly"
,
"label"
:
"name"
,
"value"
:
"id"
},
width
:
120
},
{
{
title
:
"开始时间"
,
title
:
"开始时间"
,
field
:
"kssj"
,
field
:
"kssj"
,
...
@@ -114,7 +100,7 @@
...
@@ -114,7 +100,7 @@
{
{
title
:
"耗时"
,
title
:
"耗时"
,
field
:
"timespan"
,
field
:
"timespan"
,
width
:
1
8
0
,
width
:
1
4
0
,
formatter
(
a
,
b
,
duration
)
{
formatter
(
a
,
b
,
duration
)
{
if
(
duration
==
0
||
!
duration
)
{
if
(
duration
==
0
||
!
duration
)
{
return
"0"
;
return
"0"
;
...
@@ -126,16 +112,16 @@
...
@@ -126,16 +112,16 @@
var
result
=
""
;
var
result
=
""
;
if
(
days
>
0
)
{
if
(
days
>
0
)
{
result
+=
days
+
"
天
"
;
result
+=
days
+
"
天
"
;
}
}
if
(
hours
>
0
)
{
if
(
hours
>
0
)
{
result
+=
hours
+
"
小时
"
;
result
+=
hours
+
"
小时
"
;
}
}
if
(
minutes
>
0
)
{
if
(
minutes
>
0
)
{
result
+=
minutes
+
"
分钟
"
;
result
+=
minutes
+
"
分钟
"
;
}
}
if
(
seconds
>
0
)
{
if
(
seconds
>
0
)
{
result
+=
seconds
+
"
秒
"
;
result
+=
seconds
+
"
秒
"
;
}
}
return
result
;
return
result
;
...
@@ -148,12 +134,27 @@
...
@@ -148,12 +134,27 @@
width
:
200
width
:
200
},
},
{
{
title
:
"维护人"
,
title
:
"设备"
,
field
:
"whr"
field
:
"hjName"
,
width
:
140
},
{
title
:
"单据来源"
,
field
:
"djly"
,
"transform"
:
{
"url"
:
"lxyl/wcs/lkrw/init/djly"
,
"label"
:
"name"
,
"value"
:
"id"
},
width
:
120
},
{
title
:
"创建人"
,
field
:
"cjr"
},
},
{
{
title
:
"
维护
时间"
,
title
:
"
创建
时间"
,
field
:
"
wh
sj"
,
field
:
"
cj
sj"
,
fieldType
:
"ftDateTime"
fieldType
:
"ftDateTime"
},
},
],
],
...
@@ -194,6 +195,22 @@
...
@@ -194,6 +195,22 @@
// demo(basePage){
// 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
){
close
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
){
this
.
$post
(
'lxyl/wcs/lkrw/close'
,{
this
.
$post
(
'lxyl/wcs/lkrw/close'
,{
...
...
src/views/ccgl/wcsrwgl/wcsrw/index.vue
View file @
01f6a95e
...
@@ -6,9 +6,9 @@
...
@@ -6,9 +6,9 @@
<
template
#
toolbar=
"ctx"
>
<
template
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!--
<el-button
@
click=
"demo(ctx.basePage)"
size=
'mini'
type=
"primary"
>
示例按钮
</el-button>
-->
<!--
<el-button
@
click=
"demo(ctx.basePage)"
size=
'mini'
type=
"primary"
>
示例按钮
</el-button>
-->
<el-button
@
click=
"
ksrw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
开始
</el-button>
<el-button
@
click=
"
execute(ctx.basePage)"
size=
'mini'
type=
"primary"
>
手动执行
</el-button>
<el-button
@
click=
"qxrw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
取消
</el-button>
<el-button
@
click=
"complete(ctx.basePage)"
size=
'mini'
type=
"primary"
>
完成
</el-button>
<el-button
@
click=
"wcrw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
完成
</el-button>
<el-button
@
click=
"close(ctx.basePage)"
size=
'mini'
type=
"primary"
>
关闭
</el-button>
</
template
>
</
template
>
</BasePage>
</BasePage>
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
{
{
title
:
"状态"
,
title
:
"状态"
,
field
:
"zt"
,
field
:
"zt"
,
width
:
14
0
,
width
:
8
0
,
transform
:
{
transform
:
{
"url"
:
"lxyl/wcs/wcsTask/init/zt"
,
"url"
:
"lxyl/wcs/wcsTask/init/zt"
,
"label"
:
"name"
,
"label"
:
"name"
,
...
@@ -49,14 +49,9 @@
...
@@ -49,14 +49,9 @@
}
}
},
},
{
{
title
:
"任务号"
,
title
:
"类型"
,
field
:
"djid"
,
width
:
140
},
{
title
:
"任务类型"
,
field
:
"type"
,
field
:
"type"
,
width
:
14
0
,
width
:
8
0
,
transform
:
{
transform
:
{
"url"
:
"lxyl/wcs/wcsTask/init/type"
,
"url"
:
"lxyl/wcs/wcsTask/init/type"
,
"label"
:
"name"
,
"label"
:
"name"
,
...
@@ -64,14 +59,9 @@
...
@@ -64,14 +59,9 @@
}
}
},
},
{
{
title
:
"业务类型"
,
title
:
"任务号"
,
field
:
"djly"
,
field
:
"djid"
,
width
:
140
,
width
:
140
transform
:
{
"url"
:
"lxyl/wcs/wcsTask/init/djly"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
},
{
{
title
:
"起始位"
,
title
:
"起始位"
,
...
@@ -89,26 +79,11 @@
...
@@ -89,26 +79,11 @@
},
},
width
:
140
,
width
:
140
,
},
},
{
{
title
:
"容器"
,
title
:
"容器"
,
field
:
"rqCode"
,
field
:
"rqCode"
,
width
:
140
,
width
:
140
,
},
},
// {
// title: "工位",
// field: "gwName",
// width: 140,
// },
{
title
:
"来源单号"
,
field
:
"lydh"
,
width
:
140
,
// formatter:(row,b,v)=>{
// let id=row.sjtzDjid||row.jhtzDjid||row.kccjDjid
// return id
// }
},
{
{
title
:
"开始时间"
,
title
:
"开始时间"
,
field
:
"kssj"
,
field
:
"kssj"
,
...
@@ -122,31 +97,61 @@
...
@@ -122,31 +97,61 @@
{
{
title
:
"耗时"
,
title
:
"耗时"
,
field
:
"timespan"
,
field
:
"timespan"
,
width
:
140
,
formatter
(
a
,
b
,
duration
)
{
formatter
(
a
,
b
,
duration
)
{
if
(
duration
==
0
||!
duration
)
{
if
(
duration
==
0
||
!
duration
)
{
return
0
return
"0"
;
}
else
{
}
else
{
var
milliseconds
=
parseInt
((
duration
%
1000
)
/
100
),
var
days
=
Math
.
floor
(
duration
/
(
1000
*
60
*
60
*
24
));
seconds
=
Math
.
floor
((
duration
/
1000
)
%
60
),
var
hours
=
Math
.
floor
((
duration
%
(
1000
*
60
*
60
*
24
))
/
(
1000
*
60
*
60
));
minutes
=
Math
.
floor
((
duration
/
(
1000
*
60
))
%
60
),
var
minutes
=
Math
.
floor
((
duration
%
(
1000
*
60
*
60
))
/
(
1000
*
60
));
hours
=
Math
.
floor
((
duration
/
(
1000
*
60
*
60
))
%
24
);
var
seconds
=
Math
.
floor
((
duration
%
(
1000
*
60
))
/
1000
);
hours
=
(
hours
<
10
)
?
"0"
+
hours
:
hours
;
var
result
=
""
;
minutes
=
(
minutes
<
10
)
?
"0"
+
minutes
:
minutes
;
if
(
days
>
0
)
{
seconds
=
(
seconds
<
10
)
?
"0"
+
seconds
:
seconds
;
result
+=
days
+
"天"
;
}
if
(
hours
>
0
)
{
result
+=
hours
+
"小时"
;
}
if
(
minutes
>
0
)
{
result
+=
minutes
+
"分"
;
}
if
(
seconds
>
0
)
{
result
+=
seconds
+
"秒"
;
}
return
hours
+
":"
+
minutes
+
":"
+
seconds
+
"."
+
milliseconds
;
return
result
;
}
}
}
}
},
},
{
{
title
:
"维护人"
,
title
:
"业务类型"
,
field
:
"whr"
field
:
"djly"
,
width
:
140
,
transform
:
{
"url"
:
"lxyl/wcs/wcsTask/init/djly"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
},
{
{
title
:
"维护时间"
,
title
:
"来源单号"
,
field
:
"whsj"
,
field
:
"lydh"
,
width
:
140
,
// formatter:(row,b,v)=>{
// let id=row.sjtzDjid||row.jhtzDjid||row.kccjDjid
// return id
// }
},
{
title
:
"创建人"
,
field
:
"cjr"
},
{
title
:
"创建时间"
,
field
:
"cjsj"
,
fieldType
:
"ftDateTime"
fieldType
:
"ftDateTime"
},
},
],
],
...
@@ -230,16 +235,14 @@
...
@@ -230,16 +235,14 @@
},
},
methods
:
{
methods
:
{
ksrw
(
ctx
){
execute
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'
是否继续操作, 是否继续
?'
,
'提示'
,
{
this
.
$confirm
(
'
确定要重新执行任务吗
?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
}).
then
(
res
=>
{
}).
then
(
res
=>
{
ctx
.
$refs
.
TablePager
.
loading
=
true
ctx
.
$refs
.
TablePager
.
loading
=
true
this
.
$post
(
'lxyl/wcs/wcsTask/start'
,
{
this
.
$post
(
'lxyl/wcs/wcsTask/start'
,
{
id
:
ctx
.
singleItem
.
id
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
}).
then
(
res
=>
{
...
@@ -256,9 +259,9 @@
...
@@ -256,9 +259,9 @@
this
.
$warning
(
'请选中一条数据'
)
this
.
$warning
(
'请选中一条数据'
)
}
}
},
},
qxrw
(
ctx
){
close
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'
是否继续操作, 是否继续
?'
,
'提示'
,
{
this
.
$confirm
(
'
确定要关闭任务吗
?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
...
@@ -280,9 +283,9 @@
...
@@ -280,9 +283,9 @@
this
.
$warning
(
'请选中一条数据'
)
this
.
$warning
(
'请选中一条数据'
)
}
}
},
},
wcrw
(
ctx
){
complete
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'
是否继续操作, 是否继续
?'
,
'提示'
,
{
this
.
$confirm
(
'
确定要完成任务吗
?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
...
...
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