From d40d81aa421c7cdb959556fedffef71fc62cde80 Mon Sep 17 00:00:00 2001 From: zhuguifei <zhuguifei@zhuguifeideiMac.local> Date: 星期三, 16 四月 2025 10:07:22 +0800 Subject: [PATCH] 完成备件模块 --- eims-ui/apps/web-antd/src/views/eims/spare-inoutdt/data.tsx | 65 ++++++++++++++++++++++++++++++++ 1 files changed, 65 insertions(+), 0 deletions(-) diff --git a/eims-ui/apps/web-antd/src/views/eims/spare-inoutdt/data.tsx b/eims-ui/apps/web-antd/src/views/eims/spare-inoutdt/data.tsx new file mode 100644 index 0000000..d205daf --- /dev/null +++ b/eims-ui/apps/web-antd/src/views/eims/spare-inoutdt/data.tsx @@ -0,0 +1,65 @@ +import type { VxeGridProps } from '#/adapter/vxe-table'; + +import { type FormSchemaGetter } from '#/adapter/form'; +import { renderDict } from '#/utils/render'; +import { DictEnum } from '@vben/constants'; +export const querySchema: FormSchemaGetter = () => []; + +export const columns: VxeGridProps['columns'] = [ + { type: 'checkbox', width: 60, fixed: 'left' }, + { + title: '澶囦欢鍚嶇О', + field: 'spareName', + minWidth: 120 + }, + { + title: '澶囦欢缂栧彿', + field: 'spareCode', + minWidth: 120 + }, + { + title: '瑙勬牸鍨嬪彿', + field: 'modelNo', + minWidth: 100 + }, + { + title: '璁¢噺鍗曚綅', + field: 'unit', + sortable: true, + slots: { + default: ({ row }) => { + if (!row.unit || row.unit === '') { + return ''; + } + return renderDict(row.unit, DictEnum.EIMS_SPARE_UNIT); + } + }, + width: 100 + }, + { + title: '涔嬪墠搴撳瓨', + field: 'beforeStock', + minWidth: 100 + }, + { + title: '褰撳墠搴撳瓨', + field: 'actualStock', + minWidth: 100 + }, + { + title: '鏁伴噺', + field: 'quantity', + minWidth: 80 + }, + { + title: '鍗曚环', + field: 'unitPrice', + minWidth: 80 + }, + { + title: '閲戦', + field: 'amount', + minWidth: 80 + } +]; +export const drawerSchema: FormSchemaGetter = () => []; -- Gitblit v1.9.3