This commit is contained in:
lixin
2019-01-01 16:55:28 +08:00
parent ca18e98e91
commit b8da0f7dee
5 changed files with 82 additions and 14 deletions

View File

@@ -794,6 +794,7 @@ export default {
}
})
},
// 选中采购部入库记录
handleSelectionChange(val) {
this.nameGroup = []
this.modelGroup = []
@@ -810,6 +811,7 @@ export default {
this.priceGroup.push(val[i].单价)
}
},
// 选中车间采购入库记录
handleSelectionChange2(val) {
this.nameGroup = []
this.modelGroup = []
@@ -827,17 +829,21 @@ export default {
}
},
InboundCardDetail() {
addInboundCardDetail(this.DetailNumber, this.nameGroup, this.modelGroup, this.specificationGroup, this.paintGroup, this.numberGroup, this.priceGroup).then(response => {
if (response.data[0].result === '1') {
this.$message.success('增加成功')
this.dialogVisible1 = false
searchInboundCardDetail(this.DetailNumber).then(response => {
this.tableData4 = response.data
})
} else {
this.$message.error('增加失败')
}
})
if (this.DetailNumber === '') {
this.$message.error('请选择入库单')
} else {
addInboundCardDetail(this.DetailNumber, this.nameGroup, this.modelGroup, this.specificationGroup, this.paintGroup, this.numberGroup, this.priceGroup).then(response => {
if (response.data[0].result === '1') {
this.$message.success('增加成功')
this.dialogVisible1 = false
searchInboundCardDetail(this.DetailNumber).then(response => {
this.tableData4 = response.data
})
} else {
this.$message.error('增加失败')
}
})
}
},
// 修改入库单
editInboundCardInfor(row) {