This commit is contained in:
lixin
2018-11-27 17:02:27 +08:00
parent 7606764c28
commit 88b1ce01ed
2 changed files with 15 additions and 11 deletions

View File

@@ -219,17 +219,21 @@ export default {
this.$message.error('请选择货位') this.$message.error('请选择货位')
} else { } else {
for (let i = 0; i < this.tableData.length; i++) { for (let i = 0; i < this.tableData.length; i++) {
if (this.tableData[i].innumber > this.tableData[i].plannumber) { if (this.tableData[i].innumber === '0') {
this.tableData[i].innumber = this.tableData[i].plannumber this.$message.error('请输入正确数量')
} } else {
insertOne(this.tableData[i].工艺计划流水号, this.tableData[i].innumber, this.PeopleNumber, this.tableData[i].capture, this.inventoryNumber, this.locateNumber, this.tableData[i].note).then(response => { if (this.tableData[i].innumber > this.tableData[i].plannumber) {
this.$message({ this.tableData[i].innumber = this.tableData[i].plannumber
type: 'success', }
message: '零件入库成功!' insertOne(this.tableData[i].工艺计划流水号, this.tableData[i].innumber, this.PeopleNumber, this.tableData[i].capture, this.inventoryNumber, this.locateNumber, this.tableData[i].note).then(response => {
this.$message({
type: 'success',
message: '零件入库成功!'
})
}).then(() => {
this.Empty()
}) })
}).then(() => { }
this.Empty()
})
} }
} }
}).catch(() => { }).catch(() => {

View File

@@ -310,7 +310,7 @@
</el-table> </el-table>
</el-card> </el-card>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="采购采购" name="second"> <el-tab-pane label="采购" name="second">
<el-card v-show="purchaseshow"> <el-card v-show="purchaseshow">
<el-radio-group <el-radio-group
v-model="radio" v-model="radio"