备料重量单价验证

This commit is contained in:
zhangdingyu
2019-04-01 13:59:35 +08:00
parent 4caac39b10
commit 4b83cec6a0

View File

@@ -188,11 +188,17 @@ export default {
}, },
// 自家备料出库 // 自家备料出库
handleChange1(row) { handleChange1(row) {
change(row.工艺计划流水号, row.重量, row.单价).then(() => { if (row.重量 === '' || row.重量 === null) {
handlechange(row.工序流水号, '0000') this.$message.error('请输入重量')
}).then(response => { } else if (row.单价 === '' || row.单价 === null) {
this.searchTable() this.$message.error('请输入单价')
}) } else {
change(row.工艺计划流水号, row.重量, row.单价).then(() => {
handlechange(row.工序流水号, '0000')
}).then(response => {
this.searchTable()
})
}
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.arrest = val this.arrest = val