From 453f63fd6cd6466222304df619e62b3a5667ca68 Mon Sep 17 00:00:00 2001
From: zhuguifei <zhuguifei@zhuguifeideiMac.local>
Date: 星期二, 05 八月 2025 13:56:47 +0800
Subject: [PATCH] 修复0730测试问题

---
 eims-ui/apps/web-antd/src/views/eims/fault-know/data.tsx |  150 +++++++++++++++++++++++++++++++------------------
 1 files changed, 94 insertions(+), 56 deletions(-)

diff --git a/eims-ui/apps/web-antd/src/views/eims/fault-know/data.tsx b/eims-ui/apps/web-antd/src/views/eims/fault-know/data.tsx
index 8cc1cef..4b45ef4 100644
--- a/eims-ui/apps/web-antd/src/views/eims/fault-know/data.tsx
+++ b/eims-ui/apps/web-antd/src/views/eims/fault-know/data.tsx
@@ -5,47 +5,56 @@
 import { type FormSchemaGetter } from '#/adapter/form';
 import { getDictOptions } from '#/utils/dict';
 import { renderDict } from '#/utils/render';
+import type { DescItem } from '#/components/description';
 
 export const querySchema: FormSchemaGetter = () => [
+  // {
+  //   component: 'Input',
+  //   fieldName: 'faultCode',
+  //   label: '鐭ヨ瘑缂栧彿'
+  // },
+  // {
+  //   component: 'Input',
+  //   fieldName: 'equName',
+  //   label: '璁惧鍚嶇О'
+  // },
+  // {
+  //   component: 'Input',
+  //   fieldName: 'assetNo',
+  //   label: '璧勪骇缂栧彿'
+  // },
+  // {
+  //   component: 'Select',
+  //   componentProps: {
+  //     options: getDictOptions(DictEnum.EIMS_EQU_PART)
+  //   },
+  //   fieldName: 'equPart',
+  //   label: '璁惧閮ㄤ綅'
+  // },
+  // {
+  //   component: 'Select',
+  //   componentProps: {
+  //     options: getDictOptions(DictEnum.REPAIR_FAULT_TYPE)
+  //   },
+  //   fieldName: 'faultType',
+  //   label: '鏁呴殰绫诲埆'
+  // },
   {
     component: 'Input',
-    fieldName: 'faultCode',
-    label: '鐭ヨ瘑缂栧彿'
-  },
-  {
-    component: 'Input',
-    fieldName: 'equName',
-    label: '璁惧鍚嶇О'
-  },
-  {
-    component: 'Input',
-    fieldName: 'assetNo',
-    label: '璧勪骇缂栧彿'
-  },
-  {
-    component: 'Select',
+    fieldName: 'params.searchValue',
     componentProps: {
-      options: getDictOptions(DictEnum.EIMS_EQU_PART)
+      placeholder: '璇疯緭鍏ヨ澶囧悕绉版垨璧勪骇缂栧彿'
     },
-    fieldName: 'equPart',
-    label: '璁惧閮ㄤ綅'
+    label: '鍏抽敭瀛�'
   },
-  {
-    component: 'Select',
-    componentProps: {
-      options: getDictOptions(DictEnum.REPAIR_FAULT_TYPE)
-    },
-    fieldName: 'faultType',
-    label: '鏁呴殰绫诲埆'
-  },
-  {
-    component: 'Select',
-    componentProps: {
-      options: getDictOptions(DictEnum.EIMS_FAULT_REASON)
-    },
-    fieldName: 'faultReason',
-    label: '鏁呴殰鍘熷洜'
-  },
+  // {
+  //   component: 'Select',
+  //   componentProps: {
+  //     options: getDictOptions(DictEnum.EIMS_FAULT_REASON)
+  //   },
+  //   fieldName: 'faultReason',
+  //   label: '鏁呴殰鍘熷洜'
+  // },
   {
     component: 'Input',
     fieldName: 'reqDesc',
@@ -60,24 +69,25 @@
 
 export const columns: VxeGridProps['columns'] = [
   { type: 'checkbox', width: 60, fixed: 'left' },
-  {
-    title: '鐭ヨ瘑缂栫爜',
-    field: 'faultCode',
-    minWidth: 200
-  },
+
   {
     title: '璁惧鍚嶇О',
     field: 'equName',
     minWidth: 140,
-    fixed: 'left',
-    slots: { default: 'equName' }
+    fixed: 'left'
   },
+
   {
     title: '璧勪骇缂栧彿',
     field: 'assetNo',
     sortable: true,
     minWidth: 140,
     fixed: 'left'
+  },
+  {
+    title: '鐭ヨ瘑缂栫爜',
+    field: 'faultCode',
+    minWidth: 200
   },
   {
     title: '璁惧绫诲瀷',
@@ -112,20 +122,20 @@
     },
     minWidth: 120
   },
-  {
-    title: '鏁呴殰鍘熷洜',
-    field: 'faultReason',
-    sortable: true,
-    slots: {
-      default: ({ row }) => {
-        if (row.faultReason === null || row.faultReason === '') {
-          return '';
-        }
-        return renderDict(row.faultReason, DictEnum.EIMS_FAULT_REASON);
-      }
-    },
-    minWidth: 120
-  },
+  // {
+  //   title: '鏁呴殰鍘熷洜',
+  //   field: 'faultReason',
+  //   sortable: true,
+  //   slots: {
+  //     default: ({ row }) => {
+  //       if (row.faultReason === null || row.faultReason === '') {
+  //         return '';
+  //       }
+  //       return renderDict(row.faultReason, DictEnum.EIMS_FAULT_REASON);
+  //     }
+  //   },
+  //   minWidth: 120
+  // },
   {
     title: '鎶ヤ慨鎻忚堪',
     field: 'reqDesc',
@@ -141,7 +151,7 @@
     fixed: 'right',
     slots: { default: 'action' },
     title: '鎿嶄綔',
-    width: 200
+    width: 80
   }
 ];
 
@@ -203,3 +213,31 @@
     label: '澶勭悊鎺柦'
   }
 ];
+
+
+export const descSchema: DescItem[] = [
+  {
+    field: 'equName',
+    label: '璁惧鍚嶇О'
+  },
+  {
+    field: 'assetNo',
+    label: '璧勪骇缂栧彿'
+  },
+  {
+    field: 'resCode',
+    label: '缁翠慨宸ュ崟'
+  },
+  {
+    field: 'faultCode',
+    label: '鐭ヨ瘑缂栫爜'
+  },
+  {
+    field: 'reqDesc',
+    label: '鎶ヤ慨鎻忚堪'
+  },
+  {
+    field: 'resHandle',
+    label: '澶勭悊鎺柦'
+  }
+];

--
Gitblit v1.9.3