From 8f5009a3d57821c2c97690b8419e428967b5e981 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期一, 03 六月 2024 22:48:41 +0800 Subject: [PATCH] 低代码更新 --- src/views/tigerprojects/mes/prod/biz_mes_wo/index.vue | 35 +++++++++++++++++++++++++++++++---- 1 files changed, 31 insertions(+), 4 deletions(-) diff --git a/src/views/tigerprojects/mes/prod/biz_mes_wo/index.vue b/src/views/tigerprojects/mes/prod/biz_mes_wo/index.vue index 1f50b61..2b7bc31 100644 --- a/src/views/tigerprojects/mes/prod/biz_mes_wo/index.vue +++ b/src/views/tigerprojects/mes/prod/biz_mes_wo/index.vue @@ -15,7 +15,7 @@ @click="handleSelectItem" preIcon="search|svg" /> - <ItemModal @register="registerItemAdd" @success="handleItemSuccess" /> + <NormalModal @register="registerItemAdd" @success="handleItemSuccess" /> </template> <template #action="{ record }"> <TableAction @@ -70,7 +70,7 @@ import { BasicTable, useTable, TableAction } from '/@/components/Table'; import WoDrawer from './WoDrawer.vue'; import WoModal from './WoModal.vue'; - import ItemModal from '/@/views/components/ItemModal.vue'; + import NormalModal from '/@/views/components/NormalModal.vue'; import { useDrawer } from '/@/components/Drawer'; import { columns, searchFormSchema } from './biz_mes_wo.data'; import { DeleteMesWo } from '/@/api/tigerapi/mes/wo'; @@ -170,8 +170,35 @@ //鐐瑰嚮鎵撳紑鐗╂枡鍒楄〃妗� function handleSelectItem() { openItemModal(true, { - data: 'content', - info: 'Info', + title: '鐗╂枡鍒楄〃', + schemas: [ + { + field: 'ITEM_CODE', + component: 'Input', + label: '鐗╂枡缂栫爜', + colProps: { + span: 12, + }, + }, + ], + ItemColumns: [ + { + title: t('鐗╂枡缂栫爜'), + dataIndex: 'ITEM_CODE', + resizable: true, + sorter: true, + width: 200, + }, + { + title: t('鐗╂枡鍚嶇О'), + dataIndex: 'ITEM_NAME', + resizable: true, + sorter: true, + width: 180, + }, + ], + tableName: 'BAS_ITEM', + rowKey: 'ITEM_CODE', }); } -- Gitblit v1.9.3