From 6f1b2cf3dc89059104ca0eedebf5f3ec4d1147f0 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 26 十一月 2025 11:08:17 +0800
Subject: [PATCH] 打印
---
src/store/modules/checkType.ts | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/src/store/modules/checkType.ts b/src/store/modules/checkType.ts
index 6cacbbf..069a36a 100644
--- a/src/store/modules/checkType.ts
+++ b/src/store/modules/checkType.ts
@@ -11,6 +11,7 @@
displayBarcode: []
notes: string
seqPrefix: string // 搴忓彿鍓嶇紑
+ expenseRecognition: number
}
export interface CheckTypeState {
checkTypeMap: Map<number, CheckTypeSimpleVO>
@@ -60,7 +61,7 @@
if (!this.isSetCheckType) {
this.setCheckTypeMap()
}
- return this.checkTypeMap[type].name
+ return this.checkTypeMap[type]?.name
},
getCheckTypeOptions() {
if (!this.isSetCheckType) {
@@ -77,7 +78,7 @@
if (!this.isSetCheckType) {
this.setCheckTypeMap()
}
- return this.checkTypeMap[type].displayBarcode
+ return this.checkTypeMap[type]?.displayBarcode
},
getCheckTypeNotes(type: number) {
if (!this.isSetCheckType) {
@@ -89,7 +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
},
async resetCheckTypeInfo() {
wsCache.delete(CACHE_KEY.CHECKTYPE_CACHE)
--
Gitblit v1.9.3