This commit is contained in:
lixin
2018-11-23 17:04:26 +08:00
parent abb1fe3912
commit c740a9d1d6
5 changed files with 75 additions and 41 deletions

View File

@@ -76,6 +76,7 @@
<template slot-scope="scope">
<el-button type="primary" size="mini" class="el-icon-success" @click="Innumber">入库</el-button>
<el-button
:disabled="scope.row.是否禁用"
size="mini"
type="danger"
class="el-icon-delete"
@@ -178,6 +179,8 @@ export default {
if (response.data.length === 0) {
this.listLoading = false
this.$message.warning('无此零件')
} else if (response.data[0].剩余数量 === 0) {
this.$message.warning('该零件已入库完毕')
} else {
for (let i = 0; i < this.tableData.length; i++) {
if (response.data[0].工艺计划流水号 === this.tableData[i].工艺计划流水号) {