Ver Fonte

基差可为0

zhangyuewww há 3 anos atrás
pai
commit
693c09b6dc

+ 1 - 1
src/views/contractManagement/futuresPurchaseContractAdd.vue

@@ -1057,7 +1057,7 @@ export default {
         })
         return
       }
-      if (!this.deptBudgetList.basisPrice) {
+      if (!String(this.deptBudgetList.basisPrice)) {
         this.$message({
           message: '请输入基差!',
           type: 'warning',

+ 1 - 1
src/views/contractManagement/futuresPurchaseContractEdit.vue

@@ -1181,7 +1181,7 @@ export default {
         })
         return
       }
-      if (!this.deptBudgetList.basisPrice) {
+      if (!String(this.deptBudgetList.basisPrice) ) {
         this.$message({
           message: '请输入基差!',
           type: 'warning',

+ 1 - 1
src/views/contractManagement/futuresSalesContractAdd.vue

@@ -1035,7 +1035,7 @@ export default {
         })
         return
       }
-      if (!this.deptBudgetList.basisPrice) {
+      if (!String(this.deptBudgetList.basisPrice)) {
         this.$message({
           message: '请输入基差!',
           type: 'warning',

+ 1 - 1
src/views/contractManagement/futuresSalesContractEdit.vue

@@ -1156,7 +1156,7 @@ export default {
         })
         return
       }
-      if (!this.deptBudgetList.basisPrice) {
+      if (!String(this.deptBudgetList.basisPrice)) {
         this.$message({
           message: '请输入基差!',
           type: 'warning',

+ 4 - 4
src/views/purchasingManagement/purchaseOrderList.vue

@@ -1109,7 +1109,7 @@ export default {
         })
         return
       }
-      if (!row.basis) {
+      if (!String(row.basis)) {
         this.$message({
           message: '基差不能为空!',
           type: 'warning',
@@ -1274,7 +1274,7 @@ export default {
         })
         return
       }
-      if (!this.closePositionList1.closingBasis) {
+      if (!String(this.closePositionList1.closingBasis)) {
         this.$message({
           message: '平仓基差不能为空!',
           type: 'warning',
@@ -1645,7 +1645,7 @@ export default {
         })
         return
       }
-      if (!this.clinchdeal1.basis) {
+      if (!String(this.clinchdeal1.basis)) {
         this.$message({
           message: '基差不能为空',
           type: 'warning',
@@ -1659,7 +1659,7 @@ export default {
             (String(this.clinchdeal1.basis).indexOf('.') + 1) >
             2) ||
         this.clinchdeal1.basis > 10000 ||
-        this.clinchdeal1.basis < 1
+        this.clinchdeal1.basis < 0
       ) {
         this.$message({
           message: '基差输入错误',

+ 4 - 4
src/views/salesManagement/salesPlanOrderList.vue

@@ -1219,7 +1219,7 @@ export default {
         })
         return
       }
-      if (!this.clinchdeal1.basis) {
+      if (!String(this.clinchdeal1.basis)) {
         this.$message({
           message: '基差不能为空',
           type: 'warning',
@@ -1233,7 +1233,7 @@ export default {
             (String(this.clinchdeal1.basis).indexOf('.') + 1) >
             2) ||
         this.clinchdeal1.basis > 10000 ||
-        this.clinchdeal1.basis < 1
+        this.clinchdeal1.basis < 0
       ) {
         this.$message({
           message: '基差输入错误',
@@ -1346,7 +1346,7 @@ export default {
         })
         return
       }
-      if (!this.closePositionList1.closingBasis) {
+      if (!String(this.closePositionList1.closingBasis)) {
         this.$message({
           message: '平仓基差不能为空!',
           type: 'warning',
@@ -1360,7 +1360,7 @@ export default {
             (String(this.closePositionList1.closingBasis).indexOf('.') + 1) >
             2) ||
         this.closePositionList1.closingBasis > 10000 ||
-        this.closePositionList1.closingBasis < 1
+        this.closePositionList1.closingBasis < 0
       ) {
         this.$message({
           message: '平仓基差输入错误',