eight
2024-11-29 6ad8f2e44a264e9458b159b26501a2db00c9d536
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()