Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
pda-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
pda
pda-ui
Commits
c9773f0c
Commit
c9773f0c
authored
Feb 02, 2024
by
李驰骋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工单添加工装量具是否齐套校验功能
parent
14adc6b8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
2 deletions
+34
-2
workorder.js
src/api/mes/pro/workorder.js
+9
-1
indexApply.vue
src/views/mes/pro/workorder/indexApply.vue
+25
-1
No files found.
src/api/mes/pro/workorder.js
View file @
c9773f0c
...
@@ -59,6 +59,14 @@ export function dofinish(workorderId){
...
@@ -59,6 +59,14 @@ export function dofinish(workorderId){
})
})
}
}
export
function
doCheckToolNum
(
workorderId
){
return
request
({
url
:
'/mes/pro/workorder/checkToolNum'
,
data
:
{
'workorderIds'
:
workorderId
},
method
:
'post'
})
}
//单个完成工单,将草稿->已确认
//单个完成工单,将草稿->已确认
export
function
confirmedWorkorder
(
workorderId
){
export
function
confirmedWorkorder
(
workorderId
){
return
request
({
return
request
({
...
...
src/views/mes/pro/workorder/indexApply.vue
View file @
c9773f0c
...
@@ -171,6 +171,17 @@
...
@@ -171,6 +171,17 @@
>
生成任务单
</el-button
>
生成任务单
</el-button
>
>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleToolNumCheck"
v-hasPermi=
"['mes:pro:workorder:dofinish']"
>
工装量具齐套检查
</el-button
>
</el-col>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
<el-button
type=
"info"
type=
"info"
...
@@ -685,6 +696,7 @@ import {
...
@@ -685,6 +696,7 @@ import {
addWorkorder
,
addWorkorder
,
updateWorkorder
,
updateWorkorder
,
dofinish
,
dofinish
,
doCheckToolNum
}
from
"@/api/mes/pro/workorder"
;
}
from
"@/api/mes/pro/workorder"
;
import
{
addProtaskList
}
from
"@/api/mes/pro/protask"
;
import
{
addProtaskList
}
from
"@/api/mes/pro/protask"
;
import
Workorderbom
from
"./bom/bom.vue"
;
import
Workorderbom
from
"./bom/bom.vue"
;
...
@@ -1077,6 +1089,18 @@ export default {
...
@@ -1077,6 +1089,18 @@ export default {
}
)
}
)
.
catch
(()
=>
{
}
);
.
catch
(()
=>
{
}
);
}
,
}
,
handleToolNumCheck
(){
this
.
$modal
.
confirm
(
"是否检查刀具模版齐套?"
)
.
then
(()
=>
{
const
ids
=
this
.
selectedRows
.
map
((
v
)
=>
v
.
workorderId
);
return
doCheckToolNum
(
ids
);
}
)
.
then
(()
=>
{
this
.
$modal
.
msgSuccess
(
"已齐套"
);
}
)
.
catch
(()
=>
{
}
);
}
,
handleSelectProduct
()
{
handleSelectProduct
()
{
this
.
$refs
.
itemSelect
.
showFlag
=
true
;
this
.
$refs
.
itemSelect
.
showFlag
=
true
;
}
,
}
,
...
...
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