ソースを参照

去掉囤位号非空校验

gjy 2 年 前
コミット
0a839f8090
1 ファイル変更9 行追加9 行削除
  1. 9 9
      src/views/outboundManagement/weighingManagementNew.vue

+ 9 - 9
src/views/outboundManagement/weighingManagementNew.vue

@@ -1124,13 +1124,13 @@
             })
             return
           }
-          if (!this.weighingList.storageNumber) {
-            this.$message({
-              message: '囤位号不能为空',
-              type: 'warning',
-            })
-            return
-          }
+          // if (!this.weighingList.storageNumber) {
+          //   this.$message({
+          //     message: '囤位号不能为空',
+          //     type: 'warning',
+          //   })
+          //   return
+          // }
           if (!this.weighingList.contractPrice && this.weighingList.inOutType != '移库出库') {
             this.$message({
               message: '价格不能为空',
@@ -1139,8 +1139,8 @@
             return
           }
           if (
-            this.weighingList.storageNumber.length < 1 ||
-            this.weighingList.storageNumber.length > 10
+            this.weighingList.storageNumber&&this.weighingList.storageNumber.length < 1 ||
+            this.weighingList.storageNumber&&this.weighingList.storageNumber.length > 10
           ) {
             this.$message({
               message: '囤位号不超过10个字符!',