From d97b71313731d87e859c568b325df0a554d71b16 Mon Sep 17 00:00:00 2001 From: betaqi <3188864257@qq.com> Date: Tue, 8 Jul 2025 16:18:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=87=BA=E5=BA=93=E6=B5=81=E5=90=91?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/deviceInfo/components/DeliveryInfo.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pages/deviceInfo/components/DeliveryInfo.vue b/src/pages/deviceInfo/components/DeliveryInfo.vue index d6da770..cfc8fca 100644 --- a/src/pages/deviceInfo/components/DeliveryInfo.vue +++ b/src/pages/deviceInfo/components/DeliveryInfo.vue @@ -52,7 +52,7 @@ import numberInput from '@/components/dashboard/Edfs-number-item-input.vue' import EdfsButton from '@/components/dashboard/Edfs-button/index.vue' import FormItemSelect from '@/components/dashboard/FormItemSelect.vue' import { getSimpleCustomerList, type CustomerVO } from '@/api/module/eam/customer' -import { isResError } from '@/hooks/useMessage' +import { isResError, useMessage } from '@/hooks/useMessage' import type { IDevice } from '@/api/module/eam/device' import { getStorageByDeviceId, @@ -73,6 +73,8 @@ const isShowSaveButton = computed(() => { return props.info?.status === undefined ? true : props.info.status < 3 }) +const message = useMessage() + const emit = defineEmits(['onSave']) const params = ref>({ customerId: '', @@ -89,6 +91,10 @@ async function loadCustomerList() { async function onSave() { if (!props.deviceId) return + if (!params.value.customerId) { + message.error('请选择出库流向') + return + } const options: IStorageOutParam = { deviceId: props.deviceId, customerId: params.value.customerId,