From a90276a242ddca6f45e234c5cc4832a7a01a7e03 Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期一, 02 十二月 2024 11:06:53 +0800 Subject: [PATCH] Fix Bug: 条码更新问题 --- 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 54b50fd..459548c 100644 --- a/src/store/modules/checkType.ts +++ b/src/store/modules/checkType.ts @@ -8,7 +8,8 @@ export interface CheckTypeSimpleVO { value: number name: string - displayBarcode: number + displayBarcode: [] + notes: string } export interface CheckTypeState { checkTypeMap: Map<number, CheckTypeSimpleVO> @@ -77,6 +78,12 @@ } return this.checkTypeMap[type].displayBarcode }, + getCheckTypeNotes(type: number) { + if (!this.isSetCheckType) { + this.setCheckTypeMap() + } + return this.checkTypeMap[type].notes + }, async resetCheckTypeInfo() { wsCache.delete(CACHE_KEY.CHECKTYPE_CACHE) const res = await CheckTypeApi.getSimpleCheckTypeList() -- Gitblit v1.9.3