Commit 386f5068 authored by 张伯涛's avatar 张伯涛

修改

parent 6b4a8935
...@@ -1257,10 +1257,16 @@ export default { ...@@ -1257,10 +1257,16 @@ export default {
this.$message.error('请至少添加一个工站') this.$message.error('请至少添加一个工站')
return return
} }
if (!(this.form.modelType === '3' && this.positionList[0].dictLabel === '扫描工站' && this.positionList[1].dictLabel === '测试工站')) { if (this.form.modelType === '3' && this.positionList.length === 1) {
this.$message.error('包装测试需要有两站第一站为扫描站第二站为测试站')
return
}
if (this.form.modelType === '3' && this.positionList.length === 2) {
if (!(this.positionList[0].dictLabel === '扫描工站' && this.positionList[1].dictLabel === '测试工站')) {
this.$message.error('包装测试需要第一站为扫描站第二站为测试站') this.$message.error('包装测试需要第一站为扫描站第二站为测试站')
return return
} }
}
const params = this.initData() const params = this.initData()
for (let i = 0; this.positionList.length > i; i++) { for (let i = 0; this.positionList.length > i; i++) {
// if (i === 0) continue // if (i === 0) continue
......
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