diff --git a/lib/common/widgets/order/mixin/order_mixin.dart b/lib/common/widgets/order/mixin/order_mixin.dart index a4ce10b..9c337b2 100644 --- a/lib/common/widgets/order/mixin/order_mixin.dart +++ b/lib/common/widgets/order/mixin/order_mixin.dart @@ -232,6 +232,8 @@ mixin OrderMixin { sqlOrderDetail.weight = getProductWeight(); sqlOrderDetail.price = getTotalPrice(); sqlOrderDetail.hourType = hourType.value.code; + sqlOrderDetail.type = orderType; + sqlOrderDetail.payType = orderPayType.value!; await orderDao.edit(sqlOrderDetail); logger.i("|$_tag|更新本地订单,成功orderId:|$sqlOrderId|;"); await createSqlChildCar(); diff --git a/lib/common/widgets/order/select_pay_type_dialog.dart b/lib/common/widgets/order/select_pay_type_dialog.dart index afccd52..f6b123b 100644 --- a/lib/common/widgets/order/select_pay_type_dialog.dart +++ b/lib/common/widgets/order/select_pay_type_dialog.dart @@ -170,6 +170,7 @@ class SelectPayTypeDialogController extends GetxController { Toast.error(msg: "正在识别中,请勿重复点击"); return; } + TtsManage.speak("请出示二维码"); BarcodeScanManage.instance.startListening(); BarcodeScanManage.instance.scanStream.listen((event) async { final serviceCode = await BarcodeScanManage.instance.getCodeInfo(event); @@ -236,6 +237,7 @@ class SelectPayTypeDialogController extends GetxController { Toast.error(msg: "正在识别中,请勿重复点击"); return; } + TtsManage.speak("请在合适区域放置饭卡"); try { await app.serialCardManage.connect(); if (!app.serialCardManage.isConnect) { @@ -574,7 +576,6 @@ Widget selectPayTypeHint( OrderPayDisplayType? type, bool isLoading = false, }) { - final theme = FTheme.of(Get.context!); if (type == null) return const SizedBox.shrink(); const baseMsg = "请点击开始识别按钮"; String msg = "";