This commit is contained in:
liushuai
2020-04-18 17:41:57 +08:00
parent 1dffa2a8c3
commit 0bd9cd0189
6 changed files with 38 additions and 10 deletions

View File

@@ -194,6 +194,9 @@ export default {
procedureGroup: [],
ScrapQuantity: [],
ProcessPlanNumber: [],
Unqualified: [],
remarkGroup: [],
people: [],
Data: [],
tableData: [], // 表格数据
total: 0, // 总条数
@@ -287,12 +290,18 @@ export default {
}).then(() => {
this.ScrapQuantity = []
this.ProcessPlanNumber = []
this.Unqualified = []
this.remarkGroup = []
this.people = []
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.handleEdit_disable = true
editSpare(this.ProcessPlanNumber, this.ScrapQuantity, this.id).then(response => {
editSpare(this.ProcessPlanNumber, this.ScrapQuantity, this.id, this.Unqualified, this.remarkGroup, this.people).then(response => {
if (response.data[0].result === '1') {
this.$message.success('报废成功')
this.searchTable()