Explorar el Código

匹配扫描货物条码

daxu0403 hace 7 años
padre
commit
0ceaa58d83
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      lib/pages/order_management_page.dart

+ 4 - 0
lib/pages/order_management_page.dart

@@ -997,6 +997,10 @@ class _QueryWidgetState extends State < QueryWidget > {
   Future scan() async {
     try {
       String barcode = await BarcodeScanner.scan();
+      int index = barcode.indexOf('&');
+      if(index!=-1){
+        barcode = barcode.substring(index+1);
+      }
        setState(() {
         page=1;
         _orderNo = barcode;