This commit is contained in:
Vergil
2020-04-02 10:50:11 +08:00
parent 91fc8059cc
commit 29cac18293

View File

@@ -823,12 +823,16 @@ export default {
}
},
back() {
edit2(this.materielGroup).then(response => {
if (response.data[0].result === '1') {
this.$message.success('打回成功')
this.searchTable1()
} else { this.$message.error('打回失败') }
})
if (this.materielGroup.length === 0) {
this.$message.warning('请勾选物料')
} else {
edit2(this.materielGroup).then(response => {
if (response.data[0].result === '1') {
this.$message.success('打回成功')
this.searchTable1()
} else { this.$message.error('打回失败') }
})
}
},
saveMateriel() { // 保存数据
this.partGroup = []