Ver Fonte

基差可为0

zhangyuewww há 3 anos atrás
pai
commit
84da683635

+ 2 - 2
pageD/myRelease/buyEdit.vue

@@ -501,11 +501,11 @@
 						}
 					}
 				}else if(this.deptList.procurementPlanType == '期货'){
-					if (!this.deptList.basisPrice) {
+					if (!String(this.deptList.basisPrice)) {
 						this.$api.msg('基差不能为空')
 						return
 					}
-					if (this.deptList.basisPrice>10000||this.deptList.basisPrice<1) {
+					if (this.deptList.basisPrice>10000||this.deptList.basisPrice<0) {
 						this.$api.msg('基差输入错误')
 						return
 					}

+ 2 - 2
pageD/myRelease/buyGrain.vue

@@ -465,11 +465,11 @@
 						}
 					}
 				} else if (this.deptList.procurementPlanType == '期货') {
-					if (!this.deptList.basisPrice) {
+					if (!String(this.deptList.basisPrice)) {
 						this.$api.msg('基差(元/吨)不能为空')
 						return
 					}
-					if (this.deptList.basisPrice > 10000 || this.deptList.basisPrice < 1) {
+					if (this.deptList.basisPrice > 10000 || this.deptList.basisPrice < 0) {
 						this.$api.msg('基差输入错误')
 						return
 					}

+ 1 - 1
pageD/myRelease/sellEdit.vue

@@ -497,7 +497,7 @@
 						}
 					}
 				} else if (this.deptList.salePlanType == '期货') {
-					if (!this.deptList.basisPrice) {
+					if (!String(this.deptList.basisPrice)) {
 						this.$api.msg('基差(元/吨)不能为空')
 						return
 					}

+ 2 - 2
pageD/myRelease/sellGrain.vue

@@ -497,11 +497,11 @@
 						}
 					}
 				} else if (this.deptList.salePlanType == '期货') {
-					if (!this.deptList.basisPrice) {
+					if (!String(this.deptList.basisPrice)) {
 						this.$api.msg('基差(元/吨)不能为空')
 						return
 					}
-					if (this.deptList.basisPrice > 10000 || this.deptList.basisPrice < 1) {
+					if (this.deptList.basisPrice > 10000 || this.deptList.basisPrice < 0) {
 						this.$api.msg('基差输入错误')
 						return
 					}