From e2a82b164d6b69adb8799d5871d31205f1023873 Mon Sep 17 00:00:00 2001
From: sinake <sinake1@qq.com>
Date: 星期五, 31 七月 2026 16:27:19 +0800
Subject: [PATCH] 扫码松

---
 src/store/modules/checkType.ts |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/store/modules/checkType.ts b/src/store/modules/checkType.ts
index 3e1c1d4..069a36a 100644
--- a/src/store/modules/checkType.ts
+++ b/src/store/modules/checkType.ts
@@ -61,7 +61,7 @@
       if (!this.isSetCheckType) {
         this.setCheckTypeMap()
       }
-      return this.checkTypeMap[type].name
+      return this.checkTypeMap[type]?.name
     },
     getCheckTypeOptions() {
       if (!this.isSetCheckType) {
@@ -78,7 +78,7 @@
       if (!this.isSetCheckType) {
         this.setCheckTypeMap()
       }
-      return this.checkTypeMap[type].displayBarcode
+      return this.checkTypeMap[type]?.displayBarcode
     },
     getCheckTypeNotes(type: number) {
       if (!this.isSetCheckType) {
@@ -90,13 +90,13 @@
       if (!this.isSetCheckType) {
         this.setCheckTypeMap()
       }
-      return this.checkTypeMap[type].seqPrefix
+      return this.checkTypeMap[type]?.seqPrefix || ''
     },
     getExpenseRecognition(type: number) {
       if (!this.isSetCheckType) {
         this.setCheckTypeMap()
       }
-      return this.checkTypeMap[type].expenseRecognition
+      return this.checkTypeMap[type]?.expenseRecognition
     },
     async resetCheckTypeInfo() {
       wsCache.delete(CACHE_KEY.CHECKTYPE_CACHE)

--
Gitblit v1.9.3