Browse Source

上架策略

hella_online_20240829
wangyufei 4 months ago
parent
commit
e2d59bdc80
  1. 20
      src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/AddForm.vue

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

@ -596,7 +596,7 @@ const rules = ref({
name: [{ required: true, message: '请输入名字', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], name: [{ required: true, message: '请输入名字', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }],
description: [{ required: true, message: '请输入描述', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }], description: [{ required: true, message: '请输入描述', trigger: 'blur' },{ max: 50, message: '不得超过50个字符', trigger: 'blur' }],
priority: [{ required: true, message: '请输入优先级', trigger: 'blur' }], priority: [{ required: true, message: '请输入优先级', trigger: 'blur' }],
warehouse: [{ required: true, message: '请选择规则配置', trigger: 'blur' }], // warehouse: [{ required: true, message: '', trigger: 'blur' }],
}) })
@ -866,6 +866,24 @@ defineExpose({ open }) // 提供 open 方法,用于打开弹窗
/** 提交表单 */ /** 提交表单 */
const emit = defineEmits(['success']) // success const emit = defineEmits(['success']) // success
const submitForm = async () => { const submitForm = async () => {
if(warehouseType.value == 'WarehouseCode' && !formData.value.configuration.WarehouseCode){
//
message.error('请选择仓库')
return
// formData.configuration.WarehouseCode
}else if(warehouseType.value == 'AreaCode'&& !formData.value.configuration.AreaCode){
//
message.error('请选择库区')
return
}else if(warehouseType.value == 'LocationGroupCode'&&!formData.value.configuration.LocationGroupCode){
//
message.error('请选择库位组')
return
}else if(warehouseType.value == 'LocationCode'&&!formData.value.configuration.LocationCode){
//
message.error('请选择库位')
return
}
// //
if (!formRef) return if (!formRef) return
const valid = await formRef.value.validate() const valid = await formRef.value.validate()

Loading…
Cancel
Save