From a986a8d6fb5e44f7044469f5f420ce0d7b5bf235 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 26 十一月 2025 11:36:02 +0800
Subject: [PATCH] 11
---
src/store/modules/checkType.ts | 20 +++++++++++++++++---
1 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/src/store/modules/checkType.ts b/src/store/modules/checkType.ts
index c282975..069a36a 100644
--- a/src/store/modules/checkType.ts
+++ b/src/store/modules/checkType.ts
@@ -8,8 +8,10 @@
export interface CheckTypeSimpleVO {
value: number
name: string
- displayBarcode: number
+ displayBarcode: []
notes: string
+ seqPrefix: string // 搴忓彿鍓嶇紑
+ expenseRecognition: number
}
export interface CheckTypeState {
checkTypeMap: Map<number, CheckTypeSimpleVO>
@@ -59,7 +61,7 @@
if (!this.isSetCheckType) {
this.setCheckTypeMap()
}
- return this.checkTypeMap[type].name
+ return this.checkTypeMap[type]?.name
},
getCheckTypeOptions() {
if (!this.isSetCheckType) {
@@ -76,7 +78,7 @@
if (!this.isSetCheckType) {
this.setCheckTypeMap()
}
- return this.checkTypeMap[type].displayBarcode
+ return this.checkTypeMap[type]?.displayBarcode
},
getCheckTypeNotes(type: number) {
if (!this.isSetCheckType) {
@@ -84,6 +86,18 @@
}
return this.checkTypeMap[type].notes
},
+ getCheckTypeSeqPrefix(type: number) {
+ if (!this.isSetCheckType) {
+ this.setCheckTypeMap()
+ }
+ 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)
const res = await CheckTypeApi.getSimpleCheckTypeList()
--
Gitblit v1.9.3