|
|
@ -293,7 +293,7 @@ |
|
|
|
clearable |
|
|
|
style="flex: 1" |
|
|
|
/> --> |
|
|
|
<el-input key="库存事务Value" style="flex:1" placeholder="请选择库存事务" v-model="item.Value" @blur="blurTransactionType"> |
|
|
|
<el-input key="库存事务Value" style="flex:1" placeholder="请选择库存事务" disabled v-model="item.Value" @blur="blurTransactionType"> |
|
|
|
<template #suffix> |
|
|
|
<el-button type="text" plain style="color:var(--el-button-text-color)" @click="searchTransactionType"> |
|
|
|
<Icon icon="ep:search" class="mr-5px" /> |
|
|
@ -1126,6 +1126,8 @@ defineExpose({ open }) // 提供 open 方法,用于打开弹窗 |
|
|
|
/** 提交表单 */ |
|
|
|
const emit = defineEmits(['success']) // 定义 success 事件,用于操作成功后的回调 |
|
|
|
const submitForm = async () => { |
|
|
|
await blurWarehouse() |
|
|
|
await blurTransactionType() |
|
|
|
if(warehouseType.value == 'WarehouseCode' && !formData.value.configuration.WarehouseCode){ |
|
|
|
// 仓库 |
|
|
|
message.error('请选择仓库') |
|
|
@ -1144,8 +1146,7 @@ const submitForm = async () => { |
|
|
|
message.error('请选择库位') |
|
|
|
return |
|
|
|
} |
|
|
|
await blurWarehouse() |
|
|
|
await blurTransactionType() |
|
|
|
|
|
|
|
// 校验表单 |
|
|
|
if (!formRef) return |
|
|
|
const valid = await formRef.value.validate() |
|
|
|