فهرست منبع

基差可为0

zhangyuewww 3 سال پیش
والد
کامیت
84da683635
4فایلهای تغییر یافته به همراه7 افزوده شده و 7 حذف شده
  1. 2 2
      pageD/myRelease/buyEdit.vue
  2. 2 2
      pageD/myRelease/buyGrain.vue
  3. 1 1
      pageD/myRelease/sellEdit.vue
  4. 2 2
      pageD/myRelease/sellGrain.vue

+ 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
 					}