Pārlūkot izejas kodu

修改仓库校验

mxx 3 gadi atpakaļ
vecāks
revīzija
a441a1910e

+ 5 - 7
src/views/houseSelfCollect/acquisitionManagementAdd.vue

@@ -298,7 +298,6 @@
           this.baseInfoForm.warehouseName = this.$route.query.warehouseName
           this.baseInfoForm.compId = this.$route.query.compId
           this.type = this.$route.query.type
-          console.log(this.baseInfoForm)
 
           this.priceList[0].detailList[0].water = this.baseInfoForm.waterMin
           this.priceList[0].detailList[2].water = this.baseInfoForm.waterBase
@@ -365,7 +364,6 @@
         purchasePriceLook({
           id: this.baseInfoForm.id
         }).toPromise().then((response) => {
-          console.log(response)
           this.baseInfoForm = response
           //构造查看priceList数据
           this.priceList = []
@@ -714,11 +712,11 @@
           }
           return false
         }
-        // console.log(this.priceList.length)
-        // if (this.priceList.length != 4) {
-        //   this.$message.error('粮价设置为4个等级!');
-        //   return false
-        // }
+        console.log(this.priceList.length)
+        if (this.checkList.length != 4) {
+          this.$message.error('粮价设置为4个等级!');
+          return false
+        }
         for (let i = 0; i < this.priceList.length; i++) {
           let _item = this.priceList[i]
           if (_item.basicUnitPrice == '' || _baseWaterValidate(0, 50, 2, '', "deductWeight", parseFloat(_item