Prechádzať zdrojové kódy

修改样品扫码提示

ZZJ 3 rokov pred
rodič
commit
e08ac7b8f8

+ 9 - 0
src/views/system/jbdScan/js/sampleConfirmationJS.js

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