From dbf761cb549cdc0e8ef1ed266a41f515b8ef148d Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期五, 04 七月 2025 21:06:55 +0800 Subject: [PATCH] 11 --- src/store/modules/checkType.ts | 27 ++++++++++++++++++++++++--- 1 files changed, 24 insertions(+), 3 deletions(-) diff --git a/src/store/modules/checkType.ts b/src/store/modules/checkType.ts index 54b50fd..069a36a 100644 --- a/src/store/modules/checkType.ts +++ b/src/store/modules/checkType.ts @@ -8,7 +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> @@ -58,7 +61,7 @@ if (!this.isSetCheckType) { this.setCheckTypeMap() } - return this.checkTypeMap[type].name + return this.checkTypeMap[type]?.name }, getCheckTypeOptions() { if (!this.isSetCheckType) { @@ -75,7 +78,25 @@ if (!this.isSetCheckType) { this.setCheckTypeMap() } - return this.checkTypeMap[type].displayBarcode + return this.checkTypeMap[type]?.displayBarcode + }, + getCheckTypeNotes(type: number) { + if (!this.isSetCheckType) { + this.setCheckTypeMap() + } + 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) -- Gitblit v1.9.3