Commit 4b4e9f0b authored by 张伯涛's avatar 张伯涛

修改

parent 654df9b3
......@@ -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) {
return request({
......
......@@ -661,6 +661,7 @@ import {
listOrderMater,
listStation,
clearCache,
openEnd,
manualImport, editPo
} from '@/api/workOrder'
import moment from 'moment'
......@@ -917,13 +918,18 @@ export default {
cancelButtonClass: 'btn-custom-cancel',
type: 'warning'
}).then(() => {
const businessId = item.orderModelId
clearCache(businessId).then(res => {
const params = {
businessId: item.businessId,
status: '1',
modelType: item.modelType
}
openEnd(params).then(res => {
if (res.code === 200) {
this.$message({
type: 'success',
message: '缓存清除成功'
message: '操作成功'
})
this.getOrderTable()
}
})
})
......@@ -936,13 +942,18 @@ export default {
cancelButtonClass: 'btn-custom-cancel',
type: 'warning'
}).then(() => {
const businessId = item.orderModelId
clearCache(businessId).then(res => {
const params = {
businessId: item.businessId,
status: '2',
modelType: item.modelType
}
openEnd(params).then(res => {
if (res.code === 200) {
this.$message({
type: 'success',
message: '缓存清除成功'
message: '操作成功'
})
this.getOrderTable()
}
})
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment