更新
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user