|
|
@@ -1075,6 +1075,8 @@ object BusinessManager {
|
|
|
showKeyReturnDialog({
|
|
|
handleKeyReturn(bleDevice, workTicketGetBO)
|
|
|
}) {
|
|
|
+ sendLoadingEventMsg(null, false)
|
|
|
+ ToastUtils.tip(R.string.continue_the_ticket)
|
|
|
BleManager.getInstance().disconnect(bleDevice)
|
|
|
// 打开卡扣,防止初始化的时候选择不处理钥匙导致无法使用
|
|
|
val dock = ModBusController.getDockByKeyMac(bleDevice.mac)
|
|
|
@@ -1113,6 +1115,8 @@ object BusinessManager {
|
|
|
updateList.add(updateVO)
|
|
|
}
|
|
|
|
|
|
+ sendLoadingEventMsg(null, false)
|
|
|
+ ToastUtils.tip(R.string.key_return_success)
|
|
|
if (CAN_RETURN) {
|
|
|
// 上报点位钥匙绑定
|
|
|
NetApi.updateLockPointBatch(updateList) { isSuccess ->
|
|
|
@@ -1308,4 +1312,8 @@ object BusinessManager {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ fun sendLoadingEventMsg(str: String?, isShow: Boolean = true) {
|
|
|
+ mEventBus.postValue(MsgEvent(MSG_EVENT_LOADING, LoadingMsg(isShow, str, false)))
|
|
|
+ }
|
|
|
}
|