| | |
| | | @click="handleSelectItem" |
| | | preIcon="search|svg" |
| | | /> |
| | | <ItemModal @register="registerItemAdd" @success="handleItemSuccess" /> |
| | | <NormalModal @register="registerItemAdd" @success="handleItemSuccess" /> |
| | | </template> |
| | | <template #action="{ record }"> |
| | | <TableAction |
| | |
| | | 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'; |
| | |
| | | //点击打开物料列表框 |
| | | 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', |
| | | }); |
| | | } |
| | | |