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
974e41fd
Commit
974e41fd
authored
Jun 14, 2025
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产工单增加编排分析
parent
291183af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
arrange.js
src/api/mes/pro/arrange.js
+8
-1
indexApply.vue
src/views/mes/pro/workorder/indexApply.vue
+13
-1
No files found.
src/api/mes/pro/arrange.js
View file @
974e41fd
...
@@ -15,7 +15,14 @@ export function listGroupArrange(query) {
...
@@ -15,7 +15,14 @@ export function listGroupArrange(query) {
params
:
query
params
:
query
})
})
}
}
// 编排分析
export
function
checkArrange
(
data
)
{
return
request
({
url
:
'/pro/arrange/checkArrange'
,
method
:
'post'
,
data
:
data
})
}
// 查询生产编排单详细
// 查询生产编排单详细
export
function
getArrange
(
arrangeId
)
{
export
function
getArrange
(
arrangeId
)
{
...
...
src/views/mes/pro/workorder/indexApply.vue
View file @
974e41fd
...
@@ -175,6 +175,11 @@
...
@@ -175,6 +175,11 @@
v-hasPermi=
"['mes:pro:workorder:dofinish']"
>
生产编排
v-hasPermi=
"['mes:pro:workorder:dofinish']"
>
生产编排
</el-button>
</el-button>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
plain
icon=
"el-icon-edit"
size=
"mini"
@
click=
"()=>checkArrange()"
:disabled=
"multiple"
>
编排分析
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
plain
icon=
"el-icon-edit"
size=
"mini"
@
click=
"()=>handleArrange('del')"
:disabled=
"combinationDisable"
<el-button
type=
"warning"
plain
icon=
"el-icon-edit"
size=
"mini"
@
click=
"()=>handleArrange('del')"
:disabled=
"combinationDisable"
>
取消编排
>
取消编排
...
@@ -697,7 +702,7 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
...
@@ -697,7 +702,7 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import
{
getToken
}
from
"@/utils/auth"
;
import
{
getToken
}
from
"@/utils/auth"
;
import
{
addCombination
,
batchAddCombination
,
batchAddCombinations
}
from
"@/api/mes/pro/combination"
;
import
{
addCombination
,
batchAddCombination
,
batchAddCombinations
}
from
"@/api/mes/pro/combination"
;
import
CombinationInfos
from
"@/views/mes/pro/combination/infos.vue"
;
import
CombinationInfos
from
"@/views/mes/pro/combination/infos.vue"
;
import
{
batchAddArrange
,
delArrange
,
delArrange2
,
checkArrangeRulesApi
}
from
"@/api/mes/pro/arrange"
;
import
{
batchAddArrange
,
delArrange
,
delArrange2
,
checkArrangeRulesApi
,
checkArrange
}
from
"@/api/mes/pro/arrange"
;
import
ArrangeInfo
from
"@/views/mes/pro/arrange/info.vue"
;
import
ArrangeInfo
from
"@/views/mes/pro/arrange/info.vue"
;
import
CommandList
from
"./commandList.vue"
;
import
CommandList
from
"./commandList.vue"
;
import
dayjs
from
'dayjs'
;
import
dayjs
from
'dayjs'
;
...
@@ -1009,6 +1014,13 @@ export default {
...
@@ -1009,6 +1014,13 @@ export default {
}
}
this
.
arrangeCode
=
arrangeCode
;
this
.
arrangeCode
=
arrangeCode
;
}
,
}
,
checkArrange
(){
if
(
this
.
ids
.
length
!==
2
)
return
this
.
$message
.
warning
(
'请选择两条工单记录进行分析!'
)
checkArrange
({
workorderIdList
:
this
.
ids
}
).
then
(
res
=>
{
console
.
log
(
'编排分析'
,
res
)
}
)
}
,
async
handleArrange
(
type
)
{
async
handleArrange
(
type
)
{
if
(
type
===
'del'
)
{
if
(
type
===
'del'
)
{
if
(
this
.
ids
.
length
===
0
)
return
this
.
$message
.
warning
(
'请勾选要取消编排的工单'
)
if
(
this
.
ids
.
length
===
0
)
return
this
.
$message
.
warning
(
'请勾选要取消编排的工单'
)
...
...
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