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

修改

parent 654df9b3
...@@ -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({
......
...@@ -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()
} }
}) })
}) })
......
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