| | |
| | | |
| | | 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'; |
| | | |
| | |
| | | disabled?: boolean; |
| | | modelValue?: number; |
| | | placeholder?: string; |
| | | productIds?: number[]; |
| | | }>(), |
| | | { |
| | | allowClear: true, |
| | | disabled: false, |
| | | modelValue: undefined, |
| | | placeholder: '请选择产品物料', |
| | | productIds: () => [], |
| | | }, |
| | | ); |
| | | const emit = defineEmits<{ |
| | |
| | | const selectedIds = ( |
| | | props.modelValue === null ? [] : [props.modelValue] |
| | | ) as number[]; |
| | | dialogRef.value?.open(selectedIds, { multiple: false }); |
| | | dialogRef.value?.open(selectedIds, { |
| | | multiple: false, |
| | | productIds: props.productIds, |
| | | }); |
| | | } |
| | | |
| | | /** 回填选中的物料 */ |