From d09fe6aa593b974119628baf5e91bdfd0de7c378 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期四, 10 四月 2025 10:42:26 +0800
Subject: [PATCH] 翻译 设备状态信息
---
src/store/modules/checkType.ts | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/src/store/modules/checkType.ts b/src/store/modules/checkType.ts
index 6cacbbf..72d8b2c 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>
@@ -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