|
|
@ -228,6 +228,11 @@ const props = defineProps({ |
|
|
|
type:Boolean, |
|
|
|
default:false |
|
|
|
}, |
|
|
|
sourcePage:{ |
|
|
|
type:String, |
|
|
|
required: false, |
|
|
|
default:'' |
|
|
|
}, |
|
|
|
}) |
|
|
|
|
|
|
|
// 确保 tableObject 是响应式的 |
|
|
@ -326,6 +331,13 @@ const submitForm = async () => { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
if(props.sourcePage == 'inducedProduct'){ |
|
|
|
if(!formRef.value.formModel?.customerCode){ |
|
|
|
message.error('请输入客户代码') |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const elForm = unref(formRef)?.getElFormRef() |
|
|
|
// 校验表单 |
|
|
|
if (!elForm) return |
|
|
|