From ebee36ca9a39b59d98da3613804791faa8dd2da6 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期六, 22 十一月 2025 16:20:52 +0800
Subject: [PATCH] 打印完善
---
src/store/modules/checkType.ts | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/store/modules/checkType.ts b/src/store/modules/checkType.ts
index 72d8b2c..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) {
@@ -96,7 +96,7 @@
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