From d553a4be94d4f6ee162cc353a28b220403909cfc Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期六, 03 十月 2026 00:58:19 +0800
Subject: [PATCH] ai优化

---
 src/store/modules/checkType.ts |   42 +++++++++++++++++++++++++++++++++++++++---
 1 files changed, 39 insertions(+), 3 deletions(-)

diff --git a/src/store/modules/checkType.ts b/src/store/modules/checkType.ts
index 54b50fd..77feab8 100644
--- a/src/store/modules/checkType.ts
+++ b/src/store/modules/checkType.ts
@@ -8,7 +8,12 @@
 export interface CheckTypeSimpleVO {
   value: number
   name: string
-  displayBarcode: number
+  displayBarcode: []
+  notes: string
+  seqPrefix: string // 搴忓彿鍓嶇紑
+  expenseRecognition: number
+  /** 鏄惁闇�瑕佽澶囬鐢細0-涓嶉渶瑕侊紝1-闇�瑕侊紙鐢ㄤ簬銆岃澶囬鐢ㄣ�嶉〉鐨勬牎楠岋級 */
+  needDevReady?: number
 }
 export interface CheckTypeState {
   checkTypeMap: Map<number, CheckTypeSimpleVO>
@@ -58,7 +63,7 @@
       if (!this.isSetCheckType) {
         this.setCheckTypeMap()
       }
-      return this.checkTypeMap[type].name
+      return this.checkTypeMap[type]?.name
     },
     getCheckTypeOptions() {
       if (!this.isSetCheckType) {
@@ -75,7 +80,38 @@
       if (!this.isSetCheckType) {
         this.setCheckTypeMap()
       }
-      return this.checkTypeMap[type].displayBarcode
+      return this.checkTypeMap[type]?.displayBarcode
+    },
+    getCheckTypeNotes(type: number) {
+      if (!this.isSetCheckType) {
+        this.setCheckTypeMap()
+      }
+      return this.checkTypeMap[type].notes
+    },
+    getCheckTypeSeqPrefix(type: number) {
+      if (!this.isSetCheckType) {
+        this.setCheckTypeMap()
+      }
+      return this.checkTypeMap[type]?.seqPrefix || ''
+    },
+    getExpenseRecognition(type: number) {
+      if (!this.isSetCheckType) {
+        this.setCheckTypeMap()
+      }
+      return this.checkTypeMap[type]?.expenseRecognition
+    },
+    /**
+     * 璇ユ鏌ラ」鐩槸鍚﹂渶瑕併�岃澶囬鐢ㄣ�嶃��
+     *
+     * 鐢ㄤ簬銆岃澶囬鐢ㄣ�嶉〉鐨勫畧鍗細鍙湁闇�瑕佽澶囬鐢ㄧ殑椤圭洰锛堝鍔ㄦ�佸績鐢点�佸姩鎬佽鍘嬶級
+     * 鎵嶅簲杩涘叆棰嗙敤娴佺▼锛涘父瑙勫績鐢靛浘绛変笉闇�瑕侀鐢ㄧ殑椤圭洰鑻ヨ鎷夊埌璇ラ〉锛屽簲鎷︿笅骞舵彁绀猴紝
+     * 鍚﹀垯浼氬嚭鐜�"妫�鏌ョ被鎮h�呭嚭鐜板湪璁惧棰嗙敤妯″潡"鐨勬贩涔便��
+     */
+    getNeedDevReady(type: number) {
+      if (!this.isSetCheckType) {
+        this.setCheckTypeMap()
+      }
+      return this.checkTypeMap[type]?.needDevReady
     },
     async resetCheckTypeInfo() {
       wsCache.delete(CACHE_KEY.CHECKTYPE_CACHE)

--
Gitblit v1.9.3