From 34c674d503e23c0cf6d0b6dec063f3049885e5f8 Mon Sep 17 00:00:00 2001
From: 朱桂飞 <zhuguifei@zhuguifeideMacBook-Air.local>
Date: 星期一, 10 二月 2025 13:17:10 +0800
Subject: [PATCH] 新增盘点明细

---
 eims-ui/apps/web-antd/src/views/eims/equ/data.tsx |   34 +++++++++++-----------------------
 1 files changed, 11 insertions(+), 23 deletions(-)

diff --git a/eims-ui/apps/web-antd/src/views/eims/equ/data.tsx b/eims-ui/apps/web-antd/src/views/eims/equ/data.tsx
index 1dcafcf..ff11e78 100644
--- a/eims-ui/apps/web-antd/src/views/eims/equ/data.tsx
+++ b/eims-ui/apps/web-antd/src/views/eims/equ/data.tsx
@@ -7,6 +7,7 @@
 
 import { type FormSchemaGetter, z } from '#/adapter/form';
 import { getDictOptions } from '#/utils/dict';
+import { renderDict } from '#/utils/render';
 
 export const querySchema: FormSchemaGetter = () => [
   {
@@ -29,7 +30,7 @@
   },
   {
     component: 'RangePicker',
-    fieldName: 'createTime',
+    fieldName: 'deployDate',
     label: '浣跨敤鏃ユ湡'
   }
 ];
@@ -47,28 +48,10 @@
   {
     title: '鐘舵��',
     field: 'status',
+    sortable: true,
     slots: {
       default: ({ row }) => {
-        const statu = row.status;
-        switch (statu) {
-          case '0': {
-            return <Tag color="cyan">璇曠敤</Tag>;
-          }
-          case '1': {
-            return <Tag color="green">鍏ュ浐</Tag>;
-          }
-          case '2': {
-            return <Tag color="orange">杩佺Щ</Tag>;
-          }
-          case '3': {
-            return <Tag color="red">鎶ュ簾</Tag>;
-          }
-          case null: {
-            return '';
-          }
-          // No default
-        }
-        return '';
+        return renderDict(row.status, DictEnum.SYS_EQU_STATUS);
       }
     },
     minWidth: 80,
@@ -77,12 +60,14 @@
   {
     title: '璧勪骇缂栧彿',
     field: 'assetNo',
+    sortable: true,
     minWidth: 100,
     fixed: 'left'
   },
   {
     title: '璁惧缂栧彿',
     field: 'equCode',
+    sortable: true,
     minWidth: 100
   },
   {
@@ -133,6 +118,7 @@
   {
     title: '閲囪喘鏃ユ湡',
     field: 'purchaseDate',
+    sortable: true,
     minWidth: 120
   },
   {
@@ -158,11 +144,13 @@
   {
     title: '瀵煎叆鐘舵��',
     field: 'importStatus',
+    slots: { default: 'importStatus' },
     minWidth: 100
   },
   {
     title: '鐩樼偣鏍囧織',
     field: 'inventoryFlag',
+    slots: { default: 'inventoryFlag' },
     minWidth: 100
   },
   {
@@ -185,7 +173,7 @@
     fixed: 'right',
     slots: { default: 'action' },
     title: '鎿嶄綔',
-    width: 180
+    width: 200
   }
 ];
 
@@ -282,8 +270,8 @@
   {
     component: 'Select',
     componentProps: {
-      // 閫変腑浜嗗氨鍙兘淇敼 涓嶈兘閲嶇疆涓烘棤璐熻矗浜�
       allowClear: true,
+      showSearch: true,
       getPopupContainer
     },
     fieldName: 'respPerson',

--
Gitblit v1.9.3