| | |
| | | displayBarcode: [] |
| | | notes: string |
| | | seqPrefix: string // 序号前缀 |
| | | expenseRecognition: number |
| | | } |
| | | export interface CheckTypeState { |
| | | checkTypeMap: Map<number, CheckTypeSimpleVO> |
| | |
| | | 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) |