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
9976c761
Commit
9976c761
authored
Apr 20, 2020
by
康振飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
班组派工ok
parent
f6138121
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
13 deletions
+19
-13
opration.vue
components/page/opration.vue
+10
-10
index.vue
pages/aps/dispatch/index.vue
+9
-3
No files found.
components/page/opration.vue
View file @
9976c761
<
template
>
<
template
>
<Tooltip
trigger=
"hover"
v-if=
"title"
:content=
"title"
placement=
"top-end"
>
<Tooltip
trigger=
"hover"
v-if=
"title"
:content=
"title"
placement=
"top-end"
>
<a
class=
"op"
:class=
"css"
@
click=
"handler"
>
<a
class=
"op"
:class=
"css"
@
click=
"handler"
>
<slot>
<slot>
<Icon
v-if=
"type=='icon'"
:type=
"icon"
/>
<Icon
v-if=
"type=='icon'"
:type=
"icon"
/>
...
...
pages/aps/dispatch/index.vue
View file @
9976c761
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<p
slot=
"title"
class=
"card_top"
>
<p
slot=
"title"
class=
"card_top"
>
<Checkbox
<Checkbox
v-model=
"item.checked"
v-model=
"item.checked"
:disabled=
"item.
dispatchStatus==2
"
:disabled=
"item.
status!=-1
"
>
订单号:
{{
item
.
mesCode
}}
</Checkbox>
>
订单号:
{{
item
.
mesCode
}}
</Checkbox>
</p>
</p>
<div
class=
"h60"
>
<div
class=
"h60"
>
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
title=
"拆分"
title=
"拆分"
type=
"icon"
type=
"icon"
icon=
"md-cut"
icon=
"md-cut"
v-if=
"item.quantity > 1 && item.pid == 0"
v-if=
"item.quantity > 1 && item.pid == 0
&& item.status==-1
"
@
click=
"setChai(item,index)"
@
click=
"setChai(item,index)"
></op>
></op>
<op
<op
...
@@ -49,6 +49,7 @@
...
@@ -49,6 +49,7 @@
<!-- -->
<!-- -->
</p>
</p>
<p>
{{
item
.
beginTime
}}
--
{{
item
.
endTime
}}
</p>
<p>
{{
item
.
beginTime
}}
--
{{
item
.
endTime
}}
</p>
<p>
人员 :
{{
item
.
userNames
}}
</p>
<!--
<p>
设备 :
{{
item
.
equipCode
}}
</p>
-->
<!--
<p>
设备 :
{{
item
.
equipCode
}}
</p>
-->
</div>
</div>
</Card>
</Card>
...
@@ -268,6 +269,7 @@ export default {
...
@@ -268,6 +269,7 @@ export default {
chaiNum
:
1
,
//拆分数量
chaiNum
:
1
,
//拆分数量
maxnum
:
1
,
maxnum
:
1
,
rowIndex
:
0
,
//多选项的index
rowIndex
:
0
,
//多选项的index
chaiId
:
0
,
entity
:
{
entity
:
{
taskTime
:
''
,
//工时
taskTime
:
''
,
//工时
userIds
:
null
,
//选中人员
userIds
:
null
,
//选中人员
...
@@ -394,6 +396,7 @@ export default {
...
@@ -394,6 +396,7 @@ export default {
routingHeaderId
:
u
.
routingHeaderId
,
//
routingHeaderId
:
u
.
routingHeaderId
,
//
status
:
u
.
status
,
//
status
:
u
.
status
,
//
userIds
:
u
.
userIds
,
//
userIds
:
u
.
userIds
,
//
userNames
:
u
.
userNames
,
pid
:
0
,
//拆分项id
pid
:
0
,
//拆分项id
}
}
savedUl
.
push
(
detailnew
)
savedUl
.
push
(
detailnew
)
...
@@ -416,6 +419,7 @@ export default {
...
@@ -416,6 +419,7 @@ export default {
},
},
// 过滤条件
// 过滤条件
changeStatus
(
a
)
{
changeStatus
(
a
)
{
// console.log(a)
this
.
getUserInfoFn
()
this
.
getUserInfoFn
()
},
},
// 打开抽屉
// 打开抽屉
...
@@ -498,11 +502,13 @@ export default {
...
@@ -498,11 +502,13 @@ export default {
this
.
chaiNum
=
1
this
.
chaiNum
=
1
this
.
maxnum
=
item
.
quantity
-
1
this
.
maxnum
=
item
.
quantity
-
1
this
.
rowIndex
=
index
this
.
rowIndex
=
index
// this.chaiId = item.id
},
},
okChai
()
{
okChai
()
{
var
detail
=
this
.
$u
.
clone
(
this
.
listTask
[
this
.
rowIndex
])
var
detail
=
this
.
$u
.
clone
(
this
.
listTask
[
this
.
rowIndex
])
this
.
listTask
[
this
.
rowIndex
].
quantity
-=
this
.
chaiNum
this
.
listTask
[
this
.
rowIndex
].
quantity
-=
this
.
chaiNum
// detail.pid = this.$u.guid()
// detail.id = 0
// detail.pid = this.chaiId
detail
.
pid
=
this
.
$u
.
guid
()
detail
.
pid
=
this
.
$u
.
guid
()
detail
.
quantity
=
this
.
chaiNum
detail
.
quantity
=
this
.
chaiNum
this
.
listTask
.
splice
(
this
.
rowIndex
+
1
,
0
,
detail
)
this
.
listTask
.
splice
(
this
.
rowIndex
+
1
,
0
,
detail
)
...
...
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