物料管理通过弹出

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

View File

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