llj20200416文档V7修改
This commit is contained in:
@@ -150,6 +150,20 @@ export function confirmEdit(...param) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function deleterow(...param) {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
UserID: state.state.user.id,
|
||||||
|
ModularID: router.currentRoute.path,
|
||||||
|
type: '2',
|
||||||
|
name: '车间生产管理_质检管理_删除处理',
|
||||||
|
param: `质检流水号=${param[0]}&质检类型代码=${param[1]}&零部件流水号=${param[2]}&数量=${param[3]}`
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
// 质检管理_质量情况_查询数据
|
// 质检管理_质量情况_查询数据
|
||||||
export function selecttable(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, check6, value6, check7, value7, check8, value8, pageCurrent, pageSize) {
|
export function selecttable(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, check6, value6, check7, value7, check8, value8, pageCurrent, pageSize) {
|
||||||
return request({
|
return request({
|
||||||
|
|||||||
@@ -791,22 +791,34 @@ export default {
|
|||||||
},
|
},
|
||||||
// 表内编辑确定
|
// 表内编辑确定
|
||||||
confirmEdit(row) {
|
confirmEdit(row) {
|
||||||
console.log(row, 676767)
|
|
||||||
|
|
||||||
confirmEdit(row.质检流水号, row.质检类型代码, row.零部件流水号, row.是否合格, row.数量, row.不合格数量, row.不合格原因, row.处理结果, row.备注, this.$store.state.user.id).then(response => {
|
confirmEdit(row.质检流水号, row.质检类型代码, row.零部件流水号, row.是否合格, row.数量, row.不合格数量, row.不合格原因, row.处理结果, row.备注, this.$store.state.user.id).then(response => {
|
||||||
if (response.data[0].result === '1') {
|
if (response.data[0].result === '1') {
|
||||||
this.dialogFormVisible10 = false
|
|
||||||
this.$message.success('编辑成功')
|
this.$message.success('编辑成功')
|
||||||
this.selecttable()
|
this.selecttable()
|
||||||
} else {
|
} else {
|
||||||
this.$message.error('编辑失败')
|
this.$message.error('编辑失败')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.selecttable()
|
|
||||||
row.edit = false
|
row.edit = false
|
||||||
},
|
},
|
||||||
|
// 删除质检
|
||||||
deleterow(row) {
|
deleterow(row) {
|
||||||
// this.plan = row.计划流水号
|
// this.plan = row.计划流水号
|
||||||
|
console.log(row, 4545)
|
||||||
|
this.$confirm('是否删除该质检记录?', '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
}).then(() => {
|
||||||
|
confirmEdit(row.质检流水号, row.质检类型代码, row.零部件流水号, row.数量).then(response => {
|
||||||
|
if (response.data[0].result === '1') {
|
||||||
|
this.$message.success('删除成功')
|
||||||
|
this.selecttable()
|
||||||
|
} else {
|
||||||
|
this.$message.error('编辑失败')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
},
|
},
|
||||||
initProject() {
|
initProject() {
|
||||||
initProject().then(response => {
|
initProject().then(response => {
|
||||||
|
|||||||
Reference in New Issue
Block a user