From d7862b2890b68743ec9c4fc05800bb23ec9b412e Mon Sep 17 00:00:00 2001
From: zhuguifei <zhuguifei@zhuguifeideiMac.local>
Date: 星期日, 27 四月 2025 16:05:02 +0800
Subject: [PATCH] 完成新增报修单

---
 eims-ui/apps/web-antd/src/views/eims/repair-req/data.tsx |   40 +++++++++++++++++++++++++++-------------
 1 files changed, 27 insertions(+), 13 deletions(-)

diff --git a/eims-ui/apps/web-antd/src/views/eims/repair-req/data.tsx b/eims-ui/apps/web-antd/src/views/eims/repair-req/data.tsx
index a2afe69..f3d1323 100644
--- a/eims-ui/apps/web-antd/src/views/eims/repair-req/data.tsx
+++ b/eims-ui/apps/web-antd/src/views/eims/repair-req/data.tsx
@@ -79,6 +79,23 @@
 export const columns: VxeGridProps['columns'] = [
   { type: 'checkbox', width: 60, fixed: 'left' },
   {
+    title: '璁惧(宸ュ叿)鍚嶇О',
+    sortable: true,
+    minWidth: 150,
+    fixed: 'left',
+    slots: {
+      default: ({ row }) => {
+        if (row.reqType === REPAIR_REQ_TYPE.EQU) {
+          return row.equName;
+        } else if (row.reqType === REPAIR_REQ_TYPE.FIXTURE) {
+          return row.fixtureName;
+        } else {
+          return '';
+        }
+      }
+    }
+  },
+  {
     title: '鎶ヤ慨鍗曞彿',
     field: 'code',
     minWidth: 160,
@@ -118,20 +135,10 @@
     minWidth: 200
   },
   {
-    title: '璁惧(宸ュ叿)鍚嶇О',
+    title: '鍙戠敓鏃堕棿',
+    field: 'occTime',
     sortable: true,
-    minWidth: 150,
-    slots: {
-      default: ({ row }) => {
-        if (row.reqType === REPAIR_REQ_TYPE.EQU) {
-          return row.equName;
-        } else if (row.reqType === REPAIR_REQ_TYPE.FIXTURE) {
-          return row.fixtureName;
-        } else {
-          return '';
-        }
-      }
-    }
+    minWidth: 200
   },
   {
     title: '鏁呴殰绫诲埆',
@@ -139,6 +146,9 @@
     minWidth: 100,
     slots: {
       default: ({ row }) => {
+        if(!row.faultType){
+          return ''
+        }
         return renderDict(row.faultType, DictEnum.REPAIR_FAULT_TYPE);
       }
     }
@@ -232,6 +242,10 @@
       getPopupContainer,
       options: getDictOptions(DictEnum.REPAIR_REQ_STATUS)
     },
+    dependencies: {
+      show: () => false,
+      triggerFields: ['']
+    },
     fieldName: 'status',
     defaultValue: '0',
     label: '澶勭悊鐘舵��'

--
Gitblit v1.9.3