云
2026-08-03 c4a2d727fb1b72a1b7b7ae8c0d778f0e81952cce
src/views/mes/md/item/components/select.vue
@@ -3,7 +3,7 @@
import { computed, ref, useAttrs, watch } from 'vue';
import { IconifyIcon } from '..\..\..\..\..\packages\icons\src';
import { IconifyIcon } from '@vben/icons';
import { Input, Tooltip } from 'ant-design-vue';
@@ -19,12 +19,14 @@
    disabled?: boolean;
    modelValue?: number;
    placeholder?: string;
    productIds?: number[];
  }>(),
  {
    allowClear: true,
    disabled: false,
    modelValue: undefined,
    placeholder: '请选择产品物料',
    productIds: () => [],
  },
);
const emit = defineEmits<{
@@ -86,7 +88,10 @@
  const selectedIds = (
    props.modelValue === null ? [] : [props.modelValue]
  ) as number[];
  dialogRef.value?.open(selectedIds, { multiple: false });
  dialogRef.value?.open(selectedIds, {
    multiple: false,
    productIds: props.productIds,
  });
}
/** 回填选中的物料 */