Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
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
周远喜
mes-ui
Commits
ceb639a4
Commit
ceb639a4
authored
Nov 06, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tasktime
parent
4ca4c829
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
49 deletions
+31
-49
index.vue
pages/produce/execute/taskTime/index.vue
+1
-1
api.js
pages/produce/workHourManage/api.js
+7
-6
detail.vue
pages/produce/workHourManage/detail.vue
+16
-35
index.vue
pages/produce/workHourManage/index.vue
+7
-7
No files found.
pages/produce/execute/taskTime/index.vue
View file @
ceb639a4
...
...
@@ -155,7 +155,7 @@ export default {
this
.
$refs
.
addview
.
maxHour
=
this
.
waitHours
;
// 如果工时还未分配,则默认人员平均分配
if
(
res
.
result
.
allHours
==
res
.
result
.
waitHours
)
{
if
(
res
.
result
.
allHours
>
0
&&
res
.
result
.
allHours
==
res
.
result
.
waitHours
)
{
let
id
=
this
.
$route
.
query
.
id
;
// 获取既定users
Api
.
getentryusers
({
...
...
pages/produce/workHourManage/api.js
View file @
ceb639a4
import
Api
from
'@/plugins/request'
export
default
{
index
:
`
${
systemUrl
}
/importcenter/
paged`
,
index
:
`
${
PlanUrl
}
/orderexecutenew/userworkhours
paged`
,
paged
(
params
)
{
return
Api
.
post
(
`
${
systemUrl
}
/importcenter/
paged`
,
params
);
return
Api
.
post
(
`
${
PlanUrl
}
/orderexecutenew/userworkhours
paged`
,
params
);
},
get
(
params
)
{
return
Api
.
get
(
`
${
systemUrl
}
/importcenter/get`
,
params
);
}
}
index1
:
`
${
PlanUrl
}
/orderexecutenew/getuserworkhoursdetails`
,
paged1
(
params
)
{
return
Api
.
get
(
`
${
PlanUrl
}
/orderexecutenew/getuserworkhoursdetails`
,
params
);
},
}
\ No newline at end of file
pages/produce/workHourManage/detail.vue
View file @
ceb639a4
<
template
>
<div
class=
"detail"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:
action=
"action"
:set=
"false"
:conditions=
"easySearch
"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:
data=
"data"
:set=
"false
"
>
<template
slot=
"easySearch"
>
<p
class=
"pl10"
>
用户姓名:
<span
class=
"mr20"
>
{{
entity
.
name
}}
</span>
用户编号:
<span
class=
"mr20"
>
{{
entity
.
id
}}
</span>
工时数量:
<span
class=
"mr20"
>
{{
entity
.
creatorUserId
}}
</span>
计划数量:
<span
class=
"mr20"
>
{{
entity
.
creatorUserId
}}
</span>
合格数量:
<span
class=
"mr20"
>
{{
entity
.
creatorUserId
}}
</span></p>
</
template
>
...
...
@@ -14,7 +14,7 @@ export default {
name
:
"Add"
,
data
()
{
return
{
action
:
Api
.
index
,
action
:
Api
.
index
1
,
easySearch
:
{
keys
:
{
op
:
""
,
...
...
@@ -29,41 +29,42 @@ export default {
downUrl
:
fileUrlDown
,
fileUrlPath
:
""
,
columns
:
[{
key
:
"
nam
e"
,
key
:
"
mesCod
e"
,
title
:
'订单编号'
,
align
:
"left"
,
easy
:
true
,
high
:
true
,
},
{
key
:
"
id
"
,
title
:
'产品
图号
'
,
key
:
"
productName
"
,
title
:
'产品
名称
'
,
align
:
"left"
,
easy
:
true
,
high
:
true
,
},
{
key
:
"
creatorUserId
"
,
title
:
'产品
名称
'
,
key
:
"
drawnNumber
"
,
title
:
'产品
图号
'
,
align
:
"left"
,
easy
:
true
,
high
:
true
,
},
{
key
:
"
creatorUserId
"
,
key
:
"
routingDetailSeq
"
,
title
:
'工序号'
,
align
:
"left"
,
easy
:
true
,
high
:
true
,
},
{
key
:
"
creatorUserId
"
,
key
:
"
routingDetailName
"
,
title
:
'工序名称'
,
align
:
"left"
,
easy
:
true
,
high
:
true
,
}
],
data
:
[],
};
},
props
:
{
...
...
@@ -85,40 +86,20 @@ export default {
if
(
this
.
row
!=
null
&&
this
.
row
!=
{})
{
this
.
entity
=
this
.
row
//this.load(this.entity.
id);
this
.
load
(
this
.
e
id
);
}
},
methods
:
{
load
(
v
)
{
// Api.get({
// id: v,
// }).then((r) => {
// this.entity = r.result;
// this.$emit("on-load");
// });
Api
.
paged1
({
id
:
v
,
}).
then
((
r
)
=>
{
this
.
data
=
r
.
result
;
});
},
handleClose
()
{
this
.
$emit
(
"on-close"
);
},
downFile
(
path
)
{
//alert(path)
let
truePath
=
path
;
if
(
truePath
.
length
>
2
)
{
if
(
truePath
.
substring
(
0
,
7
).
toLowerCase
()
==
"http://"
||
truePath
.
substring
(
0
,
8
).
toLowerCase
()
==
"https://"
)
{
window
.
open
(
truePath
,
"_blank"
);
}
else
{
this
.
fileUrlPath
=
this
.
downUrl
+
path
;
window
.
open
(
this
.
fileUrlPath
,
"_blank"
);
}
}
},
l
(
key
)
{
key
=
"import_center"
+
"."
+
key
;
return
this
.
$t
(
key
);
},
},
watch
:
{
row
(
v
)
{
...
...
pages/produce/workHourManage/index.vue
View file @
ceb639a4
...
...
@@ -32,7 +32,7 @@ export default {
action
:
Api
.
index
,
easySearch
:
{
keys
:
{
op
:
"
name,file
"
,
op
:
"
userTitle,userCardNo
"
,
value
:
null
},
},
...
...
@@ -49,35 +49,35 @@ export default {
align
:
"right"
,
title
:
"序号"
,
},
{
key
:
"
nam
e"
,
key
:
"
userTitl
e"
,
title
:
'员工姓名'
,
align
:
"left"
,
easy
:
true
,
high
:
true
,
},
{
key
:
"
id
"
,
key
:
"
userCardNo
"
,
title
:
'员工编号'
,
align
:
"left"
,
easy
:
true
,
high
:
true
,
},
{
key
:
"
creatorUserId
"
,
key
:
"
totalWorkHour
"
,
title
:
'工时数量'
,
align
:
"left"
,
easy
:
true
,
high
:
true
,
},
{
key
:
"
creatorUserId
"
,
key
:
"
planQuantity
"
,
title
:
'计划数量'
,
align
:
"left"
,
easy
:
true
,
high
:
true
,
},
{
key
:
"
creatorUserI
d"
,
key
:
"
qualifie
d"
,
title
:
'合格数量'
,
align
:
"left"
,
easy
:
true
,
...
...
@@ -128,7 +128,7 @@ export default {
this
.
$refs
.
grid
.
reload
(
this
.
easySearch
);
},
view
(
rowInfo
)
{
this
.
curId
=
rowInfo
.
i
d
;
this
.
curId
=
rowInfo
.
userI
d
;
this
.
row
=
rowInfo
;
this
.
title
=
"工时详情"
;
this
.
full
=
true
;
...
...
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