Browse Source

refactor(更新) :
- 作业已结束弹窗按钮确定返回首页

周文健 5 months ago
parent
commit
4a8fa81bfe
1 changed files with 22 additions and 0 deletions
  1. 22 0
      app/src/main/java/com/grkj/iscs/BusinessManager.kt

+ 22 - 0
app/src/main/java/com/grkj/iscs/BusinessManager.kt

@@ -1485,6 +1485,17 @@ object BusinessManager {
                 SPUtils.saveUpdateKeyReturn(
                     MyApplication.instance!!, UpdateKeyReturnBO(taskCode, keyNfc)
                 )
+                if (msg == MyApplication.instance?.applicationContext!!.getString(
+                        R.string.ticket_lost
+                    )
+                ) {
+                    sendEventMsg(
+                        MsgEvent(
+                            MsgEventConstants.MSG_EVENT_TICKET_FINISHED,
+                            null
+                        )
+                    )
+                }
             } else {
                 done()
                 sendEventMsg(
@@ -1827,6 +1838,17 @@ object BusinessManager {
                     getBleBeanByRfid(itData.keyNfc)?.bleDevice?.let {
                         switchReadyMode(it)
                     }
+                    if (msg == MyApplication.instance?.applicationContext!!.getString(
+                            R.string.ticket_lost
+                        )
+                    ) {
+                        sendEventMsg(
+                            MsgEvent(
+                                MsgEventConstants.MSG_EVENT_TICKET_FINISHED,
+                                null
+                            )
+                        )
+                    }
                 }
                 if (count == itemsToRemove.size) {
                     if (returnList.isEmpty()) {