Browse Source

和冯微确认,库存事务不让输入,只能选择

hella_online_20240823
wangyufei 3 months ago
parent
commit
8e6bce8772
  1. 2
      src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue
  2. 7
      src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue

2
src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue

@ -311,7 +311,7 @@
clearable clearable
style="flex: 1" 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> <template #suffix>
<el-button type="text" plain style="color:var(--el-button-text-color)" @click="searchTransactionType"> <el-button type="text" plain style="color:var(--el-button-text-color)" @click="searchTransactionType">
<Icon icon="ep:search" class="mr-5px" /> <Icon icon="ep:search" class="mr-5px" />

7
src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue

@ -293,7 +293,7 @@
clearable clearable
style="flex: 1" 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> <template #suffix>
<el-button type="text" plain style="color:var(--el-button-text-color)" @click="searchTransactionType"> <el-button type="text" plain style="color:var(--el-button-text-color)" @click="searchTransactionType">
<Icon icon="ep:search" class="mr-5px" /> <Icon icon="ep:search" class="mr-5px" />
@ -1126,6 +1126,8 @@ defineExpose({ open }) // 提供 open 方法,用于打开弹窗
/** 提交表单 */ /** 提交表单 */
const emit = defineEmits(['success']) // success const emit = defineEmits(['success']) // success
const submitForm = async () => { const submitForm = async () => {
await blurWarehouse()
await blurTransactionType()
if(warehouseType.value == 'WarehouseCode' && !formData.value.configuration.WarehouseCode){ if(warehouseType.value == 'WarehouseCode' && !formData.value.configuration.WarehouseCode){
// //
message.error('请选择仓库') message.error('请选择仓库')
@ -1144,8 +1146,7 @@ const submitForm = async () => {
message.error('请选择库位') message.error('请选择库位')
return return
} }
await blurWarehouse()
await blurTransactionType()
// //
if (!formRef) return if (!formRef) return
const valid = await formRef.value.validate() const valid = await formRef.value.validate()

Loading…
Cancel
Save