eight
2024-12-02 f085b0783327a460fd0b2802e9f1b7cdbee3cde9
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()