Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NLT-e-cigarette
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
张伯涛
NLT-e-cigarette
Commits
4b4e9f0b
Commit
4b4e9f0b
authored
Sep 01, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
654df9b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
6 deletions
+26
-6
workOrder.js
src/api/workOrder.js
+9
-0
workOrder.vue
src/views/ProductionProcess/workOrder.vue
+17
-6
No files found.
src/api/workOrder.js
View file @
4b4e9f0b
...
@@ -12,6 +12,15 @@ export function listOrder(query) {
...
@@ -12,6 +12,15 @@ export function listOrder(query) {
})
})
}
}
// 完结开启
export
function
openEnd
(
query
)
{
return
request
({
url
:
'/nltifsorder/updateEnd'
,
method
:
'post'
,
params
:
query
})
}
// 删除生产工单(逻辑删除)
// 删除生产工单(逻辑删除)
export
function
delOrder
(
orderID
)
{
export
function
delOrder
(
orderID
)
{
return
request
({
return
request
({
...
...
src/views/ProductionProcess/workOrder.vue
View file @
4b4e9f0b
...
@@ -661,6 +661,7 @@ import {
...
@@ -661,6 +661,7 @@ import {
listOrderMater
,
listOrderMater
,
listStation
,
listStation
,
clearCache
,
clearCache
,
openEnd
,
manualImport
,
editPo
manualImport
,
editPo
}
from
'@/api/workOrder'
}
from
'@/api/workOrder'
import
moment
from
'moment'
import
moment
from
'moment'
...
@@ -917,13 +918,18 @@ export default {
...
@@ -917,13 +918,18 @@ export default {
cancelButtonClass
:
'btn-custom-cancel'
,
cancelButtonClass
:
'btn-custom-cancel'
,
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(()
=>
{
const
businessId
=
item
.
orderModelId
const
params
=
{
clearCache
(
businessId
).
then
(
res
=>
{
businessId
:
item
.
businessId
,
status
:
'1'
,
modelType
:
item
.
modelType
}
openEnd
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
$message
({
this
.
$message
({
type
:
'success'
,
type
:
'success'
,
message
:
'
缓存清除
成功'
message
:
'
操作
成功'
})
})
this
.
getOrderTable
()
}
}
})
})
})
})
...
@@ -936,13 +942,18 @@ export default {
...
@@ -936,13 +942,18 @@ export default {
cancelButtonClass
:
'btn-custom-cancel'
,
cancelButtonClass
:
'btn-custom-cancel'
,
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(()
=>
{
const
businessId
=
item
.
orderModelId
const
params
=
{
clearCache
(
businessId
).
then
(
res
=>
{
businessId
:
item
.
businessId
,
status
:
'2'
,
modelType
:
item
.
modelType
}
openEnd
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
this
.
$message
({
this
.
$message
({
type
:
'success'
,
type
:
'success'
,
message
:
'
缓存清除
成功'
message
:
'
操作
成功'
})
})
this
.
getOrderTable
()
}
}
})
})
})
})
...
...
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