| | |
| | | <script lang="ts" setup> |
| | | <script lang="ts" setup> |
| | | import type { VxeTableGridOptions } from '#/adapter/vxe-table'; |
| | | import type { MesProTaskApi } from '#/api/mes/pro/task'; |
| | | |
| | |
| | | const multiple = ref(false); // 是否多选;默认按单选选择器使用 |
| | | const selectedRows = ref<MesProTaskApi.Task[]>([]); // 已选任务列表 |
| | | const preSelectedIds = ref<number[]>([]); // 预选任务编号列表 |
| | | const externalWorkOrderId = ref<number>(); // 外部传入的默认工单过滤 |
| | | const externalWorkOrderId = ref<number>(); // 外部传入的默认订单过滤 |
| | | const externalWorkstationId = ref<number>(); // 外部传入的默认工位过滤 |
| | | |
| | | const statusTip = computed(() => { |
| | |
| | | }, |
| | | }); |
| | | |
| | | /** 重置查询和选择状态,保留外部传入的工单/工位默认过滤 */ |
| | | /** 重置查询和选择状态,保留外部传入的订单/工位默认过滤 */ |
| | | async function resetQueryState() { |
| | | selectedRows.value = []; |
| | | await gridApi.grid.clearCheckboxRow(); |