Browse Source

销售合同验证修改

zhongtianhaoyuan 3 năm trước cách đây
mục cha
commit
b3ae16fbf0

+ 46 - 46
src/views/contractManagement/salesContractAdd.vue

@@ -15,7 +15,7 @@
         <div class="remark">
         <div class="remark">
           <h3>基本信息</h3>
           <h3>基本信息</h3>
           <p style="color: #8890b1">
           <p style="color: #8890b1">
-            &nbsp;&nbsp;注:基本信息和货物信息均为必填项,“<span style="color:red">*</span>”
+            &nbsp;&nbsp;注:基本信息均为必填项,“<span style="color:red">*</span>”
             标记的条目提交后不可修改。
             标记的条目提交后不可修改。
           </p>
           </p>
         </div>
         </div>
@@ -1064,13 +1064,13 @@
           })
           })
           return
           return
         }
         }
-        if (!this.deptBudgetList.contractGoodsInfo.waterContent) {
-          this.$message({
-            message: '请输入水分',
-            type: 'warning',
-          })
-          return
-        }
+        // if (!this.deptBudgetList.contractGoodsInfo.waterContent) {
+        //   this.$message({
+        //     message: '请输入水分',
+        //     type: 'warning',
+        //   })
+        //   return
+        // }
         if (
         if (
           (this.deptBudgetList.contractGoodsInfo.waterContent &&
           (this.deptBudgetList.contractGoodsInfo.waterContent &&
             String(this.deptBudgetList.contractGoodsInfo.waterContent).indexOf(
             String(this.deptBudgetList.contractGoodsInfo.waterContent).indexOf(
@@ -1098,13 +1098,13 @@
           })
           })
           return
           return
         }
         }
-        if (!this.deptBudgetList.contractGoodsInfo.impurity) {
-          this.$message({
-            message: '请输入杂质',
-            type: 'warning',
-          })
-          return
-        }
+        // if (!this.deptBudgetList.contractGoodsInfo.impurity) {
+        //   this.$message({
+        //     message: '请输入杂质',
+        //     type: 'warning',
+        //   })
+        //   return
+        // }
         if (
         if (
           (this.deptBudgetList.contractGoodsInfo.impurity &&
           (this.deptBudgetList.contractGoodsInfo.impurity &&
             String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf('.') !=
             String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf('.') !=
@@ -1124,13 +1124,13 @@
           })
           })
           return
           return
         }
         }
-        if (!this.deptBudgetList.contractGoodsInfo.bulkDensity) {
-          this.$message({
-            message: '请输入容重',
-            type: 'warning',
-          })
-          return
-        }
+        // if (!this.deptBudgetList.contractGoodsInfo.bulkDensity) {
+        //   this.$message({
+        //     message: '请输入容重',
+        //     type: 'warning',
+        //   })
+        //   return
+        // }
         if (
         if (
           (this.deptBudgetList.contractGoodsInfo.bulkDensity &&
           (this.deptBudgetList.contractGoodsInfo.bulkDensity &&
             String(this.deptBudgetList.contractGoodsInfo.bulkDensity).indexOf(
             String(this.deptBudgetList.contractGoodsInfo.bulkDensity).indexOf(
@@ -1151,15 +1151,15 @@
           })
           })
           return
           return
         }
         }
-        if (!this.deptBudgetList.contractGoodsInfo.mildewGrain) {
-          this.$message({
-            message: '请输入霉变粒',
-            type: 'warning',
-          })
-          return
-        }
+        // if (!this.deptBudgetList.contractGoodsInfo.mildewGrain) {
+        //   this.$message({
+        //     message: '请输入霉变粒',
+        //     type: 'warning',
+        //   })
+        //   return
+        // }
         if (
         if (
-          !this.deptBudgetList.contractGoodsInfo.mildewGrain ||
+          this.deptBudgetList.contractGoodsInfo.mildewGrain ||
           (String(this.deptBudgetList.contractGoodsInfo.mildewGrain).indexOf(
           (String(this.deptBudgetList.contractGoodsInfo.mildewGrain).indexOf(
               '.'
               '.'
             ) != -1 &&
             ) != -1 &&
@@ -1178,15 +1178,15 @@
           })
           })
           return
           return
         }
         }
-        if (!this.deptBudgetList.contractGoodsInfo.jiaorenli) {
-          this.$message({
-            message: '请输入热损伤',
-            type: 'warning',
-          })
-          return
-        }
+        // if (!this.deptBudgetList.contractGoodsInfo.jiaorenli) {
+        //   this.$message({
+        //     message: '请输入热损伤',
+        //     type: 'warning',
+        //   })
+        //   return
+        // }
         if (
         if (
-          !this.deptBudgetList.contractGoodsInfo.jiaorenli ||
+          this.deptBudgetList.contractGoodsInfo.jiaorenli ||
           (String(this.deptBudgetList.contractGoodsInfo.jiaorenli).indexOf('.') !=
           (String(this.deptBudgetList.contractGoodsInfo.jiaorenli).indexOf('.') !=
             -1 &&
             -1 &&
             String(this.deptBudgetList.contractGoodsInfo.jiaorenli).length -
             String(this.deptBudgetList.contractGoodsInfo.jiaorenli).length -
@@ -1204,15 +1204,15 @@
           })
           })
           return
           return
         }
         }
-        if (!this.deptBudgetList.contractGoodsInfo.imperfectGrain) {
-          this.$message({
-            message: '请输入不完善粒',
-            type: 'warning',
-          })
-          return
-        }
+        // if (!this.deptBudgetList.contractGoodsInfo.imperfectGrain) {
+        //   this.$message({
+        //     message: '请输入不完善粒',
+        //     type: 'warning',
+        //   })
+        //   return
+        // }
         if (
         if (
-          !this.deptBudgetList.contractGoodsInfo.imperfectGrain ||
+          this.deptBudgetList.contractGoodsInfo.imperfectGrain ||
           (String(this.deptBudgetList.contractGoodsInfo.imperfectGrain).indexOf(
           (String(this.deptBudgetList.contractGoodsInfo.imperfectGrain).indexOf(
               '.'
               '.'
             ) != -1 &&
             ) != -1 &&