From 3baaad59171ded6aca17340fcc907acbeeb45b7b Mon Sep 17 00:00:00 2001
From: zhuguifei <zhuguifei@zhuguifeideiMac.local>
Date: 星期二, 08 四月 2025 08:14:43 +0800
Subject: [PATCH] Merge branch 'main' of http://lanpucloud.cn:1111/r/eims-master

---
 eims-ui/apps/web-antd/src/views/eims/spare-in/data.tsx |  156 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 156 insertions(+), 0 deletions(-)

diff --git a/eims-ui/apps/web-antd/src/views/eims/spare-in/data.tsx b/eims-ui/apps/web-antd/src/views/eims/spare-in/data.tsx
new file mode 100644
index 0000000..3d02eb4
--- /dev/null
+++ b/eims-ui/apps/web-antd/src/views/eims/spare-in/data.tsx
@@ -0,0 +1,156 @@
+import type { VxeGridProps } from '#/adapter/vxe-table';
+
+import { DictEnum } from '@vben/constants';
+import { getPopupContainer } from '@vben/utils';
+
+import { type FormSchemaGetter } from '#/adapter/form';
+import { getDictOptions } from '#/utils/dict';
+
+export const querySchema: FormSchemaGetter = () => [
+  {
+    component: 'Input',
+    fieldName: 'orderCode',
+    label: '鍏ュ簱鍗曞彿'
+  },
+  {
+    component: 'TreeSelect',
+    // 鍦╠rawer閲屾洿鏂� 杩欓噷涓嶉渶瑕侀粯璁ょ殑componentProps
+    defaultValue: undefined,
+    fieldName: 'chargeDept',
+    label: '缁忓姙閮ㄩ棬'
+  },
+  {
+    component: 'Select',
+    componentProps: {
+      showSearch: true,
+      allowClear: true,
+      getPopupContainer
+    },
+    fieldName: 'chargeUser',
+    label: '缁忓姙浜�'
+  },
+  {
+    component: 'Input',
+    fieldName: 'partnerName',
+    label: '渚涘簲鍟�'
+  },
+  {
+    component: 'RangePicker',
+    fieldName: 'orderTime',
+    label: '宸ュ崟鏃堕棿'
+  }
+];
+
+export const columns: VxeGridProps['columns'] = [
+  { type: 'checkbox', width: 60, fixed: 'left' },
+  {
+    title: '鍏ュ簱鍗曞彿',
+    field: 'orderCode',
+    minWidth: 100,
+    fixed: 'left',
+    slots: { default: 'orderCode' }
+  },
+  {
+    title: '鏃ユ湡',
+    field: 'orderTime',
+    minWidth: 120
+  },
+  {
+    title: '渚涘簲鍟�',
+    field: 'partnerName',
+    minWidth: 100
+  },
+  {
+    title: '缁忓姙浜�',
+    field: 'chargeUserName',
+    minWidth: 100
+  },
+  {
+    title: '鍏宠仈鍗曞彿',
+    field: 'associatedOrder',
+    minWidth: 120
+  },
+  {
+    title: '澶囨敞',
+    field: 'remark',
+    minWidth: 140
+  },
+  {
+    field: 'action',
+    fixed: 'right',
+    slots: { default: 'action' },
+    title: '鎿嶄綔',
+    width: 200
+  }
+];
+
+export const drawerSchema: FormSchemaGetter = () => [
+  {
+    component: 'Input',
+    dependencies: {
+      show: () => false,
+      triggerFields: ['']
+    },
+    fieldName: 'id'
+  },
+  {
+    component: 'Select',
+    componentProps: {
+      getPopupContainer,
+      options: getDictOptions(DictEnum.SPARE_INOUT_TYPE)
+    },
+    dependencies: {
+      show: () => true,
+      triggerFields: ['']
+    },
+    fieldName: 'type',
+    defaultValue: '1',
+    label: '绫诲瀷'
+  },
+  {
+    component: 'Input',
+    fieldName: 'orderCode',
+    label: '鍏ュ簱鍗曞彿'
+  },
+  {
+    component: 'Input',
+    fieldName: 'partnerName',
+    label: '渚涘簲鍟�'
+  },
+  {
+    component: 'TreeSelect',
+    // 鍦╠rawer閲屾洿鏂� 杩欓噷涓嶉渶瑕侀粯璁ょ殑componentProps
+    defaultValue: undefined,
+    fieldName: 'chargeDept',
+    label: '缁忓姙閮ㄩ棬',
+    rules: 'selectRequired'
+  },
+  {
+    component: 'Select',
+    componentProps: {
+      showSearch: true,
+      allowClear: true,
+      getPopupContainer
+    },
+    fieldName: 'chargeUser',
+    label: '缁忓姙浜�',
+    rules: 'required'
+  },
+  {
+    component: 'DatePicker',
+    componentProps: {
+      format: 'YYYY-MM-DD HH:mm:ss',
+      showTime: true,
+      valueFormat: 'YYYY-MM-DD HH:mm:ss',
+      getPopupContainer
+    },
+    fieldName: 'orderTime',
+    label: '鍏ュ簱鏃堕棿'
+  },
+  {
+    component: 'Textarea',
+    formItemClass: 'items-baseline',
+    fieldName: 'remark',
+    label: '澶囨敞'
+  }
+];

--
Gitblit v1.9.3