浏览代码

添加校验

wangchao 3 年之前
父节点
当前提交
7acc336b72
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      pages/erpbusiness/acquisitionInformation.vue

+ 4 - 0
pages/erpbusiness/acquisitionInformation.vue

@@ -209,6 +209,10 @@
 				} else {
 				} else {
 					_flag = 0
 					_flag = 0
 				}
 				}
+				if(!this.textareaValue){
+					this.$api.msg('收购信息不能为空!')
+					return
+				}
 				let _obj = {
 				let _obj = {
 					warehouseName: this.warehouseName,
 					warehouseName: this.warehouseName,
 					acquisitionInformation: this.textareaValue,
 					acquisitionInformation: this.textareaValue,