Browse Source

修改贸易入库姓名问题

wangchao 3 years ago
parent
commit
3e5bd70cef

+ 3 - 1
pages/erpbusiness/add_quality_testing.vue

@@ -1014,11 +1014,13 @@
 				}
 				}
 				return year + '' + mouth + '' + datetime
 				return year + '' + mouth + '' + datetime
 			},
 			},
-			submit() {
+			submit() {debugger
 				if (this.typevalue == 3) {
 				if (this.typevalue == 3) {
 					if (this.outType) {
 					if (this.outType) {
 						this.gridList.outType = this.outType
 						this.gridList.outType = this.outType
 					}
 					}
+				}else{
+					this.gridList.customerName = ''
 				}
 				}
 				var that = this
 				var that = this
 				this.gridList.carNo = this.gridList.carNumber
 				this.gridList.carNo = this.gridList.carNumber

+ 3 - 1
pages/erpbusiness/edit_quality_testing.vue

@@ -808,6 +808,8 @@
 					if(this.outType){
 					if(this.outType){
 						this.gridList.outType=this.outType
 						this.gridList.outType=this.outType
 					}
 					}
+				}else{
+					this.gridList.customerName = ''
 				}
 				}
 				this.gridList.flag = this.flag
 				this.gridList.flag = this.flag
 				// if(this.flag==2){
 				// if(this.flag==2){
@@ -822,7 +824,7 @@
 					this.$api.msg('仓位不能为空')
 					this.$api.msg('仓位不能为空')
 					return
 					return
 				}
 				}
-				if(this.gridList.s==3){
+				if(this.gridList.serviceManagementType==3){
 					if (!this.gridList.customerName) {
 					if (!this.gridList.customerName) {
 						this.$api.msg('客户不能为空')
 						this.$api.msg('客户不能为空')
 						return
 						return