This commit is contained in:
liushuai
2020-04-28 18:34:12 +08:00
parent af5fe2e9c6
commit a69eb1ca0e
5 changed files with 65 additions and 8 deletions

View File

@@ -89,6 +89,11 @@
{{ scope.row.报废人 }}
</template>
</el-table-column>
<el-table-column align="center" label="报废工序" width="85px">
<template slot-scope="scope">
{{ scope.row.工艺名称 }}
</template>
</el-table-column>
<el-table-column align="center" label="报废原因" width="100px" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.报废原因 }}

View File

@@ -204,7 +204,9 @@ export default {
pageSize: 30, // 每页显示条数
pageCurrent: 1, // 后台获取页
outTime: '',
order: ''
order: '',
operaPeople: [],
procedureGroup1: []
}
},
computed: {
@@ -294,15 +296,19 @@ export default {
this.Unqualified = []
this.remarkGroup = []
this.people = []
this.operaPeople = []
this.procedureGroup1 = []
for (let i = 0; i < this.procedureGroup.length; i++) {
this.ScrapQuantity.push(this.procedureGroup[i].不合格数量)
this.ProcessPlanNumber.push(this.procedureGroup[i].工艺计划流水号)
this.Unqualified.push(this.procedureGroup[i].不合格原因文本)
this.remarkGroup.push(this.procedureGroup[i].备注)
this.people.push(this.procedureGroup[i].人员编号)
this.operaPeople.push(this.procedureGroup[i].操作人员编号)
this.procedureGroup1.push(this.procedureGroup[i].工序流水号)
}
this.handleEdit_disable = true
editSpare(this.ProcessPlanNumber, this.ScrapQuantity, this.id, this.Unqualified, this.remarkGroup, this.people).then(response => {
editSpare(this.ProcessPlanNumber, this.ScrapQuantity, this.id, this.Unqualified, this.remarkGroup, this.people, this.operaPeople, this.procedureGroup1).then(response => {
if (response.data[0].result === '1') {
this.$message.success('报废成功')
this.searchTable()