Commit 316b4b8b authored by tanjunxin's avatar tanjunxin

fix: 变量上传提交增加校验

parent 4ecee879
...@@ -136,7 +136,12 @@ const confirmCustomer = (list: any) => { ...@@ -136,7 +136,12 @@ const confirmCustomer = (list: any) => {
const submitForm = async () => { const submitForm = async () => {
await formRef.value.validate() await formRef.value.validate()
if (!formState.customerId) {
return ElMessage.warning('请选择客户!')
}
if (!selectProdList.value.length) {
return ElMessage.warning('请选择产品!')
}
if (!tableData.value.length) { if (!tableData.value.length) {
return ElMessage.warning('请选择文件!') return ElMessage.warning('请选择文件!')
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment