From 30b11de50dd4476acca5f5bfbe4b6f0f51802572 Mon Sep 17 00:00:00 2001 From: git_rabbit Date: Fri, 30 Jan 2026 14:05:46 +0800 Subject: [PATCH] =?UTF-8?q?feat(InventoryShipmentDialog):=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=B7=A5=E5=8D=95=E5=8F=B7=E5=AD=97=E6=AE=B5=E5=B9=B6?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=93=8D=E4=BD=9C=E5=91=98=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加成品工单号输入字段以满足业务需求 将操作员选项从props改为组件内动态获取,提高灵活性 --- .../components/InventoryShipmentDialog.vue | 30 +++++++++++++++---- .../components/InventoryStorageDialog.vue | 8 ----- 2 files changed, 25 insertions(+), 13 deletions(-) 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 */