| | |
| | | if (!this.isSetCheckType) { |
| | | this.setCheckTypeMap() |
| | | } |
| | | return this.checkTypeMap[type].name |
| | | return this.checkTypeMap[type]?.name |
| | | }, |
| | | getCheckTypeOptions() { |
| | | if (!this.isSetCheckType) { |
| | |
| | | if (!this.isSetCheckType) { |
| | | this.setCheckTypeMap() |
| | | } |
| | | return this.checkTypeMap[type].displayBarcode |
| | | return this.checkTypeMap[type]?.displayBarcode |
| | | }, |
| | | getCheckTypeNotes(type: number) { |
| | | if (!this.isSetCheckType) { |
| | |
| | | if (!this.isSetCheckType) { |
| | | this.setCheckTypeMap() |
| | | } |
| | | return this.checkTypeMap[type].expenseRecognition |
| | | return this.checkTypeMap[type]?.expenseRecognition |
| | | }, |
| | | async resetCheckTypeInfo() { |
| | | wsCache.delete(CACHE_KEY.CHECKTYPE_CACHE) |