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