| | |
| | | * @version: |
| | | * @Date: 2024-05-25 00:27:00 |
| | | * @LastEditors: Ben Lin |
| | | * @LastEditTime: 2024-06-10 23:54:01 |
| | | * @LastEditTime: 2024-06-24 22:58:16 |
| | | --> |
| | | <template> |
| | | <div> |
| | | <BasicTable @register="registerTable"> |
| | | <template #toolbar> |
| | | <a-button color="primary" @click="addWo" preIcon="add_02|svg"> 新增 </a-button> |
| | | <a-button type="primary" @click="addWo" preIcon="add_02|svg"> 新增 </a-button> |
| | | <a-button ghost color="success" @click="ExcelToDb" preIcon="excel-import|svg"> |
| | | 导入 |
| | | </a-button> |
| | |
| | | @click="handleSelectItem" |
| | | preIcon="search|svg" |
| | | /> |
| | | <NormalModal @register="registerItemAdd" @success="handleItemSuccess" /> |
| | | <GeneralModal @register="registerItemAdd" @success="handleItemSuccess" /> |
| | | </template> |
| | | <template #action="{ record }"> |
| | | <TableAction |
| | |
| | | @click="handleCustClick(field)" |
| | | :preIcon="item.preIcons[name]" |
| | | /> |
| | | <NormalModal |
| | | <GeneralModal |
| | | @register="useModalData[name][0]" |
| | | @success="(d, u) => handleEntSuccess(d, u, item.name)" |
| | | /> |
| | |
| | | import { BasicForm, FormSchema, FormActionType, useForm } from '/@/components/Form/index'; |
| | | import WoDrawer from './WoDrawer.vue'; |
| | | import WoModal from './WoModal.vue'; |
| | | import NormalModal from '/@/views/components/NormalModal.vue'; |
| | | import GeneralModal from '/@/views/components/GeneralModal.vue'; |
| | | import RouteViewModal from '/@/views/components/RouteViewModal.vue'; |
| | | import CustModal from '/@/views/components/CustModal.vue'; |
| | | import { useDrawer } from '/@/components/Drawer'; |