eight
2024-11-25 c6421e15ecc9df14dbb2f29ab76a73ce7aa7f603
src/store/modules/checkType.ts
@@ -9,6 +9,7 @@
  value: number
  name: string
  displayBarcode: number
  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()