|
|
|
@ -52,7 +52,7 @@ import numberInput from '@/components/dashboard/Edfs-number-item-input.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(() => {
@@ -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<Omit<IStorageOutParam, 'deviceId'>>({ |
|
|
|
|
customerId: '', |
|
|
|
@ -89,6 +91,10 @@ async function loadCustomerList() {
@@ -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, |
|
|
|
|