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
fcc2f935
Commit
fcc2f935
authored
Apr 17, 2020
by
康振飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
排产派工bug修改
parent
87eb3a25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
index.vue
pages/mainProcess/index.vue
+10
-0
No files found.
pages/mainProcess/index.vue
View file @
fcc2f935
...
...
@@ -26,6 +26,7 @@
</Col>
<Col
span=
"5"
>
<FormItem
label
>
<!-- :disabled="disableFlagbao" -->
<Button
class=
"mr10"
@
click=
"saveCase"
>
保存方案
</Button>
<Button
type=
"primary"
:disabled=
"disableFlag"
@
click=
"setPaiCase"
>
确认派工
</Button>
</FormItem>
...
...
@@ -183,6 +184,7 @@ export default {
chaiNum
:
1
,
//拆分数量
quantityold
:
0
,
//存投产数量
disableFlag
:
false
,
//确认派工按钮是否禁用
disableFlagbao
:
false
,
//保存方案按钮是否禁用
}
},
created
()
{
...
...
@@ -418,8 +420,12 @@ export default {
var
start
=
''
var
end
=
''
if
(
u
.
times
.
length
==
2
){
if
(
u
.
times
[
0
]
==
undefined
||
u
.
times
[
1
]
==
undefined
){
return
}
else
{
start
=
new
Date
(
u
.
times
[
0
])
end
=
new
Date
(
u
.
times
[
1
])
}
}
var
detail
=
{
detailId
:
u
.
detailId
,
//工序id--后端接收
...
...
@@ -439,6 +445,7 @@ export default {
items
.
push
(
detail
)
})
// console.log(items)
// this.disableFlagbao = false
let
url
=
`
${
PlanUrl
}
/dispatch/schememain`
//保存方案接口new
service
.
post
(
url
,
{
orderId
:
this
.
data
.
row
[
0
].
order_id
,
...
...
@@ -449,8 +456,10 @@ export default {
// console.log(r)
if
(
r
.
statusText
==
"OK"
)
{
this
.
$Message
.
success
(
'已保存。'
)
// this.disableFlagbao = true
}
else
{
this
.
$Message
.
error
(
'保存失败'
)
// this.disableFlagbao = false
}
})
},
...
...
@@ -491,6 +500,7 @@ export default {
return
}
}
this
.
disableFlag
=
false
let
urlPai
=
`
${
PlanUrl
}
/dispatch/dispatchmain`
//派工接口
service
.
post
(
urlPai
,
{
orderId
:
this
.
data
.
row
[
0
].
order_id
,
//订单ID
...
...
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