Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
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
mes-ui
Commits
d5ef3d13
Commit
d5ef3d13
authored
May 29, 2025
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产排产增加取消排产按钮
parent
ccaf510f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
1 deletion
+30
-1
protask.js
src/api/mes/pro/protask.js
+8
-0
index.vue
src/views/mes/pro/scheduleList/index.vue
+22
-1
No files found.
src/api/mes/pro/protask.js
View file @
d5ef3d13
...
@@ -64,6 +64,14 @@ export function getProtask(taskId) {
...
@@ -64,6 +64,14 @@ export function getProtask(taskId) {
});
});
}
}
// 取消排产
export
function
unschedule
(
arrangeCode
)
{
return
request
({
url
:
"/mes/pro/protask/unschedule/"
+
arrangeCode
,
method
:
"get"
,
});
}
// 新增生产任务
// 新增生产任务
export
function
addProtask
(
data
)
{
export
function
addProtask
(
data
)
{
return
request
({
return
request
({
...
...
src/views/mes/pro/scheduleList/index.vue
View file @
d5ef3d13
...
@@ -182,6 +182,15 @@
...
@@ -182,6 +182,15 @@
@
click=
"handleVirtualReporting"
@
click=
"handleVirtualReporting"
>
虚拟报工
</el-button>
>
虚拟报工
</el-button>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
plain
size=
"mini"
:disabled=
'single'
@
click=
"handleUnschedule"
>
取消排产
</el-button>
</el-col>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
</el-row>
...
@@ -638,7 +647,7 @@ import {
...
@@ -638,7 +647,7 @@ import {
getworkstationList
,
getworkstationList
,
gettaskWorkunitList
,
gettaskWorkunitList
,
getdefaultWorkCenterList
}
from
'@/api/mes/pro/scheduleList'
getdefaultWorkCenterList
}
from
'@/api/mes/pro/scheduleList'
import
{
putProtaskSplit
,
splitWorkstation
,
deleteTask
,
updateProTaskWorkunitApi
}
from
'@/api/mes/pro/protask'
import
{
putProtaskSplit
,
splitWorkstation
,
deleteTask
,
u
nschedule
,
u
pdateProTaskWorkunitApi
}
from
'@/api/mes/pro/protask'
import
BrandSelect
from
"@/components/TmTool/index.vue"
;
import
BrandSelect
from
"@/components/TmTool/index.vue"
;
import
shiftSelectMixin
from
'@/utils/shiftSelectMixin'
import
shiftSelectMixin
from
'@/utils/shiftSelectMixin'
import
OrderList
from
'./orderList.vue'
import
OrderList
from
'./orderList.vue'
...
@@ -837,6 +846,18 @@ export default {
...
@@ -837,6 +846,18 @@ export default {
});
});
})
})
},
},
handleUnschedule
(){
this
.
$modal
.
confirm
(
'是否取消排产'
)
.
then
(
()
=>
{
unschedule
(
this
.
selectedRows
[
0
].
arrangeCode
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
this
.
$modal
.
msgSuccess
(
"取消成功"
);
this
.
getList
();
}
});
})
},
handleVirtualReporting
()
{
handleVirtualReporting
()
{
const
params
=
{
const
params
=
{
taskWorkunitId
:
this
.
selectedRows
[
0
].
taskWorkunitId
,
taskWorkunitId
:
this
.
selectedRows
[
0
].
taskWorkunitId
,
...
...
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