eight
2025-04-11 fe28e1fe081c83b703d5c10b3ebe017a69da9b3d
src/store/modules/checkType.ts
@@ -11,6 +11,7 @@
  displayBarcode: []
  notes: string
  seqPrefix: string // 序号前缀
  expenseRecognition: number
}
export interface CheckTypeState {
  checkTypeMap: Map<number, CheckTypeSimpleVO>
@@ -89,7 +90,13 @@
      if (!this.isSetCheckType) {
        this.setCheckTypeMap()
      }
      return this.checkTypeMap[type].seqPrefix
      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)