diff --git a/src/views/materialManagement/productionMaterial/components/InventoryShipmentDialog.vue b/src/views/materialManagement/productionMaterial/components/InventoryShipmentDialog.vue index 043e87d..4221c55 100644 --- a/src/views/materialManagement/productionMaterial/components/InventoryShipmentDialog.vue +++ b/src/views/materialManagement/productionMaterial/components/InventoryShipmentDialog.vue @@ -36,6 +36,12 @@ + + + + + + @@ -85,13 +91,27 @@ const props = defineProps({ locationOptions: { type: Array, default: () => [] - }, - operatorOptions: { - type: Array, - default: () => [] } }) - +import { listUser } from '@/api/system/user.js' +const operatorOptions = ref([]) +/** + * 获取操作员列表 + * 调用 listUser API 获取操作员数据 + */ +function getOperatorList() { + try { + listUser({ pageSize: 1000, status: 0 }).then((res) => { + const { code, data } = res + if (code == 200) { + operatorOptions.value = data.result + } + }) + } catch (error) { + proxy.$modal.msgError(error.message) + } +} +getOperatorList() // 定义emits const emit = defineEmits(['update:dialogVisible', 'submit', 'cancel', 'material-change', 'location-change']) diff --git a/src/views/materialManagement/productionMaterial/components/InventoryStorageDialog.vue b/src/views/materialManagement/productionMaterial/components/InventoryStorageDialog.vue index 390ecd6..125f2e4 100644 --- a/src/views/materialManagement/productionMaterial/components/InventoryStorageDialog.vue +++ b/src/views/materialManagement/productionMaterial/components/InventoryStorageDialog.vue @@ -53,14 +53,6 @@ - -/** * Inventory Storage Dialog Component * * Dialog component for handling inventory storage operations. Extends BaseDialog * and adds storage-specific fields -and functionality. * * @component * @extends BaseDialog * @param {boolean} dialogVisible - Controls the visibility of the dialog * @param {string} title - The -title of the dialog * @param {Object} form - The form data object * @param {number} opertype - Operation type (1: add, 2: edit, 3: view) * @param {Array} -options - Material options for selection * @param {Array} transactionOptions - Transaction type options for selection * @param {Array} locationOptions - -Location options for selection * * @emits {update:dialogVisible} - Emitted when dialog visibility changes * @emits {submit} - Emitted when form is submitted -with valid data * @emits {cancel} - Emitted when dialog is cancelled * @emits {material-change} - Emitted when material selection changes * @emits -{location-change} - Emitted when location selection changes */