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
344d49be
Commit
344d49be
authored
Jan 04, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
功能调整
parent
505a3a30
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
81 additions
and
29 deletions
+81
-29
mx.vue
src/views/ccgl/rkgl/mpzy/mx.vue
+2
-2
edit.vue
src/views/ccgl/rkgl/mpzy/top/edit.vue
+57
-22
index.vue
src/views/ccgl/rkgl/mpzy/top/index.vue
+20
-3
vue.config.js
vue.config.js
+2
-2
No files found.
src/views/ccgl/rkgl/mpzy/mx.vue
View file @
344d49be
...
...
@@ -65,8 +65,8 @@
width
:
140
},
{
title
:
"
物料
数量"
,
field
:
"sl"
,
title
:
"
码盘
数量"
,
field
:
"
mp
sl"
,
width
:
140
},
{
...
...
src/views/ccgl/rkgl/mpzy/top/edit.vue
View file @
344d49be
<
template
>
<RelDialog
bigTitle
detailTable=
'MPZYMX'
@
getFormDetail=
'getFormDetail'
width=
"70%"
:type=
'type'
:editApp=
'editApp'
<RelDialog
@
getForm=
'getForm'
bigTitle
detailTable=
'MPZYMX'
@
getFormDetail=
'getFormDetail'
width=
"70%"
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"100px"
:rules=
"rules"
>
<!-- 弹框插件-->
...
...
@@ -54,6 +54,33 @@
Mp
},
methods
:
{
formatMilliseconds
(
milliseconds
)
{
// 将毫秒转换为秒
var
seconds
=
Math
.
floor
(
milliseconds
/
1000
);
// 计算小时数
var
hours
=
Math
.
floor
(
seconds
/
3600
);
// 计算分钟数
var
minutes
=
Math
.
floor
((
seconds
%
3600
)
/
60
);
// 计算剩余的秒数
var
remainingSeconds
=
seconds
%
60
;
// 构建时间字符串
var
timeString
=
''
;
if
(
hours
>
0
)
{
timeString
+=
hours
+
'小时 '
;
}
if
(
minutes
>
0
)
{
timeString
+=
minutes
+
'分钟 '
;
}
timeString
+=
remainingSeconds
+
'秒'
;
return
timeString
;
},
getForm
(
form
){
if
(
form
.
timespan
){
form
.
transtimespan
=
this
.
formatMilliseconds
(
form
.
timespan
)
}
},
mpSave
(
list
)
{
/* 可持续添加*/
let
iscf
=
false
...
...
@@ -88,6 +115,34 @@
mounted
()
{
this
.
form
.
zyrName
=
this
.
username
this
.
form
.
zyrid
=
this
.
userid
/* add隐藏*/
let
newItem
=
[
{
label
:
'开始时间'
,
prop
:
'kssj'
,
span
:
8
,
type
:
'datetime'
,
readonly
:
true
,
},
{
label
:
'结束时间'
,
prop
:
'jssj'
,
span
:
8
,
type
:
'datetime'
,
readonly
:
true
},
{
label
:
'耗时'
,
prop
:
'transtimespan'
,
span
:
8
,
type
:
'input'
,
readonly
:
true
},
]
if
(
this
.
type
!=
'add'
){
newItem
.
forEach
(
item
=>
this
.
editColItemList
.
push
(
item
))
}
},
data
()
{
return
{
...
...
@@ -209,27 +264,7 @@
span
:
16
,
type
:
'input'
,
},
{
label
:
'开始时间'
,
prop
:
'kssj'
,
span
:
8
,
type
:
'datetime'
,
readonly
:
true
},
{
label
:
'结束时间'
,
prop
:
'jssj'
,
span
:
8
,
type
:
'datetime'
,
readonly
:
true
},
{
label
:
'耗时'
,
prop
:
'hs'
,
span
:
8
,
type
:
'input'
,
readonly
:
true
},
...
...
src/views/ccgl/rkgl/mpzy/top/index.vue
View file @
344d49be
...
...
@@ -6,6 +6,7 @@
<
template
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<el-button
@
click=
"mpwc(ctx.basePage)"
size=
'mini'
type=
"primary"
>
码盘完成
</el-button>
<el-button
@
click=
"qxwc(ctx.basePage)"
size=
'mini'
type=
"primary"
>
取消完成
</el-button>
</
template
>
</BasePage>
...
...
@@ -13,7 +14,7 @@
<
script
>
import
Edit
from
'./edit.vue'
export
default
{
data
()
{
return
{
...
...
@@ -185,6 +186,22 @@
getRow
(
val
)
{
this
.
$emit
(
'getRow'
,
val
)
},
qxwc
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
){
this
.
$post
(
'wms/rkgl/mpzy/cancelComplete'
,{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
}
else
{
this
.
warning
(
'请选中一条数据'
)
}
},
mpwc
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
){
this
.
$post
(
'wms/rkgl/mpzy/complete'
,{
...
...
@@ -195,11 +212,11 @@
ctx
.
refresh
()
}
})
}
else
{
this
.
warning
(
'请选中一条数据'
)
}
}
},
components
:
{
...
...
vue.config.js
View file @
344d49be
...
...
@@ -39,8 +39,8 @@ module.exports = {
[
process
.
env
.
VUE_APP_BASE_API
]:
{
// target: `http://192.168.30.254:18080/dmg`,
// target: `http://192.168.30.254:28084/erp`,
// target: `http://192.168.30.103
:9080/lxyl`,
target
:
`http://localhost:9080/lxyl`
,
target
:
`http://192.168.30.111
:9080/lxyl`
,
//
target: `http://localhost:9080/lxyl`,
// target:'http://192.168.30.105:9081/erp',
changeOrigin
:
true
,
pathRewrite
:
{
...
...
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