zhongtianhaoyuan 3 年之前
父节点
当前提交
877572eaae
共有 2 个文件被更改,包括 12 次插入11 次删除
  1. 11 11
      src/views/warehouse/warehouseManagementNoWeightIn.vue
  2. 1 0
      src/views/warehouse/warehouseManagementTare.vue

+ 11 - 11
src/views/warehouse/warehouseManagementNoWeightIn.vue

@@ -1162,7 +1162,7 @@
             return
           }
           if (
-            this.dataList.warehouseInOutDetail.waterContent < 1 ||
+            this.dataList.warehouseInOutDetail.waterContent < 0 ||
             this.dataList.warehouseInOutDetail.waterContent > 40 ||
             (String(this.dataList.warehouseInOutDetail.waterContent).indexOf(
                 '.'
@@ -1175,7 +1175,7 @@
               2)
           ) {
             this.$message({
-              message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
+              message: '水分(%)输入错误! 取值范围0-40之间且可以保留2小数',
               type: 'warning',
             })
             return
@@ -1192,7 +1192,7 @@
             return
           }
           if (
-            this.dataList.warehouseInOutDetail.impurity < 1 ||
+            this.dataList.warehouseInOutDetail.impurity < 0 ||
             this.dataList.warehouseInOutDetail.impurity > 40 ||
             (String(this.dataList.warehouseInOutDetail.impurity).indexOf('.') !=
               -1 &&
@@ -1204,7 +1204,7 @@
               2)
           ) {
             this.$message({
-              message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
+              message: '杂质(%)输入错误! 取值范围0-40之间且可以保留2小数',
               type: 'warning',
             })
             return
@@ -1220,7 +1220,7 @@
             return
           }
           if (
-            this.dataList.warehouseInOutDetail.mildewGrain < 1 ||
+            this.dataList.warehouseInOutDetail.mildewGrain < 0 ||
             this.dataList.warehouseInOutDetail.mildewGrain > 40 ||
             (String(this.dataList.warehouseInOutDetail.mildewGrain).indexOf(
                 '.'
@@ -1233,7 +1233,7 @@
               2)
           ) {
             this.$message({
-              message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
+              message: '霉变粒(%)输入错误! 取值范围0-40之间且可以保留2小数',
               type: 'warning',
             })
             return
@@ -1250,7 +1250,7 @@
             return
           }
           if (
-            this.dataList.warehouseInOutDetail.jiaorenli < 1 ||
+            this.dataList.warehouseInOutDetail.jiaorenli < 0 ||
             this.dataList.warehouseInOutDetail.jiaorenli > 40 ||
             (String(this.dataList.warehouseInOutDetail.jiaorenli).indexOf('.') !=
               -1 &&
@@ -1262,7 +1262,7 @@
               2)
           ) {
             this.$message({
-              message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
+              message: '热损伤(%)输入错误! 取值范围0-40之间且可以保留2小数',
               type: 'warning',
             })
             return
@@ -1279,7 +1279,7 @@
             return
           }
           if (
-            this.dataList.warehouseInOutDetail.imperfectGrain < 1 ||
+            this.dataList.warehouseInOutDetail.imperfectGrain < 0 ||
             this.dataList.warehouseInOutDetail.imperfectGrain > 40 ||
             (String(this.dataList.warehouseInOutDetail.imperfectGrain).indexOf(
                 '.'
@@ -1292,7 +1292,7 @@
               2)
           ) {
             this.$message({
-              message: '不完善粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
+              message: '不完善粒(%)输入错误! 取值范围0-40之间且可以保留2小数',
               type: 'warning',
             })
             return
@@ -1321,7 +1321,7 @@
               0)
           ) {
             this.$message({
-              message: '容重(克/升)输入错误! 取值范围1-40之间且是整数',
+              message: '容重(克/升)输入错误! 取值范围1-1000之间且是整数',
               type: 'warning',
             })
             return

+ 1 - 0
src/views/warehouse/warehouseManagementTare.vue

@@ -483,6 +483,7 @@
           this.deptBudgetList.grossWeight = data
         } else {
           this.tare = data
+          this.deptBudgetList = data
         }
       },
       openPort() {