Commit 4f672d73 authored by 张伯涛's avatar 张伯涛

包装测试添加配置物料时只能添加一个

parent 64cb182b
...@@ -1044,7 +1044,7 @@ export default { ...@@ -1044,7 +1044,7 @@ export default {
}, },
// 配置物料选择框 // 配置物料选择框
handleSelectionChangeMaterial(data) { handleSelectionChangeMaterial(data) {
if (this.type === '2' && this.form.modelType === '2') { if (this.type === '2' && (this.form.modelType === '2' || this.form.modelType === '3')) {
this.addMaterialList = data this.addMaterialList = data
} else { } else {
if (data.length === 0) { if (data.length === 0) {
...@@ -1265,7 +1265,6 @@ export default { ...@@ -1265,7 +1265,6 @@ export default {
} }
if (this.form.modelType === '3' && this.positionList.length === 1) { if (this.form.modelType === '3' && this.positionList.length === 1) {
this.$message.error('包装测试需要有两站第一站为扫描站第二站为测试站') this.$message.error('包装测试需要有两站第一站为扫描站第二站为测试站')
this.$message.error('测试还原啊啊啊啊啊啊啊啊啊啊啊啊啊啊')
return return
} }
if (this.form.modelType === '3' && this.positionList.length === 2) { if (this.form.modelType === '3' && this.positionList.length === 2) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment