|
@@ -35,6 +35,8 @@ export default {
|
|
|
response.variables.data[0].jie_yang_shu_lian = 1
|
|
response.variables.data[0].jie_yang_shu_lian = 1
|
|
|
this.listData.push(response.variables.data[0])
|
|
this.listData.push(response.variables.data[0])
|
|
|
this.OriginalPosition.push(response.variables.data[0].shi_fou_liu_yang_ == "是" ? response.variables.data[0].liu_yang_wei_zhi_ : response.variables.data[0].shou_yang_wei_zhi)
|
|
this.OriginalPosition.push(response.variables.data[0].shi_fou_liu_yang_ == "是" ? response.variables.data[0].liu_yang_wei_zhi_ : response.variables.data[0].shou_yang_wei_zhi)
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.cancelScan();
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
@@ -44,6 +46,13 @@ export default {
|
|
|
handleChange(){
|
|
handleChange(){
|
|
|
this.$refs.redarInput.focus(); //聚焦input
|
|
this.$refs.redarInput.focus(); //聚焦input
|
|
|
},
|
|
},
|
|
|
|
|
+ /* 扫出的样品不符合条件 */
|
|
|
|
|
+ cancelScan(){
|
|
|
|
|
+ this.redar = false // 扫码图标显示
|
|
|
|
|
+ this.$confirm('该样品可能已经接收过了,无需重复接收!').then(_ => {
|
|
|
|
|
+ this.closeDialog();
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
/* 关闭弹出列表框*/
|
|
/* 关闭弹出列表框*/
|
|
|
closeDialog() {
|
|
closeDialog() {
|
|
|
this.remRedar()
|
|
this.remRedar()
|