Commit 7896e6a3 by zhangtw

导入校验更正

parent 517a4784
...@@ -189,7 +189,6 @@ export default { ...@@ -189,7 +189,6 @@ export default {
}, },
// 提交上传文件 // 提交上传文件
submitFileForm() { submitFileForm() {
this.upload.isUploading = true
const file = this.$refs.upload.uploadFiles const file = this.$refs.upload.uploadFiles
if ( if (
!file || !file ||
...@@ -200,11 +199,13 @@ export default { ...@@ -200,11 +199,13 @@ export default {
this.$modal.msgError("请选择后缀为 “xls”或“xlsx”的文件。") this.$modal.msgError("请选择后缀为 “xls”或“xlsx”的文件。")
return return
} }
// 校验orderType(如果是必传项) // 校验orderType(如果是必传项)
if (this.showTrdcCheckbox && this.orderTypeRequired && !this.upload.orderType) { if (this.showTrdcCheckbox && this.orderTypeRequired && !this.upload.orderType) {
this.$modal.msgError("请选择入库/出库类型!") this.$modal.msgError("请选择入库/出库类型!")
return return
} }
this.upload.isUploading = true
// 提交前通知父组件 // 提交前通知父组件
this.$emit("orderTypeChange", this.upload.orderType) this.$emit("orderTypeChange", this.upload.orderType)
// 提交上传 // 提交上传
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论