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() { back() {
edit2(this.materielGroup).then(response => { if (this.materielGroup.length === 0) {
if (response.data[0].result === '1') { this.$message.warning('请勾选物料')
this.$message.success('打回成功') } else {
this.searchTable1() edit2(this.materielGroup).then(response => {
} else { this.$message.error('打回失败') } if (response.data[0].result === '1') {
}) this.$message.success('打回成功')
this.searchTable1()
} else { this.$message.error('打回失败') }
})
}
}, },
saveMateriel() { // 保存数据 saveMateriel() { // 保存数据
this.partGroup = [] this.partGroup = []