| | |
| | | |
| | | import { useVbenVxeGrid, vxeCheckboxChecked, type VxeGridProps, vxeSortEvent } from '#/adapter/vxe-table'; |
| | | import { delMaintPlan, listMaintPlan, maintPlanExport } from '#/api/eims/maint-plan'; |
| | | import { listMaintStand } from '#/api/eims/maint-stand'; |
| | | import { generateCode } from '#/api/eims/utils'; |
| | | import { getDeptTree, userList } from '#/api/system/user'; |
| | | import { MAINT_ORDER_STATUS } from '#/constants/dict'; |
| | | import { commonDownloadExcel } from '#/utils/file/download'; |
| | | import BasisSubTable from '#/views/eims/components/basis-sub-table.vue'; |
| | | import maintOrderDrawer from '#/views/eims/maint-order/maint-order-drawer.vue'; |
| | | import { columns as maintSrandCol } from '#/views/eims/maint-stand/data'; |
| | | |
| | | import { columns, querySchema } from './data'; |
| | | import maintPlanDrawer from './maint-plan-drawer.vue'; |
| | | |
| | | |
| | | defineExpose({ |
| | | tableSelect |
| | | }); |
| | | |
| | | const formOptions: VbenFormProps = { |
| | | commonConfig: { |
| | |
| | | } |
| | | const planOrder = { |
| | | equId: record.equId, |
| | | planId: record.id, |
| | | equName: record.equName, |
| | | maintUser: record.maintUser, |
| | | maintUserName: record.maintUserName, |
| | |
| | | onMounted(async () => { |
| | | await setupDeptSelect(); |
| | | }); |
| | | |
| | | // 选中数据 |
| | | function tableSelect() { |
| | | return tableApi.grid.getCheckboxRecords(); |
| | | } |
| | | </script> |
| | | |
| | | <template> |
| | | <Page :auto-content-height="true"> |
| | | <div class="flex h-full gap-[8px] flex-col"> |
| | | <BasicTable class="h-2/3" table-title="保养计划列表"> |
| | | <BasicTable table-title="保养计划列表"> |
| | | <template #toolbar-tools> |
| | | <Space> |
| | | <a-button v-access:code="['eims:maintPlan:export']" @click="handleDownloadExcel"> |
| | |
| | | </Dropdown> |
| | | </template> |
| | | </BasicTable> |
| | | <BasisSubTable :columns="maintSrandCol" :list-api="listMaintStand" :req-value="equId" class="h-1/3" req-key="equId" title="保养实施项目" /> |
| | | </div> |
| | | <MaintPlanDrawer @reload="tableApi.query()" /> |
| | | <MaintOrderDrawer @reload="tableApi.query()" /> |