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
62ba4b0e
Commit
62ba4b0e
authored
May 22, 2020
by
康振飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工单列表list
parent
d43846f9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
51 deletions
+20
-51
api.js
pages/produce/api.js
+3
-1
orderlist.vue
pages/produce/execute/components/orderlist.vue
+17
-50
No files found.
pages/produce/api.js
View file @
62ba4b0e
...
...
@@ -4,5 +4,7 @@ export default {
paged
(
params
)
{
return
Api
.
post
(
`
${
PlanUrl
}
/orderexecutenew/paged_img`
,
params
);
},
getCardList
(
params
)
{
return
Api
.
post
(
`
${
PlanUrl
}
/orderexecutenew/list`
,
params
);
},
}
pages/produce/execute/components/orderlist.vue
View file @
62ba4b0e
...
...
@@ -18,15 +18,16 @@
:class=
"item.status=='未开工'? 'card_border1' : (item.status=='执行中' ? 'card_border2': (item.status=='暂停中' ?'card_border3':
(item.status=='交检中'?'card_border4':(item.status=='交接中'?'card_border5':''))))"
>
<p
slot=
"title"
>
{{
item
.
titl
e
}}
<span
class=
"fr"
>
{{
item
.
status
}}
</span></p>
<p
class=
"order_tit"
>
{{
item
.
shebei
}}
</p>
<p><Icon
type=
"ios-pricetags"
/>
{{
item
.
gongxu
}}
</p>
<p>
{{
item
.
t
ime
}}
</p>
<p
slot=
"title"
>
{{
item
.
mesCod
e
}}
<span
class=
"fr"
>
{{
item
.
status
}}
</span></p>
<p
class=
"order_tit"
>
{{
item
.
productName
}}
</p>
<p><Icon
type=
"ios-pricetags"
/>
{{
item
.
taskName
}}
</p>
<p>
{{
item
.
beginTime
}}
~
{{
item
.
endT
ime
}}
</p>
</Card>
</div>
</div>
</
template
>
<
script
>
import
Api
from
"../../api"
;
export
default
{
name
:
'orderlist'
,
data
(){
...
...
@@ -58,51 +59,6 @@ export default {
},
],
listTasks
:[],
listTask
:[
{
title
:
'CJ_181212_002_001'
,
status
:
'已完成'
,
shebei
:
'发动机'
,
gongxu
:
'工序1:领料'
,
time
:
'2018-12-12 ~ 2018-12-30'
,
},{
title
:
'CJ_181212_002_002'
,
status
:
'未开工'
,
shebei
:
'发动机'
,
gongxu
:
'工序1:领料'
,
time
:
'2018-12-12 ~ 2018-12-30'
,
},{
title
:
'CJ_181212_002_003'
,
status
:
'执行中'
,
shebei
:
'发动机'
,
gongxu
:
'工序1:领料'
,
time
:
'2018-12-12 ~ 2018-12-30'
,
},{
title
:
'CJ_181212_002_004'
,
status
:
'暂停中'
,
shebei
:
'发动机'
,
gongxu
:
'工序1:领料'
,
time
:
'2018-12-12 ~ 2018-12-30'
,
},{
title
:
'CJ_181212_002_005'
,
status
:
'交检中'
,
shebei
:
'发动机'
,
gongxu
:
'工序1:领料'
,
time
:
'2018-12-12 ~ 2018-12-30'
,
},{
title
:
'CJ_181212_002_006'
,
status
:
'交接中'
,
shebei
:
'发动机'
,
gongxu
:
'工序1:领料'
,
time
:
'2018-12-12 ~ 2018-12-30'
,
},{
title
:
'CJ_181212_002_007'
,
status
:
'已完成'
,
shebei
:
'发动机'
,
gongxu
:
'工序1:领料'
,
time
:
'2018-12-12 ~ 2018-12-30'
,
},
],
}
},
created
()
{
...
...
@@ -110,7 +66,18 @@ export default {
},
methods
:
{
loadTree
(){
this
.
listTasks
=
this
.
listTask
let
parmse
=
{
status
:
0
,
isAsc
:
true
}
Api
.
getCardList
(
parmse
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
success
){
this
.
listTasks
=
res
.
result
}
console
.
warn
(
this
.
listTasks
)
})
// this.listTasks = this.listTask
},
gnFunto
(
number
,
type
){
this
.
gnFlag
=
number
...
...
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