更新plus
This commit is contained in:
@@ -280,7 +280,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
success() {
|
||||
if (this.dataList.length == 0) {
|
||||
if (this.dataList.length === 0) {
|
||||
alert('钽靶原料列表为空,不可提交')
|
||||
return
|
||||
// TODO 考虑原料列表队列问题 及上一批材料未处理完毕 又来了一批材料
|
||||
@@ -296,8 +296,10 @@ export default {
|
||||
alert('钽靶原料成功提交至轧制')
|
||||
this.dataList = []
|
||||
|
||||
} else {
|
||||
} else if(res.data===0){
|
||||
alert('提交失败,请检查工艺是否相同')
|
||||
}else if (res.data ===2){
|
||||
alert('提交失败,请检查此物料工艺是否存在于数据库中')
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user