物料管理通过弹出

This commit is contained in:
zhangdingyu
2019-10-13 10:24:26 +08:00
parent d67d54a086
commit 58393b4db9

View File

@@ -681,11 +681,6 @@ export default {
methods: { methods: {
// 通过 // 通过
Tongguo(row) { Tongguo(row) {
this.$confirm('是否通过?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
Tongguo(row.物料流水号).then(response => { Tongguo(row.物料流水号).then(response => {
if (response.data[0].result === '1') { if (response.data[0].result === '1') {
this.getMaterial() this.getMaterial()
@@ -694,12 +689,17 @@ export default {
this.$message.success('通过成功') this.$message.success('通过成功')
} else { this.$message.error('通过失败') } } else { this.$message.error('通过失败') }
}) })
}).catch(() => { // this.$confirm('是否通过?', '提示', {
this.$message({ // confirmButtonText: '确定',
type: 'info', // cancelButtonText: '取消',
message: '已取消通过' // type: 'warning'
}) // }).then(() => {
}) // }).catch(() => {
// this.$message({
// type: 'info',
// message: '已取消通过'
// })
// })
}, },
// 打回 // 打回
Dahui(row) { Dahui(row) {