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
a3f9bc47
Commit
a3f9bc47
authored
Nov 06, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
workhourManage detail\indx\zh-cn\datagrid...
parent
925dc4cf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
953 additions
and
1000 deletions
+953
-1000
dataGrid.vue
components/page/dataGrid.vue
+911
-974
zh-CN.js
i18n/locale/zh-CN.js
+14
-0
detail.vue
pages/produce/workHourManage/detail.vue
+19
-18
index.vue
pages/produce/workHourManage/index.vue
+9
-8
No files found.
components/page/dataGrid.vue
View file @
a3f9bc47
This diff is collapsed.
Click to expand it.
i18n/locale/zh-CN.js
View file @
a3f9bc47
...
...
@@ -2155,5 +2155,19 @@ document_category: {
template
:
'模板'
,
attachment
:
'附件'
,
type
:
'模版类型'
,
},
workHour
:
{
userTitle
:
'员工姓名'
,
userCardNo
:
'员工编号'
,
totalWorkHour
:
'工时数量'
,
planQuantity
:
'计划数量'
,
qualified
:
'合格数量'
,
action
:
'操作'
,
mesCode
:
'订单编号'
,
productName
:
'产品名称'
,
drawnNumber
:
'产品图号'
,
routingDetailSeq
:
'工序号'
,
routingDetailName
:
'工序名称'
,
workHour
:
'工时数量'
,
}
}
\ No newline at end of file
pages/produce/workHourManage/detail.vue
View file @
a3f9bc47
...
...
@@ -2,7 +2,7 @@
<div
class=
"detail"
>
<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
.
creatorUserI
d
}}
</span></p>
<p
class=
"pl10"
>
{{
this
.
l
(
'userTitle'
)
}}
:
<span
class=
"mr20"
>
{{
entity
.
userTitle
}}
</span>
{{
this
.
l
(
'userTitle'
)
}}
:
<span
class=
"mr20"
>
{{
entity
.
userCardNo
}}
</span>
{{
this
.
l
(
'totalWorkHour'
)
}}
:
<span
class=
"mr20"
>
{{
entity
.
totalWorkHour
}}
</span>
{{
this
.
l
(
'planQuantity'
)
}}
:
<span
class=
"mr20"
>
{{
entity
.
planQuantity
}}
</span>
{{
this
.
l
(
'qualified'
)
}}
:
<span
class=
"mr20"
>
{{
entity
.
qualifie
d
}}
</span></p>
</
template
>
</DataGrid>
</div>
...
...
@@ -30,39 +30,36 @@ export default {
fileUrlPath
:
""
,
columns
:
[{
key
:
"mesCode"
,
title
:
'订单编号'
,
title
:
this
.
l
(
'mesCode'
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
,
},
{
key
:
"productName"
,
title
:
'产品名称'
,
title
:
this
.
l
(
'productName'
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
,
},
{
key
:
"drawnNumber"
,
title
:
'产品图号'
,
title
:
this
.
l
(
'drawnNumber'
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
,
},
{
key
:
"routingDetailSeq"
,
title
:
'工序号'
,
align
:
"left"
,
easy
:
true
,
high
:
true
,
title
:
this
.
l
(
'routingDetailSeq'
),
align
:
"right"
,
width
:
100
,
},
{
key
:
"routingDetailName"
,
title
:
'工序名称'
,
title
:
this
.
l
(
'routingDetailName'
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
,
}
},
{
key
:
"workHour"
,
title
:
this
.
l
(
'workHour'
),
align
:
"right"
,
},
],
data
:
[],
};
...
...
@@ -100,6 +97,10 @@ export default {
handleClose
()
{
this
.
$emit
(
"on-close"
);
},
l
(
key
)
{
let
vkey
=
"workHour"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
;
},
},
watch
:
{
row
(
v
)
{
...
...
pages/produce/workHourManage/index.vue
View file @
a3f9bc47
<
template
>
<div
class=
"h100"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
>
<DataGrid
:columns=
"columns"
ref=
"grid"
:action=
"action"
:conditions=
"easySearch"
>
<template
slot=
"easySearch"
>
<Form
ref=
"formInline"
:model=
"easySearch"
inline
>
<FormItem
prop=
"keys"
>
...
...
@@ -35,6 +35,7 @@ export default {
op
:
"userTitle,userCardNo"
,
value
:
null
},
sortBy
:
'totalWorkHour'
},
modal
:
false
,
full
:
false
,
...
...
@@ -50,41 +51,41 @@ export default {
title
:
"序号"
,
},
{
key
:
"userTitle"
,
title
:
'员工姓名'
,
title
:
this
.
l
(
'userTitle'
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
,
},
{
key
:
"userCardNo"
,
title
:
'员工编号'
,
title
:
this
.
l
(
'userCardNo'
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
,
},
{
key
:
"totalWorkHour"
,
title
:
'工时数量'
,
title
:
this
.
l
(
'totalWorkHour'
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
,
},
{
key
:
"planQuantity"
,
title
:
'计划数量'
,
title
:
this
.
l
(
'planQuantity'
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
,
},
{
key
:
"qualified"
,
title
:
'合格数量'
,
title
:
this
.
l
(
'qualified'
)
,
align
:
"left"
,
easy
:
true
,
high
:
true
,
},
{
title
:
"操作"
,
title
:
this
.
l
(
"action"
)
,
key
:
"action"
,
width
:
140
,
align
:
"center"
,
...
...
@@ -141,7 +142,7 @@ export default {
this
.
modal
=
false
;
},
l
(
key
)
{
let
vkey
=
"
import_cente
r"
+
"."
+
key
;
let
vkey
=
"
workHou
r"
+
"."
+
key
;
return
this
.
$t
(
vkey
)
||
key
;
},
},
...
...
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