车间能级提升-智能设备管理系统
zhuguifei
2025-03-11 7cc3ac34f175e2dacc76a02fb66ae3ba9f747b55
eims-ui/apps/web-antd/src/views/eims/maint-plan/index.vue
@@ -11,17 +11,20 @@
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: {
@@ -145,6 +148,7 @@
  }
  const planOrder = {
    equId: record.equId,
    planId: record.id,
    equName: record.equName,
    maintUser: record.maintUser,
    maintUserName: record.maintUserName,
@@ -230,12 +234,17 @@
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">
@@ -285,7 +294,6 @@
          </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()" />