Commit 57a13dc9 authored by zhangyichen's avatar zhangyichen

工单完成

parent d9d2d050
// 不良定义api // 不良定义api
import request from '@/utils/request' import request from '@/utils/request'
import Qs from 'qs'
// 分页查询列表 // 新增
export function nltmodelAdd(data) { export function nltmodelAdd(data) {
return request({ return request({
url: '/nltmodel/add', url: '/nltmodel/add',
...@@ -12,3 +12,42 @@ export function nltmodelAdd(data) { ...@@ -12,3 +12,42 @@ export function nltmodelAdd(data) {
} }
}) })
} }
// 编辑
export function nltmodelUpdate(data) {
return request({
url: '/nltmodel/update',
method: 'put',
data,
headers: {
'Content-Type': 'application/json'
}
})
}
// 查看详情
export function nltmodelDetail(data) {
return request({
url: '/nltmodel/detail/' + data.businessId,
method: 'get'
})
}
// 工单查看详情
export function nltordermodelDetail(data) {
return request({
url: '/nltordermodel/detail/' + data.businessId,
method: 'get'
})
}
// 工单编辑
// 编辑
export function nltordermodelUpdate(data) {
return request({
url: '/nltordermodel/update',
method: 'put',
data,
headers: {
'Content-Type': 'application/json'
}
})
}
...@@ -482,7 +482,16 @@ export default { ...@@ -482,7 +482,16 @@ export default {
}) })
}, },
/** 编辑按钮方法 */ /** 编辑按钮方法 */
handleUpdate() {}, handleUpdate(row) {
console.log(row, 'row')
this.$router.push({
path: '/ProductionProcess/ModelDetails',
query: {
businessId: row.businessId,
type: '2'
}
})
},
/** 对话框关闭按钮方法 */ /** 对话框关闭按钮方法 */
cancel() { cancel() {
this.open = false this.open = false
......
This diff is collapsed.
...@@ -208,7 +208,21 @@ export default { ...@@ -208,7 +208,21 @@ export default {
handleAdd() { handleAdd() {
this.title = '生产模型信息' this.title = '生产模型信息'
this.$router.push({ this.$router.push({
name: '/productionInfo/ModelDetails' name: '/productionInfo/ModelDetails',
query: {
type: '3'
}
})
},
// 修改生产模型
handleUpdate(row) {
console.log(row, 'row')
this.$router.push({
path: '/productionInfo/ModelDetails',
query: {
businessId: row.businessId,
type: '1'
}
}) })
} }
} }
......
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