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
cf20974b
Commit
cf20974b
authored
Nov 04, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tasktime
parent
03194a8a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
345 additions
and
378 deletions
+345
-378
orderlistWorkHour.vue
pages/produce/execute/components/orderlistWorkHour.vue
+1
-4
index.vue
pages/produce/execute/taskTime/index.vue
+344
-374
No files found.
pages/produce/execute/components/orderlistWorkHour.vue
View file @
cf20974b
...
...
@@ -3,12 +3,9 @@
<div
class=
"card_box"
>
<Card
class=
"card_order"
v-for=
"(item,index) in listTasks"
:style=
"order==item.id?'box-shadow: 0px 0px 15px #333;':''"
@
click
.
native=
"goPage(item)"
:key=
"index"
:class=
"item.status==12 ? 'card_border1' : (item.status==14 ? 'card_border2': (item.status==5 ?'card_border3':
(item.status==7?'card_border4':(item.status==-1?'card_border5':''))))"
>
<!-- :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
.
mesCode
}}
<state
code=
"taskList.status"
ref=
"state"
class=
"fr"
:value=
"item.status"
type=
"text"
></state>
<!--
<span
>
{{
item
.
status
}}
</span>
-->
<state
code=
"orderList.workHourStatus"
ref=
"state"
class=
"fr"
:value=
"item.workHourStatus"
type=
"text"
></state>
</p>
<p
class=
"order_tit"
>
{{
item
.
productName
}}
</p>
<p>
...
...
pages/produce/execute/taskTime/index.vue
View file @
cf20974b
<
template
>
<div
class=
"gs_set"
>
<div
class=
"gs_set"
>
<div
style=
"text-align: center; background: wihte; height: 50px"
>
产品名称:
<span
class=
""
>
{{
topInfoShow
.
productName
}}
</span
>
工序号:
<span
class=
""
>
{{
topInfoShow
.
taskSeq
}}
</span
>
工序名称:
<span
class=
""
>
{{
topInfoShow
.
name
}}
</span
>
派工数量:
<span
class=
""
>
{{
topInfoShow
.
count
}}
</span
>
绩效单件:
<span
class=
""
>
{{
topInfoShow
.
performanceHours
}}
</span
>
绩效准结:
<span
class=
""
>
{{
topInfoShow
.
productName
}}
</span>
工序号:
<span
class=
""
>
{{
topInfoShow
.
taskSeq
}}
</span>
工序名称:
<span
class=
""
>
{{
topInfoShow
.
name
}}
</span>
派工数量:
<span
class=
""
>
{{
topInfoShow
.
count
}}
</span>
绩效单件:
<span
class=
""
>
{{
topInfoShow
.
performanceHours
}}
</span>
绩效准结:
<span
class=
""
>
{{
topInfoShow
.
performanceWorkingHours
}}
</span>
</div>
<div
class=
"gs_top"
>
...
...
@@ -41,21 +35,13 @@
<span
class=
"fr"
>
{{
item
.
userCardNo
}}
</span>
</p>
<p>
所属车间:
{{
item
.
workShopTitle
}}
</p>
<p>
所属班组:
{{
item
.
groupTitle
}}
</p>
<p
class=
"gs_time"
>
<span
v-show=
"!item.showInputWorkHour"
class=
"b_size"
>
{{
item
.
workHour
}}
</span>
<InputNumber
style=
"margin: 10px 0"
v-show=
"item.showInputWorkHour"
:max=
"maxHour"
:min=
"1"
:editable=
"false"
v-model=
"item.workHour"
@
on-change=
"testChange(item.workHour)"
></InputNumber>
<InputNumber
style=
"margin: 10px 0"
v-show=
"item.showInputWorkHour"
:max=
"maxHour"
:min=
"1"
:editable=
"false"
v-model=
"item.workHour"
@
on-change=
"testChange(item.workHour)"
></InputNumber>
工时
</p>
...
...
@@ -68,13 +54,9 @@
<p
class=
"gs_footer"
>
<a
class=
"gs_edit"
@
click=
"editItem(item, index)"
>
<Icon
type=
"md-create"
/>
编辑
</a
>
<a
class=
"gs_del"
style=
"position: absolute; right: 0px; width: 50%"
@
click=
"delItem(item.id)"
>
编辑
</a>
<a
class=
"gs_del"
style=
"position: absolute; right: 0px; width: 50%"
@
click=
"delItem(item.id)"
>
<Icon
type=
"ios-trash-outline"
/>
删除
</a>
</p>
...
...
@@ -83,52 +65,37 @@
<Icon
type=
"ios-add"
style=
"vertical-align: middle"
/>
</a>
</div>
<div
style=
"
<div
style=
"
text-align: center;
height: 50px;
width: 100%;
position: absolute;
bottom: 25px;
"
>
<Button
type=
"primary"
v-noClick
@
click=
"submitWorkHour"
style=
"height: 50px; width: 100px"
>
"
>
<Button
type=
"primary"
v-noClick
@
click=
"submitWorkHour"
style=
"height: 50px; width: 100px"
>
提交
</Button>
<Button
class=
"mr20"
style=
"background: #d0d2d9; height: 50px; width: 100px"
v-noClick
@
click=
"editCancel"
>
<Button
class=
"mr20"
style=
"background: #d0d2d9; height: 50px; width: 100px"
v-noClick
@
click=
"editCancel"
>
取消
</Button>
</div>
<!-- 新增弹框 -->
<Modal
v-model=
"addmodal"
width=
"1100"
:mask-closable=
"false"
title=
"添加人员"
footer-hide
>
<Modal
v-model=
"addmodal"
width=
"1100"
:mask-closable=
"false"
title=
"添加人员"
footer-hide
>
<addview
ref=
"addview"
@
on-close=
"cancel"
@
on-ok=
"addInfo"
></addview>
</Modal>
</div>
</div>
</
template
>
<
script
>
import
addview
from
"./add"
;
import
Api
from
"../api"
;
export
default
{
name
:
"starOrder"
,
components
:
{
addview
},
components
:
{
addview
},
data
()
{
return
{
starmodal
:
false
,
...
...
@@ -154,7 +121,10 @@ export default {
// this.treeHeight = window.innerHeight - 120;
this
.
Initload
();
},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
mounted
()
{
...
...
@@ -190,7 +160,9 @@ export default {
if
(
res
.
result
.
allHours
==
res
.
result
.
waitHours
)
{
let
id
=
this
.
$route
.
query
.
id
;
// 获取既定users
Api
.
getentryusers
({
Id
:
id
}).
then
((
res
)
=>
{
Api
.
getentryusers
({
Id
:
id
}).
then
((
res
)
=>
{
let
result
=
res
.
result
;
// 默认工时分配
...
...
@@ -258,13 +230,11 @@ export default {
// 工时分配列表
getWorkTimelist
()
{
let
parm
=
{
conditions
:
[
{
conditions
:
[{
fieldName
:
"dispatchId"
,
fieldValue
:
this
.
$route
.
query
.
id
,
conditionalType
:
"Equal"
,
},
],
},
],
};
Api
.
getentrylist
(
parm
).
then
((
rest
)
=>
{
if
(
rest
.
success
)
{
...
...
@@ -317,7 +287,9 @@ export default {
Api
.
subupdatehours
(
this
.
cardMan
).
then
((
res
)
=>
{
if
(
res
.
success
)
{
let
id
=
this
.
$route
.
query
.
id
;
Api
.
workhourstatus
({
Id
:
id
}).
then
((
res
)
=>
{
Api
.
workhourstatus
({
Id
:
id
}).
then
((
res
)
=>
{
if
(
res
.
success
)
{
this
.
$Message
.
success
(
"已提交"
);
this
.
laodHorse
();
...
...
@@ -368,8 +340,7 @@ export default {
// 修改之前未保存的编辑
Api
.
subupdatehours
(
this
.
cardMan
);
let
parme
=
[
{
let
parme
=
[{
userTitle
:
formdata
.
userName
,
userId
:
formdata
.
userId
,
userCardNo
:
formdata
.
cardNo
,
...
...
@@ -377,8 +348,7 @@ export default {
dispatchId
:
this
.
$route
.
query
.
id
,
routingDetailId
:
this
.
$route
.
query
.
routid
,
count
:
this
.
$route
.
query
.
quantity
,
},
];
},
];
Api
.
subcreatemodelhours
(
parme
).
then
((
res
)
=>
{
if
(
res
.
success
)
{
this
.
laodHorse
();
...
...
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